【发布时间】:2016-10-20 12:18:51
【问题描述】:
我想为 rootactivity onStart 事件添加一个连接,因为我正在使用打开我的应用程序的意图过滤器。我将此块添加到我的模块中,但它从未被调用。
@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);
}
我也尝试在我的 index.js 上添加它,但它间歇性地工作。 大多数时候它不会被调用。
Ti.Android.currentActivity.onStart = function(e){
Ti.API.info('onStart' + JSON.stringify(e));
// //when activity is created
};
【问题讨论】:
标签: appcelerator appcelerator-titanium appcelerator-mobile