{ "id": "132069", "key": "TIMOB-17198", "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": "11", "description": "Is not a bug in our product", "name": "Not Our Bug" }, "resolutiondate": "2014-07-09T05:50:25.000+0000", "created": "2014-06-20T21:35:37.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "3.3.0.RC", "Android" ], "versions": [ { "id": "15971", "description": "Release 3.2.3", "name": "Release 3.2.3", "archived": false, "released": true, "releaseDate": "2014-04-30" }, { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "issuelinks": [ { "id": "42160", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "138094", "key": "TIMOB-17864", "fields": { "summary": "Android: ExitOnClose shows previous app when app is closed", "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": "None", "id": "6" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "38877", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "120243", "key": "TIMOB-15296", "fields": { "summary": "Android: Support for window flags", "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": "Medium", "id": "3" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-14T05:01:45.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": "h4. Problem Description\r\nClosing a titanium app on Android 4.4.3 will lead to the previous app from the task switcher showing up for a short time. \r\n\r\nh4. Steps to reproduce\r\n1. Create new app (classic titanium)\r\n2. Using Mobile SDK 3.3.0.RC\r\n3. Use the default project (two tabs)\r\n4. Install it on a device with 4.4.3\r\n5. Do this:\r\n* home screen\r\n* opening camera app\r\n* closing camera app\r\n* home screen\r\n* opening titanium app\r\n* closing titanium app\r\n* camera app shows up shortly\r\n* home screen\r\n\r\nh4. Extra information\r\nQA Link: http://developer.appcelerator.com/question/175386/android-443-closing-ti-app-will-show-previous-app", "attachment": [], "flagged": false, "summary": "Android: Closing Titanium app on Android 4.4.3 will show previous app", "creator": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "environment": "SDK Titanium 3.3.0 RC \r\nAndroid 4.4.3 (Nexus 4)", "comment": { "comments": [ { "id": "310510", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Hello Michael,\r\ndoes this happen with the default app? We need instructions to reproduce this, I don't have a device to try this, so we need you to follow this instructions:\r\n\r\n1. Open Ti Studio\r\n2. Create a new mobile project (classic)\r\n3. Select the classic two tabs.\r\n4. Run this into your device. \r\n\r\nDoes this reproduce the issue?\r\n\r\nBest,\r\nMauro", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2014-06-23T20:38:43.000+0000", "updated": "2014-06-23T20:38:43.000+0000" }, { "id": "310523", "author": { "name": "manuellehner", "key": "manuellehner", "displayName": "Manuel Lehner", "active": true, "timeZone": "Europe/Berlin" }, "body": "Hello Mauro,\r\n\r\nI have tested this too on different devices and can confirm the behaviour. I've build the the test app with SDK 3.2.3.GA and installed on my Nexus 5 with Android 4.4.3 and other devices with older Versions - everything was fine. Then I've build the app with 3.3.0.Beta and 3.3.0.RC and the described behaviour appeared on Android 4.4.3 but not on 4.4.2 or 4.3 - Same for every other Titanium App I've tested.", "updateAuthor": { "name": "manuellehner", "key": "manuellehner", "displayName": "Manuel Lehner", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-06-23T21:08:52.000+0000", "updated": "2014-06-23T21:08:52.000+0000" }, { "id": "310639", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "I even have problems with my own apps I've installed from the store (build before 4.4.3) or had on the device before I did the update! Only Titanium apps showed this behaviour in 4.4.3 and still do in 4.4.4 (update arrived yesterday)\r\n\r\nDefault app does the same when closing it (3.2.3 GA, 3.3.0 RC)\r\n\r\nLog:\r\n{code}\r\n06-24 10:37:18.171: I/ActivityManager(587): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.user.testtab/.TesttabActivity} from pid 1225\r\n06-24 10:37:18.271: D/dalvikvm(587): GC_FOR_ALLOC freed 626K, 17% free 23092K/27812K, paused 101ms, total 101ms\r\n06-24 10:37:18.311: I/TiRootActivity(15625): (main) [0,0] checkpoint, on root activity create, savedInstanceState: null\r\n06-24 10:37:18.341: D/dalvikvm(15625): GC_CONCURRENT freed 823K, 27% free 9599K/13064K, paused 3ms+1ms, total 23ms\r\n06-24 10:37:18.441: D/dalvikvm(587): GC_FOR_ALLOC freed 47K, 16% free 23450K/27812K, paused 85ms, total 85ms\r\n06-24 10:37:18.451: I/dalvikvm-heap(587): Grow heap (frag case) to 25.549MB for 2731536-byte allocation\r\n06-24 10:37:18.481: W/V8Object(15625): Runtime disposed, cannot set property 'userAgent'\r\n06-24 10:37:18.481: W/TiApplication(15625): (KrollRuntimeThread) [170,170] Registering module with name already in use.\r\n06-24 10:37:18.561: D/dalvikvm(587): GC_FOR_ALLOC freed <1K, 15% free 26118K/30480K, paused 116ms, total 116ms\r\n06-24 10:37:18.671: I/ActivityManager(587): START u0 {cmp=com.user.testtab/org.appcelerator.titanium.TiActivity (has extras)} from pid 15625\r\n06-24 10:37:18.782: D/dalvikvm(15625): GC_FOR_ALLOC freed 74K, 27% free 9645K/13064K, paused 17ms, total 17ms\r\n06-24 10:37:18.792: I/dalvikvm-heap(15625): Grow heap (frag case) to 12.054MB for 2731536-byte allocation\r\n06-24 10:37:18.812: D/dalvikvm(15625): GC_FOR_ALLOC freed 3K, 6% free 12309K/13064K, paused 19ms, total 19ms\r\n06-24 10:37:18.832: D/dalvikvm(15625): GC_CONCURRENT freed 2K, 6% free 12306K/13064K, paused 2ms+2ms, total 19ms\r\n06-24 10:37:18.832: I/TiRootActivity(15625): (main) [0,0] checkpoint, on root activity resume. activity = com.user.testtab.TesttabActivity@42591d78\r\n06-24 10:37:19.102: I/ActivityManager(587): Displayed com.user.testtab/org.appcelerator.titanium.TiActivity: +180ms (total +796ms)\r\n06-24 10:37:22.085: D/dalvikvm(1055): GC_CONCURRENT freed 3179K, 47% free 12351K/22916K, paused 8ms+13ms, total 97ms\r\n\r\n----running, now closing ----\r\n\r\n06-24 10:37:24.718: D/TabGroup(15625): Tabgroup is closed normally.\r\n06-24 10:37:24.818: D/dalvikvm(587): GC_FOR_ALLOC freed 434K, 16% free 25772K/30480K, paused 85ms, total 85ms\r\n\r\n{code}", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-06-24T08:41:52.000+0000", "updated": "2014-06-24T08:43:36.000+0000" }, { "id": "310718", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "I'm at Ticonf Amsterdam and got my device with me if you need to do some testing", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-06-24T19:06:40.000+0000", "updated": "2014-06-24T19:06:40.000+0000" }, { "id": "310750", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the issue is reproducible. \r\nThis issue is seen even if the first app opened is a titanium app & not just camera or default android apps.\r\n\r\nh5.Below are my findings:\r\n1. Open any app, even titanium app.(this is first app)\r\n2. Press home button. (app is backgrounded)\r\n3. Open a titanium app.(this is second app)\r\n4. Close it by tapping the back button.\r\n5. You will see the previous app for 1 sec.\r\n\r\nh5.Special case when chrome browser is the first app:\r\n6. Open Chrome browser on nexus 5.(This is the first app)\r\n7. Close it using the back button. (this step is the difference as compared to above) \r\n8. Open a titanium app.(this is second app)\r\n9. Close it by tapping the back button.\r\n10. You will see the chrome browser for 1 sec.\r\n\r\nEnvironment:\r\nAppc Studio : 3.3.0.201406231625\r\nTi SDK : 3.3.0.v20140624130120\r\nMac OSX : 10.8.5\r\nAlloy : 1.4.0-rc2\r\nCLI - 3.3.0-rc2\r\nCode Processor: 1.1.1\r\nNexus 5 - android 4.4.4", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-24T21:01:45.000+0000", "updated": "2014-06-24T21:01:45.000+0000" }, { "id": "310751", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I think this may be a native problem. See comment on: http://androidspin.com/2014/06/15/discussion-problems-android-4-4-3-deep-rabbit-hold-go/\r\n\r\n\"gogoboy • 8 days ago\r\nSince updated to 4.4.3, power juice seems shorter. Same usage, but my Nexus4 keeps screaming time to recharge. I recall that 4.4.2 would last me till the end plus avg 20+% remain. Another problem makes my eyes sore is, when close one app, the previous app will show about a couple seconds.\"\r\n\r\n4.4.4 is supposed to fix 4.4.3 issues: http://www.neowin.net/news/google-rolls-out-android-444-after-buggy-bug-fixing-443-release", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-24T21:02:38.000+0000", "updated": "2014-06-24T21:02:38.000+0000" }, { "id": "310752", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Can we take a quick look and see if anything looks suspicious here from the Titanium perspective?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-24T21:05:53.000+0000", "updated": "2014-06-24T21:05:53.000+0000" }, { "id": "310758", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "@Ingo Muschenetz: the problem still occurs in 4.4.4 on my Nexus 4. \r\n\r\nPerhaps the app gogoboy is talking about is a Titanium app.", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-06-24T21:20:22.000+0000", "updated": "2014-06-24T21:20:22.000+0000" }, { "id": "310763", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "That's possible. [~lchoudhary] Are you able to reproduce it if neither application is a Titanium application?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-24T21:25:48.000+0000", "updated": "2014-06-24T21:25:48.000+0000" }, { "id": "310770", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~ingo]- I don't see the issue if neither of the applications are titanium applications.\r\nFYI, I am using 4.4.4 Nexus 5 device for testing.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-24T21:43:31.000+0000", "updated": "2014-06-24T21:50:25.000+0000" }, { "id": "311434", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": " Technically speaking, this is not a regression. This issue happens when the exitOnClose property of the first/root window is set to true. Since in 3.3, exitOnClose is set to true by default (see [this commit|https://github.com/appcelerator/titanium_mobile/commit/b82829e6f1471490a2866538cabffd13df80a3dc]), this issue shows even exitOnClose is not explicitly specified.\r\nA simple test case:\r\n{code}\r\nvar win1 = Titanium.UI.createWindow({\r\n backgroundColor : '#fff',\r\n exitOnClose: true\r\n});\r\nwin1.open();\r\n{code}", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-27T22:24:45.000+0000", "updated": "2014-06-27T22:24:45.000+0000" }, { "id": "311518", "author": { "name": "manuellehner", "key": "manuellehner", "displayName": "Manuel Lehner", "active": true, "timeZone": "Europe/Berlin" }, "body": "I've seen this issue occur on other Apps too (e.g. Dropbox) which are not build with Titanium. Problem still occurs on Android L btw.", "updateAuthor": { "name": "manuellehner", "key": "manuellehner", "displayName": "Manuel Lehner", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-06-29T14:09:45.000+0000", "updated": "2014-06-29T14:09:45.000+0000" }, { "id": "311736", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tried to reproduce this with non titanium apps on Nexus 5 - android 4.4.4\r\nTried with dropbox app as mentioned in the comment above, but could not reproduce the issue with non titanium apps.\r\n\r\n", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-07-01T00:09:44.000+0000", "updated": "2014-07-01T00:09:44.000+0000" }, { "id": "312807", "author": { "name": "manuellehner", "key": "manuellehner", "displayName": "Manuel Lehner", "active": true, "timeZone": "Europe/Berlin" }, "body": "Here is a simple workaround until this is fixed:\r\n{code}\r\nvar win1 = Titanium.UI.createWindow({\r\n backgroundColor : '#fff',\r\n exitOnClose: false\r\n});\r\nwin1.addEventListener(\"androidback\", function(){\r\n win1.getActivity().finish();\r\n});\r\nwin1.open();\r\n{code}", "updateAuthor": { "name": "manuellehner", "key": "manuellehner", "displayName": "Manuel Lehner", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-07-08T13:08:49.000+0000", "updated": "2014-07-08T13:08:49.000+0000" }, { "id": "312969", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This is an Android issue on 4.4.3 and above, which has been filed [Issue 71067|https://code.google.com/p/android/issues/detail?id=71067]. Seems Google has fixed it. Hopefully the fix will be in the next 4.4.x patch.", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-07-09T05:49:57.000+0000", "updated": "2014-07-09T06:44:58.000+0000" }, { "id": "411962", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue is not our bug.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-14T05:01:45.000+0000", "updated": "2017-03-14T05:01:45.000+0000" } ], "maxResults": 17, "total": 17, "startAt": 0 } } }