title: MediaScannerConnection.scanFile() doesn't show file in Windows Explorer even though file exists on phone
body: <p>The method createNewFile() returns true and shows the location of the file on my phone. The file shows up in the file manager of my phone but does not in Explorer.</p>
  
  <p>Basically I call createNewFile() on the File object:</p>
  
  <pre><code>File file = new File(path);
  try {
          file.createNewFile());
  </code></pre>
  
  <p>I write to the file and then call:</p>
  
  <pre><code>MediaScannerConnection.scanFile(context, new String[]{file.getAbsolutePath()}, null, null);
  </code></pre>
  
  <p>This should show it in Windows Explorer and this has happened with another app but it doesn't with this app and I do not see any relevant difference. Furthermore, neither disconnecting and reconnecting the USB cable or restarting my phone causes the file to show up in Explorer.</p>