سؤال

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?

هل كانت مفيدة؟

المحلول

Wow, quickly went to Documentation and found it.

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

Thanks again.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top