I use eclipse to do the HelloAndroid application. When i run it, the emulator starts but nothing is displayed. The emulator just stays at the home screen. And the console doesn't show any error.
here is the console shows:
[2007-12-11 11:19:12 - HelloAndroid] ------------------------------
[2007-12-11 11:19:12 - HelloAndroid] Android Launch!
[2007-12-11 11:19:12 - HelloAndroid] Launching: com.mediacorp.android.hello.HelloAndroid
[2007-12-11 11:19:12 - HelloAndroid] Launching the emulator.
I tried to follow the troubleshooting of "Eclipse isn't talking to the emulator", it doesn't work. Who can help?
In order to help, we'll need some more information. For example:
- What's your platform (OS/Eclipse version/etc...)
- What code are you trying to run? Is it a DIRECT copy of the hello world app from Google, or are you trying from scratch and/or have modified it? If so, we'll need to see your code (or at least the code for the Activity class to start)
My platform is Windows XP
Eclipse version is 3.3.1.1
I downloaded the android sdk, and followed the steps in documentation.html inside the sdk package to set up the environment. Below is my HelloWorld class:
public class HelloWorld extends ListActivity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
TextView tv = new TextView(this);
tv.setText("Hello, Android");
setContentView(tv);
}
}
---------------------------
The code is almost the same as helloAndroid class.
Do you wait long enough? Depends a bit on your computer, but it can take a few minutes to start your application. I really need a new pc, because Im waiting for at least 2 minutes!
hmm, strange. What happens when you start the emulator from a console? After a while you see a wallpaper, and be able to browse the web. If you execute with -verbose, you'll see lots of bla bla's (i don't got a clue what it means), i hope it'll also say if something is not working.. (I assume you know how to start it from console (cmd.exe) )
Hi Jandfus
I'm in a similar situation to you...why are you using ListAcivity it's Activity in my version?
I waiteed a Long time 5-10 minutes before it did anything...then it showed a bunch of icons which did something!
I have add a new project in Eclipse. While running the applicatrion using the android emulator its not comming in the emulator. The remaning Sample applications are comming properly.
Bookmarks