Pages

Tuesday, August 28, 2012

Getting Started with Android App Development

The beauty of Android development is that you are not restricted to any particular development environment. You can use any operating systems and any IDE you like. But since we will be writing Java code, Eclipse is a natural choice.

All you need are these 4 things

- Java SDK 6
- Eclipse IDE
- Android SDK
- Eclipse ADT plugin
- git (optional but recommended)

Get Java SDK


If you don't have Java SDK, getting it is simple. Download it from
http://www.java.com/getjava

Download Eclipse IDE


Download Eclipse Classic from http://www.eclipse.org/downloads/
If you are using Mac or Linux, and not sure if you are running 64bit or 32bit machine, inside Terminal run this command
$ uname -a
The output will tell you which eclipse binary you should download. Unzip and you have Eclipse.

Download Android SDK & Tools


Next step is to download Android SDK from
https://developer.android.com/sdk/index.html
Unzip the file you just downloaded. You should see android-sdk-mac folder. Copy it to a location where you want to download all other Android Development tools. Using terminal, navigate to tools folder inside android-sdk-mac and run android program
~/dev/android-dev/android-sdk-macosx/tools $ ./android  
This opens up Android SDK Manager. It shows you all installed components, the updates and also lists all available versions of Android SDK. This is where you will select what you need to download that includes, plain SDK, sample code, SDK source code, system images, Google APIs and also vendor specific components. If that's too much to take in, make sure you select for both Android 4.1 and Android 4.0.3
  • Documentation from Android SDK
  • SDK platform
  • Samples for SDK
  • ARM EABI system image
And under Tools category, select
  • Android SDK Tools
  • Android SDK platform-tools
And click install packages, next Accept all and let it finish.

The final step is to install Eclipse ADT plugin which makes Android development tools (mode on that later) part of the IDE for easy access. 

Download the ADT Plugin


  1. Start Eclipse, then select Help > Install New Software.
  2. Click Add, in the top-right corner.
  3. In the Add Repository dialog that appears, enter "ADT Plugin" for the Name and the following URL for the Location:
    https://dl-ssl.google.com/android/eclipse/
  4. Click OK.
    If you have trouble acquiring the plugin, try using "http" in the Location URL, instead of "https" (https is preferred for security reasons).
  5. In the Available Software dialog, select the checkbox next to Developer Tools and click Next.
  6. In the next window, you'll see a list of the tools to be downloaded. Click Next.
  7. Read and accept the license agreements, then click Finish.
    If you get a security warning saying that the authenticity or validity of the software can't be established, click OK.
  8. When the installation completes, restart Eclipse.

Configure the ADT Plugin


After you've installed ADT and restarted Eclipse, you must specify the location of your Android SDK directory:
  1. Select Window > Preferences... to open the Preferences panel (on Mac OS X, select Eclipse > Preferences).
  2. Select Android from the left panel.
  3. You may see a dialog asking whether you want to send usage statistics to Google. If so, make your choice and clickProceed.
  4. For the SDK Location in the main panel, click Browse... and locate your downloaded Android SDK directory (such asandroid-sdk-windows).
  5. Click Apply, then OK.

Install Git


Git is an open source version control system. It works best for small projects as well as massive projects like Android platform itself. It will help you maintain different versions of your source code. In case you would like to download the Android source code, you will require git. It's very easy install.
Download it from below site and install it using package manager.
http://git-scm.com/

We will talk s more about git once we start developing actual applications. 

Next, we will talk about some Android Development Tools and will run our first Android app.


15 comments:

  1. Really nice blog thanks for sharing post.

    Companies that are providing development services have a pool of talented developers and programmers. This pool is created by hiring dedicated android application developers and professional programmers. When companies have these developers with them, they offer clients to develop applications for them, either from on-site or off-site location.

    All your comment for Android Development are welcome.

    Thanks in advance.

    ReplyDelete
  2. Organizations that are offering growth services have a share of skilled designers and developers. This share is designed by choosing devoted android operating system program designers and professional developers. When companies have these designers with them, they offer customers to create programs for them, either from on-site or off-site place.
    So Thanks..

    ReplyDelete
  3. Thanks for such a great information..
    Your blog is such a very informative blog.

    ReplyDelete
  4. This stuff is down t earth, hats off buds out there.
    android root apps

    ReplyDelete
  5. This is great and useful blog. This is very helpful information. Thanks for sharing this.

    ReplyDelete
  6. This is so much more than i needed!!! but will all come in use thanks!!
    App Development Company

    ReplyDelete
  7. I agree with most of your points, but a few need to be discussed further, I will hold a small talk with my partners and maybe I will look for you some suggestion soon..

    ReplyDelete
  8. This comment has been removed by the author.

    ReplyDelete
  9. I am a new user for App Development , I have read your post and I learn some good tips from your blog, thank you for posting good information like this .

    ReplyDelete
  10. Thanks for posting useful information.You have provided an nice article, Thank you very much for this one. And i hope this will be useful for many people.. and i am waiting for your next post keep on updating these kinds of knowledgeable things...Really it was an awesome article...very interesting to read..
    please sharing like this information......
    Android training in chennai
    Ios training in chennai


    ReplyDelete
  11. Nice it seems to be good post... It will get readers engagement on the article since readers engagement plays an vital role in every

    blog.. i am expecting more updated posts from your hands.
    Mobile App Development Company
    Mobile App Development Company in India
    Mobile App Development Companies

    ReplyDelete
  12. Unfortunately android development is now competitive


    Documentation from Android SDK
    SDK platform
    Samples for SDK
    ARM EABI system image
    helps but you need to be excellent in development to achieve results.

    ReplyDelete