Android – How to access usb port with Android 3.0 sdk

androidusb

I heard that Android 3.0 sdk is having support for USB Host. I want to read / write data on USB port of Android device using android app. This app will send data to a sensor device connected to usb port of android tablet. Is there any sample code or example available for USB read write ?

Best Solution

Try the MissleLauncher example at http://developer.android.com/resources/samples/USB/MissileLauncher/index.html.

Implements very simple async transfer of data. Clear, concise code.