Рет қаралды 582
In Android using most of the APIs require the Developer to ask the user the Permission for it First... Simple Permissions are Granted without bothering User, But dangerous Permissions like Camera or External Storage Require Careful Scenario Planning to ask the user for specific permission.
The New Method for asking permission is by using the API called registerForActivityResult(). Using this API, It's easier to ask permission and get it's result within a Fragment instead of Activity.
registerForActivityResult() :
developer.andr...
Android Permissions :
developer.andr...