So my app downloads images at the users\' request from an online source. Through a button in the activity, the user can choose to hide or show the images in the gallery. T
Finally found it at http://groups.google.com/group/android-developers/browse_thread/thread/c1a385226f3df482.
It is a one-liner:
sendBroadcast(new Intent(Intent.ACTION_MEDIA_MOUNTED, Uri.parse
("file://"
+ Environment.getExternalStorageDirectory())));
am broadcast -a android.intent.action.MEDIA_MOUNTED -d file:///mnt/sdcard
This command can be used to update the SD Card without rebooting the device
One can also invoke from the shell:
am broadcast -a android.intent.action.MEDIA_MOUNTED -d file:///mnt/sdcard