I have an app installed on my Android device that lets you access the settings from the App Info page:
How can I achieve that behavior?
I have an app installed on my Android device that lets you access the settings from the App Info page:
How can I achieve that behavior?
I am sorry to reply to your comment here due to insufficient points. I know that the duplication reference is too old. However, I have used it and it works fine in Android 12 with the following code adapted from the reference:
val intent = Intent()
val packageName = requireContext().packageName
intent.action = Settings.ACTION_APPLICATION_DETAILS_SETTINGS
val uri = Uri.fromParts("package", packageName, null)
intent.data = uri
requireContext().startActivity(intent)
If you want to test the code above, you can run this project.
I ended up using Android app shortcuts to launch my own Settings activity.
Official documentation here.