And Feel Light
Google Android Hello World! with Eclipse
I am sharing with you people my experience for creating first Google Android Hello World! App.
Download and Setup New Eclipse Classic 3.5.2
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>Install New Software…
An Install window will appear with Available softwares. Now enter following link provided by Google in Work with Field:
https://dl-ssl.google.com/android/eclipse/
A new update link will appear put a check mark and click on Next to start installation. 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. Say you have downloaded SDK in D Drive (in case of windows) now click on Browse and locate the extracted directory of Android SDK as shown below:
Add Android Platforms
Next step is to install one or more Android Platforms like 2.2, 2.1 or some old. Go to Window > Android SDK and AVD Manager then go to Available Packages and select at least one Android Platform and click on Install Selected button:
Create New Android Virtual Device (AVD)
Now we need to create a Virtual Device to run Android Application on Android Emulator. Go to Window > Android SDK and AVD Manager and select Virtual Devices. Click on New to create a Virtual Device, give it some Name and select Target Android Platform from the drop down list:
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.getsolved.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.
Related Posts:
How to increase storage of Android Emulator
| This entry was posted by admin on May 29, 2010 at 12:00 am, and is filed under Android. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |





about 1 year ago
Hi,
I was trying to create my first Android app yesterday, also a Hello World program. Unfortunately, I am getting some errors when I try to build the project.
The ‘Problems’ section shows that there are problems with importing the ‘android’ package.
Did you face similar problems? If so how did you resolve them? Waiting for your response.
about 1 year ago
Well Mr. Vivek! Hopefully you have installed ADT(i have discussed in the post). The problem will be with the Installation of Android SDK. Please make sure that you did the step: “Installing Android SDK” exactly as i have discussed. You must have to locate the complete extracted directory instead specifying some folder inside. And make sure that the directory you specify is accepted.
Best of Luck
about 10 months ago
Have you guys seen this error?
[2009-11-03 16:15:20 - HelloAndroid]New emulator found: emulator-5554
[2009-11-03 16:15:20 - HelloAndroid]Waiting for HOME (‘android.process.acore’) to be launched…
[2009-11-03 16:16:37 - HelloAndroid]emulator-5554 disconnected! Cancelling ‘com.example.helloandroid.HelloAndroid activity launch’!
I can’t seem to run the hello world sample.
about 3 months ago
Hi,
I was trying to create my first Android app yesterday, also a Hello World program. Unfortunately, I am getting some errors when I try to build the project.
The ‘Problems’ section shows that there are problems with importing the ‘android’ package.
Did you face similar problems? If so how did you resolve them? Waiting for your response.
about 3 months ago
@Steve the tutorial has been updated please see if you have set up the environment right
about 3 months ago
You may want to see http://www.snpe.rs/sad/overview.html , especially “Hello, world” cheatsheet http://screencast.com/t/ODYxNTk5Z
about 3 months ago
Nice job done here i wud like to be say thanks to the person who post this great article here
about 2 months ago
I had a problem. When I run, there is no error, but I can only see the sentence after I push the button menu.
about 2 months ago
The emulator takes long to load and install app but it loads all automatically. As it takes long it gives feeling that the button press is doing some trick.