Code example for DialogFragment

Methods: getArguments, onCreate

0
        return f;
    } 
 
    @Override 
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        mAuthFound = false;
        mUrl = getArguments().getString("URL");
        mRedirectParam = getArguments().getString("PARAM");
        mUrlParsed = false;
    } 
 
    @Override 
    public void onCancel(DialogInterface dialog) {
        Log.i(Constants.LOG_TAG, "Oauth dialog dismissed with no authentication");
        if(!mAuthFound){
            notifyAuthenticationFailed(); 
        } 
    } 
 
    @Override