Code example for PreferenceGroup

Methods: addPreference

0
		if (currentTheme.equals(config)) {
			pref.setChecked();
			mSelectedTheme = pref;
		} 
 
		list.addPreference(pref);	
	} 
	 
    private void fillList() { 
        PreferenceGroup themeList = (PreferenceGroup) findPreference("theme_list");
        themeList.removeAll();
 
        String mSelectedThemeConfig = SystemProperties.get(PROPERTY_THEME_CONFIG, "default");
		 
		//first populate the system default 
		String defaultTitle = null;
		try {		 
		defaultTitle = this.getResources().getString(R.string.default_theme);		
		} catch(Exception e) {		
		defaultTitle = "Default";
		}