Which method sends a result back to the calling activity?

  1. putExtra(RESULT)
  2. returnData()
  3. setResult(RESULTOK, intent)
  4. 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