List of usage examples for android.content SharedPreferences.OnSharedPreferenceChangeListener interface-usage
From source file com.example.android.sunshine.app.ForecastFragment.java
/** * Encapsulates fetching the forecast and displaying it as a {@link ListView} layout. */ public class ForecastFragment extends Fragment implements LoaderManager.LoaderCallbacks<Cursor>, SharedPreferences.OnSharedPreferenceChangeListener {
From source file com.ofalvai.bpinfo.ui.settings.SettingsActivity.java
/**
* A {@link PreferenceActivity} that presents a set of application settings. On
* handset devices, settings are presented as a single list. On tablets,
* settings are split by category, with category headers shown to the left of
* the list of settings.
* <p>
From source file arun.com.chromer.settings.lookandfeel.LookAndFeelActivity.java
public class LookAndFeelActivity extends AppCompatActivity implements ColorChooserDialog.ColorCallback, Snackable, SharedPreferences.OnSharedPreferenceChangeListener { @BindView(R.id.toolbar) Toolbar toolbar; @BindView(R.id.coordinatorLayout) CoordinatorLayout coordinatorLayout;
From source file net.tjado.passwdsafe.FileListActivity.java
/** * The FileListActivity is the main PasswdSafe activity for file choosing and * top-level options */ public class FileListActivity extends AppCompatActivity implements AboutFragment.Listener, FileListFragment.Listener, FileListNavDrawerFragment.Listener,
From source file com.scto.filerenamer.MainActivity.java
public class MainActivity extends FragmentActivity implements SharedPreferences.OnSharedPreferenceChangeListener, HelpDialogListener, ExitDialogListener, WhatsNewDialogListener { private static final String TAG = MainActivity.class.getSimpleName(); private static SharedPreferences mSharedPreferences;
From source file com.davisosa.structura.activities.base.BaseActivity.java
/** * A base {@link android.app.Activity} that handles common functionality in the app. */ public abstract class BaseActivity extends ActionBarActivity implements SharedPreferences.OnSharedPreferenceChangeListener { /* Symbols for navigation drawer items (indices must correspond to RES_IDS_DRAWER_TITLE).
From source file com.fulltoast.android.sunshine.app.ForecastFragment.java
/** * Encapsulates fetching the forecast and displaying it as a {@link ListView} 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.xengar.android.englishverbs.ui.SettingsActivity.java
/**
* A {@link PreferenceActivity} that presents a set of application settings. On
* handset devices, settings are presented as a single list. On tablets,
* settings are split by category, with category headers shown to the left of
* the list of settings.
* <p>
From source file io.github.runassudo.ptoffline.fragments.SettingsFragment.java
public class SettingsFragment extends PreferenceFragmentCompat implements SharedPreferences.OnSharedPreferenceChangeListener, HomePickerDialogFragment.OnHomeChangedListener { public static final String TAG = "io.github.runassudo.ptoffline.settings"; Preference network_pref;
From source file com.google.android.gms.location.sample.locationupdatesforegroundservice.MainActivity.java
/**
* The only activity in this sample.
*
* Note: for apps running in the background on "O" devices (regardless of the targetSdkVersion),
* location may be computed less frequently than requested when the app is not in the foreground.
* Apps that use a foreground service - which involves displaying a non-dismissable