Code example for Intent

Methods: hasExtraputExtra

0
    private static final String EXTRA_WIFI_SHOW_ACTION_BAR = "wifi_show_action_bar";
    private static final String EXTRA_WIFI_SHOW_MENUS = "wifi_show_menus";
 
    @Override 
    public Intent getIntent() {
        Intent modIntent = new Intent(super.getIntent());
        if (!modIntent.hasExtra(EXTRA_SHOW_FRAGMENT)) {
            modIntent.putExtra(EXTRA_SHOW_FRAGMENT, WifiSettings.class.getName());
        } 
        modIntent.putExtra(EXTRA_NO_HEADERS, true);
        return modIntent;
    } 
 
    /** 
     * Almost dead copy of 
     * {@link PreferenceActivity#startWithFragment(String, Bundle, Fragment, int)}, except 
     * this has additional codes for button bar handling. 
     */ 
    @Override 
    public void startWithFragment(String fragmentName, Bundle args,
            Fragment resultTo, int resultRequestCode) {