Faster android emulation
It is fun to develop but not fun to test on emulator because of performance issues.
Here is what work for me after a long research ( information collected from internet source and books ). If you are running Windows 7 on an i5 processors then this might just work for you without getting into downloading virtual machine or any additional virtual images.
Hardware running on:
- i5 processor ( first generation , but any generation should do ).
- 3 GB main memory ( As per observation memory is not a constraint, anything more than 3 GB is enough on windows 7 )
- Android 20 SDK
- Windows 7 64-bit.
I have been into developing web application for mobile and wanted to test on android devices, it was not too late for me to realize that web application on the browsers on android is not any fast while my application works very fast on desktop browsers.
Here are the steps that made android emulator fast enough.
- Ensure your machine supports virtualization: Look into your bios settings and check if your system supports virtualization( latest intel based CPUs, mostly supports virtualization).
- Go to android SDK manager, Choose Extras->Intel x86 Emulator Acceleration ( HAXM) and install the package.
- Once installed from the SDK manager. Browse the path C:\Users\<Username>\AppData\Local\Android\android-sdk\extras\intel\Hardware_Accelerated_Execution_Manager.
- Click and install IntelHaxm.exe.
- Now open your Android virtual device manager. Its time to create a faster emulator.
- Click new , give it a name, choose target later than API level 18 ( earlier Levels will not work ) . Now the CPU/ABI is something we have to choose intel atom x86. And then choose your other preferences.
- Now start it.
With this you are ready to go. I tested the web application I was running on ARM CPU type and it made me search the web for solution. It was painfully slow.
Let me know if it works for you or if you face any issues