Wanting to exclude the Download
from being scanned by the Gallery application, I do as required, and create a:
.nomedia
file in the Download
folder. That correctly causes the Download
folder to vanish from Gallery. And all is well.
But then
If I Save an image from Chrome, the Download
folder reappears in Gallery. This coincides with Chrome adding a special file to the Download
folder:
ic.bin
Deleting the ic.bin
file does not cause the folder to disappear from Gallery. Deleting, and re-adding the .nomedia
file to the Download
folder does cause the Download
folder to vanish from Gallery.
I could ask this a number of alternate ways:
- how do I really prevent a folder from being scanned by Gallery?
- how do I deny file creation permission of a file called
ic.bin
in theDownload
folder? - how do I deny file creation permission of a file called
ic.bin
in any folder? - how do I stop Chrome from creating an
ic.bin
file in the Download folder? - how do I stop the
Download
folder from reappearing in Gallery? - how do I prevent Chrome from causing the
Download
folder from reappearing in the Gallery?
What I'm really asking is, "How do I exclude a folder from the Gallery?", given that .nomedia
doesn't always work.
Device: Nexus 4
Android version: 4.2.1
ic.bin
(making it read-only) plus the empty.nomedia
(in this order). It's a wild guess, but maybe the contents ofic.bin
are a key to it. Thus having created a read-onlyic.bin
should prevent Chrome from placing its own copy. No guarantees, as said -- just a wild guess, but worth a try.ic.bin
is a red herring. It seems that.nomedia
is only honored if it is the last file written to the folder. Edit: which might provide a solution. If it is date based, then perhaps Android has a way to alter the date of a file toDecember 25th, 3091
ic.bin
) then delete(ic.bin
,.nomedia
) & create(.nomedia
)...