Sunday, March 10, 2013

Android Tutorial: Creating New Project in Eclipse

Hi everyone now with respect to my last Post on Android Installation in Windows Machine let us now start with creating new Project for Android in Eclipse.

So to create New Android Project in Eclipse.

1) Go to File --> New ---> Android Application Project.

When you click on Android Application Project, You will able to see following Image 



Over Here

Application Name --> The Name which you wanted to give to your application.

Note: The application name for most apps begins with an uppercase letter. So you should also try to start your application name with uppercase letter.

Project Name --> The Name which you wanted to see for your project in Workspace (The place where all your application projects gets stored).

Package Name --> It's the package name under which all your Source file will gets stored.

Minimum Required SDK --> The minimum operating version which user will required to install your application onto their device.

Target SDK --> The main operating System for which you are targeting your application.

Now After filling in all your details Click on Next Button.

2) As soon as you click on Next Button you will able to see the following Image.


Over here keep the selected checkbox as it is unless you need to do some changes to your project file @ Wanted to add your project as a Library in eclipse or wanted to store project in some other workspace or you do not wanted to create by default Activity in your project file.

After doing your required changes, Click on Next Button.

3) Now after clicking on next button you will able to see Icon Screen where you can select your Icon if already created or can make a custom Icon from here.

Note: Icon resembles your application since the user will able to see always your ICON and also will able to start your application by clicking on it. So always create your ICON in such a way that user like to click on it whenever they see it.
Also please note that it is not compulsory to create your ICON in the beginning, You can create it afterwards and can replace it once you are ready to go live with the project.

The Icon selected screen is as follow:

   
4)  After you create/select an Icon click on next button and you will able to select the type of your default activity with whom your application will start every time.


 As you can see few custom activity provided by Google are as follow:

a) Blank Activity: Plain Activity helps you to design your own layout with respect to your requirements.
b) Login Activity: Suppose you have some Login Type feature where you want user to login first and then use your application than this activity is the best activity you can select.
c) FullScreenActivity: If you wanted to have your activity cover the whole screen i.e. there should not be a Title Bar on the Top than this activity will help you to achieve your goal.
d) SettingActivity: If you want user to do some setting as soon as your application starts then this activity will help you to achieve your goal.

Select your activity accordingly and then Press on Next Button

5) Now the Last step is to give name to your Activity File and the Layout File (which correspond to your Activity File).

Refer following Figure for the same


After filling your required detail press on Finish Button and Once done will see the Project with all its file created in Package Explorer of your Eclipse.
   

No comments:

Post a Comment