{ "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.)

\n
    \n
  1. \n

    Use the native android browser go enter a URL to an APK on the\ninternet.

    \n
  2. \n
  3. \n

    After it's downloaded, click on the apk to install

    \n
  4. \n
  5. \n

    On post install screen click 'open'

    \n
  6. \n
  7. \n

    After the app loads, click the home button

    \n
  8. \n
  9. \n

    Go 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.

    \n
  10. \n
  11. \n

    repeat 4 and 5 a few times

    \n
  12. \n
\n

After 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.

\n

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.

\n

If you click back a bunch of times you will see multiple\ninstances of the getglue app and splash screen

{html}", "attachment": [], "flagged": false, "summary": "Android: Unusual behavior when opening an app immediately after installing it", "creator": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "comment": { "comments": [ { "id": "126006", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "{html}

\"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
\n

Starting 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
\n

So the only difference appears to be the 'flg': 0x10000000 when\nloading from 'open' button post-installation, 0x10200000 when\nlaunching 'normally' from application list.

{html}", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-04-15T02:55:42.000+0000", "updated": "2011-04-15T02:55:42.000+0000" }, { "id": "126007", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "{html}

The post-installation 'open' button's launch flag of 0x10000000\ncorresponds to \nFLAG_ACTIVITY_NEW_TASK.

\n

The standard launch flag 0x10200000 corresponds to that (above)\nplus \nFLAG_ACTIVITY_RESET_TASK_IF_NEEDED.

{html}", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-04-15T02:55:42.000+0000", "updated": "2011-04-15T02:55:42.000+0000" }, { "id": "126008", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

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.

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

huh, thought I closed this on sat - anyway 1.5.0.70ce98 g2 and\ng1

{html}", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:55:43.000+0000", "updated": "2011-04-15T02:55:43.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }