{ "id": "108589", "key": "TIMOB-12441", "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": [ { "id": "15272", "description": "2013 Sprint 04 API", "name": "2013 Sprint 04 API", "archived": true, "released": true, "releaseDate": "2013-02-25" }, { "id": "14814", "description": "2013 Sprint 04", "name": "2013 Sprint 04", "archived": true, "released": true, "releaseDate": "2013-02-25" } ], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2013-02-20T20:04:14.000+0000", "created": "2013-01-25T22:39:09.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "android-configuration", "api" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [ { "id": "27656", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "110469", "key": "TIMOB-12939", "fields": { "summary": "Android: Developer option \"do not keep activities\" cause Titanium apps to close", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-29T16:50:28.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": "\"Don't keep activities\" option in Developer Options on devices cause Titanium apps to close after the first activity is loaded. This is a major difference between Titanium apps and native Android apps as this option may be checked unbeknownst to the client and thus seen as a bug in the app.", "attachment": [], "flagged": false, "summary": "Developer options on Android devices cause Titanium apps to close", "creator": { "name": "john.sanford@tcs.com", "key": "john.sanford@tcs.com", "displayName": "John Sanford", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "john.sanford@tcs.com", "key": "john.sanford@tcs.com", "displayName": "John Sanford", "active": true, "timeZone": "America/New_York" }, "environment": "Android", "comment": { "comments": [ { "id": "236033", "author": { "name": "john.sanford@tcs.com", "key": "john.sanford@tcs.com", "displayName": "John Sanford", "active": true, "timeZone": "America/New_York" }, "body": "Unfortunately this issue arose when I was touting the benefits of using Titanium to a coworker and the device loaded all native apps correctly, but when it came time to show the apps from Titanium they all seemed to crash (very embarrassing). It took me a couple of hours to figure out what was going on and to determine as to why my personal devices were all functioning correctly and not the company devices. After figuring out that it had to be a setting in the Developer Options I was able to recreate the issue on my personal devices by turning this option on.", "updateAuthor": { "name": "john.sanford@tcs.com", "key": "john.sanford@tcs.com", "displayName": "John Sanford", "active": true, "timeZone": "America/New_York" }, "created": "2013-01-25T22:49:09.000+0000", "updated": "2013-01-25T22:55:23.000+0000" }, { "id": "236571", "author": { "name": "banzaimobile", "key": "banzaimobile", "displayName": "Banzai Mobile", "active": true, "timeZone": "Europe/Berlin" }, "body": "If I may push for a high priority on this, the occurrence of the 'Don't keep activities' option set to checked turned out to be quite significant among our apps' user base (more than 250.000 active users mainly in Italy).\r\n\r\nMany blog posts about \"Android tips and tricks to squeeze extra performance\" are actively suggesting that users check the option.\r\n", "updateAuthor": { "name": "banzaimobile", "key": "banzaimobile", "displayName": "Banzai Mobile", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-01-30T14:15:38.000+0000", "updated": "2013-01-30T14:15:38.000+0000" }, { "id": "239092", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Turning on the \"Don't keep activities\" option means that Android will kill every activity which is on pause. In the Titanium app, when the app is launched, the launcher activity gets started first. If there are some other activities need to get started, for example opening a heavyweight window, the launcher activity will be on pause. Then Android will kill the launcher activity since it's on pause therefore the app is killed.\nThis option is only for developers to debug their apps. Turning on this option will also impact android native apps, for example [facebook|http://developers.facebook.com/bugs/269489836511974/] and [firefox|http://support.mozilla.org/en-US/questions/942358]. And [AsyncTask|https://groups.google.com/forum/?fromgroups=#!topic/android-developers/CpmcJVeiax4] and [startActivityForResult()|http://stackoverflow.com/questions/13439300/handle-dont-keep-activities-in-android-app] may not work.\nMark the ticket as Invalid.", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-20T20:03:38.000+0000", "updated": "2013-02-20T20:03:38.000+0000" }, { "id": "239374", "author": { "name": "banzaimobile", "key": "banzaimobile", "displayName": "Banzai Mobile", "active": true, "timeZone": "Europe/Berlin" }, "body": "No matter how settings are labeled, users who can access and change them will do it. \r\n\r\nAs I wrote, 9 out of 10 crash reporters across all our Titanium apps we could reach HAD THE SETTINGS ON.\r\n\r\nFacebook is working correctly, like all the system apps I checked.\r\nEven some 3rd party apps which have problems do not simply crash at launch.\r\n\r\nSo users can easily live with the settings on and really believe the guru blogger that advised \"optimizing the developer options\" is a genius.\r\n\r\nSo, is there at least a way to detect the settings and alert users BEFORE the app crashes?\r\n\r\n", "updateAuthor": { "name": "banzaimobile", "key": "banzaimobile", "displayName": "Banzai Mobile", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-02-22T10:40:02.000+0000", "updated": "2013-02-22T10:40:02.000+0000" }, { "id": "239388", "author": { "name": "john.sanford@tcs.com", "key": "john.sanford@tcs.com", "displayName": "John Sanford", "active": true, "timeZone": "America/New_York" }, "body": "If this is not fixed I will switch back to developing for Android natively.", "updateAuthor": { "name": "john.sanford@tcs.com", "key": "john.sanford@tcs.com", "displayName": "John Sanford", "active": true, "timeZone": "America/New_York" }, "created": "2013-02-22T15:17:31.000+0000", "updated": "2013-02-22T15:17:31.000+0000" }, { "id": "240386", "author": { "name": "john.sanford@tcs.com", "key": "john.sanford@tcs.com", "displayName": "John Sanford", "active": true, "timeZone": "America/New_York" }, "updateAuthor": { "name": "john.sanford@tcs.com", "key": "john.sanford@tcs.com", "displayName": "John Sanford", "active": true, "timeZone": "America/New_York" }, "created": "2013-03-01T19:00:39.000+0000", "updated": "2013-03-01T19:00:39.000+0000" }, { "id": "416184", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket with reference to the above comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-29T16:50:28.000+0000", "updated": "2017-03-29T16:50:28.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }