How to Install Eclipse ADT, Android SDK, and setup AVD Emulator

Android Honeycomb 3.1

The Android Honeycomb

UPDATE: For more resources about how to develop Android apps, check my “Learning How to Create Android Apps Series“.

A couple of weeks ago I was so fortunate to get the opportunity working with the Android SDK development in my job (Samsung Galaxy Tab 10.1 :) ).

Compared with Android mobile app development using the Adobe Flex 4.5, the Android SDK may be a bit more tricky to do, so to document my experience I created this blog post (and maybe some more posts in the future).

To start developing Android apps, we need to install the Eclipse ADT, Android SDK (obviously..), and setup the AVD.

ADT – Android Development Tools
AVD – Android Virtual Device

Prerequisite:
- Familiar with Eclipse IDE

Steps:

1. Get Eclipse (I use Eclipse 3.7 – Indigo), download from:

2. Get Android SDK, run the installation:

  • After the installation, run the SDK Manager
  • Check “Tools” and the Android version you’re going to develop.

3. Install the Eclipse ADT (Android Development Tools) Plugin:

  • Run Eclipse
  • Click Help > Install New Software
  • Click Add, copy the following to the Location input: https://dl-ssl.google.com/android/eclipse/
  • Check “Developer Tools” and follow the rest of installation wizard.

4. After restarting the Eclipse, check if the ADT picks-up the SDK directory correctly:

  • Run Eclipse
  • Click Windows > Preferences
  • Click Android on the left sidebar.

5. Create the emulator:

  • Run the Eclipse.
  • Go to Window > AVD Manager.
  • Click “New” button.
  • Fill the fields:

Name: em31
Target: Android 3.1 – API Level 12
SD Card size: 64 MB
Snapshot: enabled
Hardware:
Device ram size: 768

  • click “Create AVD”.
  • The new AVD should appear in the AVD Manager, click “Start” button to run it.

*It takes time to start the AVD, in my machine it takes 7 mins.

FAQ

Q: Why the AVD is so sloooooooww in my computer?

A: There’s nothing wrong with your computer, it’s really the problem with the AVD. If you followed my steps correctly, we should’ve set the RAM size to 768MB and enabled the snapshot. Enabling the snapshot means that whenever we run the emulator, it will bypass the longer boot process. Set the option save to snapshot on the first time, but un-check it whenever we run the emulator afterward, because saving to snapshot will take significant time as well. :p

Popularity: 22% [?]

Tags: , , ,

Related Posts


6 comments ↓

#1 Paco Espinoza on 12.01.11 at 5:16 pm

thanks a lot, very useful!…

#2 djitz on 12.01.11 at 8:17 pm

@Paco, you’re welcome, glad I can help! :)

#3 chirag on 01.01.12 at 9:15 pm

in the 3rd step it says dupicate location and theres no developer tools tab der…

#4 djitz on 01.02.12 at 10:53 am

@chirag, if it says duplicate location then the URL is there already (whether you’ve added it earlier, or your Eclipse version already has it).

“Developer Tools” is not a tab, it will be a list of items with checkboxes in the middle of the window.

#5 Peter on 03.12.12 at 1:16 pm

don’t know where else to turn. how can i get eclipse to work with samsung stratosphere???
Wont show in the device manager.
downloaded every driver i could find.

#6 Trijito Santoso on 03.18.12 at 7:28 am

@Peter, I don’t think I could help much either. Did you try to run the app directly on the device?

Leave a Comment