{ "id": "62596", "key": "TIMOB-1964", "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": "11333", "description": "Mobile 1.8.0 M01", "name": "Sprint 2011-22", "archived": true, "released": true, "releaseDate": "2011-06-06" }, { "id": "11570", "description": "", "name": "Release 1.7.2", "archived": true, "released": true, "releaseDate": "2011-07-21" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-07-08T09:36:34.000+0000", "created": "2011-04-15T03:06:40.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "android", "background", "defect", "reported-1.4.0", "rplist", "sleep", "tbs-1.7.1" ], "versions": [], "issuelinks": [ { "id": "10633", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "65926", "key": "TIMOB-4261", "fields": { "summary": "Android: Support making changes to root in section of tiapp.xml, and having those changes be carried into generated manifest", "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 } } } }, { "id": "10266", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "64786", "key": "TIMOB-3715", "fields": { "summary": "Confirm TIMOB-1964", "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": "5", "description": "The sub-task of the issue", "name": "Sub-task", "subtask": true } } } }, { "id": "28693", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "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": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "updated": "2013-05-10T19:53:13.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}

pastie of logcat:
\r\nhttp://pastie.org/1192004

\r\n

I've sen this a few times recently.
\r\n1.Launch KS (seen on a G1 running 1.6).
\r\n2.background it, let the device fall asleep for some time (more\r\nthan a few minutes anyway)
\r\n3.wake device, launch app from app drawer

\r\n

results: blank window with \"kitchen sink\" header. Pressing the\r\nback button quits the app (next launch will show the app\r\nsplash)

{html}", "attachment": [ { "id": "18600", "filename": "AndroidManifest.xml", "author": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "created": "2011-05-31T13:39:45.000+0000", "size": 3104, "mimeType": "text/xml" } ], "flagged": false, "summary": "Android: kitchensink opens on a blank window after being backgrounded and device sleeps.", "creator": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "127098", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Moving to 1.5.1 as per Don

{html}", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:06:42.000+0000", "updated": "2011-04-15T03:06:42.000+0000" }, { "id": "127099", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

First step is to get a reproduction sequence and determine\ncause. This may take more than one milestone to fix.

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:06:42.000+0000", "updated": "2011-04-15T03:06:42.000+0000" }, { "id": "127100", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Still don't have a good reproduction sequence.

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:06:43.000+0000", "updated": "2011-04-15T03:06:43.000+0000" }, { "id": "127101", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Duplicates

\n
    \n
  • #3013 - Android: Leaving app in background for\nseveral hours causes next run to hang
  • \n
  • #3037 - Android: Pressing Home and resuming\napplication gives black screen
  • \n
{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:06:44.000+0000", "updated": "2011-04-15T03:06:44.000+0000" }, { "id": "127102", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "{html}

Commit:

\n

\nhttps://github.com/appcelerator/titanium_mobile/commit/566bdf31b891...

{html}", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-04-15T03:06:44.000+0000", "updated": "2011-04-15T03:06:44.000+0000" }, { "id": "127103", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "{html}

This is caused by Android telling the Activities to restart\nwithout finishing. Our lifecycle implementation can't\ncurrently handle that, and a much bigger ticket will be created for\nthat. In the meantime, to get past the blank screen, we detect this\nand simply restart the app.

\n

In my testing, it actually took several hours to \"fall asleep\",\nso to speak -- i.e, to be in the background long enough for Android\nto tell the activities to restart the next time the user brings the\napplication forward. In order to save testing time, you can\nre-create a failcase and test the fix by doing something else on\nthe device (either emulator or handset) which leads Android to do\nthis special \"restart without finish\" sequence which we were\nfailing to handle. Namely, you can change the language of the\ndevice.

\n

Follow these steps to test:

\n
    \n
  • \n

    Launch Kitchen Sink

    \n
  • \n
  • \n

    After KS loads, press the device Home button to keep Kitchen\nSink running in the background.

    \n
  • \n
  • \n

    Go to Settings - Language and Keyboard (whatever it's called)\nand change the language, i.e., from English to Spanish.

    \n
  • \n
  • \n

    After the language has been changed, press and hold the device's\nHome button to show the list of recently used apps, then select\nKitchenSink. In the failcase you'll get a (mostly) blank screen.\nAfter my changes, the app should simply restart.

    \n
  • \n
{html}", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-04-15T03:06:44.000+0000", "updated": "2011-04-15T03:06:44.000+0000" }, { "id": "127104", "author": { "name": "dermike", "key": "dermike", "displayName": "dermike", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Sounds great Bill! How does the detection work?
\nI'm getting a white screen most of the time, so I hope it's got\nnothing to do with colour. ;)

{html}", "updateAuthor": { "name": "dermike", "key": "dermike", "displayName": "dermike", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:06:45.000+0000", "updated": "2011-04-15T03:06:45.000+0000" }, { "id": "127105", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "{html}

Yeah, I should've said \"blank\". :) It's not related to colour.\nIt simply detects that Android is asking the application's Android\nActivities to destroy & restart without \"finishing\"\n(isFinishing() == false).

{html}", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-04-15T03:06:45.000+0000", "updated": "2011-04-15T03:06:45.000+0000" }, { "id": "127106", "author": { "name": "dermike", "key": "dermike", "displayName": "dermike", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

I downloaded the build from Apr 12 2011 11:18 r61371d3f and it's\nstill not working for my project. Neither when waiting for a while\nor changing the language.

{html}", "updateAuthor": { "name": "dermike", "key": "dermike", "displayName": "dermike", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:06:45.000+0000", "updated": "2011-04-15T03:06:45.000+0000" }, { "id": "130902", "author": { "name": "ben.bahrenburg@gmail.com", "key": "ben.bahrenburg@gmail.com", "displayName": "Ben Bahrenburg", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Using the latest build from April 15th and still get the issue when the app is clicked on after being in the background for a few hours.\n\nThere is a notable change though. It used to have a blank screen, now it displays the splash screen and seems to hang until you press the back button.\n\nI've used KS and a simple demo app to test. It doesn't seem App related.\n\nIs it possible that it gets catch in the restart Bill mentions? It seems like it is trying to restart but getting locked somehow.\n\nTested on a Nexus S with 2.3\n", "updateAuthor": { "name": "ben.bahrenburg@gmail.com", "key": "ben.bahrenburg@gmail.com", "displayName": "Ben Bahrenburg", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-17T17:42:29.000+0000", "updated": "2011-04-17T17:42:29.000+0000" }, { "id": "133101", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[INFO] Titanium SDK version: 1.7.0 (05/03/11 10:31 41a577e)\n\nVerified with Nexus S with Android OS 2.3.2, Galaxy Tab with 2.2.1, Droid with 2.2.1, and the emulator running 2.1.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-05-03T12:55:08.000+0000", "updated": "2011-05-03T12:55:08.000+0000" }, { "id": "133205", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "reopened issue as per Bill/Don\npastie link to logcat pulled from droid1\n\nhttp://pastie.org/1862127", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-05-04T16:21:00.000+0000", "updated": "2011-05-04T16:21:00.000+0000" }, { "id": "134541", "author": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "body": "Issue can be resolved by adding 'android:alwaysRetainTaskState=\"true\"' to the root activity for the application in a custom AndroidManifest.xml and including that in the /platform/android directory.\n\nAn example AndroidManifest.xml for KitchenSink has been included for reference.", "updateAuthor": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "created": "2011-05-31T13:38:16.000+0000", "updated": "2011-05-31T13:38:16.000+0000" }, { "id": "134542", "author": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "body": "Example AndroidManifest.xml for KitchenSink that resolves black screen", "updateAuthor": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "created": "2011-05-31T13:39:45.000+0000", "updated": "2011-05-31T13:39:45.000+0000" }, { "id": "134604", "author": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "body": "moving to sprint 22", "updateAuthor": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "created": "2011-05-31T20:57:34.000+0000", "updated": "2011-05-31T20:57:34.000+0000" }, { "id": "159201", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with 1.7.2.v20110706211037 on Droid 2.2.1 and Nexus one 2.2.2", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-07-11T12:05:15.000+0000", "updated": "2011-07-11T12:05:15.000+0000" }, { "id": "181131", "author": { "name": "jakeh83+appcelerator.@gmail.com", "key": "jakeh83+appcelerator.@gmail.com", "displayName": "Jake H", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I'm seeing this in my apps as well. I just downloaded Kitchen Sink and experienced the same issue. This was using SDK 1.8.0.1 and the device was a Motorola Xoom.", "updateAuthor": { "name": "jakeh83+appcelerator.@gmail.com", "key": "jakeh83+appcelerator.@gmail.com", "displayName": "Jake H", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-30T15:44:48.000+0000", "updated": "2012-01-30T15:44:48.000+0000" } ], "maxResults": 17, "total": 17, "startAt": 0 } } }