Tuesday 17 July 2012

Creating Android Virtual Device(AVD)

To test and see how our application looks like we need a Android Emulator, so what we need for that is to configure our AVD .And for creating an AVD we need to set the properties for it . So lets see how to go about it:

Lets split this mission into 2 parts :

Part 1: Creating a AVD

 Go to Window in the Eclipse IDE>> Select AVD manager

or

Click on the AVD manager icon on the toolbar
Next you would see a screen like this:


Set the AVD properties >> Click Create AVD

An important thing that I would like to mention here carefully set the size of the AVD's SD card . Although you can set it to a  minimum of 9MiB but I would suggest you to allot it reasonable size to the SD card, and yes this SD card space is allotted on the computers hard drive.

Part 2: Using the AVD


Now in order to see how to use a AVD we must have a project already created and ready to be run. 

Running the application for the first time we need to do the following:

Right click on the application you wish to run >> Click run configuration >> set the name of the Configuration>> Select the application you wish to run>> Set the target (which is the Emulator on which you wish to run your project)>> click Apply >>Click run>> Emulator starts.




No comments:

Post a Comment