Problem description
When building for Android Device with also the Android emulator open, the App does not automatically run on device
Steps to reproduce
1. Connect an Android device, create a default new project and build for Android simulator
2. Build for Android real device (both from Studio and CLI)
3. Close the Android simulator and build again for device (from terminal or from Studio)
Result:
1. App build and automatically run as expected on the simulator
2. App build and is actually correctly installed on the real device. However, the App it's not starting up automatically on device. A misleading bad error message is displayed on the console log, see Jira TIMOB-13483 for details.
3. App is built and automatically run on device
Note
This behavior is reproducible using CLI 3.0.24 and 3.1.0-cr, or when building from Studio 3.1.X versions.
Using Studio 3.0.2 GA, the App is not supposed to start automatically on device, however in that case, the
'[INFO] Application installed. Launch from drawer on Home Screen'
info is displayed in Console.
I could not reproduce this using a the emulator (Android 2.3) and Nexus 7 (Android 4.3). Both times it correctly launched the app using Titanium SDK 3.1.1.GA. Based on https://github.com/appcelerator/titanium_mobile/commit/651d4b7165db84df4e74cfa875b597d47ed10932#android/cli/commands/_build.js, it appears this fix landed in 3.1.0.
Closing ticket as the issue cannot be reproduced.