[TIMOB-8768] Android: App restart required on first launch when installed from sdcard
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2012-08-23T10:14:04.000+0000 |
Affected Version/s | Release 2.0.0, Release 1.8.1, Release 1.8.2, Release 2.0.1 |
Fix Version/s | n/a |
Components | Android |
Labels | core |
Reporter | Dustin Hyde |
Assignee | Bill Dawson |
Created | 2012-04-17T14:41:54.000+0000 |
Updated | 2013-05-01T20:14:42.000+0000 |
Description
When an app is installed to device using adb push, the app must restart on first launch.
This is not a regression (tested in 1.8.1+).
This may be an Android bug according to the log (attached):
Android issue 2373 detected (missing intent CATEGORY_LAUNCHER or FLAG_ACTIVITY_RESET_TASK_IF_NEEDED), restarting app.
This issue also intermittently affects the 3.X and 4.X emulators on regular launch (see linked issue).
Steps to Reproduce:
1. Create a new project.
2. Package app or build to emulator to obtain the app.apk.
3. In the terminal, push apk to device using command (apk name may vary):
adb push NewProject.apk /sdcard/
4. Navigate to app apk in device file system (i.e., Astro).
5. Click on the apk, press install, press open/run app.
Expected Result:
App should run without error.
Actual Result:
App force restarts on first run, but runs correctly on future launches.
Attachments
File | Date | Size |
---|---|---|
nexus one 2.2.2 log.txt | 2012-04-17T14:41:54.000+0000 | 9791 |
This duplicates many JIRA items, but I'll choose TIMOB-9285 since it's the most recent one I worked on. This is a manifestation of Android bug 2373. See my huge comment in TIMOB-9285. In fact the testing instructions for TIMOB-9285 are specifically for launching the app from the Sd card. (This JIRA item pre-dates TIMOB-9285, so no harm no foul. :-) )
Closing.