search

Home  >  Q&A  >  body text

Android USB下的Accessory模式

我按照官网的教程:http://developer.android.com/guide/topics/connectivity/usb/accessory.h...
代码在:
UsbManager manager = (UsbManager) getSystemService(Context.USB_SERVICE);
UsbAccessory[] accessoryList = manager.getAcccessoryList();
在上面的两行代码时:我是用两台手机通过otg线连接,那个accessoryList一直都是null,获取不了设备,求教!!

巴扎黑巴扎黑2773 days ago748

reply all(0)I'll reply

No reply
  • Cancelreply