Android AVD Manager

Hello there,
in this post I briefly explain how you can create new virtual device for your Android emulator on your computer.
If you wanna develop applications for Android and don’t have an Android mobile phone at hand, you can start with the emulator coming along with the Android SDK. By the way, you get the Android SDK for free here: https://developer.android.com/sdk/index.html

I explain here the way working with it on Linux (Ubuntu 11.10), so I get the file “android-sdk_r17-linux.tgz” and extract it to /home/norbert/sdk/

After that you can fire up a terminal and start the program android:

sdk/android-sdk-linux/tools/android

Then you see the Android SDK Manager. It manages all installed versions of the different Android APIs that are available. Choose the API you wanna develop apps for. I am working with a Nexus S that runs Android 2.3.6 that is covered by API 10 (2.3.3).
So I select:

  • SDK Plattform
  • Samples for SDK
  • Google APIs

So that’s basically all you need to start, but if you have one of those devices mentioned in the list you probably want to install the specific stuff to, but note here: in most of the cases you are asked for a username and password to access the repositories of the other vendors to get their stuff.

After you have selected what you want to install click “Install packages” and accept the licence agreements then the download starts.

Ok, thereafter you can continue with creating you first virtual Android Device.
Click on “Tools” in the Menubar of the SDK Manager and select “Manage AVDs” gets you this screen:

As you can see I already have created two virtual devices, in your case the list should be empty. Click on the right on “New” then you will see new window with forms:

Provide a Name for the AVD, specify the target API and in case you need it, you can provide a path to a SDCard image. You can create such an image with the mksdcard tool in android-sdk-linux/tools/mksdcard.

The command for that is

mksdcard -l nameForSDCard 1024M targetFile.img

what creates a SD Card with 1GB in size.


Having that, click on “Create AVD” and you are done. Now back in the list of available AVDs select the one you just created and click on “Start” in the right hand menu. Click “Launch” in the “Launch Options menu” and your virtual Android boots up.

Easy isn’t it?
So I hope this was helpful
Cheers
norbert

Advertisements

3 thoughts on “Android AVD Manager

  1. Pingback: Scripting on Android « my tiny TechBlog

  2. Your style is really unique compared to other people I have read stuff from. Thanks for posting when you have the opportunity, Guess I will just book mark this page.

    I was able to find good information from your content.

  3. Hey There. I found your blog using msn. This is a really well written article. I will be sure to bookmark it and come back to read more of your useful info. Thanks for the post. I’ll certainly comeback.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s