title: Figuring out where Android stores files
body: <p>I am writing to a file in my application. I want to find the file to check that the file has been written correctly (and so I can access the file via a web view). Here is the code I am using to write the file:</p>
  
  <pre><code>try {
      FileOutputStream fos = openFileOutput("rules.txt", Context.MODE_PRIVATE);
      fos.write(content.getBytes());
      fos.close();
  } 
  catch (Exception e) {
      e.printStackTrace();
  }
  </code></pre>
  
  <p>and then I use this to get the directory of the file:</p>
  
  <pre><code>getFilesDir()
  </code></pre>
  
  <p>However the string it provides is not available as a directory on the my device (hidden files are shown). </p>
  
  <p>Any help would be appreciated!</p>