In my previous post I showed you how to setup a Android development environment. In this post I will show you writing your first Hello World Android application.
- Go to File Menu -> New -> Android Application Project.
Hello World Android - You will see the below screen once you click on the Android Application Project.
Creating New Android Project
The Application name and the project name can be differ as the project name is only used by the eclipse. But it should be unique in the workspace. Later on the application name will be used for creating the apk file. For example here the apk file will be created as HelloWorld.apk.
- Now it's time to configure the Android project. Here you can define the eclipse workspace location, Creating custom icon for you application, etc.
Configuring Android Project - Now it's time to create your Android application icon. This icon will be displayed with the apk file as well as after installing the application as a short cut.
Android Application Icon Creation - After clicking on next you will see the below screen. This screen offers you to create the main activity where the application starts. It is a starting point of any android application.
Create Android Activity
- Once you click on next after creating the blank activity, you will see the below screen. This screen is meant for defining a custom name for the main activity. By default it is MainActivity and layout name is main_activity.xml.
Configuring Android Main Activity - On click of finish, the project will be created in the eclipse workspace.
No comments:
Post a Comment