Except that I have one outstanding problem: I get a stall/halt from one particular USB device connected to Android phone with a USB OTG adapter cable:
ret = mConnection.bulkTransfer(endpoint_in, buffer, 4, 1000);
I had the same problem in Java on Linux, Mac OS x, and Windows; I used a clear_halt and everything worked fine.
But in the Android API, there is no such thing as a clear-halt function...
Question: how do I clear a stall/halt? reset interface? how?
Once you know it, it is probably so simple stupid... but I don't.
Anybody can help me here?