In the process of working on the application I encountered the fact that it is necessary to check the permissions for the application and I would like to add a button by which the user can go directly to the permissions section for the application or at least to the “About application” screen. I saw that this is implemented in some applications, but I could not find a solution in the open spaces of Google = (Tell me how you can do it. Thank you!
1 answer
Good day.
You cannot go straight to the Permish section, but, nevertheless, you can go to the "About application" screen. For this you can use the code:
private static void startAppDetailsActivity(final Activity context) { Intent intent = new Intent(); intent.setAction(Settings.ACTION_APPLICATION_DETAILS_SETTINGS); Uri uri = Uri.fromParts("package", context.getPackageName(), null); intent.setData(uri); context.startActivity(intent); } |