Android examples for Graphics:Bitmap Save
write Bitmap To File
//package com.java2s; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import android.graphics.Bitmap; public class Main { public static void writeToFile(Bitmap bm, File outupt) { FileOutputStream out = null; try {/*from w w w . jav a 2 s . c o m*/ out = new FileOutputStream(outupt); bm.compress(Bitmap.CompressFormat.PNG, 100, out); // bmp is your Bitmap instance // PNG is a lossless format, the compression factor (100) is ignored } catch (Exception e) { e.printStackTrace(); } finally { try { if (out != null) { out.close(); } } catch (IOException e) { e.printStackTrace(); } } } }