Skip to content
New issue

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

11打开相机失败解决 #200

Open
AndroidBody opened this issue Sep 21, 2022 · 0 comments
Open

11打开相机失败解决 #200

AndroidBody opened this issue Sep 21, 2022 · 0 comments

Comments

@AndroidBody
Copy link

版本11 ,出现打开相机失败情况解决
因cameraIntent.resolveActivity(getPackageManager())返回为空,
博主抽个时间替换一下吧
context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_CAMERA_ANY)
hasSystemFeature方法进行判断相机是否可用。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant