code: public IntentForResult getNextStartedActivityForResult() {
      ActivityThread activityThread = (ActivityThread) RuntimeEnvironment.getActivityThread();
      ShadowInstrumentation shadowInstrumentation = Shadow.extract(activityThread.getInstrumentation());
      return shadowInstrumentation.getNextStartedActivityForResult();
    }
docs: Consumes and returns the next {@code Intent} on the
  started activities for results stack.
  
  @return the next started {@code Intent} for an activity, wrapped in
  an {@link ShadowActivity.IntentForResult} object