title: How to open location permission settings in Android 30?
body: <p>I want to open directly location permission settings on button click android 30. How can I open?</p>
  <p><a href="https://i.stack.imgur.com/t6kjU.png" rel="noreferrer"><img src="https://i.stack.imgur.com/t6kjU.png" alt="enter image description here" /></a></p>
  <p>Below is my code. this navigates me on permission page,</p>
  <pre><code>final Intent i = new Intent();
  i.setAction(Settings.ACTION_APPLICATION_DETAILS_SETTINGS);
  i.addCategory(Intent.CATEGORY_DEFAULT);
  i.setData(Uri.parse(&quot;package:&quot; + context.getPackageName()));
  i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
  i.addFlags(Intent.FLAG_ACTIVITY_NO_HISTORY);
  i.addFlags(Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS);
  context.startActivity(i);
  </code></pre>