[AC-429] Android Lifecycle State (onPause, onCreate and others) not getting called
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | n/a |
| Status | Resolved |
| Resolution | Duplicate |
| Resolution Date | 2015-11-14T19:00:47.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | Titanium SDK & CLI |
| Labels | activity, android |
| Reporter | Bhavin Bhavsar |
| Assignee | Mostafizur Rahman |
| Created | 2015-09-29T07:30:34.000+0000 |
| Updated | 2015-11-14T19:00:47.000+0000 |
Description
Hi, i am working on an titanium but i have problems getting android activity life-cycle state.
I have gone through http://docs.appcelerator.com/platform/latest/#!/api/Titanium.Android.Activity adding of
true also in tiapp.xml.
Added the eventListners.
var appActivity = Ti.Android.currentActivity;
appActivity.addEventListener('onResume, function() {
Ti.API.info('Tha applicaiton was onResume'');
});
Just like this i have added onPause, onStart, onRestart and onStop. But still i am not getting any required output.
I want to get the state of android activity and if possible also without adding any other 3rd party module.
Comments
- Shak Hossain 2015-11-14