I am beginner in android.
How to find path of the PenDrive connected to android tablet programmatically at runtime.
Because I need to store some files into the pendrive.
Asked
Active
Viewed 3,623 times
1 Answers
0
You will need to ask your device manufacturer. At the present time, the Android SDK has support for only one "external storage", and that will not be a "pen drive".

CommonsWare
- 986,068
- 189
- 2,389
- 2,491
-
1@CommonsWare you mean pen drive is not accessible from the android tablet? coz i can attach pendrive to my tablet and copy file and paste from the pendrive – Calvin Oct 11 '12 at 08:07
-
@Droider: I mean exactly what I wrote. At the present time, the **Android SDK** has support for only one "external storage", and that will not be a "pen drive". Your **device** may have support for multiple forms of external storage, due to firmware changes made by the device manufacturer, but there is no documented and supported means to find out about those via the Android SDK. – CommonsWare Oct 11 '12 at 09:53
-
@CommonsWare: so is it that i can use pendrive in my device but i will not be able to access it or even detect it through android.hardware.usb classes ? – Calvin Oct 11 '12 at 09:57
-
@Droider: AFAICT, `android.hardware.usb` knows nothing of mount points and such. You might be able to detect that a pendrive exists, but you will not know the path on the filesystem, whether it is readable or writable, etc. – CommonsWare Oct 11 '12 at 10:02
-
@CommonsWare: thanks i am struggling to get my pendrive detected since last 3 days but in vain, so now i atleast know it may get detected – Calvin Oct 11 '12 at 10:04