<onBackPressed() not called / Android> I am testin...
# stackoverflow
u
onBackPressed() not called / Android I am testing a tiny Android App where I need to perform some action when a back button is pressed. I have prepared the following function in Kotlin: override fun onBackPressed() { super.onBackPressed() println("onBackPressed CALLED") } I must be missing some detail, because the function is never called. I expect it to be called when the back button is pressed. Any comment from a second eye may be helpful.