Java tutorial
//package com.java2s; import java.io.File; import java.io.FileOutputStream; import android.graphics.Bitmap; public class Main { public static void saveThePicture(Bitmap bitmap, String p) throws Exception { File file = new File(p); FileOutputStream fos = new FileOutputStream(file); // bitmap. if (bitmap.compress(Bitmap.CompressFormat.JPEG, 100, fos)) { fos.flush(); fos.close(); } } }