title: Prevent showing hidden files and folder to gallery in android
body: <p>I am creating an project for hiding files and folder.I am able to hide folder and file from file system with below code,but it show on gallery.is their any way to prevent file and folder to showing in gallery.</p>
  
  <p>My code for hiding any file is:</p>
  
  <pre><code>public static void hideFile(File file){
      File dstFile = new File(file.getParent(), "." + file.getName());
      file.renameTo(dstFile);
  }
  </code></pre>
  
  <p>Please help me to solve this issue.
  Thanks.</p>