Monday, May 23, 2011

Solved; Android Emulator not starting

Android_boot

When you start working with the Android development tools to develop your first Android Application you will, most likely, be using the Eclipse tools provided and you will most likely start with a HelloWorld example. HelloWorld examples are used in almost every programming guide to show you a "Hello World" text. It is considered the most simple application of showing something on the screen. Google has also provided a Hello World example which will show you how to work with eclipse plugin and how the emulator is working. If you are following the steps in the development guide from Oracle you have to run your application at some point. This is however a point I feel a lot of people will drop it if they are not really determine. The reason is not that it is complex, the reason is that you have to wait and you are not warn that you have to wait.

When you run a example the first time you expect it to be on the screen directly. However when you run your HelloWorld example you see the Android Emulator coming up with on the word "ANDROID" in a black screen and not the expected "Hello World" text. Reason for this is quite simple as is the solution. When you click run for the first time the entire emulator has to be started and the "ANDROID" message is the first stage of the boot screen. Solution; wait. After some time you will see the android splash screen coming up and short after that your application. Now you also have a complete Android device and the basic Android OS you can use and play with.

Meaning, if you only see "ANDROID" in your screen when you run your application for the first time, do not be afraid, you most likely did not make a mistake you simply have to wait for one or two minutes for the emulator to boot completely. After that you can go back to your development environment and change whatever you like. If you click run the second time and you have closed down your emulator only the new code will be loaded into the emulator and it will not have to be rebooted.

Posted via Johan Louwers his Posterous page to his blogger page.

8 comments:

Mukesh Bharti said...

I am newbie for android. My emulator is not showing anything. It's showing only android or nothing. I have waited for 30 minutes but doesn't get any response. Please help me how to get out of it. My email id is mukeshkbharti@gmail.com

Android app development said...

I like your blog technique.This is one of the great post.I like your blog out standing performance.
Android app developers

Unknown said...

can i know what setting mostly used??

Android Pakistan said...

Aaahhh why is it so slow.... This should have been easy for developers to test their applications. Makes life too difficult for newbies.

Learn Android Development

Tim said...

Aaaah Why is soooo difficult to run this Emulator, Makes life sooo difficult for newbies.

Android Development Videos

Manzar said...

whenever I try to run any avd it is displaying the following message and the emulator is only displaying the text "ANDRIOD".. what may be the reason??

[2013-01-17 14:33:17 - Emulator] extension WGL_ARB_make_current_read was not found
[2013-01-17 14:33:17 - Emulator] Failed to create pbuf surface for FB 0x3004
[2013-01-17 14:33:17 - Emulator] emulator: WARNING: Could not initialize OpenglES emulation, using software renderer.
[2013-01-17 14:33:18 - Test] New emulator found: emulator-5554
[2013-01-17 14:33:18 - Test] Waiting for HOME ('android.process.acore') to be launched...

Anonymous said...

Hi Im new to android. When I try to start my emulator it doesn't throw any error but no emulator is showing up..i try to do the kill-server then start-server but no device found. Im running on a Intel Core i3, 4g RAM.

this was the message:

[2013-02-03 09:05:18 - sample] Android Launch!
[2013-02-03 09:05:18 - sample] adb is running normally.
[2013-02-03 09:05:18 - sample] Performing com.example.sample.MainActivity activity launch
[2013-02-03 09:05:18 - sample] Automatic Target Mode: Preferred AVD 'jellybean' is not available. Launching new emulator.
[2013-02-03 09:05:18 - sample] Launching a new emulator with Virtual Device 'jellybean'

Unknown said...

This is really awsome and i love that.. This is very unique thing you put on that post.. Thanks for sharing... description