Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to speed up Android Emulation?

Tags:

I'm trying to get started with Android development.

I'm using eclipse on Linux and using a Pentium IV @3.2Gh with 1GB of ram. I've just followed the "hello android" howto, with just one sad result: the virtualization is too slow.

It seems that launching the virtual machine has to be slow, and it will be slow even if I'll use a better computer.

With slow I mean it takes almost 10 minutes to see "hello android" and if I change it to "hello world" it takes an other 10 minutes...

How can I solve it? Is it possible to make eclipse load again my app in the current and running virtual machine without opening a new one?

like image 429
Andrea Ambu Avatar asked Dec 17 '09 22:12

Andrea Ambu


People also ask

Why is Android emulation so slow?

The Android Emulator is very slow. The main reason is because it is emulating the ARM CPU & GPU, unlike the iOS Simulator, which runs x86 code instead of the ARM code that runs on the actual hardware.

Which Android Emulator is fastest?

LDPlayer allows players to run Android APP and Games smoothly on their computers. LDPlayer is the second most popular emulator in the world. It's South East Asia's best and the fastest android emulator within the gaming market. LDPlayer allows players to run their mobile games and app on PC for free.

How long does Android Emulator take to start?

For me the emulator takes 5 minutes to start, and I find it normal. I try to develop on Netbook. Starting the emulator takes incredibelly long.


2 Answers

As long as you have a compatible AVD running, it shouldn't try to create a new emulator instance. When you want to re-deploy your app to the emulator, kill the existing one from the Debug perspective, and hit the debug button on the menu bar. It should install and launch the app in the existing instance.

like image 67
Erich Douglass Avatar answered Oct 14 '22 22:10

Erich Douglass


Bumping the amount of ram on a honeycomb AVD from 256M to 1GM resulted in huge speedup. It was taking ~1 minute to $ adb install -r foo.apk; now it take 4 seconds. I think the emulator was going into swap!

like image 42
drhodes Avatar answered Oct 14 '22 21:10

drhodes