[Save To Gallery] Problem saving image to gallery on Android 10

Forge Component
Published on 2018-11-26 by Carlos Alfaro
3 votes
Published on 2018-11-26 by Carlos Alfaro


I am trying to save an image on device's photo gallery using the Save To Gallery plugin and giving all the right permissions (Write/Read_External_Storage), however this only works for Android versions below 10.

On Android 10 this error occurs:

"An exception occured while saving image: java.io.FileNotFoundException: /storage/emulated/0/img_2020516164720.png: open failed: EACCES (Permission denied)".

Does anyone know how to solve it?


Hi Bruno Dias,

Judging from the Github repo, I don't think there will be any support for newer versions of Android. Have you tried the File plugin forge component? It has a `SaveFile` action that accepts Binary data, name and path as parameters.

Good luck!