Java tutorial
//package com.java2s; import android.content.Context; import android.content.Intent; import android.net.Uri; import java.io.File; public class Main { public static void insertImageToPhotoAlbum(Context context, String fileName) { Intent intent = new Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE); Uri uri = Uri.fromFile(new File(fileName)); intent.setData(uri); context.sendBroadcast(intent); } }