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
UML modeling deployment diagramajax Method encapsulation Neural Filters Filter A - 1C++——list Super detailed introduction Blocked by Apple “ Tracking users ”,Facebook counterattack How to treat it 2020 year web Development trend of big front end market ? feature extraction - Feature post fusion - Multi core learning method (MKL)Vue Save after successful login verification in token, And carry and verify every request tokenvue Implement login _ obtain token_ Pull user information R language | Processing method of missing value —— multiple imputation : utilize mice() package