Highlighted

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

New Here ,
Dec 16, 2014

Copy link to clipboard

Copied

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?

TOPICS
Development

Views

310

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

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

New Here ,
Dec 16, 2014

Copy link to clipboard

Copied

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?

TOPICS
Development

Views

311

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Dec 16, 2014 0
Enthusiast ,
May 04, 2016

Copy link to clipboard

Copied

Hi,

Did you ever find a workaround for this?
G

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 04, 2016 0