Skip to content

Instantly share code, notes, and snippets.

@yusufceylan
Created September 8, 2020 10:34
Show Gist options
  • Save yusufceylan/cc18b823b6fa2d9dc7ab296e973b5e3e to your computer and use it in GitHub Desktop.
Save yusufceylan/cc18b823b6fa2d9dc7ab296e973b5e3e to your computer and use it in GitHub Desktop.
ActivityResult
override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
super.onActivityResult(requestCode, resultCode, data)
if (requestCode == REQUEST_CHECK_SETTINGS) {
when (resultCode) {
Activity.RESULT_OK -> {
LogUtils.d("User confirm to access location")
}
Activity.RESULT_CANCELED -> {
LogUtils.d("User denied to access location")
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment