本文主要是介绍android-USB Host and Accessory(附加),希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
...可以通过USB连接,也可以使用无线连接设备进行调试
Android supports a variety of USB peripherals(周边设备) and Android USB accessories (hardware that implements the Android accessory protocol) through two modes: USB accessory and USB host.
》This will prevent you from having an adb
connection to the Android-powered device via USB. You can still access adb
over a network connection. To enable adb
over a network connection:
- Connect the Android-powered device via USB to your computer.
- From your SDK
platform-tools/
directory, enteradb tcpip 5555
at the command prompt. - Enter
adb connect <device-ip-address>:5555
You should now be connected to the Android-powered device and can issue the usualadb
commands likeadb logcat
. - To set your device to listen on USB, enter
adb usb
.
这篇关于android-USB Host and Accessory(附加)的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!