fragment/src/main/java/androidx/fragment/app/Fragment.java
public void startActivityForResult(Intent intent, int requestCode, @Nullable Bundle options) {
        if (mHost == null) {
            throw new IllegalStateException("Fragment " + this + " not attached to Activity");
        }
        mHost.onStartActivityFromFragment(this /*fragment*/, intent, requestCode, options);
    }
/**
     * Call {@link Activity#startActivityForResult(Intent, int, Bundle)} from the fragment's
     * containing Activity.
     */
Call  Activity#startActivityForResult(Intent, int, Bundle) from the fragment's
containing Activity.
Call Activity#startActivityForResult ( Intent int Bundle ) from the fragment ' s containing Activity .
public void startActivityForResult(Intent intent, int requestCode, @Nullable Bundle options) {
        if (mHost == null) {
            throw new IllegalStateException("Fragment " + this + " not attached to Activity");
        }
        mHost.onStartActivityFromFragment(this /*fragment*/, intent, requestCode, options);
    }
public void startActivityForResult ( Intent intent , int requestCode , @ Nullable Bundle options ) { if ( mHost == null ) { throw new IllegalStateException ( "Fragment " + this + " not attached to Activity" ) ; } mHost . onStartActivityFromFragment ( this /*fragment*/ , intent , requestCode , options ) ; }
Call {@link Activity#startActivityForResult(Intent, int, Bundle)} from the fragment's
 containing Activity.
Call { @link Activity#startActivityForResult ( Intent int Bundle ) } from the fragment ' s containing Activity .