Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

android: how to hide folder from appearing in the Gallery

I have an application that creates a folder in the sd-card. After that, I do several operations which may result in storing different media files, graphics in my folder. The problem is that this folder is then visible in the Gallery section which is not appropriate. How can I hide the folder or the contents of my folder from appearing in the Gallery?

Looking forward for a response Thanks

like image 955
Farhan Avatar asked Jul 15 '11 22:07

Farhan


People also ask

How do I make a folder invisible?

Right-click on the folder to go to the folder's Properties. When the Properties window opens, go to the Customize tab. In the Folder Icon section click on the change icon button. In the icon window that shows up, make sure to click on the invisible icon and click on Accept.

How do I hide items in Android Gallery?

Now open the Gallery app and go to the media folder you want to hide. Tap on the three dots on the top right corner and select Lock for the options. Once done, select multiple photos that you want to hide and tap on Lock.


1 Answers

Put a file named .nomedia in the folder. This can be a zero-byte file if you want -- the name is what matters.

like image 150
CommonsWare Avatar answered Oct 20 '22 21:10

CommonsWare