How do I exclude images from the Android gallery

Hi all,

I my app generates image files and stores them under the Application.persistentDataPath folder. Unfortunately, these images seem to be picked up on Android by the media scanner and then they appear in the normal device gallery. Does anyone know how I can prevent this?

Thanks in advance!

Looks like one solution is to add a file called “.nomedia” in or above the directory you want to exclude.