Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to access usb port with Android 3.0 sdk

Tags:

android

usb

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 ?

like image 785
Rahul Kulshreshtha Avatar asked Dec 07 '25 04:12

Rahul Kulshreshtha


1 Answers

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.

like image 110
John G Avatar answered Dec 08 '25 17:12

John G



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!