Using Android Virtual Devices (AVD’s)
We moved. Please visit this link for this post.
What is the AVD? AVD is an emulator instance with specific configurations.
Creating the AVD
Need to enter this command:
android create avd -n <name> -t <targetID>
-n – name of creted AVD
-t – target ID, please check allowed targets by entering
android list targets
Select for which target need create AVD
When you enter this command you should receive a question which ask you whether you want to create a custom hardware profile. If yes then you should go through all steps and after that you will create custom AVD’s hardware profile.
android create avd -n my1.6 -t 2
I created AVD with name my1.6 for target 2(in my android SDK target 2 is Android 1.6, API level 4)
We created this one. What about moving AVD to the other location?
For this operation need to run
android move avd -n <name> -p <new_path>
-n – name of moved AVD
-p – path to the new location
android move avd -n my1.6 -p C:\Other
There are several issues in Microsoft Windows OS.
- You can move AVD only in disk where installed .android(in my case I can’t move for example to the disk D:\), also don’t forget to use ” ” for catalogs such Documents and Settings and etc
- You can move only to the directory which is not exists. android tool automatically creates it. If you will move to the directory which already exists you will receive and error
Renaming the AVD
This operation is also simple in use
android move avd -n <name> -r <new_new>
android move avd -n my1.6 -r Android1.6
It’s good, but if need to delete the AVD?
Deleting the AVD
Use this command
android delete avd -n <name>
android delete avd -n my1.6
That’s all. As you can see all operations with AVD are simple.