In this tutorial we will learn to create our first Android App Development Project in Eclipse IDE. Here you will get all the steps that we require to create a new project.
Follow the below steps to create a new android project in Eclipse :
- In Eclipse, select File➪New➪Android Application Project, or right-click the Package Explorer and select New➪Android Application Project.
- You can also go to File➪New➪Other➪Android➪Android Application Project.
- The New Android Project window appears, as shown in Figure. Here we have three fields- Application Name, Project Name & Package Name.
- Application Name is the name that will be displayed below your icon when you will install it in your device. It can have spaces between the characters. Here we are taking it as “First Project”.
- Project Name is the name that will be displayed in your Eclipse IDE. You don’t have to give any space in the name, you can use underscore(_) here. Here we are taking it as “FirstProject”.
- Package Name is the most important thing which is the unique identifier of your app when you upload it on Playstore. This name is unique and it must have at least two identifiers i.e. suppose we have taken com.apptronix.firstproject here, so here we have three identifiers com, apptronix and firstproject separated by dots.
- Now let’s learn about other things.
- Minimum Required SDK :
- It is the earliest version of Android that your app supports, which is indicated by the API level.
- API Level is an integer value that uniquely identifies the framework API revision offered by a version of the Android platform.
- To support as many devices as possible, you should set this to the lowest version available that allows your app to provide its core feature set.
- Suppose we want to use GPS in our app which was introduced in API 9, so here we will take minimum SDK as 9.
- As for now we will take it as default i.e. API 8, Froyo.
- Target SDK : Leave it as default. This indicates the target devices on which we will check.
- Leave all things as default and click on Next.
- Minimum Required SDK :
- In the next window leave all things as default, here you can change the path of the workspace if you want to save your project anywhere else.
- Click on Next.
- In the next window we can customize the icon of our android app. After customizing the icon click on Next.
- In the next window we can select Blank Activity and click on Next.
- In the next window we will be asked to enter Activity Name and Layout Name.
- Activity file is the class of the java which acts as our back end language of our android app. This is the file which gets excuted first when we run our app. Activity is just a screen that we see in our app. Here we leave default as “MainActivity”.
- Layout file is the xml file which acts as front end language of our android layout. In this file we actually design our look of the Android App. Here we leave default as “activity_main”.
- Keep Navigation Type as None and click on Finish.
- Now we have successfully created a new Android Application Project.
Complete Video Tutorial :
- Thank you for visiting our tutorial. If you have any doubts or queries regarding this, you can comment below in our comment section. In our next post we will learn to do the coding for our first app. Don’t forget to share the tutorial if you like it.
Next Part : Android – Creating First New Project – 2.