How do I check permissions on Android?

Đức Lưu

New member
How do I check permissions on Android?
Answer
To check if the user has already granted your app a particular permission, pass that permission into the ContextCompat. checkSelfPermission() method. This method returns either PERMISSION_GRANTED or PERMISSION_DENIED , depending on whether your app has the permission.
 

Tìm kiếm

Back
Top