Question

onActivityResult is not getting called after a child Activity call. I made sure of these:

  1. startActivityForResult is called from parent and NOT startActivity
  2. setResult is called from child along with finish().
  3. No singleInstance launchMode defined in Manifest.

What else could be going wrong?

Was it helpful?

Solution

Wow, quickly went to Documentation and found it.

The requestCode got to be >= 0 for the onActivityResult to be called.

Thanks again.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top