Ongoing to my education about android, I am now looking at USB.
I have been looking at the USB library and trying to test some hardware.
What I have is an android tablet with USB-on-the-go cable and a USB memory stick and also a USB audio cassette player (which works fine on Vista with its DLL) The cassette player is self powered and when plugged into vista usb the windows program writes the audio to mp3 files.
I am using it simply as an unknown device which presumably has a VendorID, ProductID and a device response when interrogated.
When I plug in a memory stick, android detects and mounts the media and files can be seen. If I go into settings I can unmount (disable only memory media devices ???) so now the memory stick can be removed and re-inserted and android ignores it.
Now I run the b4a application USBExample testing both devices, one at a time,
but I never see any devices enumerated.
manager.Initialize
InRequests.Initialize
OutRequests.Initialize
usbdevices = manager.GetDevices
seems to be absolutely the first step in any USB activity, correct ?
Even if I could not go further I had expected it to at least detect that something was plugged in.
Can you help me understand why ?
I have been looking at the USB library and trying to test some hardware.
What I have is an android tablet with USB-on-the-go cable and a USB memory stick and also a USB audio cassette player (which works fine on Vista with its DLL) The cassette player is self powered and when plugged into vista usb the windows program writes the audio to mp3 files.
I am using it simply as an unknown device which presumably has a VendorID, ProductID and a device response when interrogated.
When I plug in a memory stick, android detects and mounts the media and files can be seen. If I go into settings I can unmount (disable only memory media devices ???) so now the memory stick can be removed and re-inserted and android ignores it.
Now I run the b4a application USBExample testing both devices, one at a time,
but I never see any devices enumerated.
manager.Initialize
InRequests.Initialize
OutRequests.Initialize
usbdevices = manager.GetDevices
seems to be absolutely the first step in any USB activity, correct ?
Even if I could not go further I had expected it to at least detect that something was plugged in.
Can you help me understand why ?