Java tutorial
//package com.java2s; import android.content.Context; import android.graphics.Bitmap; import android.provider.MediaStore; public class Main { public static String getUriFromBitmap(Context context, Bitmap bitmap, String title, String description) { String sUrl = MediaStore.Images.Media.insertImage(context.getContentResolver(), bitmap, title, description); return sUrl; } }