I'm just getting started with B4A and I've attempted both the USBDetails example and the USB example on my Coby MID8042 and have not had any luck with either application returning a USB device from manager.GetDevices. No matter what USB device I attach, devices[] is empty.
My Coby 8042 has Android 4.0.3 and it appears that USB devices are supported because I can plug in a USB mouse or USB keyboard via the USB Host dongle (provided by Coby) and they seem to work fine in various applications on the tablet. They just don't show up in the example apps...
I found a couple of topics via Google that suggested some tablets support USB devices and USB Host but don't support the USB Host API. Those topics went on to mention that a possible cause is the absence of an 'android.hardware.usb.host.xml file in the /system/etc/permissions folder. And, the absence of '<feature name="android.hardware.usb.host">' in either the handheld_core_hardware.xml or tablet_core_hardware.xml file. In looking in my 8042's /etc/permissions folder, these items do appear to be absent, as suggested.
Have you or any other users encountered this type of problem with the USB Host API on some devices?
Do you think those missing items mentioned could be the problem? If not, do you have other suggestions?
Thanks!