Some things about the Android simulator

Source: Internet
Author: User
Tags comparable

Reproduced please indicate this article from the Big Corn Blog (http://blog.csdn.net/a396901990), thank you for your support!

following the previous article After the Android Studio VS Eclipse article, I then shared the content of the Andevcon conference (which was shared with me, causing a lot of omissions in the middle, many of which I found on the Internet to supplement the information, please forgive me), Today's topic is something about the Android simulator.

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 complain that Google Simulator does the real garbage, and 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. Now all the CPUs used on Android phones are arm's and are all operating on ARM's Android system image. But our desktops are all Intel's. So we run the Android emulator on the desktop, which can cause very slow. So the solution is to use an Android emulator that runs an Intel system image.

Android x86 simulator &HAXM:

Intel is said to be on the phone's CPU market, so Intel is launching 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.

Running the x86 simulator on Intel's computer and cooperating with HAXM will result in a performance comparable to that of the android real machine. I've seen his demo, probably 4, 5 seconds to run, and especially smooth.

Because my home SDK download is too slow, so I did not install him, everyone if interested can next, online a lot of relevant tutorial posts can be consulted. Besides being lazy and having a reason to not pretend to be him is also a better simulator genymotion.

more powerful simulator-genymotion!

genymotion Android Simulator is actually not normal the simulator , strictly speaking, genymotion is a virtual machine. Because of his various features and advantages are now more and more developed, testing and even the use of gamers.

Let's talk about the experience I used for one months:

Advantages:

1. Speed

the speed is really very fast. Completely comparable to the real machine. On my computer start the simulator from the point run to the program to run only 5-10 seconds, after which the simulator does not shut down, basically is the point run immediately after running. responsiveness and fluency are really no different from real machines.

2. Full-model simulation

You can choose almost all the major mobile phone devices on the market, the tablet is slightly less. However, you can define any size screen and configuration to solve this problem. So genymotion is especially suitable for the situation that equipment is not complete, equipment is not many.

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 attached to the USB cable in various directions of the switch screen. Direct mouse click (a little mouse, I use the touch pad feel more convenient), keyboard input, particularly fast. Of course it's a little bit harder to touch and sensor things, but application development generally rarely involves these.

4. You can start multiple emulators at the same time

Sometimes everyone will encounter such a situation, change a little problem to run a look at the effect, and then change a little bit to see the effect. or a tablet phone to be developed at the same time, need both sides to watch the effect. At this time I will run 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 that solves all the problems.

6. Installing the Software

Installation software can be directly dragged from the desktop to the simulator installation, quite convenient.

7. Can be casually toss

China's mobile phones are not Google Framework and services, Google Play,google+, there are some other Google launched some apps. Because there are a lot of times we need to imitate the foreign big company product's special effect or the interface, this time need to run it (Google play installed after the direct search for the software you want to install, but need proxy or VPN). The advantages of genymotion come out, the framework, services casually installed, casually, directly under the good drag into the line, messed up and then build a new.

8.

There are problems in running or need to go directly to the computer, much more convenient than using a mobile phone.


Disadvantages:

1. occasionally encountered and real-time effects of different places, the company's project has a custom search bar, with the real machine can input normally, 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. But it would be nice to run this situation again.

3. can't simulate the Kindle, it should be because of the Kindle system high-self-control reasons.


Genymotion's official Chinese http://www.genymotion.cn/

Need to register an account before use, and to install Virtual box vm, very simple, many online tutorials.


Summary:

Having said that, the goal is to try out the same thing as the last Android studio article, which you want to use.

Finally put a few pictures about the use of genymotion.



Originally run Genymotion is no Google Framework and services, installed Gapps after the Google Play,google+,gmail and other applications



Google +



Gmail



Google Play



Facebook. Everyone can add my friend ah, haha ...

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.