Quantcast
Channel: Adobe Community : All Content - AIR Development
Viewing all articles
Browse latest Browse all 2954

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

$
0
0

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?


Viewing all articles
Browse latest Browse all 2954

Trending Articles