We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ISCameraActivity 中的方法 getImageContentUri 中返回的 uri 有问题,建议换成如下代码: ` public static Uri getFileUri(Context context,String path){ File photoFile = new File(path); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) { //适配Android 7.0文件权限,通过FileProvider创建一个content类型的Uri return FileProvider.getUriForFile(context,"包名.fileProvider", photoFile); } else { return Uri.fromFile(photoFile); } }
`
The text was updated successfully, but these errors were encountered:
No branches or pull requests
ISCameraActivity 中的方法 getImageContentUri 中返回的 uri 有问题,建议换成如下代码:
`
public static Uri getFileUri(Context context,String path){
File photoFile = new File(path);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
//适配Android 7.0文件权限,通过FileProvider创建一个content类型的Uri
return FileProvider.getUriForFile(context,"包名.fileProvider", photoFile);
} else {
return Uri.fromFile(photoFile);
}
}
`
The text was updated successfully, but these errors were encountered: