Wednesday, September 24, 2014

Creating HelloAndroid application in Android with Eclipse

To follow this post, you must have Android Development Eclipse environment in your system. If it is not done yet, the follow this post: AndroidConfiguration

Steps to Create HelloWorld Application:
1. File > New > Android Application Project


2. Give the values like in below screenshot:

Here "Application Name": This is going to be the application name in the android device
"Project Name": This is the project in the eclipse workspace
"Package Name": package for java classes

Minimum Required SDK: From which device, you want to support your app
"Target SDK": To which device you are trying to create the app
"Compile With": All files are compiled against the selected version Android API

3. Click Next. Leave the default options and Click on Next

4. This describes the app logo images for different kind of devices. Leave out the defaults and click on Next

5. Create Activity:
Activity is a page shown on the device. Leave defaults and click "Next"

6. Blank Activity:
Give a name to the activity.
Layout contains the elements to be placed in the activity(page)

Leave out the defaults and click on "Finish"

Thats it...Now if you right click on the created project, Run As > Android Application, it will open the emulator and installs your created application and launches it. (Launching an emulator takes time, depending your system configuration. So please be patient till it gets opened)



No comments:

Post a Comment