Icon
Icon
Icon
Icon
Icon
Icon

Tuesday, January 31, 2012

03. Virtual Devices

10:46 AM
0 comments


When you testing your application, one of the thing you definitely have is Virtual device or Emulator. This allows to actually test your application here in the Desktop environment instead of haven't to go out to a real device.
So from the SDK manager click the "Virtual devices" tab and click "New" to create a new virtual device.



We wanna give a name for this virtual device. Let's give it as "Gingerbread_WVGA". Because our SDK version is Gingerbread  and we use WVGA resolution. So now on the target, we want to choose a API. Here we have only installed Gingerbread version. So choose Android 2.3.3 - API Level 10.
Emulator is able to emulate most features of the phone including the SD card. I'm going to enter 10,000 here. So the next feature here is Snapshot. This is really important. It support to speed up our emulator when running the emulator several times without close it. So enable it.
Then keep a skin size as a Default(WVGA800).
And keep other hardware properties also in default.
Now you can create a new AVD (Android Virtual Device).



Your system will take a little while to create it. When finish the virtual device, you should get this message.
 Click OK.


Now you can see your new virtual device in the "Virtual Devices" panel.
Another thing is make sure everything is running fine.Select it and click Start.
Now it's presenting a window with some options.  Select Launch.




 
Then you can see the Emulator is starting up. Now remember that we didn't have any previous snapshot to launch from. So we need to wait for Android boot up. 

Before the boot
After the boot




 












 Now everything is booted up. We can view all the things as a android phone. We can access the Main menu and there are a lot of applications.



Let's meet with our another lesson.

If You Enjoyed This Post Please Take a Second To Share It.

You Might Also Like

Stay Connected With Free Updates

Subscribe via Email