Reputation: 21
One part of my current project is downloading Videos from URL then saving to SDCard. But the problem is all of saved videos in sdcard is displayed in android gallery page. What I want is "I don't want all of my saved vidoes in android gallery."
Upvotes: 2
Views: 1425
Reputation: 309
Create a .nomedia
file inside the folder you don't want to be tracked by the MediaScanner. Maybe you'll need to rename the folder name after creating the file, since there is a bug that the MediaScanner (in some versions of android, not sure which one) fails to forget already-indexed files when it encounters a .nomedia file.
Upvotes: 1