I can not detect the USB device with Android USBManager -


i trying use usbmanager of android, not find device connected usb. testing on emulator android, connected 1 card reader , want control reading of data, app can not read if there device connected usb port.

anyone had problem?

        usbmanager musbmanager = (usbmanager)getsystemservice(context.usbservice);          int countdevice = musbmanager.devicelist.count;          devicelist = musbmanager.devicelist; 

does card reader work computer? perhaps driver needs installed first?

on other hand, have listed intent usb device manager:

<intent-filter>     <action android:name="android.hardware.usb.action.usb_device_attached" /> </intent-filter> 

it helpful if posted error message get.


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -