Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

GALLERY - Howto Prevent Indexing Certain Directories

OP SemperAndroid

17th April 2011, 09:33 PM   |  #1  
SemperAndroid's Avatar
OP Member
Flag Viera, FL
Thanks Meter: 15
 
67 posts
Join Date:Joined: Nov 2010
More
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: 774
 
3,068 posts
Join Date:Joined: Jun 2009
More
Put an empty file called .nomedia in the directory.
The Following User Says Thank You to Pfeffernuss For This Useful Post: [ View ]
17th April 2011, 10:57 PM   |  #3  
Member
Thanks Meter: 2
 
40 posts
Join Date:Joined: Sep 2006
This one works well for me - makes the process easier:
https://market.android.com/details?i...iokuma.nomedia
The Following User Says Thank You to selytch For This Useful Post: [ View ]
17th April 2011, 11:16 PM   |  #4  
kyouko's Avatar
Senior Member
IL/WI border
Thanks Meter: 252
 
1,083 posts
Join Date:Joined: Mar 2010
More
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 ]
19th April 2011, 12:15 AM   |  #5  
Senior Member
Flag Frankfort, KY
Thanks Meter: 10
 
136 posts
Join Date:Joined: Jul 2010
Donate to Me
More
Quote:
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
 
338 posts
Join Date:Joined: Feb 2011
More
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: 12
 
138 posts
Join Date:Joined: Sep 2010
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
 
6 posts
Join Date:Joined: Jun 2009
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
Member
Flag New Douglas, Illinois
Thanks Meter: 14
 
94 posts
Join Date:Joined: Nov 2010
More
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: 243
 
1,134 posts
Join Date:Joined: Aug 2010
More
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.

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes