Turn: Let the Android simulator fly for a while, the simulator speed can finally be faster than the real machine!

Source: Internet
Author: User

PS: Some people install the process encountered this problem this computer meets the reauirements for haxm,but ....

The problem should be that the CPU may not open VT by default, so you have to go to the BIOS to open it. Enter the BIOS to find the Virtual technology option and select Enable.

Android's simulator has been a big flop, it takes a long time to start, and it's very slow to run, although you can change the parameters by creating the emulator, but the speed is still not good. Therefore, the previous development, has been using the real machine debugging, but its interface is so fragile, not long, on the bad contact, the problem has been plagued many people. Previously found a way to debug via WiFi, but need to have a wireless router, and a lot of mobile phones on this support is not very good. A few days ago, colleagues shared a method (in the API GUID) that allows the emulator to run at its native speed on the X86 architecture's machine.

The method is simple:

1. Download "Intel Hardware accelerated execution Manager" via Android SDK manager, and after the download is complete, locate the download file and install it in the SDK directory.

2. Download the Intel x86 Atom System Image via the Android SDK Manager

3. Create an Intel x86 simulator.

The following can be used to create this x86 simulator for debugging, very fast, I use the MacBook WIN7, launch simulator only a few seconds, running the app speed and my Samsung I9001 as fluent, need to be aware of:

1.android SDK tools must be at least R17, Android SDK API must be at least 15

2. My computer to give power, my simulator gave it a 2G of memory, so the speed is particularly fast.

No, here's the document. Address: http://developer.android.com/tools/devices/emulator.html

First open the SDK manager and determine the image with x86. Such as

4.2 Only arm's image, so not good, still have to use 4.1.2 's (January 31, 2013, 4.2 version already has x86 image)

Then download the INTELHAXM

Then go to Sdk\extras\intel\hardware_accelerated_execution_manager and click EXE to install it all the way next.

To confirm that it is open, open the command line input

sc query INTELHAXM

And then, like the state below, running is right.

The CPU may not open VT by default, so you have to go to the BIOS to open it again.

and build the AVD.

Cpu/abi's place, remember to choose x86.

Then the hardware section below will be new, get out the GPU emulation and choose Yes

After the ADT has been updated to 21.0.1, the interface to create the AVD is somewhat different. For example, select the use Host GPU in the emulation options.

And then you're ready to start the AVD.

Display Hax is working.

Reprint: http://my.oschina.net/hicoder/blog/106759

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.