title: Clearing Archive bit for android
body: <p>On reading file, how to clear file archive bit using java for  an android application.</p>
  
  <p>I have found an e.g for Windows but I am not sure how I could use that for android</p>
  
  <pre><code>File theFile = new File("c:/foobar.txt");
  Path file = theFile.toPath();
  Files.setAttribute(file, "dos:archive", false);
  </code></pre>