title: What is the difference between getDir and getFilesDir on Android?
body: <p>I would like to save a picture in Internal Storage of my app, to make it private. So I did a little research and saw 2 ways to get the directory.</p>
  
  <p>1.With <a href="http://developer.android.com/reference/android/content/ContextWrapper.html#getDir%28java.lang.String,%20int%29" rel="noreferrer">getDir</a> : </p>
  
  <pre><code>File dir = getDir(Environment.DIRECTORY_PICTURES, Context.MODE_PRIVATE);
  </code></pre>
  
  <p>2.With <a href="http://developer.android.com/reference/android/content/ContextWrapper.html#getFilesDir%28%29" rel="noreferrer">getFilesDir</a> :</p>
  
  <pre><code>File dir = getFilesDir();
  </code></pre>
  
  <p>Which is best ? Which returns the location in Internal Storage ?</p>
  
  <p>The way of writing files depends on the way you get your dir ? I am a bit lost since there are many ways to write files in Android.</p>