本文主要解决adb connection error的问题——reset adb.
环境为真机测试,偶尔会报如下错误
Java代码

[2012-04-24 20:41:34 - DeviceMonitor]Adb connection Error:远程主机强迫关闭了一个现有的连接。
[2012-04-24 20:41:36 - DeviceMonitor]Connection attempts: 1
[2012-04-24 20:41:38 - DeviceMonitor]Connection attempts: 2
[2012-04-24 20:41:40 - DeviceMonitor]Connection attempts: 3
[2012-04-24 20:41:42 - DeviceMonitor]Connection&n