Back to project page LheidoSMS.
The source code is released under:
GNU General Public License
If you think the Android project LheidoSMS 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 com.lheidosms.preference; /*w w w .j a v a 2s . c om*/ import android.annotation.TargetApi; import android.content.SharedPreferences; import android.os.Build; import android.os.Bundle; import android.support.v4.preference.PreferenceFragment; import com.lheidosms.app.R; /** * Created by lheido on 05/06/14. */ @TargetApi(Build.VERSION_CODES.HONEYCOMB) public class PrefListConversationsFragment extends PreferenceFragment implements SharedPreferences.OnSharedPreferenceChangeListener { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Load the preferences from an XML resource addPreferencesFromResource(R.xml.pref_list_conversations); } @Override public void onResume() { super.onResume(); getPreferenceScreen().getSharedPreferences() .registerOnSharedPreferenceChangeListener(this); } @Override public void onPause() { super.onPause(); getPreferenceScreen().getSharedPreferences() .unregisterOnSharedPreferenceChangeListener(this); } @Override public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String s) { } }