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. user dictionar

Hi All:

I couldn't use the function of user dictionary.
Is it not complete for android 1.5 or
Is it my program issue?



2. How to explicitly launch the system's Home application by code?

I can't help you with this. Tough luck - I'd assume that when an
intent has alternative intent filters and an intent filter crashes,
the user would be presented with the list of intent filters to retry
the operation. I guess that's not the case or you wouldn't be asking.



3. how thumbnail works in Open Core

4. Touch *extremely* expensive performance-wise

5. How can I play a custom animation between 2 activity?

6. utilization of imx27 hardware codecs

7. I want to install Android in Nokia Phone