Java tutorial
//package com.java2s; import java.io.File; import android.content.Context; import android.content.Intent; import android.net.Uri; public class Main { public static void scanDirAsync(Context ctx, String dir) { Intent scanIntent = new Intent("android.intent.action.MEDIA_SCANNER_SCAN_DIR"); scanIntent.setData(Uri.fromFile(new File(dir))); ctx.sendBroadcast(scanIntent); } }