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,这是默认路径

相关文章:

  • 2021-10-23
  • 2021-12-29
  • 2022-12-23
  • 2021-05-25
  • 2021-12-31
  • 2021-09-14
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-01-01
  • 2022-12-23
  • 2022-12-23
  • 2021-08-16
  • 2021-12-01
  • 2021-08-06
相关资源
相似解决方案