Check permission method
ContextCompat.checkSelfPermission( context , Permissions to check )
If equal to PackageManager.PERMISSION_GRANTED The representative has authority Otherwise, request permission .

An example of checking permissions is as follows :
ContextCompat.checkSelfPermission(this,
Manifest.permission.WRITE_EXTERNAL_STORAGE) = PackageManager.PERMISSION_GRANTED
Request permission method
ActivityCompat.requestPermissions( context , Array of requested permissions , Identifier of the request )
stay onRequestPermissionsResult In the callback method, the requestCode( Is the identifier of the request ) To determine the requested permissions
An example of permission request is as follows
ActivityCompat.requestPermissions(this, new
String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE, Manifest.permission.CAMERA
}, 10000);

Technology
©2020 ioDraw All rights reserved
LeetCode quick get start ① —— Array series ( Often asked in an interview , Suggested collection ) Apple iPhone 12 Price leakage : The official highest price is close to 1 Ten thousand yuan ( Essence )2020 year 6 month 26 day C# Class library Ip Address help class spark.sql.shuffle.partitions and spark.default.parallelism The difference between flutter study -- Search box NVIDIA official apology : Robots are sold out RTX 3080django Do not close CSRF middleware , Custom through CSRF Tested post request 【 Deep learning 】 Target detection in progress IOU The concept and calculation of ( Essence )2020 year 6 month 26 day C# Class library DataTable( Extension method ) Can Huawei Hongmeng system and Android , Apples compete against each other ?