android-external-storage Questions
1
I am trying to create a directory under SD card using this code:
file = new File(Environment.getExternalStorageDirectory(), "foldername");
if(!file.exists()){
file.mkdirs();
System.out...
Sieve asked 12/9, 2021 at 10:10
1
In Android 11 targeting SDK 30, the files created into the shared folder with MediaStore are not retrieved when the app is reinstalled.
Heehaw asked 11/5, 2021 at 13:38
3
Solved
I already tried results from most of the questions but none worked for me.
I try accessing the WRITE_EXTERNAL_STORAGE permission using the PermissionAndroid.request method but it always returns nev...
Gristle asked 23/5, 2023 at 6:6
4
Solved
We need to allow users to store files in the external storage and for the same, we use MANAGE_EXTERNAL_STORAGE permission in our application.
Ideally for the android SDK version 30 and above we are...
Boggess asked 7/4, 2022 at 13:35
2
Solved
In API 33 (Android 13), granular media permissions have been introduced, and developers have to request these granular permissions instead of READ_EXTERNAL_STORAGE.
READ_MEDIA_AUDIO is one such gra...
Crochet asked 7/10, 2022 at 10:2
10
Solved
I'm trying to access media files (music) on the users device to play them; an easy "hello world"-music player app.
I've followed some tutorials and they basically give the same code. But it won't ...
Samora asked 7/9, 2015 at 5:36
5
Solved
I am writing a new Application on Android 11 (SDK Version 30) and I simply cannot find an example on how to save a file to the external storage.
I read their documentation and now know that they b...
Jealousy asked 8/1, 2021 at 23:11
8
Solved
This is driving me crazy. I have tried all kinds of syntaxes but both mkdir() and mkdirs() return false.
My code:
String extStorageDirectory = Environment.getExternalStorageDirectory().toString...
Fenton asked 26/5, 2016 at 21:41
1
In Android 11, with the scoped storage enforcement the requestLegacyExternalStorage flag will no longer work for accessing files in external storage. With
<uses-permission android:name="androi...
Zooplankton asked 22/3, 2020 at 1:29
6
Solved
I'm really struggling with this for some reason and am hoping someone can help point me in the right direction.
I am targeting Android 11 / API 30 which is where the trouble seems to all stem from....
Activist asked 5/4, 2021 at 1:37
4
To record a SurfeceView I'm using a 3rd-party library , this library requires a path where the output (the recorded video) saved in my case is savedVideoPath :
mRenderPipeline = EZFilter.input(this...
Sperry asked 13/9, 2019 at 19:47
16
Solved
I'm driven crazy with this:
Log.d("STATE", Environment.getExternalStorageState());
File f = new File(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM), "work_data");
Log.d(...
Humberto asked 27/8, 2011 at 4:33
1
All new apps uploaded to Google Play must target Android 10 (API level 29) or higher. However, when app targets API level 29, the path returned from Environment.getExternalStorageDirectory() is no ...
Mcroberts asked 17/10, 2020 at 21:37
2
Solved
I need to check if another app has the permission to External Storage Manager. With
Environment.isExternalStorageManager()
I check if the current app is granted. How can I do this for another app?...
Overfly asked 27/10, 2021 at 9:14
4
Solved
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 ...
Varioloid asked 17/10, 2019 at 10:8
0
For public media folders instead of Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM) we can use:
values.put(MediaStore.Media.RELATIVE_PATH, Environment.DIRECTORY_DCIM)
uri...
Diacritical asked 16/8, 2021 at 19:50
1
I am trying to allow my app to be able to be moved to an SD card. So far, I have added the attribute, android:installLocation="auto", to my manifest file.
When I try moving storage option from in...
Birdella asked 13/11, 2017 at 21:49
2
Solved
I'm very new to android development and I need a beginners help please...
I am creating an app that should have 2 directories, a Databases directory and an Images directory, just like Whatsapp has...
android-studioandroid-external-storageandroid-studio-3.1android-internal-storageandroid-studio-3.1.3
Ploy asked 27/7, 2018 at 21:43
3
Up until Android Pie I always stored files which the app needed to get stored on /sdcard/my-app/, which I got via
File fBaseDir = new File(Environment.getExternalStorageDirectory(), "my-app");
On...
Gisarme asked 4/9, 2019 at 12:54
4
Solved
I'm developing a custom compound View that needs to access external storage. How can I implement the permission handling without involving outside parties, i.e. Activity or Fragment?
I get that I...
Dissimilar asked 7/4, 2016 at 18:42
3
Solved
I'm trying to create a directory on my android emulator but I can't do it, I already have the permission on manifest write_storage, and I get no erros but mkdir() return false, I verify if external...
Acceptation asked 18/3, 2016 at 12:55
2
Solved
I'm trying to achieve some clean up tools. More and more manufacturers have forbidden rooting devices due to some "security reason", And they even NOT allow you send an request for oem-un...
Interviewer asked 11/9, 2020 at 6:48
1
I would like to save photos on the external app directory on the sd card on Android 11.
What is the proper way to do this?
Am I constrained to use SAF API with system picker triggered by action ACT...
Gibbs asked 2/2, 2021 at 9:25
2
Solved
I'm trying to send a photo to the server, but I can't access the photo ONLY on Android 10. Made a READ_EXTERNAL_STORAGE request, clicked "allow", in the settings, access to storage is all...
Anastos asked 26/7, 2020 at 9:15
3
Solved
I am working on a photo editor app in which after editing my picture I save it into my local storage. It is working fine till android 9 but not on android 10. It shows exception of "No such file or...
Conformist asked 6/5, 2020 at 7:26
1 Next >
© 2022 - 2025 — McMap. All rights reserved.