Previous  | Next  | Home

Creating an Android Project


 

Eclipse will save all projects into a workspace directory. By default it creates a workspace directory called workspace in your home directory, but you can choose the workspace under File > Switch Workspace. I use this capability to create a workspace androidWorkspace in my home directory for all android projects, for example. If necessary, use File > Switch Workspace to choose the workspace you wish to use for the project. In default mode Eclipse will remember the workspace from your last session and start off there.

 

Create a New Project

To create a new Android Project in Eclipse:

  1. Select File > New > Project.

  2. Select Android > Android Project, and click Next (after you do this once you will have the future option of the shortcut File > New > Android Project).

  3. Specify the contents for the project:

  4. Click Finish.

 

Example

The following figure is an example of the setup screen for creation of the WebView Demo project.




Notice the warning at the top that the API level for the target SDK does not match the min SDK. You may safely ignore such warnings if, as in this case, that is what you intended.


Previous  | Next  | Home