简体   繁体   中英

Why am I getting an empty screen in Eclipse when emulating a simple Hello World program for Android?

I'm following this tutorial: http://developer.android.com/training/basics/firstapp/running-app.html#Emulator

In it there is a simple code for a layout with a Text parser and a button. When I input the code in my Eclipse and "Run" the program I arrive at an empty Android phone simulation. The phone diplays "Android" across the screen and my program does not run. Please instruct me on where I am making a mistake. My code is equal to the code in the tutorial, by the way.

It's booting. You just have to wait for the emulator to start. It's just like real Android devices: it takes a while to boot. When it shows the desktop, it will launch your application.

On slow machines it might take a while (and I mean a good while). May I suggest a faster/stronger machine, or even better, a real Android device, for testing.

For better performance, do not close emulator window, this way it won't have to boot each time.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM