Titanium JIRA Archive
Appcelerator Community (AC)

[AC-429] Android Lifecycle State (onPause, onCreate and others) not getting called

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionDuplicate
Resolution Date2015-11-14T19:00:47.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsactivity, android
ReporterBhavin Bhavsar
AssigneeMostafizur Rahman
Created2015-09-29T07:30:34.000+0000
Updated2015-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

  1. Shak Hossain 2015-11-14

JSON Source