Android Emulator: select AVD (Android Virtual Device) to run by default

AndroidEclipseAvd

Android Problem Overview


I have added a second Virtual Device to test a different screen resolution (QVGA), but now I wanna switch back to the first AVD (HVGA) again. How can I set the virtual device in Eclipse to be used by default or even specifically for my project? In the properties I can only set the API level.

I also couldn't find any information in the command line tool documentation to set this manually.

Android Solutions


Solution 1 - Android

In Eclipse, click on Run in the toolbar then Run Configurations. Select your application and click on the Target tag. You can then select which AVD to use or set it to manual so it asks you each time you run the app.

Note that if the AVD's Android version is lower than the Minimum API level set in the Manifest, the AVD will not appear in the list.

Solution 2 - Android

In AndroidManifest.xml, see that your minSdkVersion and targetSdkVersion match your device.

Solution 3 - Android

In new Eclipse Kepler version, right click your project, then click Run as->Run Configurations->"Target" tab, you will see all AVDs in the list, select one as a preferred one, then "Apply" and "Run"

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionznqView Question on Stackoverflow
Solution 1 - AndroidIntricationsView Answer on Stackoverflow
Solution 2 - Androidlove2script12View Answer on Stackoverflow
Solution 3 - Androiduser1283182View Answer on Stackoverflow