代码如下: /** 保存方法 */ public void saveBitmap() { Log.e(TAG, “保存图片”); File f = new File(“/sdcard/namecard/”, picName); if (f.exists()) { f.delete(); } try { FileOutputStream out = new FileOutputStream(f); bm.compress(Bitmap.CompressFormat.PNG, 90, out); o