I want to add a hookup to the rootactivity onStart event because I am using an intent filter that opens my app. I added this block to my module but it never gets called.
@Override
public void onStart(Activity activity)
{
// This method is called when the module is loaded and the root context is started
Log.d(TAG, "[MODULE LIFECYCLE EVENT] start");
super.onStart(activity);
}
I Also tried to add this on my index.js but it is intermittently working . most of the time it is not called.
Ti.Android.currentActivity.onStart = function(e){
Ti.API.info('onStart' + JSON.stringify(e));
// //when activity is created
};