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
python gui Interface examples -Python GUI Programming complete example vue element-ui Drop down menu with search algorithm : Longest common subsequence ( Output all longest common subsequences ) First knowledge Mongdb Data query ( three ) The problem of time type conversion “2021-01-20T10:09:11Z” Morphological processing gradient , Top hat , Black hat mean value - Implementation and application of variance model _python_ Data analysis _9 Wechat small program student course selection system app Design CCF A series of questions --2016 year 4 Month 1 Calculation of break point laravel The first mock exam is based on the "one to many" model. with,has,wherehas