Java tutorial
//package com.java2s; import java.io.File; import android.content.Context; import android.media.MediaScannerConnection; public class Main { public static void scanFile(Context context, File file) { MediaScannerConnection.scanFile(context, new String[] { file.getAbsolutePath() }, new String[] { "image/jpeg" }, null); } }