Run two Android emulators with different languages

Most of the idea in the title, I just wanted to know if it is possible to run 2 emulators simultaneously with two different languages ​​(to check the I18n of my application). If there was a way to do this in Eclipse, it would be more ...

Sort of This

+4
source share
3 answers

If you press the button to start the emulator in Eclipse (mobile phone), Eclipse should open a dialog box in which you can choose which Android Virtual Device (AVD) you want to run. You can create a second AVD in this dialog box and then run them as one after another.

Now you need to change the locale of one of the emulators to the desired language. The emulator must save these settings, so you only need to configure this once.

+3
source

In Eclipse, this is easy to do. Use the Android Virtual Device Manager (AVD) to configure as many emulators as you want. Depending on whether you upgraded to the latest version of the Eclipse plug-in, the start button for the AVD manager will either be a black phone or an Android Robot puzzle over a black square with an arrow in it. In any case, this is on the toolbar next to shortcuts for saving, printing, etc.

In AVD, you can create different emulators with different versions of Android (load other SDKs in the "Available Packages" menu on the left). After creating emulators, launch them using the button on the right. You can use several emulators at the same time if you want. The emulators have a program already installed, called the "Custom Locale", which allows you to change the location information. You cannot do this when creating emulators, but it persists when you do in the emulator, so you do not need to do this every time.

After that, to select which emulator your program will work on, change its launch configuration to manual. This is done by clicking on the additional arrows next to the green "Run the program" button, selecting "Run configuration", the "Target" tab, then select the manual mode. You can also do this by right-clicking on your project in the project browser (list on the left), and the parameter is located in the "Run As" → "Run Configurations" section.

+1
source

To connect adb to a specific emulator or device, use one of the options ā€œ-eā€, ā€œ-dā€ or ā€œ-sā€ as described for the ADB tool. http://developer.android.com/tools/help/adb.html

All in all, the documentation is a great place to start.

0
source

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


All Articles