Java – The Android emulator has no responder

The Android emulator has no responder… here is a solution to the problem.

The Android emulator has no responder

Ok guys, I decided to try this developer stuff and after about a dozen tutorials, I ended up with the following Hello World type program:

package com.example.helloandroid;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

public class HelloAndroid extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
TextView tv = new TextView(this);
tv.setText("Hello, Android");
setContentView(tv); }
}

It’s simple, so I went to compile it and I got this

[2011-03-14 00:11:25 – HelloAndroid] Android Launch!

[2011-03-14 00:11:25 – HelloAndroid] adb is running normally.

[2011-03-14 00:11:25 – HelloAndroid] Performing com.example.helloandroid.HelloAndroid activity launch

[2011-03-14 00:11:25 – HelloAndroid] Automatic Target Mode: launching new emulator with compatible AVD ‘my_avd’

[2011-03-14 00:11:25 – HelloAndroid] Launching a new emulator with Virtual Device ‘my_avd’

[2011-03-14 00:11:30 – HelloAndroid] New emulator found: emulator-5554

[2011-03-14 00:11:30 – HelloAndroid] Waiting for HOME (‘android.process.acore’) to be launched…

Or if I’ve started the emulator, I’ll get this

[2011-03-14 08:23:09 – HelloAndroid] Android Launch!

[2011-03-14 08:23:09 – HelloAndroid] adb is running normally.

[2011-03-14 08:23:09 – HelloAndroid] Performing com.example.helloandroid.HelloAndroid activity launch

[2011-03-14 08:23:09 – HelloAndroid] Automatic Target Mode: using existing emulator ’emulator-5554′ running compatible AVD ‘my_avd’

[2011-03-14 08:23:09 – HelloAndroid] WARNING: Application does not specify an API level requirement!

[2011-03-14 08:23:09 – HelloAndroid] Device API version is 7 (Android 2.1-update1)

[2011-03-14 08:23:09 – HelloAndroid] Uploading HelloAndroid.apk onto device ’emulator-5554′

[2011-03-14 08:23:09 – HelloAndroid] Installing HelloAndroid.apk…

[2011-03-14 08:23:26 – HelloAndroid] Success!

[2011-03-14 08:23:27 – HelloAndroid] Starting activity com.example.helloandroid.HelloAndroid on device emulator-5554

Then the emulator will appear every time this blank screen with the text “android” on it. It sat there for about 3 minutes until it entered another blank black screen with “android” in addition to its animation. I looked around and couldn’t seem to find anyone with the same problem. Like the emulator doesn’t even recognize anything I’m doing. Here’s a nice screenshot of blank nothingness:

enter image description here

So, do you know what I’m doing wrong?

Solution

Try waiting for the emulator to load everything before launching your app.

Related Problems and Solutions