Why is my example Android application not showing properly?
I created a new project from an example provided in the SDK, using:
Eclipse IDE for Java Developers
Version: Helios Release Build id: 20100617-1415
The application builds and runs successfully but doesn't show what it should be showing. Thi开发者_StackOverflow社区s is what it is showing:
screenshot of improperly shown UI
That's because the emulator has not started completely... you have to wait 3 minutes or more. Keep in mind that the emulator is actually a virtual machine (qemu), so it will take 3 to 5 minutes depending on your system resources.
Once the emulator has started, it will show you more than your application: it will be a completely functional Android system.
That is the boot screen; check out the log output, using adb logcat
to see what's going on. The boot process take a while so you should be patient.
You should see your program by now. And remember not to close that window or you'll have to start it over again ;). Just re-run the program (Ctrl-F11), and you'll run the new instance in the emulator.
精彩评论