Skip to main content

Hide Images, Videos, Music on SD card from Android Gallery (Hide WhatsApp media from gallery)

In android devices all images, videos and sound tracks which are located on internal memory and SD card are automatically added to the music player and the gallery. There are many cases where you don't want to avoid adding these media files to gallery. For example you may want to hide media downloaded from Whatsapp.
You can do this by a simple trick. Android OS skip folders which have a ".nomedia" file inside it. (File with no file name and extension .nomedia)

What you have to do 

  1. Create a file with an empty file name and extension ".nomedia" .
  2. Copy this to the folder which you want to avoid scanning by the gallery. 
Some file managers do not allow to create files. If your file manager doesn't support to create new files try using ES File Explorer or File Manager (File transfer).
Or you can create a file using computer and then copy it to the phone. 
Or you can download and extract it from here.

How to hide Whatsapp media from gallery. 

Suppose you want to hide images you download in Whatsapp. 
  1. Go to Root folder of your phone's internal memory. (May be SD card depending on your device)
  2. Go to WhatsApp/Media/WhatsApp Images
  3. Copy .nomedia file here.
That's all :)

Note: Media which were cached to gallery earlier may not be removed from the gallery. But new content will not be scanned by the gallery. 

Please be kind enough to leave a feedback :) 


Popular posts from this blog

How to play Sinhala subtitles(or any other custom fonts) using MX Player on any Android device

Do you know that you can play sinhala subtitles on your android device using MX player even though the device doesn't support sinhala rendering. Just a simple procedure.

Spring Transaction Management over multiple threads

Spring framework provides a comprehensive API for database transaction management. Spring takes care of all underlying transaction management considerations and provides a consistent programming model for different transaction APIs such as Java Transaction API (JTA), JDBC, Hibernate, Java Persistence API (JPA), and Java Data Objects (JDO). There are 2 main types of transaction management in Spring. They are declarative transaction management which is a high level one and programmatic transaction management which is more advance but flexible.

The Spring API works very well with almost all of the transaction management requirements as long as the transaction is on a single thread. The problem rises when we want to manage a transaction across multiple threads. Spring doesn't support transactions over multiple threads out of the box. Spring doesn't explicitly mention that in the documentation. But you will end up with run time errors or unexpected results if you try to do so.

Root Sony Xperia E3 or E3 Dual

This guide is only valid for Sony Xperia E3 and Sony Xperia E3 Dual only. And this guide has been completely tested and succeeded with Sony Xperia E3 Dual (D2212).