title: How to write files to external storage (sdcard)
body: <p>I know this may have been answered many times and I have searched, but I can't resolve my problem.  Every time I try to write to sdcard, it appears to be going to internal storage.  My lines of code are simply</p>
  
  <pre><code>File root = android.os.Environment.getExternalStorageDirectory(); 
  File dir = new File (root.getAbsolutePath() +"/mydir");
  dir.mkdirs();
  </code></pre>
  
  <p>When I go to My Files, the directory always appears in /storage/emulated/0 and not on the sdcard.  I have all the permissions set in the manifest.  Is there something simple I'm missing?  </p>
  
  <p>P.S.  My device is the Note 3.  I am able to copy files to the sdcard manually.</p>