Android: USB Communication Android <-> External Device

后端 未结 3 1627
醉梦人生
醉梦人生 2021-02-10 02:55

I found several threads speacking about this subject, but after read them I don\'t have a clear idea about my problem.

We have a external device (something like a tomtom

3条回答
  •  天命终不由人
    2021-02-10 03:48

    If the android device that you are attaching your device to, supports host mode then the usb api can help. it is however a low level api that talks in usb request buffers (URBs) I am writing a serial abstraction at the moment using this api but it is not ready for airing at present.

    If your non android device is able to act as host then as Royston suggests the adb route might be best for you and there are examples of how to do this in the api bundles post api version 12.

提交回复
热议问题