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
following,

* 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. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
    }
}

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/
emulator.

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

TIA.

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
 http://techdroid.kbeanie.com 
 http://www.kbeanie.com 







-- 


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
wrong.





-- 



Other Threads

1. How do I Access SIM Menu

I have just bought a Nexus One phone. It is a great piece and I wonder
why I did not have it earlier. However there is a problem, I cannot
access my SIM Menu. In Kenya we use a lot of mobile banking and
sometimes need to forward money or credit using my phone. It is
important to access the SIM menu to access my mobile bank. But unlike
other phones I have used before, there is no SIM folder on Nexus one.
Does anybody know how to get this working or am I missing out
something. This is real real important for me.

-- 

2. Android support for Broadcast Technologies

Hi all,

I'd like to know if there's (os it's planned to be) any support for
technologies like DVB-T, DVB-SH or [put any broadcast/multicast
technology that you know Android supports it].


Thanks,
Miguel

-- 

3. Implementing networking in an android app

4. AutoCompleteTextView focus problem

5. How to save current state of canvas as an image in android

6. Website Creation Tutorial for Beginners

7. (WTA) Program Delete SMS