Example usage for android.content SharedPreferences.OnSharedPreferenceChangeListener interface-usage

List of usage examples for android.content SharedPreferences.OnSharedPreferenceChangeListener interface-usage

Introduction

In this page you can find the example usage for android.content SharedPreferences.OnSharedPreferenceChangeListener interface-usage.

Usage

From source file it.jaschke.alexandria.fragment.ListFragment.java

/**
 * This fragment will display data for the 'Books list' screen of the app, allowing the user to
 * search for a book taping it's name. The search will be done through the app database.
 * Created by Elorri on 23/01/2016.
 */
public class ListFragment extends Fragment

From source file com.kobi.metalsexchange.app.ExchangeRatesFragment.java

/**T
 * Encapsulates fetching the rates and displaying it as a {@link RecyclerView} layout.
 */
public class ExchangeRatesFragment extends Fragment
        implements LoaderManager.LoaderCallbacks<Cursor>, SharedPreferences.OnSharedPreferenceChangeListener {
    private ExchangeRatesAdapter mExchangeRatesAdapter;

From source file com.google.android.gms.nearby.messages.samples.nearbybackgroundbeacons.MainActivityFragment.java

/**
 * The main fragment for this sample. Exposes functionality to subscribe to broadcasts from nearby
 * beacons using Bluetooth Low Energy (BLE).
 * <p/>
 * Subscribing for messages broadcast by nearby beacons takes place in the background, and it is
 * triggered by calling

From source file in.blogspot.anselmbros.torchie.ui.fragment.SettingsFragment.java

public class SettingsFragment extends Fragment implements SharedPreferences.OnSharedPreferenceChangeListener,
        CompoundButton.OnCheckedChangeListener, RadioGroup.OnCheckedChangeListener, View.OnClickListener {

    View rootView;

    SharedPreferences preferences;

From source file com.cn21.speedtest.service.LogService.java

public class LogService extends Service implements SharedPreferences.OnSharedPreferenceChangeListener {

    public static final String ACTION_ROOT_FAILED = "com.readystatesoftware.ghostlog.ROOT_FAILED";

    private static final String TAG = "LogService";
    private static final int LOG_BUFFER_LIMIT = 2000;

From source file com.ultramegatech.ey.ElementListFragment.java

/**
 * This Fragment displays a sortable filterable list of all the elements. Clicking on an item
 * will launch an ElementDetailsFragment for the selected element.
 *
 * @author Steve Guidetti
 */

From source file de.azapps.mirakel.dashclock.MirakelExtension.java

public class MirakelExtension extends DashClockExtension
        implements SharedPreferences.OnSharedPreferenceChangeListener, MirakelContentObserver.ObserverCallBack {
    private static final String TAG = "MirakelExtension";
    private static int notifId = 0;

    public static void reportError(final Context context, final String title, final String message) {

From source file com.tasomaniac.muzei.earthview.ui.SettingsFragment.java

public class SettingsFragment extends PreferenceFragmentCompat
        implements SharedPreferences.OnSharedPreferenceChangeListener,
        ActivityCompat.OnRequestPermissionsResultCallback, Preference.OnPreferenceClickListener {

    public static final String ACTION_HANDLE_COMMAND = "com.google.android.apps.muzei.api.action.HANDLE_COMMAND";
    public static final String EXTRA_COMMAND_ID = "com.google.android.apps.muzei.api.extra.COMMAND_ID";

From source file com.example.barni.sunshine.ForecastFragment.java

/**
 * Encapsulates fetching the forecast and displaying it as a {@link android.support.v7.widget.RecyclerView} layout.
 */
public class ForecastFragment extends Fragment
        implements LoaderManager.LoaderCallbacks<Cursor>, SharedPreferences.OnSharedPreferenceChangeListener {
    public static final String LOG_TAG = ForecastFragment.class.getSimpleName();

From source file com.sagar.sunshine.ForecastFragment.java

/**
 * Encapsulates fetching the forecast and displaying it as a {@link android.support.v7.widget.RecyclerView} layout.
 */
public class ForecastFragment extends Fragment
        implements LoaderManager.LoaderCallbacks<Cursor>, SharedPreferences.OnSharedPreferenceChangeListener {
    public static final String LOG_TAG = ForecastFragment.class.getSimpleName();