//拍照
private void fromCarema(OnFilishedListener listener) {
if (hasSdcard()) {
String path = null;
if ( tempFile ==null || !tempFile.exists()) {
listener.onFilish(null);
return;
}
path = tempFile.getAbsolutePath();
if (TextUtils.isEmpty(path)) {
listener.onFilish(null);
return;
}
try {
Bitmap bitmap = BitmapUtils.scaleBitmap(path);
//+++++++++++++++++++画日期操作
bitmap = BitmapUtils.drawDate2Bitmap(bitmap);
File file = new File(path);
if (file.exists()) {
file.delete();
}
path = BitmapUtils.saveBitmap(bitmap);
listener.onFilish(path);
} catch (Exception e) {
e.printStackTrace();
Log.e(“保存图片”, “图片保存失败”);
listener.onFilish(