code: public static void attachTo(Activity activity, boolean finishAfterDialog, Bundle argumentsForErrorDialog) {
          Object executionScope = activity.getClass();
          attachTo(activity, executionScope, finishAfterDialog, argumentsForErrorDialog);
      }
docs: Scope is limited to the activity's class.