{ "id": "84593", "key": "TIMOB-7053", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "15699", "description": "2013 Sprint 21", "name": "2013 Sprint 21", "archived": true, "released": true, "releaseDate": "2013-10-18" }, { "id": "15701", "description": "2013 Sprint 21 Core", "name": "2013 Sprint 21 Core", "archived": true, "released": true, "releaseDate": "2013-10-18" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-10-19T01:38:29.000+0000", "created": "2012-01-09T09:46:36.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "androidbuild", "ay-verified", "cb-verified", "module_android", "qe-testadded" ], "versions": [ { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" } ], "issuelinks": [ { "id": "20716", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "100712", "key": "TISTUD-2250", "fields": { "summary": "Debugging Android Emulator Fail to launch the application when Android device is attached to your system.", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "32098", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "119168", "key": "TIMOB-14982", "fields": { "summary": "Android Build: Run Hook", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } } ], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2013-11-21T18:40:29.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" }, { "id": "13103", "name": "CLI", "description": "Node-based command line interface" }, { "id": "10207", "name": "Tooling" } ], "description": "h2. Problem\r\n\r\nLaunching app on device using \"Run on device\" results in error when multiple devices are connected at once.\r\n\r\nI 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.\r\n\r\nh2. Steps to reproduce\r\n\r\n* create default app\r\n* connect 3 android devices to computer\r\n* run on device\r\n* see resulting error below\r\n\r\nh2. Logs\r\n\r\nThe following is an excerpt from the attached {{build.log}}\r\n\r\n{code:lang=none|title=build.log}\r\n[DEBUG] Waiting for device to be ready ...\r\n[TRACE] adb devices returned 3 devices/emulators\r\n[DEBUG] Device connected... (waited 0 seconds)\r\n[DEBUG] waited 0.021664 seconds on emulator to get ready\r\n[INFO] Installing application on emulator\r\n[DEBUG] /android-sdk-macosx/platform-tools/adb -d install -r /Users/shan/Dropbox/dev/NEIRA-mobile/build/android/bin/app.apk\r\n[ERROR] error: more than one device\r\n{code}", "attachment": [ { "id": "24987", "filename": "build.log", "author": { "name": "iotashan", "key": "iotashan", "displayName": "Shannon Hicks", "active": true, "timeZone": "America/Chicago" }, "created": "2012-01-10T07:28:10.000+0000", "size": 11838, "mimeType": "text/plain" } ], "flagged": false, "summary": "Tooling: Android - when using Run on Device provide support for multiple devices", "creator": { "name": "iotashan", "key": "iotashan", "displayName": "Shannon Hicks", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "iotashan", "key": "iotashan", "displayName": "Shannon Hicks", "active": true, "timeZone": "America/Chicago" }, "environment": "* Titanium 1.8.0.1\r\n* Android", "comment": { "comments": [ { "id": "252802", "author": { "name": "iotashan", "key": "iotashan", "displayName": "Shannon Hicks", "active": true, "timeZone": "America/Chicago" }, "body": "Can we bump this up? With the new CLI it seems like now is the time.\r\n\r\nI 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.", "updateAuthor": { "name": "iotashan", "key": "iotashan", "displayName": "Shannon Hicks", "active": true, "timeZone": "America/Chicago" }, "created": "2013-05-20T15:45:22.000+0000", "updated": "2013-05-20T15:45:22.000+0000" }, { "id": "275832", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/4781", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-19T01:38:29.000+0000", "updated": "2013-10-19T01:38:29.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }