1 common command-line tools in the Android SDK
There are many command-line tools in the <android SDK installation directory >\tools directory. Although general developers do not need to be fully aware of how these tools are used, it is important to understand some of the basic uses of these tools to assist in future development efforts. This section describes how to use several common command-line tools, including ADB, Android, and Mksdcard. Before using these command-line tools, it is recommended that the reader add the <android SDK installation directory >\tools directory to the PATH environment variable so that the tools can be used in any directory.
2 starting and shutting down the ADB service (ADB start-server and ADB kill-server)
After testing by the author, the ADB service is possible (this service can be found in the Windows process after the simulator has been running for a while, and the service is used to perform an exception for the emulator or a real-time service connected via a USB cable). The ADB service needs to be re-closed and restarted. Of course, restarting eclipse may solve the problem, but that's a bit of a hassle. If you want to close the ADB service manually, you can use the following command:
- ADB kill-server
After you close the ADB service, use the following command to start the ADB service:
- ADB start-server
Reference Address: http://book.51cto.com/art/201006/206791.htm