- Home /
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!
Answer by Guy-Corbett · Oct 08, 2017 at 09:42 AM
Looks like one solution is to add a file called ".nomedia" in or above the directory you want to exclude.
https://developer.android.com/guide/topics/data/data-storage.html
http://kennystechtalk.blogspot.se/2013/08/nomedia-is-recursive-on-android-devices.html
Your answer
Follow this Question
Related Questions
Unity UI Slowing Down Android Phone 0 Answers
how to save compressed image to gallery on Android ? 1 Answer
Apply texture to object from device gallery 0 Answers
Open Gallery Android 3 Answers
How can I pick image/(s) from a VR device at runtime? 0 Answers