{ "id": "61870", "key": "TIMOB-1238", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2017-06-05T21:08:52.000+0000", "created": "2011-04-15T02:47:24.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "android", "defect", "lifecycle" ], "versions": [], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-06-05T21:08:52.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "{html}

Stems from http://developer.appcelerator.com/helpdesk/view/20811.\nIn that case, user would back out of program and TiRootActivity's\nonDestroy would get called, but yet the Application would never\nterminate. (TiApplication.onTerminate never hit breakpoint). When\nuser launched the application again, it was more like a resume,\nsince it had never terminated. This meant that the same instance of\nTiApplication was being used, and singletons such as those\nmaintained in TiModule's modules hashmap were still\nalive. This leads to weird stuff, since the application \"kinda\"\nterminated but didn't really.

\n

To be very specific regarding that helpdesk issue: when user\nbacked out of program, AppModule's onDestroy removed itself from\nTiApplication's appEventProxies collection. When the app started up\nagain, the AppModule singleton was still alive, which means its\nconstructor did not run again, which means it was never added back\nto the Application's appEventProxies collection. So no calls to\nTi.App.fireEvent worked.

{html}", "attachment": [], "flagged": false, "summary": "Android application lifecycle issues: app activity can be destroyed, but app still not terminated", "creator": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "comment": { "comments": [ { "id": "125145", "author": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

I have a regression that falls under this heading, but I'm not\nsure if this is the right bug to attach it to. I'll go ahead and\ntag it, but we might want to resolve this since we fixed the module\nsingleton instance problem already.

{html}", "updateAuthor": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:47:24.000+0000", "updated": "2011-04-15T02:47:24.000+0000" }, { "id": "125146", "author": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [dac0b4dec18678c1f5e9701fe2bdae7f5bb24895])\nclean up singleton modules and event managers in context onDestroy,\nthis lets event listeners work when the app has been relaunched.\nremoved impl of File.spaceAvailable() (it was Java6 only, we'll\nneed to find another way) [#1238] [#1842]\n\nhttp://github.com/appcelerator/titanium_mobile/commit/dac0b4dec1867...

{html}", "updateAuthor": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:47:24.000+0000", "updated": "2011-04-15T02:47:24.000+0000" }, { "id": "421016", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket due to the time passed and lack of progress over the past few years.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-06-05T21:08:52.000+0000", "updated": "2017-06-05T21:08:52.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }