Android Development Quickstart Guide

Posted by Jarren Long at 2011-10-12 20:41:38

A ridiculously outdated article on how to get started with writing Android apps, circa 2011. No idea what happened to the pictures that went with it...

Useful Links

Getting Started

This disk contains everything you need to get started with Android Application development on Windows. Getting everything set up and ready to use is easy:

  • Copy the contents of this disk onto your local hard drive.
  • If you do not have the Java Runtime Environment AND the Java Development Kit installed on your machine, run the appropriate installers in the "Java" directory. It is recommeneded that the JRE be installed before the JDK. These files are labeled [name]-[version]-[os]-[platform].exe.
  • Start Eclipse. When prompted, select where you would like your workspace to be located for this session. This is where all of your projects and files will be stored, along with your Eclipse IDE configuration files.
  • When Eclipse starts up, you will see the Welcome Screen. Click the arrow to continue to your workspace.

Setting Up Eclipse for Android Development

  • The first thing you'll need to do is tell Eclipse where the Android SDK is located. From the Eclipse menu, select "Window > Preferences".
  • When the window opens, select the "Android" node on the left. Click the Browse button on the right when the properties load, and navigate to wherever you copied the "android" directory to. Eclipse expects you to select the root directory that contains the Android SDK.
  • When found, click OK to close the open file dialog, and click the "Apply" button. If you have the right directory, the list will be loaded with all available Android SDK targets (v1.5-v3.2 included on DVD, plus all associated Google Add-ons). Click "OK" to close the properties window.
  • Eclipse is now configured to use the Android ADT plugin. Happy coding!

Starting Your First Android Project

  • From Eclipse, select "File > New > Android Project ..."
  • This is the New Project Wizard for Android applications. Here, you will enter the name of the application, along with other details that will be used to setup the project build environment. Enter the project name and select an OS target from the list. NOTE: The project name is just the name of the Eclipse project, not the application.
  • Scroll to the bottom of the window. Here, you can enter the name of the Application, the Java package it will be created in, the default Activity name, and the minimum SDK version (minimum supported OS version). NOTE: The Application name is what will be displayed on the Android Market as your app's title.
  • When you have finished entering the new application's details, click Finish. Eclipse will generate a new Android project with all required files and directories.
  • This project can be compiled without modification to create the Hello World Sample App as seen below.

Please read the following links

Copyright 2011 Long Technical, All Rights Reserved. Published on Oct. 12, 2011 by Jarren Long.