-
Notifications
You must be signed in to change notification settings - Fork 228
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
Camera access example #25
Comments
It goes into the on permission granted callback, when the permission is granted you should start the camera. in ur above code, the method will always be called. |
But that method handles a specific permission. For camera I need Camera and Write_External. How would I call cameraStart if one perm is camera but the next is Write_External? I need both to be granted then call cameraStart. |
You should be using one of permissionHelper methods to tell you if both On Oct 8, 2016 10:48 AM, "Mike Purcell" notifications@github.com wrote:
|
Ya I tried that first. But if u wrap startCamera with those perms it won't fire off if the perms were just granted. I have to click the button again then the camera opens. |
@OverRide public void onPermissionGranted(@nonnull String[] permissionName) On Oct 8, 2016 10:56 AM, "Mike Purcell" notifications@github.com wrote:
|
For a single permission right? I can't call startCamera in that method for the reason I stated above. I need both perms to be granted. |
if you called request with multiple permissions, then that method method will return multiple permissions if they are granted.
you might consider using that method |
Dope I'll try that. Thanks. |
Seems easy enough:
But doesn't work as expected, as
showCamera()
is called regardless of the status of the permissions. DoesshowCamera()
go intoonRequestPermissionsResult()
?The text was updated successfully, but these errors were encountered: