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