Skip to main content
Jason Verhiel
Participant
December 17, 2014
Question

When using AIR on Android, is it possible to override the native Application.onCreate method to add custom functionality?

  • December 17, 2014
  • 1 reply
  • 417 views

I'm developing a cross platform app using FlashBuilder and I'd like to initialize the Parse library in the Application's onCreate method (I'm using it for push notifications). I've created an ANE to use the library, but, it requires its initialization to occur in the android application's onCreate method otherwise it will throw an error when receiving a push notification that explains that Parse needs to be initialized before being used. Since AIR generates the android app files, it seems like it's not possible to override the main application in order to put the initialization code in there. Is there a way to do this?

This topic has been closed for replies.

1 reply

Legend
May 4, 2016

Hi,

Did you ever find a workaround for this?
G