Android Studio Tutorial: [4] real-machine testing

Source: Internet
Author: User

With Android Studio so easy to use software, naturally have a good Android phone, and then test their own program on the real machine, so as to better discover the problems in the program, after all, the simulator is not a real phone.

Tools/Materials
    • Android Studio
Method/Step
    1. Create a good one default "Hello world! Project

    2. Find the app in the toolbar and select "Edit Configurations" when you click Open.

    3. Select "USB Device" in the "target device" in the dialog box and connect the Android phone to the computer to make sure the phone is turned on and running.

    4. Click "Run" from the toolbar (for the triangle symbol), or select "Run App" under "Run" in the menu bar, or press the shortcut key to SHIFT+F10.

    5. When run is started, the software starts to generate the APK installation package and installs it automatically on the phone, which will be slower for the first time and soon thereafter. When performing these actions, you can see the "Android" item under the software, you can see the Android phone that is automatically recognized, and the current operation information will be displayed on the right.

    6. When you are finished installing, you can see "BUILD successful" in "Message".

    7. The Android phone also installs the app automatically and executes automatically.

Android Studio Tutorial: [4] real-machine testing

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.