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 | 14809 Views | Rate 70.52
uRADMonitor - Online Radiation monitoring station
Bluetooth and iOS - Use Bluetooth in your iPhone apps | 17740 Views | Rate 57.79
Bluetooth and iOS - Use Bluetooth in your iPhone apps
NMEA GPS Library for AVR Microcontrollers | 4772 Views | Rate 57.49
NMEA GPS Library for AVR Microcontrollers
Developing for Blackberry 10 | 56 Views | Rate 56
Developing for Blackberry 10
Building a robot – Part 2 | 4528 Views | Rate 44.83
Building a robot – Part 2
Programmatically Injecting Events on Android - Part 2 | 4849 Views | Rate 44.49
Programmatically Injecting Events on Android - Part 2
Simple Switched power Supplies | 15845 Views | Rate 41.37
Simple Switched power Supplies
Capacitor Discharge Microspot Welder / Cutter | 11159 Views | Rate 36.11
Capacitor Discharge Microspot Welder / Cutter

 
  

Developing for Android – the SDK – update 2011


By Radu Motisan Posted on February 1st, 2011 , 717 Views (Rate 0.85)



  




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:

Programmatically Injecting Events on Android - Part 1 | 9983 Views | Rate 25.93
Programmatically Injecting Events on Android - Part 1
Atmega8 and enc28J60 for ethernet support | 7119 Views | Rate 24.3
Atmega8 and enc28J60 for ethernet support
Victoreen CDV-717 Remote Gamma Survey dosimeter | 96 Views | Rate 24
Victoreen CDV-717 Remote Gamma Survey dosimeter
How to set the AVR Fusebits | 1647 Views | Rate 23.87
How to set the AVR Fusebits
CDV-742 Dosimeter and CDV-750 Dosimeter Charger | 94 Views | Rate 23.5
CDV-742 Dosimeter and CDV-750 Dosimeter Charger
ATMega128 and HD44780 LCD using 3 Wires with the 74HC164 | 2008 Views | Rate 22.82
ATMega128 and HD44780 LCD using 3 Wires with the 74HC164

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