Android Studio using tip

Source: Internet
Author: User

Directory:

First, print your own set of modulation information (LOG).

Second, use the real machine to run.

Small tip:

1. Print your own set of modulation information (LOG).

At the time of the experiment will manually output some information to see the wrong point of error, have never known where to display, checked, the method is shown as follows:

(1) Code: LOG.D (String tag, string message); You can use ("" + variable name) to convert a variable to a string if the message is a variable.

Eg. LOG.D ("width", "+viewwidth");

(2) run the application.

(3) Open Android Device Monitor,

(4) View Logcat

2, use the real machine to run.

(1) Set phone options.

go to "my Devices"| "MIUI Version" | "Developer Options", select "USB Debug" and "USB Install".

go to "More Settings"| "System security" and select "Unknown source".

(2) Click on the icon below.

(3) Select the Connected Devices you want to use and click "OK".

Android Studio using tip

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.