Category : permissions

on android pi one user,who have downloads folder on sd card,get exception: java.lang.SecurityException: No permission to write to /storage/emulated/0/Download/Памятный-камень-Кул-Шариф.jpg: Neither user 10244 nor current process has android.permission.WRITE_EXTERNAL_STORAGE. at android.os.Parcel.createException(Parcel.java:1966) at android.os.Parcel.readException(Parcel.java:1934) at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:183) at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:135) at android.content.ContentProviderProxy.insert(ContentProviderNative.java:476) at android.content.ContentResolver.insert(ContentResolver.java:1594) at android.app.DownloadManager.enqueue(DownloadManager.java:1479) I download files using this code: fun loadUrl(uri: Uri, index: Int) { val request: ..

Read more

My app (taggeting API30) needs to collect fine location while in background. It actually needs: WRITE_EXTERNAL_STORAGE RECORD_AUDIO ACCESS_FINE_LOCATION ACCESS_BACKGROUND_LOCATION (API >= 29) So I set the following method: public void checkMMPerms() { if (Build.VERSION.SDK_INT >= 23) { int extraperm = 0; String[] perms = new String[(Build.VERSION.SDK_INT >= 29) ? 4 : 3]; perms[0] = Manifest.permission.WRITE_EXTERNAL_STORAGE; ..

Read more

my app records audios using android’s build-in audio recorder. the recorded audio file is created in the external(removable) sd card. I successfully copy it to the app’s internal storage. but when I want to delete the recorded file from sd card this error happens: remove failed: EACCES (Permission denied) : /storage/43F8-16FA/Voice Recorder/Voice 013_sd.m4a Note that ..

Read more