how to invoke media scanner on button click in android
<p>Actually problem is that when i insert server images into Sdcard its gone and also display in sdcard but when i open phone Gallery it is not showing . 
I also use this code for invoke media scanner on button click ....    </p>

<pre><code>sendBroadcast(new Intent(Intent.ACTION_MEDIA_MOUNTED, Uri.parse("file://"+Environment.getExternalStoragePublicDirectory(Environment.MEDIA_MOUNTED))));
</code></pre>

<p>but its not working.</p>

<p>in case when i mount and unmount sdcard in device then after all images are shown.
but i want when app is run images stored into sdcard and also show in device gallery.</p>

<p>pls help it much appreciate ..</p>

<p>Thanks ...</p>
