Reproduced please indicate this article from the Big Corn Blog (http://blog.csdn.net/a396901990), thank you for your support!
following the previous article The Android Studio VS Eclipse article then goes on to share the content of the Andevcon conference (which someone else shared with me. Leading to a lot of omissions, many of them are my own online to find information to supplement, please forgive me), today's topic is about the Android simulator some things.
Brief Introduction:
Android Virtual Device is what we often call the simulator. For short, AVD or emulator. The simulator is managed in a virtual Device Manager called Android.
Why is the simulator so slow ?
We all know that there is a simulator, but why not everyone. The main reason is that the simulator is too slow, so someone must be complaining that Google Simulator is really rubbish. Then look at the iOS simulator. Because I was one of them, haha.
But why is the simulator so slow?
The main reason is the CPU problem.
All of the CPUs used on Android phones today are arm's and are performing arm's Android system images. But our desktops are all Intel's. So we're going to be slow to execute the Android emulator on the desktop. So the solution is to use an Android emulator that performs an Intel system image.
Android x86 simulator &HAXM:
Intel is said to be moving into the mobile-phone CPU market. So Intel launches an Android emulator that supports x86.
and Intel has also introduced a hardware acceleration Manager: Intel Hardware Accelerated Execution Manager is referred to as Intel HAXM.
Executing the x86 simulator on Intel's computer and HAXM will get a performance comparable to that of the android real machine. I have seen his demo effect. It takes 4, 5 seconds to start to execute, and is particularly fluid.
Because my home SDK download is too slow, so I did not install him, everyone assumes interest can be next. There are a lot of related tutorials on the web that can be tested. Besides being lazy the other reason for not pretending to be him is another better simulator genymotion.
more powerful simulator-genymotion.
genymotion Android Simulator In fact, it's not normal . the simulator , strictly speaking, genymotion is a virtual machine.
Because of his various characteristics and strengths are now more and more developed. Tested and even used by gamers.
Let's talk about the experience I used for one months:
Strengths:
1. Speed
The speed is really fast.
Completely comparable to the real machine. From the point of run on my computer to start the simulator to program execution only for 5-10 seconds, after which the simulator does not have to shut down. The basic point is to execute immediately after the run. responsiveness and fluency are really no different from real machines.
2. Full-model simulation
Can choose almost all the mainstream mobile phone equipment on the market. The plates are slightly less. Just be able to customize the random size screen and configuration to solve the problem. So genymotion is especially suitable for that kind of equipment is not complete. Not much of a device.
3. Mouse (touch pad) plus keyboard operation
Speed up after the advantages of the simulator is reflected, no longer need to hold the phone press to press. or connected to the USB cable in various directions of the rotary screen. Direct mouse click (a little mouse, I use the touchpad feel more convenient). Keyboard input, especially fast.
Of course, multi-touch and sensor things are a little bit laborious, just application development these are generally very little involved.
4. Ability to start multiple simulators at the same time
Sometimes we all encounter this kind of situation, change a little problem to take a look at the effect, and then change a bit to see the effect. or tablet phone development at the same time, need to watch the effect on both sides.
At this point I will execute 2, 3 simulator plus 1, 2 real machine turns combat, efficiency greatly improved.
5. Especially suitable for home development
It's impossible to have so many devices at home, and there's a simulator where all the problems are overcome.
6. Installing the Software
Installation software can be dragged from the desktop directly to the simulator installation, quite convenient.
7. Be able to toss freely
China's mobile phones are not Google's framework and services, the use of Google Play. Google +, some of the other apps that have been launched. Since there are so many times when we need to imitate the special effects or interface of a large foreign company, it is necessary to execute it (Google play is ready to be installed directly after the installation of the software. But requires proxy or VPN).
The advantages of genymotion come out, the framework, services casually installed, casually, directly under a good drag into the can. He messed up and broke it and built a new one.
8.
There are problems in the execution or need to go directly to the computer. It is much more convenient than using a mobile phone.
Disadvantages:
1. occasionally encounter with the real machine effect of different places. The company's project has a search bar defined by itself. With the real machine can enter the normal, but the simulator point does not go in, has not known what the reason, in addition to this problem has not found a similar situation.
2. occasionally pop out directly from the program to see that log should be the emulator graphics memory problem. It's just a case of having to do it again.
3. can't simulate the Kindle. It should be due to the high self-control of the Kindle system.
Genymotion's official Chinese http://www.genymotion.cn/
You need to register an account before use. And to install Virtual box VMs, very easy, a lot of online tutorials.
Summary:
That's the same thing as the last Android studio story. Just try it if you want to use it.
Finally put a few pictures about the use of genymotion.
watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvytm5njkwmtk5ma==/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/ Dissolve/70/gravity/southeast ">
The initial implementation of Genymotion is not Google Framework and services, installed Gapps after the Google Play,google+,gmail and other applications
Google +
watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvytm5njkwmtk5ma==/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/ Dissolve/70/gravity/southeast ">
Gmail
Google Play
Facebook. Everyone can add my friend ah, haha.
。。
Some things about the Android simulator