My application shows the list of songs in sdcard, and there is an option to delete the song from SD card.
Even when the song is deleted the song still comes in my ap
For Android before ICS, send a ACTION_MEDIA_MOUNTED broadcast :
context.sendBroadcast(new Intent(Intent.ACTION_MEDIA_MOUNTED, Uri.parse("file://" + Environment.getExternalStorageDirectory())));
For ICS and Jelly Bean, you can use the MediaScannerConnection API to scan media files