[android-developers] Hello World doesn't work

2010-11-22 Thread Naveen
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

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Hello World doesn't work

2010-11-22 Thread Kumar Bibek
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



On Mon, Nov 22, 2010 at 12:23 AM, Naveen naveen.ven...@gmail.com wrote:

 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

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en