{ "id": "62177", "key": "TIMOB-1545", "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": "11225", "name": "Release 1.5.0", "archived": true, "released": true, "releaseDate": "2010-12-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:56:28.000+0000", "created": "2011-04-15T02:55:42.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "defect" ], "versions": [], "issuelinks": [], "assignee": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2011-04-17T01:56: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": "{html}
When you install an app, you get the option at the end of the\ninstallation to touch \"open\" (to run the app) or just \"done\". If\nyou choose open and start the app, it behaves differently in terms\nof pause/resume than an app that you open from the normal\napplications list. (See also helpdesk ticket 35861.)
\nUse the native android browser go enter a URL to an APK on the\ninternet.
\nAfter it's downloaded, click on the apk to install
\nOn post install screen click 'open'
\nAfter the app loads, click the home button
\nGo to the list of applications, find the one you just installed\nand click it to open it again. You will see splash screen again\ninstead of being brought back into app in previous state.
\nrepeat 4 and 5 a few times
\nAfter doing it a few times, start clicking the back button, and\nyou'll end up backing through a bunch of instances your app's main\nscreen.
None of this weird stuff happens if you do not click\n'open' upon completing the installation of the app but rather go\nstart the app for the first time using the normal applications\nlist.
\nIf you click back a bunch of times you will see multiple\ninstances of the getglue app and splash screen
\"Normal\" start of an application looks like this:
\n\nI/ActivityManager( 97): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.billdawson.testanything/.TestanythingActivity }\nI/ActivityManager( 97): Start proc com.billdawson.testanything for activity com.billdawson.testanything/.TestanythingActivity: pid=6935 uid=10097 gids={3003, 1015}
\n
\nStarting an app from the 'open' button post-installation looks\nlike this:
\n\nI/ActivityManager( 97): Starting activity: Intent { act=android.intent.action.MAIN flg=0x10000000 cmp=com.billdawson.testanything/.TestanythingActivity }\nI/ActivityManager( 97): Start proc com.billdawson.testanything for activity com.billdawson.testanything/.TestanythingActivity: pid=6857 uid=10097 gids={3003, 1015}
\n
\nSo the only difference appears to be the 'flg': 0x10000000 when\nloading from 'open' button post-installation, 0x10200000 when\nlaunching 'normally' from application list.
The post-installation 'open' button's launch flag of 0x10000000\ncorresponds to \nFLAG_ACTIVITY_NEW_TASK.
\nThe standard launch flag 0x10200000 corresponds to that (above)\nplus \nFLAG_ACTIVITY_RESET_TASK_IF_NEEDED.
This is a duplicate of #1559, but existed first. Since the fix\nhas already been checked in for #1559\nplease verify that this isn't a special case that still needs\nattention.
huh, thought I closed this on sat - anyway 1.5.0.70ce98 g2 and\ng1