Private jo As JavaObject
Manager= GetContext.RunMethod("getSystemService", Array("usb"))
mReader=jo.InitializeNewInstance ("com.acs.smartcard.Reader",Array As Object (Manager))
umanager.Initialize
Dim usbdevices() As UsbDevice
usbdevices = umanager.GetDevices
For i = 0 To usbdevices.Length - 1
udevice = usbdevices(i)
Next
If udevice.IsInitialized = False Then Log("ADB device not found.")
If umanager.HasPermission(udevice) = False Then
umanager.RequestPermission(udevice)
End If
device=mReader.RunMethod ("open",Array (uDevice)) 'on this line I get error
Caused by: java.lang.IllegalArgumentException: The device is not supported.