Question

I am developing a project for an Android tablet which has USB port.In this project,i need to browse the files present in the USB device when a USB device is plugged into the tab.

Does any one know about this,And is there any tutorial regarding this topic ?.Is there any sample code..

Currently I am using Android 2.2 , As per the Android docs it says that USB host mode is supported only in Android 3.1 and above.Do i need to change my API level to Android 3.1

Please help...:(

Was it helpful?

Solution

From the documentation provided on Android Developer site, it seems that USB APIs are provided from Android 3.1 (API level 12) onwards. Android 2.2 doesn't offer USB APIs.

In case you also have Android 2.3.4 device, then you can use 'Open Accessory Library' which is based on a USB (Universal Serial Bus) stack built into the platform and an API exposed to applications. Check out the link below for more information: Open Accessory Library for 2.3.4

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top