Vân Anh Nguyen
Member
How do you check if permission is granted or not?
Answer
If SDK version is equal to or greater than 23, then we check the permission is already granted or not by
calling contextCompat.checkSelfPermission(). If permission is granted then we can open camera. If the permission is not granted we must request for the permission to the user.
Answer
If SDK version is equal to or greater than 23, then we check the permission is already granted or not by
calling contextCompat.checkSelfPermission(). If permission is granted then we can open camera. If the permission is not granted we must request for the permission to the user.