The following code launches the system settings app page. From there, I would have to navigate sub pages to get to Factory reset options.
fun displaySettings() {
startActivity(getIntent())
finish()
}
private fun getIntent(): Intent {
return Intent(Settings.ACTION_SETTINGS)
}
I have a requirement to add a button and onClick would take the user to factory reset page.
In the android settings page, I see actions for various settings pages. Not sure which one launches factory reset intent.
I was wondering if there is an intent to launch factory reset options page directly.