Skip to content

Instantly share code, notes, and snippets.

@Kashif-E
Created Mar 6, 2021
Embed
What would you like to do?
private fun openSettings() {
Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS).apply {
addCategory(Intent.CATEGORY_DEFAULT)
data = Uri.parse("package:$packageName")
}.run(::startActivity)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment