I am trying to setResult after the BACK button was pressed. I call in onDestroy
Intent data = new Intent(); setResult(RESULT_OK, data)
But
onDestroy is too late in the chain — instead override onPause and check isFinishing() to check if your activity is at the end of its lifecycle.
onDestroy
onPause
isFinishing()