Reprint please indicate this article from the blog of the big glutinous rice (http://blog.csdn.net/a396901990), thank you for your support!
Following the previous article on Android Studio VS Eclipse, I went on to share the content at the AnDevCon Conference (this was shared with me by others, resulting in many omissions, many of which were added by myself online, sorry) Today's topic is about Android simulators.
Introduction:
Android Virtual Device is a common simulator. AVD or Emulator for short. The management of simulators is in an Android Virtual Device Manager.
Why is the simulator so slow??
We all know that there is a simulator, but we don't need it. The main reason is that the simulator is too slow, so someone must complain that the Google simulator is really spam, and then look at the IOS simulator, because I was one of them at the beginning, haha.
But why is the simulator so slow?
The main reason is the CPU problem. Currently, all CPUs on Android phones are ARM and operating ARM android images. However, our desktops are Intel. Therefore, running the Android simulator on the desktop will lead to a very slow process. Therefore, the solution is to use an android simulator running an Intel System image.
Android x86 simulator & HAXM:
It is said that Intel is also about to enter the mobile phone CPU market, so Intel launched an Android simulator supporting x86.
Intel also released a Hardware acceleration Manager: Intel Hardware Accelerated Execution Manager (Intel HAXM.
Running this x86 simulator on Intel's computer with HAXM will achieve a running effect comparable to that of Android real machines. I have seen his demo. It takes about 4 to 5 seconds to start and run, and it is very smooth.
Because the download of my home SDK is too slow, I didn't install it. If you are interested, you can refer to the next one. In addition to being lazy, there is another reason not to install it: there is also a better simulator Genymotion.
More powerful Simulator-Genymotion!
Genymotion Android simulators are not common simulators. Strictly speaking, genymotion is a virtual machine. Due to his various features and advantages, he has been increasingly developed, tested, and even used by game players.
Next let's talk about how I have been using it for more than a month:
Advantages:
1. Speed
The speed is really fast. It is comparable to a real machine. On my computer, it takes only 5 to 10 seconds to start the simulator from "run" to "program running". After that, the simulator does not need to be closed. Basically, the simulator runs instantly after "run. There is no difference between response speed and smoothness.
2. Full Model Simulation
You can select almost all mainstream mobile phone devices on the market, with fewer tablets. However, you can customize screens and configurations of any size to solve this problem. Therefore, Genymotion is especially suitable for scenarios where there are not many devices.
3. Mouse (touchpad) and keyboard operations
After the speed is up, the advantages of the simulator are shown. You no longer need to press it with your mobile phone or convert the screen in various directions connected to the USB cable. Direct Mouse clicking (the mouse is a little different, and the touchpad I use is more convenient), keyboard input, especially fast. Of course, multi-point touch and sensors work a little harder, but application development rarely involves this.
4. Multiple simulators can be started at the same time.
Sometimes everyone will encounter such a situation, change a little problem, run it to see the effect, and then change it to see the effect. Or the tablet phone is also developed, and the two sides need to watch the effect together. At this time, I will run two or three simulators and one or two real machines in turn, greatly improving the efficiency.
5. Suitable for development at home
It is impossible to develop so many devices at home. At this time, a simulator solves all problems.
6. Install software
The installation software can be dragged from the desktop to the simulator for installation, which is quite convenient.
7. Free trial
Mobile phones in China do not have Google frameworks and services. They cannot use Google Play, Google +, and some other apps launched by Google. Because there are many times when we need to imitate the special effects or interfaces of products of large foreign companies, then we need to run it (after Google Play is installed, we can directly search for the software we want to install, but proxy or VPN is required ). The advantages of Genymotion come out again. Framework and service can be installed as needed. Just drag the framework and services and try again.
8.
If you have any problems or need to directly access your computer, it is much easier to use your mobile phone.
Disadvantages:
1.Occasionally, in a different way than a real machine, the company's project has a custom search bar, which can be normally input with a real machine, but the simulator points do not go in, and I have never known why, in addition to this problem, no similar situations were found.
2.Occasionally, it will pop up directly from the program, and it turns out that the log should be a problem with the simulator's graphics memory. However, it would be nice to run it again.
3.I cannot simulate the kindle. It should be because the kindle system is highly self-made.
Genymotion official Chinese http://www.genymotion.cn/
You need to register an account and install a Virtual Box Virtual Machine before using it. This is simple and provides many online tutorials.
Summary:
After talking about this, the goal is the same as the previous Android Studio article. I hope I can try all the things I have never used.
The last few images are used for Genymotion.
Genymotion was initially run without the Google framework and services. After the gap PS was installed, Google Play, Google +, Gmail, and other applications were added.
Google +
Gmail
Google Play
Facebook. If you have any, you can add my friends. Haha...