How to run the Android application in all connected devices or emulators simultaneously with Android Studio?

How to run the Android application on all connected devices or emulators simultaneously with Android Studio?

We can run the Android application on all connected devices or emulators at the same time as Eclipse. But how about Android Studio?

Any suggestions would be appreciated :-)

+5
source share
4 answers

Hold down the SHIFT key and click on each device on which you want to run the application when the device selection is displayed.

This only works when the application starts, if you decide to debug it, it is limited to only one device

+8
source

No need to install the plugin. Just click the start button on the toolbar, and then select all devices in the "Select Device" dialog box.

enter image description here

+6
source

When you run this view, you will see all available devices. enter image description here

+3
source

Install the BashSupport plugin and add the following as a Bash configuration to the last thing that needs to be done in build order:

$ adb shell am start -n yourpackagename / .activityname

For example, create a “Run configuration” using a make assembly called “build” or whatever, and a separate Config with Bash executing the Terminal command above. In the Bash configuration at the bottom, add the “build” configuration above as “Before starting”> “Add another configuration”. So that he first did the project, and THEN executed the Bash command.

0
source

Source: https://habr.com/ru/post/1234769/


All Articles