Top "Android-external-storage" questions

Tag for questions related with saving data to/reading data from an Android device external storage.

Android Open External Storage directory(sdcard) for storing file

I want to open external storage directory path for saving file programatically.I tried but not getting sdcard path. How …

android sd-card android-sdcard android-external-storage
READ_EXTERNAL_STORAGE permission for Android

I'm trying to access media files (music) on the users device to play them; an easy "hello world"-music player …

java android audio-player android-external-storage android-music-player
Universal way to write to external SD card on Android

In my application, I need to store lots of images in the device storage. Such files tend to fulfill the …

java android android-sdcard android-external-storage
Android: mkdirs()/mkdir() on external storage returns false

I'm driven crazy with this: Log.d("STATE", Environment.getExternalStorageState()); File f = new File(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM), "work_…

android android-file android-external-storage
SecurityException: Permission Denial: reading (only on emulator)

I have two activities in my app, MainActivity calls ImagePicker, which has a GridView laying out all the images in …

android permissions android-emulator android-external-storage android-developer-api
How app can access files on USB OTG storages in Android 6.0 (API level 23) without root?

Android 6.0 Developer Preview (API level 23) can natively mounts external removable USB OTG storages out-of-the-box without any additional apps (for more …

android file-io android-6.0-marshmallow android-external-storage usb-otg
How does storage access change on Android 6?

Background Android had a lot of changes as to how to handle the SD-card and storage in general: API 3 - …

android sd-card android-permissions android-external-storage android-6.0-marshmallow
differences between /sdcard/emulated/0 and /sdcard

I'm goig to be mad with a strange issue. If i create a folder inside my code as directory_path = …

android directory android-external-storage
Android 10: What are my options to save files on external storage into a directory called "/sdcard/my-app/"

Up until Android Pie I always stored files which the app needed to get stored on /sdcard/my-app/, which I …

android android-external-storage file-access android-10.0