Friday, May 18, 2012

Create and Run Android Virtual Device (AVD)

Now I am going to tell how create and run a android virtual device (AVD).
  • open the AVD Manager via Windows → AVD Manager and press New.

  • Enter Details as you wish for AVD window
We can also select the box Enabled for Snapshots. This will make the second start of the virtual device much faster.
At the end press the button Create AVD. This will create the AVD configuration and display it under the Virtual devices.
To test if your setup is correct, select your device and press Start.
After (a long time) your AVD starts. You are able to use it via the mouse and via the virtual keyboard of the emulator.


How Install Android for Eclipse

I'm going to tell how install android plugin for Eclipse. To do that we need some pre-requisties.
1. Eclipse - http://www.eclipse.org/downloads/
2. Android SDK - http://developer.android.com/sdk/index.html

After downloading those as your wish, then start eclipse and do step by step as follows,

  • select Help > Software Updates > Find and Install….
  • In the dialog that appears, select Search for new features to install and press Next.
  • Press New Remote Site.
  • In the resulting dialog box, enter a name for the remote site (e.g. Android Plugin) and enter this as its URL: https://dl-ssl.google.com/android/eclipse/ or  http://dl-ssl.google.com/android/eclipse/.
  • Press OK.
  • You should now see the new site added to the search list (and checked).
  • Press Finish.
  • In the subsequent Search Results dialog box, select the checkbox for Android Plugin > Eclipse Integration > Android Development Tools and press Next.
  • Read the license agreement and then select Accept terms of the license agreement, if appropriate.
  • Press Next.
  • Press Finish.
  • The ADT plugin is not signed; you can accept the installation anyway by pressing Install All.
  • Restart Eclipse.After restart, update your Eclipse preferences to point to the SDK root directory ($SDK_ROOT): Select Window > Preferences… to open the Preferences panel. Select Android from the left panel.  For the SDK Location in the main panel, press Browse... and find the SDK root directory.
  • Press Apply, then OK