Java tutorial
//package com.java2s; import android.graphics.Bitmap; import java.io.FileNotFoundException; import java.io.FileOutputStream; public class Main { /** * Store bitmap into specified image path * * @param bitmap * @param outPath * @throws FileNotFoundException */ public static void storeImage(Bitmap bitmap, String outPath) throws FileNotFoundException { FileOutputStream os = new FileOutputStream(outPath); bitmap.compress(Bitmap.CompressFormat.JPEG, 100, os); } }