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