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 sendIntent(Context context, String url) { sendIntent(context, Uri.fromFile(new File(url))); } public static void sendIntent(Context context, Uri uri) { Intent intent = new Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE); intent.setData(uri); context.sendBroadcast(intent); } }