Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13484] CLI: App doesn't automatically run on Android device if also the emulator is open

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionCannot Reproduce
Resolution Date2013-08-07T07:43:11.000+0000
Affected Version/sRelease 3.0.2, Release 3.1.0
Fix Version/sn/a
ComponentsAndroid, Tooling
Labelsandroidbuild, cb-verified
ReporterFederico Casali
AssigneeChris Barber
Created2013-04-08T23:16:29.000+0000
Updated2017-03-21T21:28:56.000+0000

Description

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.

Comments

  1. Chris Barber 2013-08-07

    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.
  2. Lee Morris 2017-03-21

    Closing ticket as the issue cannot be reproduced.

JSON Source