Which method sends a result back to the calling activity?
- putExtra(RESULT)
- returnData()
- setResult(RESULTOK, intent)
- sendBroadcast()
Answer
C) setResult(RESULTOK, intent)
setResult with a result code and data intent, followed by finish().
Computer Science MCQ · More Lab: Multiple Activities and Navigation MCQs · Practise