Remove All Ads from XDA
Honor View 10

GALLERY - Howto Prevent Indexing Certain Directories

67 posts
Thanks Meter: 15
By SemperAndroid, Member on 17th April 2011, 09:33 PM
Post Reply Email Thread
I have a folder on my SD card that I don't want images to appear from. Is there a means to exclude certain directories?

Sent from my DROIDX using XDA Premium App
17th April 2011, 09:35 PM |#2  
Pfeffernuss's Avatar
Senior Member
Flag Wassenaar
Thanks Meter: 1,822
Put an empty file called .nomedia in the directory.
The Following User Says Thank You to Pfeffernuss For This Useful Post: [ View ] Gift Pfeffernuss Ad-Free
17th April 2011, 10:57 PM |#3  
Thanks Meter: 2
This one works well for me - makes the process easier:
The Following User Says Thank You to selytch For This Useful Post: [ View ] Gift selytch Ad-Free
17th April 2011, 11:16 PM |#4  
kyouko's Avatar
Senior Member
Thanks Meter: 265
What kind of images don't you want to show up in your gallery?

The .nomedia method should work for you, if not you can always rename the folder with a "." at the beginning to make it hidden

Folder name examples:
.pr0n / .dontlookhere / .ignore
The Following User Says Thank You to kyouko For This Useful Post: [ View ] Gift kyouko Ad-Free
19th April 2011, 12:15 AM |#5  
Senior Member
Flag Frankfort, KY
Thanks Meter: 10
Donate to Me
Originally Posted by kyouko

What kind of images don't you want to show up in your gallery?

The .nomedia method should work for you, if not you can always rename the folder with a "." at the beginning to make it hidden

Folder name examples:
.pr0n / .dontlookhere / .ignore

.nomedia works for me, as far as keeping stuff out of the gallery. Being all grown up in my computer usage, I choose to not let my computing devices hide stuff from me, so that .folder thingy doesn't work for me (and pictures in those .folders without a .nomedia file still seem to make their way into my gallery).

I do have a .stuff folder for my .porn though... Keeps it up near the top of the list...
19th April 2011, 04:33 AM |#6  
cpark_12's Avatar
Senior Member
Flag Cairo, GA
Thanks Meter: 7
how about the hideitpro app from the market? it's actually pretty cool. opens up as an audio manager, then you put in a password and there you have all the hidden files you want. not just pics...just an fyi
19th April 2011, 11:26 AM |#7  
Senior Member
Thanks Meter: 20
Install the app Just Pictures and ignore the folders you don't want to see.
The .nomedia "solution" prevents the album art to display in the media players.
19th April 2011, 04:05 PM |#8  
Junior Member
Thanks Meter: 0
I use the app QuickPic from the Market, and in the app you can choose which folders you want include and exclude. Pretty useful. You don't have the pretty 3-D effects from the default Gallery app but it's so much faster.
19th April 2011, 04:42 PM |#9  
RavenFB's Avatar
Senior Member
Flag New Douglas, Illinois
Thanks Meter: 19
You can do the same thing with Fishbowl Gallery. You can set default albums, as well as hide albums. However, this still doesn't prevent someone from stumbling upon the default gallery app. The best solutions are either .nomedia, or do not have media on your phone that you do not want prying eyes to see. Alternatively, while cumbersome, you can use androzip or unrar pro to zip the material in question. Of course, by zipping your files, you can add the additional layer of security by encrypting it, if you're the paranoid sort.

Sent via Tapatalk on CM7.0.0-Vision Stable.
19th April 2011, 05:12 PM |#10  
KCRic's Avatar
Senior Member
Flag Overland Park
Thanks Meter: 270
I remember this method. Any one know if the older file deletion ever got fixed with 2.2.1 or later?

If you don't know what I'm talking about here's a quick rundown.

You put the .nomedia file in a folder with pictures, upon reboot all those pictures are deleted. This had something to do with them already being scanned once and them being older than the .nomedia file so instead of ignoring them it deletes them. Something along those lines (anyone have the link to the original bug report from back in '08 or '09?).

Anyway, if it hasn't been fixed you've been warned, you stand a good chance of losing all media in those folders. So backup those files - but you knew that already

The easiest remedy to this is to remove the files, rename the folder to .whatever or insert the .nomedia file. Reboot. Then throw the files back onto the sdcard. That should eliminate any issues.
19th April 2011, 05:20 PM |#11  
Senior Member
Thanks Meter: 33
I've used the .nomedia solution awhile back to get icons, cover art, etc out of my gallery and it worked just fine... nothing was deleted (Droid X).

IIRC, I did have to clear the gallery app's cache to get it to "forget" about media that it had already found; on first lauch after clearing it's cache, expect it to be slow as it re-scans your device / sd card (..rebooting didn't work to clear the cach on my device... had to clear it via settings > application > manage apps..)
The Following User Says Thank You to travisn000 For This Useful Post: [ View ] Gift travisn000 Ad-Free
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes