I am trying to setResult after the BACK button was pressed. I call in onDestroy
Intent data = new Intent(); setResult(RESULT_OK, data)
But
I refactored my code. Initially I prepared some data and set it as activity result in onDestroy (this did not work). Now I set activity data each time the data to be returned is updated, and have nothing in onDestroy.
activity result
onDestroy
activity