Code example for ListPreference

Methods: getValue, setSummary

0
	} 
	 
	@Override 
	protected void onResume(){ 
		super.onResume(); 
		listPref.setSummary("M�sor�js�g let�lt�sekor " + listPref.getValue() + " napot t�rol az adatb�zis.");
		getPreferenceScreen().getSharedPreferences().registerOnSharedPreferenceChangeListener(this);
	} 
	 
	public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) {
		 
		//Log.d(Constants.LOG_MAIN_TAG + localLogTag,"Key: " + key); 
		 
		if (key.equals("daysToDownload")){
			listPref.setSummary("M�sor�js�g let�lt�sekor " + listPref.getValue() + " napot t�rol az adatb�zis.");
		} 
    } 
	 
}