80,351
社区成员
发帖
与我相关
我的任务
分享
File dir = new File(Environment.getExternalStorageDirectory()
.getAbsolutePath() + "/DCIM/Camera/");// 设置存放目录
File f = new File(dir.getAbsoluteFile(), "temp.png");
image = (Bitmap) data.getExtras().get("data");
if (image != null) {
imagePath = f.getPath();
imageView.setPath(imagepath);
}