Top "Android-external-storage" questions

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

Copy file from the internal to the external storage in Android

My app (Android API 15) makes a picture and stores it in the internal memory's folder. Now, I want to copy …

java android file-io copy android-external-storage
Why getExternalFilesDirs() doesn't work on some devices?

My app runs on Android 5.0. I use method getExternalFilesDirs() to check if external SD card is available. If it returns …

android android-sdcard android-external-storage
Can't create a directory on /storage/emulated/0 on emulator

I'm trying to create a directory on my android emulator but I can't do it, I already have the permission …

android android-emulator android-external-storage
getExternalCacheDir() returns null after clearing data

I have a simple app that access and writes data to external storage. Everything works fine until I go to …

java android caching android-external-storage
How to copy file using adb to android directory accessible from PC

If you attach android device to PC you can browse files and dirs. It is possible to get this directory …

android adb android-external-storage
Android APIv29 FileNotFoundException EACCES (Permission denied)

I'm not able to access storage when building for targetSdkVersion v29. Here is my gradle configuration: compileSdkVersion 29 buildToolsVersion "29.0.2" ... minSdkVersion 15 targetSdkVersion 29 …

android kotlin filenotfoundexception android-external-storage android-api-levels
Does Environment.getExternalStorageDirectory() returns a usable data folder when no sd card is mounted?

Imagine an Android device with no sd memory insterted. Only its own internal memory. I'm not sure what Environment.getExternalStorageDirectory() …

android android-external-storage
Displaying all images from device in my app

I am using code below to get all images from Camera folder inside DCIM and display in my app. But …

android android-camera android-gallery android-external-storage
Android write files to USB via OTG cable

I've been searching for many topics about android file writing, yet most of them wanted to write files to android …

android android-external-storage writing
How to check availability of space on external storage?

How do you check if the SD card is full or not so that your application can decide if it …

android android-sdcard android-external-storage