{ "id": "151565", "key": "AC-429", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2015-11-14T19:00:47.000+0000", "created": "2015-09-29T07:30:34.000+0000", "labels": [ "activity", "android" ], "versions": [], "issuelinks": [], "assignee": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "updated": "2015-11-14T19:00:47.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "Hi, i am working on an titanium but i have problems getting android activity life-cycle state.\r\n\r\nI have gone through http://docs.appcelerator.com/platform/latest/#!/api/Titanium.Android.Activity adding of \r\ntrue also in tiapp.xml.\r\n\r\nAdded the eventListners.\r\nvar appActivity = Ti.Android.currentActivity;\r\nappActivity.addEventListener('onResume, function() {\r\n\t Ti.API.info('Tha applicaiton was onResume'');\r\n});\r\nJust like this i have added onPause, onStart, onRestart and onStop. But still i am not getting any required output. \r\n\r\nI want to get the state of android activity and if possible also without adding any other 3rd party module.", "attachment": [], "flagged": false, "summary": "Android Lifecycle State (onPause, onCreate and others) not getting called", "creator": { "name": "bhavin2887", "key": "bhavin2887", "displayName": "Bhavin Bhavsar", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "bhavin2887", "key": "bhavin2887", "displayName": "Bhavin Bhavsar", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium SDK 3.5.1.GA\r\nTitanium SDK 3.5.0.GA", "comment": { "comments": [ { "id": "370285", "author": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-11-14T19:00:47.000+0000", "updated": "2015-11-14T19:00:47.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }