I am making a settings page for an app and one of the features I want is for the user to change the permissions through the settings page by redirecting to the users phones settings.
I am trying to figured out how to do that programmatically. I am wondering if it can be done like the same way as android.intent.action.VIEW
through the preference like I show in the example or is there a different procedure I have to follow.
<Preference android:title="Example">
<intent android:action="android.intent.action.VIEW"
android:data="https://example.com/" />
</Preference>
You can use onSharedPreferenceChanged Listener for this purpose !