Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-7053] Tooling: Android - when using Run on Device provide support for multiple devices

GitHub Issuen/a
TypeNew Feature
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-10-19T01:38:29.000+0000
Affected Version/sRelease 1.8.0.1
Fix Version/s2013 Sprint 21, 2013 Sprint 21 Core, Release 3.2.0
ComponentsAndroid, CLI, Tooling
Labelsandroidbuild, ay-verified, cb-verified, module_android, qe-testadded
ReporterShannon Hicks
AssigneeChris Barber
Created2012-01-09T09:46:36.000+0000
Updated2013-11-21T18:40:29.000+0000

Description

Problem

Launching app on device using "Run on device" results in error when multiple devices are connected at once. I have a testbed of Android devices, and it would be nice to just have them all connected all the time (ie for charging purposes). Since adb allows you to get a list of attached devices, it seems that it would be simple enough for Titanium and/or Studio to prompt for a connected device, instead of erroring with the "multiple devices" error, shown below.

Steps to reproduce

* create default app * connect 3 android devices to computer * run on device * see resulting error below

Logs

The following is an excerpt from the attached build.log
[DEBUG] Waiting for device to be ready ...
[TRACE] adb devices returned 3 devices/emulators
[DEBUG] Device connected... (waited 0 seconds)
[DEBUG] waited 0.021664 seconds on emulator to get ready
[INFO] Installing application on emulator
[DEBUG] /android-sdk-macosx/platform-tools/adb -d install -r /Users/shan/Dropbox/dev/NEIRA-mobile/build/android/bin/app.apk
[ERROR] error: more than one device

Attachments

FileDateSize
build.log2012-01-10T07:28:10.000+000011838

Comments

  1. Shannon Hicks 2013-05-20

    Can we bump this up? With the new CLI it seems like now is the time. I have one additional request, though... If I am doing a Debug run, I should be able to select a device. However, if I'm doing a normal run, I should be able to select one *or* all devices. This will come in handy when using tech like TiShadow.
  2. Allen Yeung 2013-10-19

    PR: https://github.com/appcelerator/titanium_mobile/pull/4781

JSON Source