Click here to Skip to main content
Click here to Skip to main content

Beginning Android Application Development - Hello, Android!

, 21 Sep 2012
Rate this:
Please Sign up or sign in to vote.
Here is my first Android Application Development Tutorial. Since it's my first tutorial, I just want to show you how to begin deveopment of android application. So, in this tutorial, you'll learn how to install Android SDK with Eclipse ADT Plugin and make a new simple Hello, World! project. Let's ch
Android Logo
Here is my first Android Application Development Tutorial. Since it's my first tutorial, I just want to show you how to begin deveopment of android application. So, in this tutorial, you'll learn how to install Android SDK with Eclipse ADT Plugin and make a new simple Hello, World! project. Let's check it out.
To make this lesson simple, this tutorial divided into 3 main steps. You'll learn how to install Android SDK, Eclipse, and Eclipse ADT plugin. In last part, I'll show you how to create a simple Hello, World! project. Enjoy it!


Prerequisites
  1. I'm using Windows 7 OS in this tutorial. So, maybe it'll be different if you use other Operating Systems.
  2. Make sure the latest Java Development Kit (JDK) installed in your system. If it's not installed, you can visit Java SE Download link to download JDK and follow the installation instructions.
  3. I assume you understand basic Java Programming and XML based script. If not, just google it and you'll find thousands tutorial in the web.

Android SDK Installation
  1. Download the latest Android SDK from the official site: http://developer.android.com/sdk/index.html
  2. Choose package based on your platform. (Because I'm using Windows, so I choose android-sdk_rxx-windows.zip)
    Android SDK
  3. After download progress completed, extract the package and place it inside a folder (I'm using D:\android-sdk-windows\). You can place it in any folder, but you have to make sure there is no space character in file path.
  4. Open SDK Manager and choose what SDK Platform you want to install. You can also install add-ons, documentation, and code samples.
    Android SDK Manager
    Note: if you've trouble when downloading SDK Platform (maybe you use it through office proxy server with authentication, or you have a slow connection so you have to download from anoher place), you can download directly SDK Package from http://dl-ssl.google.com/android/repository/repository.xml and addons from http://dl-ssl.google.com/android/repository/addon.xml with your web browser.
  5. Okay, From this step, you've done Android SDK installation. Congratulation!

Eclipse IDE and ADT Plugin Installation
  1. Download the latest Eclipse IDE from: http://www.eclipse.org/downloads/. You can use Eclipse IDE for Java Developers.
    Eclipse IDE
  2. After downloaded, extract the package and put in into a folder.
  3. Next, open Eclipse IDE and choose Window > Preferences.
    Eclipse IDE
  4. Choose Android and set your SDK Location. Click Apply and then OK.
    Eclipse IDE
  5. Next step, we'll install Eclipse ADT plugin. Choose Help > Install New Software...
    Eclipse IDE
  6. Choose Add..., Type Eclipse ADT for Name and http://dl-ssl.google.com/android/eclipse/ for Location like the picture below.
    Eclipse IDE
    Eclipse ADT Plugin
  7. After that, check Developer Tools and click Next to install. Accept every agreements and follow the installation instructions.
    Eclipse ADT Plugin
  8. Until this step, you've finished Eclipse IDE and ADT Plugin installation. 

Creating Hello, Android! Project
  1. Before we create an Android Project, we need to make Virtual Device. Open SDK Manager and choose Virtual Devices. Click New... to make a new Virtual Device.
    SDK Manager
  2. Set the option like the picture below (or you can set on your own option) and click Create AVD.
    Create New Virtual Device
  3. Okay, that's all for Virtual Device. Next, open eclipse again. Open FIle > New > Project.... Choose Android Project and then click Next.
    Eclipse New Project
    Android Project
  4. Fill the options like 2 pictures below and click Finish.
    HelloAndroid
    HelloAndroid
  5. To test the application, click run button and choose Android Application if Run As windows appears.Wait until Virtual Device appears (It's very slow, depend on your system).
    Run Project
    Run Android
  6. Finally, you'll see something like this.
    Android Running
That's all I can show you right now. Wait for my next amazing tutorials. Keep fighting and do the best!

P.S.: For more information about Android Development, visit http://developer.android.com


License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

Junian Triajianto
Software Developer
Indonesia Indonesia
Just an ordinary geek.
 
For more information visit my blogs:
Junian Legacy
Kodefun, learning by coding
Follow on   Twitter   Google+

Comments and Discussions

 
GeneralMy vote of 1 Pinmembergashach21-Sep-12 8:15 
GeneralRe: My vote of 1 PinmemberJunian Triajianto21-Sep-12 8:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Mobile
Web02 | 2.8.140718.1 | Last Updated 21 Sep 2012
Article Copyright 2012 by Junian Triajianto
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid