Android Studio Real-machine test

Source: Internet
Author: User

Contents of this page

1. Real-Computer testing benefits

2. Let's get started! Real-Machine testing

1. Real-Computer testing benefits

Not long ago I had a trip to my Android studio, and I was in a big trouble--creating a simulator with a variety of running errors. Tried all sorts of solutions, and there was no result. Internet 100 degrees, found the answer is: with the real machine test it, Android Studio comes with the simulator is too water.

Where is the water, the original is because it is too card, slow running, not fashionable, often error. Having read such a comment, I certainly did not use it for a reason. So what are the benefits of using a real-computer test? Well, that's a lot. First of all, the software that can run successfully on the simulator is not necessarily able to run successfully on the real machine (this depends on the level of the simulator, after all, just the simulation of the real machine, right, there will always be a mistake), and after the real machine test software is sure to run on the real machine (of course). Second, the real machine debugging speed faster (in fact, the essence of the simulator is too slow). Again, the real machine supports the screen transformation, and some simulators do not. Well, first said so much, in fact, the real machine test has so many advantages of the essential reason is still: simulator can not be 100% without differential simulation of the real machine.

2. Let's get started! Real-Machine testing

You may have heard a lot of crap in front of me. Now let's start the real machine test!

A. First you have to have a project (this is nonsense, don't say).

B. Then look at my instructions and find the "Edit configurations" button.

Edit configurations= Device configuration

Click the drop-down button in the location to see the "Edit configurations" key in the list. I believe you are not hard to find.

C. Click the "Edit Configurations" button to enter the "Run/debug Configurations" dialog box.

Locate the target in the diagram and find "USB Device" in its drop-down list, then click "OK" to complete the setup. Careful observation, I believe it is easy to do.

D. Then your Android Studio Test setup is ready, then connect your "real" computer with a USB cable, and note that the phone will go into developer mode.

Then run the program:

Conclusion:

after reading the above tutorial, is not feel very simple. What are you waiting for, start your own real-machine test!

If it doesn't start, it could be a problem with your data cable. Because some data cable is only used to charge, if the USB is connected to the computer and then appears

USB Debug Notification bar, description is right

Android Studio Real-machine test

Related Article

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.