Once we have installed and set out the environment as I explained in the How to set up Eclipse to work in Android article, it's time to start working with the environment to create an application for Android. We are going to work on Eclipse.
To create a new Android project, we have to access the "File" menu option. There, click on "New->", if the “Android” option doesn't appear in the selectable screen, you should click on “Other”.
In the next window we have to select the Android project. If it doesn't appear then something is wrong with the plugin and SDK installation, go back to this article to learn how to do it.
We select the “Android” project and click on “Next”.
Here, it's important to fill out most of the input texts, I will describe them one by one:
- Project name: This is the project name that will appear in the Eclipse projects column.
- Contents: If we want to create a project from the beginning, we should mark “Create new project in workspace”, if we want to open an existing project we should mark the “Create project from existing source” and set the location of the project source.
- Properties:
-Package name: this is the standard concept of “package” in Java, here, we set the name of the package which is going to hold the main code.
-Activity name: In Android, nomenclature is quite odd. An Activity is a single screen, in this case, the “Main Screen”.
-Application name: This is the name of the application that is going to appear in the Android emulator or device.
Once we have filled out the information, click on the "Finish" button.