Juha-Matti Santala
Community Builder. Dreamer. Adventurer.

🍿 Prevent Obsidian images from showing up in Android Gallery

Snacks (🍿) are my collection of recipes for solving problems. Often recorded (and cleaned up) from actual discussions where I'm involved in helping others with technical problems. Not all solutions are mine but I started collecting them in one place because you never know when you need one.


I sync my Obsidian vault into my Android phone and recently got a bit annoyed as all the images that I had in my vault, kept popping up in my Gallery app albums.

I discovered that adding an empty file with a filename of .nomedia into the vault's asset folder tells Android not to scan that folder for images. Here's an article about the file and its usages.

There is also an Obsidian plugin called Android nomedia that was recommended in discussion forums but I haven't used it myself since I put all my assets into a single folder.