You can develop Android application programs (apps) on any PC that run a Linux, Macintosh OS X, or Microsoft Windows operating system (OS). Google provides an open-source Android software development kit (SDK) that includes an Eclipse integrated development environment (IDE) and a bundle of Android Development Tools (ADT). This document can help you download the Android SDK, set up the ADT bundle, and then create and run your first app.
Downloading the Android SDK
To download the Android SDK, do the following:
To download the Android SDK, do the following:
- If you do not already have a Google account, open one.
- Go to developers.google.com/android/, and then click "Get the Android SDK," in the left column.
- Click "Download the SDK ADT Bundle for (your OS)."
- Agree with the terms and conditions, select either 32- or 64-bit, and then click "Download the SDK ADT Bundle for (your OS)."
- After the download completes, go to the Setting Up the ADT Bundle section below.
Setting Up the ADT Bundle
To set up the ADT bundle for your OS, do the following:
To set up the ADT bundle for your OS, do the following:
- Download the Android SDK bundle according to the Downloading the Android SDK section above.
- At the left, click "Setting Up the ADT Bundle" to display its page.
- Create a new "Android_Development" folder in your home folder.
- Unpack (unzip) your downloaded adt-bundle-(your_OS) ZIP file, and then copy its adt-bundle- (your_OS) folder into your Android_Development folder.
- In your adt-bundle-(your_OS) folder, open the eclipse folder, right-click the "eclipse" executable file to display its menu, create a Link-to-eclipse shortcut (for example, in Linux, click "Make Link"), and then move that shortcut to your desktop.
- Go to the Creating Your First Android App section below.
Creating Your First Android App
To create your first Android app, do the following:
To create your first Android app, do the following:
- Set up the ADT bundle for Linux according to the Setting Up the ADT Bundle section above.
- Go to developers.google.com/android/, click "developer.android.com," in the center column, click "Training" at the top of the page, click "Building Your First App" to display its submenu, and then click "Creating an Android Project."
- On your OS toolbar, click "File," click "Print" to display its page, and then click "Print" to print the three-sheet Creating an Android Project lesson. Note: For a tree-saving alternative, you can view the lesson instructions on a separate PC.
- On your desktop, double-click your "Link to eclipse" shortcut to display the Workspace Launcher window.
- Click "OK" to display the Android IDE Welcome window.
- Click "New Android Application," and then follow the instructions in the Create-a-Project-with-Eclipse section of the Creating-an-Android-Project lesson.
- Click "next lesson" and then go to the Running Your First Android App section below.
Running Your First Android App
To run your first Android app, do the following:
To run your first Android app, do the following:
- Create your first Android app in Linux according to the Creating Your First Android App section above.
- Go to developers.google.com/android/, click "developer.android.com," in the center column, click "Training" at the top of the page, click "Building Your First App" to display its submenu, and then click "Running Your App."
- Print the three-sheet Running Your App lesson, and then follow its instructions to run your app either on a real Android device (phone or tablet) or on an Android Virtual Device (AVD), which is an emulator.
Note: Running an app on an Android phone or tablet is relatively simple. In contrast, depending on your specific PC hardware and software configuration, you might have trouble running your app on the AVD. For example, the AVD might not launch, as reported in Waiting for home. Android process Acore to be launched.