If you want to use the Gallery app to show people pictures of your kid/dog/home remodeling project and not your girlfriend’s chest/drinking exploits/night at the club then this tip is for you. By default Android’s Gallery application is aggressive about adding media. It assumes that if it is on your SD card then you want it in your gallery for easy access. This isn’t always the case and, thankfully, it’s easy to fix. At the computer trips and tricks blog Addictive Tips they share three ways you can prevent Gallery from going crazy and indexing everything on your phone. How do you do this? Like so:

Restart Gallery and the directory you added the .nomedia file to will no longer appear. For the other two methods, hit up the link below.

One way to do so is to:

Copy an existing text (. txt) or even an image (. jpg/. png) file to said directory, Open it in a text editor (hold down on the file and select the appropriate option from the context menu that appears), Delete its contents (hold down on the text, Select all and Delete), save changes and exit, Rename it to “. nomedia” (hold down on the file again and select Rename from its context menu).

This method disables media scanning on the chosen directory, causing the Gallery to skip the directory altogether at launch.

How To Prevent a Directory From Being Scanned By Android Gallery [Addictive Tips]