Android图片路径

Intent intent = new Intent("android.media.action.IMAGE_CAPTURE");
//Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
String path = Environment.getExternalStorageDirectory().getAbsolutePath();
path += "/myFolder/myPicture.jpg";
File file = new File( path );
//file.mkdirs();
Uri outputFileUri = Uri.fromFile( file );
//String absoluteOutputFileUri = file.getAbsolutePath();
intent.putExtra(MediaStore.EXTRA_OUTPUT, outputFileUri);
startActivityForResult(intent, 0);

服用后的图片与JPG格式是很好保存在SD卡/ myFolder中/ myPicture.jpg,但它也保存在/ SD卡/ DCIM / 10.36.10.jpg,这是默认路径

posted @ 2016-05-15 12:42  CoderQiang  阅读(265)  评论(0编辑  收藏  举报