android.os.FileUriExposedException: file:///storage/emulated/0/DCIM/IMG_1041503431.jpg exposed beyond app through ClipData.It
m.getUri()
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
/*获取当前系统的android版本号*/
int currentapiVersion = android.os.Build.VERSION.SDK_INT;
Log.e("currentapiVersion", "currentapiVersion====>" + currentapiVersion);
//android 7.0以上拍照保存本地方法
try {
mTmpFile = FileUtils.createTmpFile(webActivity.this);
} catch (IOException e) {
e.printStackTrace();
}
mTakePicPath = mTmpFile.getAbsolutePath();
Log.e("mT