I just installed eclipse along with the tools for developing android apps tonight; so I'm new to both of them. Anyway, my emulator takes about 5 or more minutes to load each time, and generally comes up with errors. And it is always really big, like as tall as my laptop screen, and about half as wide.. Any help?
|
|
If you're doing development in Eclipse, you don't need to turn off the emulator. If the debug/run button in Eclipse is set up properly, then Eclipse will close the current instance of your program inside the emulator, install your new program to the emulator, and start the program on the currently running emulator -- all without rebooting the emulator. Yes, the emulator booting still takes 5 minutes, but it's not that bad since you only boot the emulator once a day (and booting up Eclipse at the start of the day takes roughly the same amount of time anyway). |
|||||||
|
|
Lie Ryan makes a good point that once you start the emulator you don't need to close it when you are done testing a build. Leave it open and each time you run or debug your app it will automatically be re-loaded and launched. If you are having trouble with the size of the emulator you can modify the settings and have it display the actual size of the device you are trying to emulate. This can be done by opening up the "Android SDK and AVD Manager", select the AVD you want to manage and click "Start". This will bring up the dialog on the right (in the screen shot below). Check the "Scale display to real size" and then you need to modify the
Hope this helps |
|||||||
|
|
I think there is nothing to do to accelerate the emulator, it is just really slow. You'd better use a real device for tests, if possible. |
|||||||
|
|
If you're using a multicore machine, you could try to force the emulator to use more cores. The Android emulator uses a single core by default, and on some processors it can be really slow. However, this decreases the stability of the emulator. To do this, launch the emulator and press I did this on my old dev machine (Q9650, Win2008, 8GB DDR2 800MHz RAM) and it improved the speed a little, but crashed about once a day on average. |
|||
|
|
|
In addition to the other great answers here, this is sort of an obvious answer. Anyhow, I figured I'd add it to the list here. If you increase hardware specs on the development computer your running this on (most specifically RAM or hard disk spindle speed) you'll see an increase in the speed at which the Emulator starts up and runs. My development computer had 2GB of DDR2667 and when I went to 4GB of DDR800 I had a noticible increase in the speed of emulator startup and operations. |
|||||||
|
|
There is a feature build into the Emulator, named Snapshot. Snapshot, basically saves an image of the emulator (in it's current state) when you close it. Then next time, you can start it from the same place. The emulator will start almost immediately, since it doesn't need to go through the boot process. Using Snapshot, I consistently can start my emulator in less than 5 seconds (as opposed to 60 - 90 seconds to start it without). Basically, when you create the AVD (create your emulator image) - there is a section titled: "Snapshot". Make sure this is checked ("enabled"). You can also go back and edit an AVD to enable this if you missed it the first time. Next time you start the emulator, the "Snapshot" options will be enabled. Select "Launch from snapshot" if you want to start from a saved image, and select "Save to snapshot" to save whatever state your emulator is in when you close it. |
|||
|
|

