title: How to invoke Android media scanner for vendor provided external SD card, not the one obtained via getExternalStorage()
body: <p>My app allows user to save files on an external SD card besides the getExternalStorage() path. I understand that Android does not have notion of external SD cardas such but as we know many device manufacturers provide an extra SD card slot for the tablets/phones. And the path to this particular sdcard could be vendor dependent.</p>
  
  <p>My app provides the user a preference where he/she can provide that vendor path to the SD card that's different than the path returned by getExternalStorage().</p>
  
  <p>Previously I would use following code to invoke media scanner, </p>
  
  <pre><code>  sendBroadcast(new Intent(Intent.ACTION_MEDIA_MOUNTED, Uri.parse("file://"
    + Environment.getExternalStorageDirectory())));
  </code></pre>
  
  <p>But now I am wondering whether the following code might work:</p>
  
  <pre><code>  sendBroadcast(new Intent(Intent.ACTION_MEDIA_MOUNTED, Uri.parse("file://"
    + "/someotherpath/blah/");
  </code></pre>
  
  <p>Would it work? I do not have such a device with an extra SD card slot to test it out, your opinion would be useful for me.</p>