{ "id": "89001", "key": "TIMOB-8342", "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": "2012-04-02T10:07:39.000+0000", "created": "2012-03-27T20:47:28.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "13070", "description": "Release 1.8 Service Pack 2", "name": "Release 1.8.2", "archived": true, "released": true, "releaseDate": "2012-02-29" } ], "issuelinks": [], "assignee": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-09T23:24:18.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": "*Code*\r\nI personally would say majority of Titanium Android apps, but for this ticket, please try it with the KitchenSink app.\r\n\r\n*Expected behavior*\r\nWhen you put an app into the background, and bring it back into the foreground, it should work perfectly fine.\r\n\r\n*Actual behavior*\r\nThe app seems to show a black background for 1-2 seconds and then restarts.\r\n\r\n*Steps to reproduce*\r\nI can reproduce this issue 3 out of 5 times, by doing the following:\r\n\r\n*1.* If you have the KitchenSink app open in memory from before, kill it. We want to make sure we start from a clean slate.\r\n*2.* Make sure you have your USB cable connected to your laptop and phone.\r\n*3.* Run the KitchenSink app, wait for it to load and press the home button (don't press the back button, but instead the home button!)\r\n*4.* Run a few other apps in the background, I ran 'Gmail', 'Contacts', 'Internet', 'Peep', 'Places', 'Stocks' and 'Market'. It's important that you press the home button and NOT the back button! (NOTE if it doesn't work for you the first time, try opening more or even less apps, it might make a difference, depending on the device's specs).\r\n*5.* Once you have some apps running in the background, make sure you are back on the main home screen.\r\n*6.* Press the power button (lock your screen, turn the screen off, but don't power the device off!)\r\n*7.* Unplug the USB cable.\r\n*8.* Unlock your phone.\r\n*9.* Press on the KitchenSink app icon.\r\n*10.* Expect to see a black background for a second or two and then it will restart the app.\r\n*11.* If you don't, repeat from step 1.\r\n\r\n\r\n*Notes*\r\n-Different apps behave differently. The KitchenSink app, for example, seems to show a black background for 1-2 seconds and then restart the whole app. Other apps, such as Mister (from Google Play), actually shows a black screen and never continues to do anything else. The Jiffy Lube app, restarts and has the loading screen image visible as the background border.\r\n\r\n-KitchenSink was packaged with a 2.0 CI build.\r\n\r\n-Mister on Google Play is packaged with a 1.9.0.v20120209110134 build.\r\n\r\n-Jiffy Lube on Google Play is packaged with the 1.8.2 build.\r\n\r\n-If it doesn't work the first time, please keep trying for a while. Sometimes it takes a few tries, before you can reproduce this issue. Also try to restart your device, so all other apps are unloaded from memory. Try to open a few more apps, or maybe even less apps, it should eventually be reproducible.\r\n\r\n-Only tested on a HTC Sensation 4G, running Android 2.3.x.", "attachment": [], "flagged": false, "summary": "Android: keyDispatchingTimedOut when trying to resume an app from background to foreground", "creator": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "subtasks": [], "reporter": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "environment": null, "comment": { "comments": [ { "id": "189556", "author": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Note that the Android OS cleans up the activities if the phone is running out of resources. The behavior is to restart the app in that case as the original activity has been destroyed by the system. You will run into this problem only if a number of applications have been started after an application has been put in background. ", "updateAuthor": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-02T14:42:09.000+0000", "updated": "2012-04-02T14:42:09.000+0000" }, { "id": "411002", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-09T23:24:18.000+0000", "updated": "2017-03-09T23:24:18.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }