How to communicate with a USB device?

后端 未结 2 1242
梦如初夏
梦如初夏 2020-12-28 19:33

I am trying to establish USB communication as host. I am following the examples here http://developer.android.com/guide/topics/usb/host.html but I cannot get this working. H

2条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-28 20:25

    minSdkVersion must >= 12

    To enable USB host API support you should add a file named android.hardware.usb.host.xml and containing the following lines:

    
     
    

提交回复
热议问题