且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Android USB API:在充电和数据发送之间切换

更新时间:2023-02-27 08:19:53

首先,为了让您可以使用 Android 设备与其他设备进行通信,您必须使用 OTG 电缆或适配器,已经预先设置设备使其处于通信模式,并且已经为 Android USB api 提供了这和你没有必要操纵它,因为自动的变化

First of all, so that you can communicate with with other devices with your Android device you have to use an OTG cable or adapter, which already predisposes the device so that it is in communication mode, also the Android USB api is already provided for this and you you have no need to manipulate this because the change of automatic