Showing posts with label Android. Show all posts
Showing posts with label Android. Show all posts

Setting up an android project

Before setting up our first android project, we have to setup android SDK.

For setting up an android SDK in eclipse following steps are provided: 

1. Select Windows > Preferences.
Select android option and browse Android SDK for windows or any other OS. It will display all available SDK versions, select SDK version as per your requirement and click on Apply button and thereafter click on Ok Button.


               
2. Select File > Android Project.
Give Project Name in my tutorial Project Name..For example, Hello World. You can also create a new project from existing source.
After that you have to select build target (Android API Level or platform) in my project Android 2.2 platform and API Level 8.



3. Now set up an Application Name which is displayed to the user. It will be our android application name.

4. Now set up a Package Name.
Basically it would be a unique name because while you upload your application in Google Play Store (Android Application Market), if any application is found having same Package Name as yours you wouldn't be allowed to upload your application. Package Name must be a java namespace with at least two components. For example, In my application Package Name is com.codesmeister.helloWorld.



5. Now Create Activity.
Activity is a class to start emulator and it launches the application.

6. Now click on Finish button for completion of your android project.