PocketMagic

PocketMagic

Where Technology meets magic


Android
45 Posts
BlackBerry
4 Posts
Electronics
68 Posts
Hardware
120 Posts
High Voltage
49 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
73 Posts
Symbian
2 Posts
Tubes
18 Posts
Windows
3 Posts
Windows Mobile
11 Posts

Top Articles!       See PocketMagic on Facebook


uRADMonitor - Online Radiation monitoring station | 14916 Views | Rate 70.03
uRADMonitor - Online Radiation monitoring station
Bluetooth and iOS - Use Bluetooth in your iPhone apps | 18149 Views | Rate 58.55
Bluetooth and iOS - Use Bluetooth in your iPhone apps
NMEA GPS Library for AVR Microcontrollers | 4825 Views | Rate 56.1
NMEA GPS Library for AVR Microcontrollers
Programmatically Injecting Events on Android - Part 2 | 5003 Views | Rate 44.67
Programmatically Injecting Events on Android - Part 2
Building a robot – Part 2 | 4599 Views | Rate 44.22
Building a robot – Part 2
Simple Switched power Supplies | 16133 Views | Rate 41.8
Simple Switched power Supplies
Capacitor Discharge Microspot Welder / Cutter | 11337 Views | Rate 36.45
Capacitor Discharge Microspot Welder / Cutter
Atmega8 and Nokia 5110 LCD  | 1537 Views | Rate 34.93
Atmega8 and Nokia 5110 LCD

 
  

Developing for Android – the SDK – update 2011


By Radu Motisan Posted on February 1st, 2011 , 725 Views (Rate 0.86)



  




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:

Tube: USN-5J29 | 355 Views | Rate 25.36
Tube: USN-5J29
Atmega8 and enc28J60 for ethernet support | 7272 Views | Rate 24.65
Atmega8 and enc28J60 for ethernet support
How to set the AVR Fusebits | 1710 Views | Rate 23.75
How to set the AVR Fusebits
ATMega128 and HD44780 LCD using 3 Wires with the 74HC164 | 2057 Views | Rate 22.86
ATMega128 and HD44780 LCD using 3 Wires with the 74HC164
Dual H-Bridge for controlling two motors | 1196 Views | Rate 21.36
Dual H-Bridge for controlling two motors
USBAsp -  AVR USB Programmer  | 8083 Views | Rate 20.99
USBAsp - AVR USB Programmer

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 diJHau to the field below: