If USB storage is connected to android device, how can I get thumbnails from images in drive without actually copying image from drive to device?
Asked
Active
Viewed 1,285 times
0
-
Have you read: https://developer.android.com/training/displaying-bitmaps/load-bitmap.html#load-bitmap – Morrison Chang May 25 '16 at 16:56
-
@Sam, Yes. Problem here is that android doesn't detect usb as sd card and we cannot get physical path so cannot list files otherwise I would have used bitmap apis. So main problem here is how to get physical path of images(files in general) on usb pen drive. – Praveen Pandey May 25 '16 at 17:26
-
Related: http://stackoverflow.com/questions/32201169/how-app-can-access-files-on-usb-otg-storages-in-android-6-0-api-level-23-witho – Morrison Chang May 25 '16 at 18:15
-
Its related, but answer suggests it is not possible which is not true. There are apps which are able to do. For example ES File Explorer shows thumbnails of images without using storage access framework. – Praveen Pandey May 25 '16 at 19:07
-
See comments in: http://stackoverflow.com/questions/26485138/android-usb-host-read-write-a-file-in-usb-device-otg – Morrison Chang May 25 '16 at 21:46