Tuesday, 29 January 2013

Generate the Application Skeleton | Android Tutorial pdf

Generate the Application Skeleton

First, we need to create a new project.

Eclipse
Use the new-project wizard to create an empty Android project named LunchList, as described in the Android developer documentation. This will create an application skeleton for you, complete with everything you need to build your first Android application: Java source code, build instructions, etc.
In particular:
=> Choose a build target that is API Level 9 or higher and has the Google APIs, so you can add a map to the application later in this book
=> Name the project LunchList, with an initial activity also named LunchList
=> Use apt.tutorial for the package name 

Outside of Eclipse
Inside your terminal (e.g., Command Prompt for Windows), switch to some directory where you would like the project to be created . Then, run the following command:
android create project --target "Google Inc.:Google APIs:9" --path ./LunchList --activity LunchList  --package apt.tutorial
This will create an application skeleton for you, complete with everything you need to start building the LunchList application.

No comments: