java - Make the default android emulator faster -


the default android emulator ridiculously slow , resource hungry, makes impractical solution.

how can speed default emulator?

android emulator slow? got 2 solutions you..

  • optimize , upgrade system
  • find junk pc, install android x86

optimize , upgrade system:

  • install latest drivers , updates system , os
  • install latest builds of java, eclipse , adt
  • cleanup system junk/temp files (usually in windows root drive). use tools ccleaner
  • ensure atleast have 2gb of ram, 1gb emulator alone. change settings while creating emulator, disable hardware don't use gps, gyroscope or whatever.
  • increase device ram size , cache partion size
  • give ample ammount of time emulator ready

  • tools.android.com/recent/emulatorsnapshots try emulator snapshots, works fine well.

10-50% boost of performance.

find junk pc, install android x86

if have or can afford old pc, pentium 4 1ghz or more give shot.

open cpu box,

  • pull out unnecessary hardware modems , add-in cards
  • clean little bit.. remove dust , all..
  • disable unwanted peripherals floppy, pci, agp,....etc in bios.
  • setup in bios boot cd

both sata or pata work well.

  1. get latest stable generic build android-x86.googlecode.com here latest stable(at time of posting) iso of 2.2, http://android-x86.googlecode.com/files/android-x86-2.2-generic.iso

  2. download iso , burn cd. sure download generic iso build. build works of pcs.

  3. now boot pc cd , install android. optionally can setup sd card during install. recommend setting straightaway.
  4. boot in android , setup settings within application
      + unknown sources - selected       + usb debugging - selected       + stay awake - selected       + allow mock locations - selected 
  1. get usb usb type male cable, used connect 2 usb ports in different pcs. this,

amazon.com usb cable

  1. connect cable developer machine,
  2. install necessary driver, should install google usb driver package sdk update point c:\android\google-usb_driver. new hardware name android phone installed.

now type following in terminal or command-prompt, adb devices

now can see device connected adb. when run/test/debug application in device.

you can virtualbox i'm not sure how connect adb. @ blog post abt installing virtualbox

my experiment setup & result:

boot-up-time 13 secs (aug 31, 2011 - 2.3.5 tested on pc, boot time under 8 seconds.. amazing...)
time installing app device negligible

pc specs used testing:

pentium 4 @ 2.90ghz ht.
915g chipset
2gb ram
usb keyboard & usb mouse
serial, ps2, parallel ports disabled.

for photos , more please take @ blog post @ sree.cc ----

http://www.sree.cc/google/installing-android-in-pc-virtualbox


100% boost of performance.

http://code.google.com/p/android-x86/downloads/list
android 4.0 had been released. chk out.


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -