0

A user has denied my app permission to know their location via GPS. They did this by accident. How the app needs to link them to the settings page where they can change the permission.

How to make this link? Does it depend on browser?

  • https://stackoverflow.com/questions/32822101/how-can-i-programmatically-open-the-permission-screen-for-a-specific-app-on-andr – Narendra_Nath Oct 03 '22 at 04:29

1 Answers1

1

This intent will open the Settings page and the user can change the settings he/she denied by mistake

Intent intent = new Intent(Intent.ACTION_MAIN);
intent.setComponent(new ComponentName(appDetails.packageName,"com.android.packageinstaller.permission.ui.ManagePermissionsActivity"));
startActivity(intent);
Narendra_Nath
  • 4,578
  • 3
  • 13
  • 31