Google Android Hello World! with Eclipse
I am sharing with you people my experience for creating first Google Android Hello World! App.
I used Eclipse Classic 3.4.1 .
Installing Android Development Tools (ADT) Plugin
The first thing we need to do is to install Eclipse Plugin named Android Development Tools (ADT).
Its very simple to get this plugin installed. Just Open Eclipse IDE , move to Help>Software Update
A Software Updates and Addons window will appear with Available softwares. Now Click on Add Site button and add following link provided by google:
https://dl-ssl.google.com/android/eclipse/
A new update link will appear put a check mark and click on Install. After installation the Eclipse IDE would require a restart.
Installing Google Android SDK
Now we are to Download Android SDK. It would be in zip format extract it first and then go to Eclipse, go to Window > Preferences. Here you will see the link for Android just after General. Click on Android link, you will see an input box for locating the Android SDK. Click on Browse and locate the extracted directory of Android SDK.
Now you are ready to go with Your First Hello World App.
Creating First Android Project
Create a new Project File >> New >> Project , a new wizard will appear to select project type, select Android Project from Android and click Next from the wizard. Now you are to specify Project Name. A directory with this name would be created in yous system. Next is the Package Name the namespace actually where all your code will go. Standard domain style is used for naming. Then Activity Name it is the name of the class that is created by ADT, the plugin we installed. And Application Name that will appear as title of your app. For example my settings are like:
Project Name: AndroidHelloWorld
Package Name: com.cmnajs.android
Activity Name: HelloWorld
Application Name: My Hello World App
Now Click on Finsh. If the Finish button is inactive make sure that your are not missing any information discussed above and the Pakage Name follow the domain style.
Running Hello World App
Now click on dropdown next to run button, select Run Configurations, Double Click on Android Application, it will create new configuration. At right side just browse the the application you just created and click on Run button. Here you will see your output.