open application setting

PHOTO EMBED

Tue Dec 29 2020 18:23:55 GMT+0000 (Coordinated Universal Time)

Saved by @swalia ##kotlin,#java,#android

try {
  	//open application settings
  	val intent = Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS)
  	val uri = Uri.fromParts("package",packageName, null)
  	intent.data = uri
  	startActivity(intent)
}catch (e:IOException){
  	e.printStackTrace()
}
content_copyCOPY