Java tutorial
//package com.java2s; import android.content.Context; import android.content.Intent; import android.net.Uri; import android.os.Environment; public class Main { public static void allScan(Context context) { context.sendBroadcast(new Intent(Intent.ACTION_MEDIA_MOUNTED, Uri.parse("file://" + Environment.getExternalStorageDirectory()))); } }