Android APP jump permission setting interface

 Explanation: This is a special case, because we develop a food delivery platform, many riders do not know how to use the app, and some permissions will be rejected when installing the app, resulting in abnormal use of the app. Here we take the rider app as an example. The requirement is to enter the app to prompt the rider whether the permissions are enabled Yes, check the jump setting permission interface, as shown in the figure below:

One: Realize the jump effect diagram:

 

Two: Implement the code

        Intent intent = new Intent();
        intent.setAction(android.provider.Settings.ACTION_APPLICATION_DETAILS_SETTINGS);
        intent.setData(Uri.parse("package:" + this.getPackageName()));
        startActivity(intent);

 

 

 

 

 

 

Guess you like

Origin blog.csdn.net/Android_Cll/article/details/106375858