Time for action - starting a new project

The Android SDK provides a handy command-line tool named android which can be used to generate the skeleton of a new project. You'll find it under the tools directory of your Android SDK. It's capable of creating a basic directory structure and a build.xml file (for Apache Ant) to help get you started with your Android application development. You will need to make sure that the tools directory is in your executable path for this to work. Open a command-line or console.

  1. Create a new directory in your home directory or desktop named AndroidUIExamples. You should use this directory for each of the examples in this book.
  2. Change the directory to the new AndroidUIExamples.
  3. Run the following command:
    android create ...

Get Android User Interface Development now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.