3
protected void onActivityResult(int reqCode, int resCode, Intent data){
    super.onActivityResult(reqCode, resCode, data);

In the paramters you got requestCode, resultCode and data. But in the error you also get the "who". What is this, and where is it coming from

Cœur
  • 37,241
  • 25
  • 195
  • 267
The Dude
  • 1,088
  • 7
  • 16
  • 30
  • duplicate? http://stackoverflow.com/questions/8373755/java-lang-runtimeexception-failure-delivering-result-resultinfowho-null-reque – zapl Oct 29 '14 at 10:25
  • This is a general question. Yes I'm having issues with it now, but when I'm searching for the error, who=null, always shows up. I would like to know what it is – The Dude Oct 29 '14 at 10:26
  • How can this be a duplicate? Yes there are 100 questions regarding ResultInfo error. I am asking what is the who=null since its not in the onActivityResult() parameters. – The Dude Oct 29 '14 at 10:27

1 Answers1

0

It's the ID of the activity. Often it's null. When your activity code is running, the activity has already been identified an it does not need to be reflected in the method signature.

If you're interested where the id comes from, here's some starting points for backtracing:

  1. ResultInfo that produces the string representation
  2. sendActivityResult() that constructs ResultInfo with an id
  3. startActivityForResult() that calls sendActivityResult with mEmbeddedID
  4. mEmbeddedID initialized in attach()
  5. attach() called by ActivityThread
laalto
  • 150,114
  • 66
  • 286
  • 303