PocketMagic

PocketMagic

Where Technology meets magic


Android
47 Posts
BlackBerry
4 Posts
Electronics
69 Posts
Hardware
123 Posts
High Voltage
49 Posts
Image processing
2 Posts
iPhone
4 Posts
Linux
2 Posts
Nuclear
20 Posts
Optics
11 Posts
Photography
7 Posts
Photoshop
3 Posts
Research
19 Posts
Reviews
18 Posts
Robotics
8 Posts
Security
7 Posts
Software
76 Posts
Symbian
2 Posts
Tubes
20 Posts
Windows
3 Posts
Windows Mobile
11 Posts

Top Articles!       See PocketMagic on Facebook


Building a robot – Part 2 | 8872 Views | Rate 67.21
Building a robot – Part 2
uRADMonitor - Online Radiation monitoring station | 16127 Views | Rate 66.92
uRADMonitor - Online Radiation monitoring station
Bluetooth and iOS - Use Bluetooth in your iPhone apps | 22099 Views | Rate 65.38
Bluetooth and iOS - Use Bluetooth in your iPhone apps
NMEA GPS Library for AVR Microcontrollers | 5832 Views | Rate 51.16
NMEA GPS Library for AVR Microcontrollers
Programmatically Injecting Events on Android - Part 2 | 6551 Views | Rate 46.79
Programmatically Injecting Events on Android - Part 2
Simple Switched power Supplies | 19105 Views | Rate 46.15
Simple Switched power Supplies
Coil Winding machine counter with Atmega8 and Reed relay | 973 Views | Rate 38.92
Coil Winding machine counter with Atmega8 and Reed relay
Capacitor Discharge Microspot Welder / Cutter | 13219 Views | Rate 38.88
Capacitor Discharge Microspot Welder / Cutter

 
  

Developing for Android – the SDK – update 2011


By Radu Motisan Posted on February 1st, 2011 , 902 Views (Rate 1.04)



  

A lot has changed in the tools used to develop for Android since my last article on this topic. The previous article, back in 2009 has shown a basic guide to get you going. Here's an update.

I will show what you need to develop on a Windows box, but it's almost the same on the other platforms supported. Follow these steps:
Step 1. Download Eclipse, from here . Currently Eclipse Helios (3.6.1) is available (~200MB). While you're on their website, consider donating to support this great tool.
Step 2. The download comes as a zip file. Install it to a location on your computer. I usually choose C:\Eclipse
Step 3.Download Google Android SDK, from here. Revision 9 is available at the this moment. The download comes as a zip file (android-sdk_r09-windows.zip) that you should unpack to a location on your PC. I choose the folder with my work projects: D:\work_code\android\android-sdk-windows\ . Be careful that this location should only contain common characters (do not use characters like &, $, etc).
Step 4.Start SDK Manager.exe and go to Installed packages. Click accept all and install.

The components will download and install automatically. This will take some time so be patient.
Step 5.Go to the Eclipse folder, and start eclipse.exe. The very first time you will have to the workspace location, I simply choose the work projects location: D:\work_code\android . You should tick the "Use this as default" checkbox:

Pressing OK, starts Eclipse for the first time:

Step 6.In Eclipse, go to Help->Install New Software:

Press the Add button. In the dialog, enter ADT Plugin for Name, and https://dl-ssl.google.com/android/eclipse/ for the Location:

Press OK. When the content is displayed, select all the Entries, and press Next.

Press Next again, and select "I accept the terms of license agreements":

Press Finish to complete this step. A dialog showing "Installing Software" appears. Wait for it to complete.
If you get a security warning, press OK to continue installation:

When prompt to restart Eclipse, choose "Restart Now".
Step 7.As Eclipse restart, go to Window->Android SDK and AVD Manager

Press OK on the dialog "Location of the Android SDK has not been setup in the preferences". We are about to do just that. Go to Window->Preferences, select Android in the left column, and browse for the SDK location (in my case it's D:\work_code\android\android-sdk-windows ) .Press Apply. Press OK.

Step 8.Make sure you have Java JDK installed. You can get it here .
Step 9.You are ready to start your first Android Project. In Eclipse, go to File->New->Project, and select Android->Android Project. Alternatively you can go to File->Import to import existing Android code into Eclipse.
Step 10. Have fun coding. While working in Eclipse, make sure you enable the additional Android Views that will help you: Window->Show View->Other ->Android. There select what you need: Devices, File Explorer, but most important LogCat for the debug output.

Some additional resources:
http://www.pocketmagic.net/?p=665
http://developer.android.com/sdk/installing.html
http://www.pocketmagic.net/?p=1332

Hope this helps!


  

More on PocketMagic:

Atmega8 and enc28J60 for ethernet support | 8848 Views | Rate 27.31
Atmega8 and enc28J60 for ethernet support
How to make metallic sodium | 1432 Views | Rate 27.02
How to make metallic sodium
Tube: USN-5J29 | 1086 Views | Rate 25.86
Tube: USN-5J29
How to set the AVR Fusebits | 2547 Views | Rate 25.47
How to set the AVR Fusebits
Tube: GP-5 (ГП-5) | 630 Views | Rate 25.2
Tube: GP-5 (ГП-5)
Dual H-Bridge for controlling two motors | 2104 Views | Rate 25.05
Dual H-Bridge for controlling two motors

2 Responses to “Developing for Android – the SDK – update 2011”

  1. 1
    PocketMagic » Developing for Google Android – the SDK:

    [...] Update Jan 2011: see new article [...]

  2. 2
    Grappige filmpjes:

    Hmm, ik krijg een javascript probleem op de site, nog meer mensen hier last van? Verder wel leuke blog ben hier gekomen via Google, ga zo door! groetjes

Thank you for commenting. Your comment won't show until approved, which can take some time.

Please copy the string ny5EHI to the field below: