Hello World doesn't work

by Naveen » Tue, 23 Nov 2010 14:54:48 GMT

Sponsored Links
 Hey folks,

Couple of days back, I read some articles about Android and from that
moment I fell in love with Android development :) I explored
"Developing Android apps" for the past few days and done the

* Installed the latest Android SDK i.e., 2.2 version. Also updated all
the installed packages using "SDK manager"

* Installed Eclipse IDE for Java EE developers

* Installed Android plugin for Eclipse

* Created AVD and selected the target platform as Android SDK 2.2

* Written a new HelloWorld program with the below code,

package com.example.helloandroid;

import android.app.Activity;
import android.os.Bundle;

public class HelloAndroid extends Activity {
    /** Called when the activity is first created. */
    public void onCreate(Bundle savedInstanceState) {

When I try to run the code "Hello World" is not printed in the
emulator. Just the text "Android" blinks in the middle of the device/

The following is printed in the console when I ran the code

[2010-11-21 10:51:12 - HelloAndroid] ------------------------------
[2010-11-21 10:51:12 - HelloAndroid] Android Launch!
[2010-11-21 10:51:12 - HelloAndroid] adb is running normally.
[2010-11-21 10:51:12 - HelloAndroid] Performing
com.geek.HelloAndroid.HelloAndroid activity launch
[2010-11-21 10:51:12 - HelloAndroid] Automatic Target Mode: launching
new emulator with compatible AVD 'HelloAndroid'
[2010-11-21 10:51:12 - HelloAndroid] Launching a new emulator with
Virtual Device 'HelloAndroid'
[2010-11-21 10:51:27 - HelloAndroid] New emulator found: emulator-5554
[2010-11-21 10:51:27 - HelloAndroid] Waiting for HOME
('android.process.acore') to be launched...

Could you please let me know is there any issue with the code or the
procedure? It would be really helpful if you point some good basic
references for developing Android apps..


Naveen Venkat


Re: Hello World doesn't work

by Kumar Bibek » Tue, 23 Nov 2010 15:13:59 GMT

 Wait for some time. Let it run. The first run of the emulator always takes
longer that you would expect. :)

Kumar Bibek


Sponsored Links

Re: Hello World doesn't work

by A. Elk » Wed, 24 Nov 2010 05:30:49 GMT

 To expand on this:

The behavior the OP is seeing is the emulator starting up. During
startup, the text "Android" will blink. Even on a fast machine, it may
take several minutes for the emulator to load and start the program.
For this reason, you should leave the emulator running if possible
while you're working, or work with an actual device if you can.

If the application does not start after 10 minutes, then something is


Other Threads

1. Transfer iTunes Amazon music video DVD movie to Motorola Droid CLIQ Rival

Any android phone users?  just thinking this article might be helpful



2. Cannot get versionName when it set with string reference

Hi, all

I've read the android document and it say that <manifest>'s
android:versionName can be set with string reference. but when I set
it as following:


<string name="version">1.2.7</string>

and try to read it by code:

            PackageInfo pinfo = getPackageManager().getPackageInfo
(getPackageName(), 0);
            return pinfo.versionName;

I got a null string.

but it can be read when I use raw-string:

How can I get the correct versionName when it used reference? thanks.


3. Phoen application integration

4. NDK for SDK 2.0.1?

5. GLSurfaceView.Renderer render rate

6. Market Support Questions From Users/Buyers

7. How can I alway instantiate my ContentProvider