Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Stuck on emulator screen in Eclipse with Android Development?

I've followed this tutorial: http://anandhansubbiah.com/blog/writing-your-first-android-application/, but no matter what I do, and what I change, when I run the app, all I see is the image below. Is there something I must press to start developing? Did I add starting code. I'm completely stumped...

Screen I see http://img196.imageshack.us/img196/1700/stuckl.jpg

like image 244
coderama Avatar asked Mar 19 '10 08:03

coderama


5 Answers

From you're screenshot it appears the emulator hasn't fully started so it's unlikely to be a problem with your app. It can take a while to start so leave it for a few minutes just to be sure it's not slow. If that doesn't work try recreating the AVD.

Once the AVD is running you can redeploy your app to it as often as you want so there's no need restart it.

like image 105
Adrian Avatar answered Nov 18 '22 18:11

Adrian


You don't have to press anything, and your code shouldn't be able to cause that. It looks like something's wrong with your emulator.

The SDK comes with a few tools you can use to try and figure out what's going on and fix it.

adb is the debug bridge - use adb logcat to see logs from the device. I don't think it will connect with the emulator in that state, but you might as well give it a try anyway.

android is the main AVD manager, and you can use it to create new virtual devices and see details if they failed to load.

If neither produce anything useful or obviously wrong with your virtual device, you might want to try just creating a new AVD in the manager and using that instead. You may also want to try starting the emulator yourself instead of letting Eclipse do it, just in case it's doing something to break it. Use the emulator tool in the SDK to do that.

like image 37
Chris Avatar answered Nov 18 '22 19:11

Chris


I had the same problems on a ee pc, it took half an hour to begin working, then i tried in a stronger pc and it works, Your pc may be to weak for the emulator, just think that the new phones have a 1400 MHz processor and they are running the program not the emulator which is much easier

like image 23
eli Avatar answered Nov 18 '22 18:11

eli


simply lower the ram in the edit menu and it should work fine

like image 1
pnm Avatar answered Nov 18 '22 17:11

pnm


When I start AVD, I enabled "Wipe User Data".

like image 1
SalicBlu3 Avatar answered Nov 18 '22 19:11

SalicBlu3