00 Votes

Android: .nomedia File does not work

Question by Guest | 2013-10-04 at 20:43

By dropping an empty file called .nomedia into a folder containing media files on an Android device, the videos and photos from that directory should no longer be displayed in the gallery.

That is the theory. But unfortunately, the .nomedia file seems not to work at my device since photos since are still displayed in the gallery! What can I do?

ReplyPositiveNegative
2Best Answer6 Votes

The Gallery app creates an index of all the photos that will be displayed.

If you copy the .nomedia file into a folder that is already listed in the index of the gallery, it can happen that that Gallery still shows the images from its index because the Gallery App does not look up, if now there is a .nomedia file in the corresponding folder. A workaround is to force the gallery to make a new indexing of the media files. You can achieve this, for example, by simply renaming the folder so that the device has to read the new folder again. Of course, after re-indexing you can change the name of the directory to the original name again.

Beside, you can also go to "Settings > Apps > All > Gallery" and empty the gallery cache there. This also makes a new indexing necessary: the app has to look for new .nomedia files so that after this procedure, all files should be displayed correctly.
2013-10-04 at 22:46

ReplyPositive Negative
Reply

Related Topics

Android Splash Screen Tutorial

Tutorial | 0 Comments

Android Getting Sound Levels

Open Question | 1 Answer

Rename File to its Folder Name

Tutorial | 0 Comments

PHP: File Download Script

Tutorial | 0 Comments

Important Note

Please note: The contributions published on askingbox.com are contributions of users and should not substitute professional advice. They are not verified by independents and do not necessarily reflect the opinion of askingbox.com. Learn more.

Participate

Ask your own question or write your own article on askingbox.com. That’s how it’s done.