private void saveFullImage(String str) {
        Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
        // 文件夹aaaa
        File path1 = new File(path + floerName);
        if (!path1.exists()) {
            path1.mkdirs();
        }
        File file = new File(path1, str + ".jpg");
        mOutPutFileUri = Uri.fromFile(file);
        intent.putExtra(MediaStore.EXTRA_OUTPUT, mOutPutFileUri);
        startActivity(intent);
        Toast.makeText(getApplicationContext(), str+" 照片已经替换", 0).show();

    }

配置清单文件添加权限(str是保存 相机照片的名字)

相关文章:

  • 2022-12-23
  • 2022-01-05
  • 2021-09-28
  • 2021-04-13
  • 2021-07-24
  • 2021-08-01
  • 2022-12-23
  • 2021-05-24
猜你喜欢
  • 2022-01-13
  • 2021-07-13
  • 2021-05-17
  • 2022-12-23
  • 2022-12-23
  • 2021-04-01
相关资源
相似解决方案