Java tutorial
//package com.java2s; //License from project: Open Source License import android.graphics.Bitmap; import java.io.FileOutputStream; public class Main { public static void saveCover(Bitmap cover, String path) { try { FileOutputStream out = new FileOutputStream(path); cover.compress(Bitmap.CompressFormat.PNG, 100, out); out.close(); } catch (Exception e) { // Do nothing } } }