保存到机身存储的外部存储
//保存bmp //File[] filema; public void saveBitmap(Bitmap bmp) { Log.e(TAG, "保存图片"); String storePath = Environment.getExternalStorageDirectory().getAbsolutePath() + File.separator + "ma"; File appDir = new File(storePath); if (!appDir.exists()) { appDir.mkdir(); } String fileName = System.currentTimeMillis() + ".jpg"; File f = new File(appDir, fileName); if (f.exists()) { f.delete(); } try { FileOutputStream out = new FileOutputStream(f); bmp.compress(Bitmap.CompressFormat.JPEG, 60, out); out.flush(); out.close(); Log.i(TAG, "已经保存"); } catch (FileNotFoundException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } }