Intent not returned


#1

For some reason, onActivityResult always gets null onActivityResult, i.e. the variable data that I am expecting to be an intent returned from CheatActivity is always coming back null. It is being set in CheatActivity, but it is not returning to QuizActivity. I’m not even sure how to chase it any further. What should I try, or do you possibly know what I have done wrong. Thanks


#2

Of course, as soon as I posted the question, I found the bug. In CheatActivity I called:
setResult(RESULT_OK);
instead of:
setResult(RESULT_OK, data);

Bug fixed.