Navigate to App Setting in Android :
|  | 
| Android App Setting Screen | 
allow the permission by going to setting screen .
Intent intent = new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS,
    Uri.fromParts("package", getPackageName(), null));
By using the above code, user is navigate to setting screen .
 
    Intent intent = new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS,
    Uri.fromParts("package", getPackageName(), null));
    intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
    startActivity(intent);
By using the above code, user is navigate to setting screen .
I have made the tutorial on Android Mashmallow Permission with Dexter , with just one line of code you can get Android permission easily .
DOWNLOAD CODE
DOWNLOAD CODE
 
 
 
 
 
 
 
 
 
 
0 comments:
Post a Comment