Android development can use Google's own simulator to debug, but the simulator is too slow to start, too time-consuming, but if we have an Android phone, we can directly debug on the phone, so that the speed is fast;
The steps are as follows:
(1) First set the phone to debug mode:
Because I use the Meizu MX3 mobile phone, a start has not found its USB debugging where, since found, in this to record:
settings, accessibility, right drop-down find developer tools, USB debugging;
(2) Connect the computer with the data cable and install the USB driver. The general system will automatically install the driver, if not automatically installed, download a driver installation tool installed on the line, such as pea pods;
(3) Use the ADB command to test if the connection is successful;
Open the cmd command line, enter the Platform-tools directory under the SDK installation directory, and if the following occurs, the connection is successful;
(4) In Eclipse, select the project, right-run Run configurations, select: Always prompt to pick device (prompt to select devices);
Then click Run and you'll see our phone:
Click OK to run on the phone;
Android Real-Computer debugging