The simulator has been used before, very bad, today using a real machine debugging test.
Prep Material: PC, Android phone.
First of all, there is a problem, my phone is Huawei, I do not know how to do, open debugging always automatically shut down, and the switch is always not switch, always "in the switch ..." Spinning around, the computer on the USB connection did not respond, Baidu, said the restoration of factory settings. So it's good to restore the factory settings. (See also: http://jingyan.baidu.com/article/eae0782785a0c21fec548529.html)
After that, the phone settings on the developer can not find the option, Baidu said in the "about the phone" in the "version number" in point seven appears "developer Options", tried, and sure enough success.
Open developer mode, and debug mode in developer options.
As a result, the phone was not found in Eclipse DDMS, and the following shows that ADB did not start successfully. Baidu, as if it is not set in the environment variables for the sake of. Then set the computer environment variables, refer to: http://jingyan.baidu.com/article/17bd8e52f514d985ab2bb800.html.
After setting the environment variable, enter the CMD-->ADB command in the run and it is successful.
But open Ddms still can't show device, Baidu found this article: http://blog.csdn.net/explorerqp/article/details/41647205
Real-Machine Commissioning test