Back to project page KalSMS.
The source code is released under:
Copyright (C) 2011 by Nir Yariv Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Softw...
If you think the Android project KalSMS listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package kalsms.niryariv.itp; /*from w ww . j a v a 2s . c om*/ import kalsms.niryariv.itp.R; import android.content.SharedPreferences; import android.os.Bundle; import android.preference.EditTextPreference; import android.preference.Preference; import android.preference.PreferenceActivity; import android.util.Log; public class Prefs extends PreferenceActivity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); addPreferencesFromResource(R.xml.prefs); } public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) { Preference pref = findPreference(key); if (pref instanceof EditTextPreference) { EditTextPreference textPref = (EditTextPreference) pref; pref.setSummary(textPref.getSummary()); Log.d("KALSMS", "textPref.getSummary(): " + textPref.getSummary()); } } }