Affects Version/s: Release 2.0.0, Release 1.8.1, Release 1.8.2, Release 2.0.1
Fix Version/s: None
SDK: 1.8.1, 1.8.2, 2.0.0.GA, 2.0.1.GA2
Runtime: V8, Rhino
OS: Snow Leopard
Devices Tested: Nexus One 2.2.2, Nexus S 2.3.4
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):
4. Navigate to app apk in device file system (i.e., Astro).
5. Click on the apk, press install, press open/run app.
App should run without error.
App force restarts on first run, but runs correctly on future launches.