Permission denied while it Allowed! access to external storage problem
See original GitHub issueI tried the sample app on Android 10 (AVD virtual device), and it failed to saving photo on device, “permission denied”, while I Allowed it.
I search and found that this deprecated function is the problem. https://github.com/burhanrashid52/PhotoEditor/blob/e94dd4b595f8d3d965824a1492e45a04fee744d7/app/src/main/java/com/burhanrashid52/photoeditor/EditImageActivity.java#L266
I replace it with:
File file = new File(this.getExternalFilesDir(DIRECTORY_PICTURES) + File.separator + "" + System.currentTimeMillis() + ".png");
and it works fine, but it save photo in app private folder.
- I read that android 10 will not give direct access to external storage.
there are some workaround solutions, but I didn’t use it.
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (2 by maintainers)
Top Results From Across the Web
External Hard Drive Access Denied Error and How to Fix It
Permission Settings: If you don't have permission to access the external hard drive, you're likely to see the “Access is denied” error.
Read more >External hard drive: “Access is denied” error on Windows 10 ...
To do this, open Disk Management by right-clicking Start and choosing Disk Management. Next, right-click on the inaccessible disk and click ...
Read more >Permission denied on writing to external storage despite ...
The user will have to explicitly allow access to all files if you want to read files from any source in the device...
Read more >Access Denied Error or File/Folder Permission Issues on an ...
Access Denied Error or File/Folder Permission Issues on an External Drive · Check My Computer > Tools > Folder Options > View, and...
Read more >Top 8 Ways to Fix "USB Access Denied" Problem in Windows ...
They often signify that the USB (storage) device has restricted read or write permission. Depending on other symptoms, your "USB access denied" message...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I just Opened PR about this Issue, My fix:
app:manifest.xml
EditImageActivity
Replacewith
then add this method
call the method after in saved
onSuccess
I hope this helps someone
@breel93 Thanks bro. Helped a lot 😄