[ Android ] A third party SDK requires initialisation from Application Object onCreate

A third party SDK we’re using requires initialisation from Application Object onCreate.

it spits this message:

“The Parse push service cannot start because Parse.initialize has not yet been called. If you call Parse.initialize from an Activity’s onCreate, that call should instead be in the Application.onCreate”

I call Parse.initialize from main.lua ( using plugin of course ), but while this worked for many sdks

it doesn’t work for Parse, because it needs initialisation as early as possible.

Where can I put code that needs to be in ApplicationObject.onCreate ?

You need to create a class derived from Android’s “Application” class…

   http://developer.android.com/reference/android/app/Application.html

The above class has the onCreate() method that they want you to initialize their library in.  The Corona Enterprise sample project provides examples on how to do this.  Note that you have to create a new Application derived Java class *and* reference your Application derived class in your AndroidManfiest.xml file’s <application> tag.

You need to create a class derived from Android’s “Application” class…

   http://developer.android.com/reference/android/app/Application.html

The above class has the onCreate() method that they want you to initialize their library in.  The Corona Enterprise sample project provides examples on how to do this.  Note that you have to create a new Application derived Java class *and* reference your Application derived class in your AndroidManfiest.xml file’s <application> tag.