Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio 2.0 launch APK on another device

Since Android Studio 2.0 and its reworked "build / run" mechanism, I can't "launch" an APK on a second device anymore. Once the APK has been loaded on the first device, I can't choose to launch a build to another device.

"Run" will target the current device "Re-run" will stop the application running on the current device and upload it to the "second" device.

So my question is : "How can I launch a "second" build targeting a different device than the first device I builded on without terminating the first process ?"

Sorry for my bad english, this is not my native language.

like image 722
Nino DELCEY Avatar asked Apr 13 '16 08:04

Nino DELCEY


2 Answers

If you click the stop button (Red Square), the Instant Run is deactivated. Then click the Run button the list of devices appears again.

The drawback is that when you click on the stop button the application is killed on the current running device.

We need a way or a shortcut to bypass Instant Run

like image 81
erahal Avatar answered Sep 22 '22 02:09

erahal


Disconnect the device, click on the "play" button. Android Studio ask you now where to run the app.

Connect your device and select it.

like image 22
Ralph Bergmann Avatar answered Sep 26 '22 02:09

Ralph Bergmann