I believe the case should be testing that at this point, the RuntimeClient's onActivityResult should been called and called correctly? I don't quite understand what you are doing in the following code, especially why you are invoking the RuntimeView's onActivityResult explicitly here, suppose it should been invoked automatically when the secondActivity finished? Can you explain that?