Is there a way to redirect a user to the settings of an application or better to the permissions of a specific application? as shown below:
Best regards.
There is no intent to go directly to permissions page.
However, there is an intent by which you can redirect your user to your Application's detailed settings page. ACTION_APPLICATION_DETAILS_SETTINGS
Here is the code snippet:
Intent intent = new Intent(); intent.setAction(Settings.ACTION_APPLICATION_DETAILS_SETTINGS); Uri uri = Uri.fromParts("package",activity.getPackageName(), null); intent.setData(uri); context.startActivity(intent); I hope this helps!
getApplicationContext().startActivity but it is throwing me error.intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);Is there a way to redirect a user to the settings of an application
Use ACTION_APPLICATION_DETAILS_SETTINGS.
or better to the permissions of a specific application?
I do not think that there is a way to drive to that specific screen.
Uri on the Intent, one with a package scheme that points to your app. See stackoverflow.com/a/32983128/115145.