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 fr.tvbarthel.apps.simpleweatherforcast.MainActivity.java

public class MainActivity extends ActionBarActivity implements SharedPreferences.OnSharedPreferenceChangeListener {

    public static final String EXTRA_PAGE_POSITION = "fr.tvbarthel.apps.simpleweatherforcast.MainActivity.Extra.PagePosition";

    private ViewGroup mRootView;
    private ForecastPagerAdapter mSectionsPagerAdapter;

From source file com.mine.psf.PsfFileBrowserActivity.java

public class PsfFileBrowserActivity extends Activity implements ServiceConnection,
        SharedPreferences.OnSharedPreferenceChangeListener, ActivityCompat.OnRequestPermissionsResultCallback {
    private static final String LOGTAG = "PsfFileBrowserActivity";

    private static final int ID_EXIT = 1;
    private static final int ID_PLAY_ALL = 2;

From source file com.google.android.apps.dashclock.DashClockService.java

/**
 * The primary service for DashClock. This service is in charge of updating widget UI (see {@link
 * #ACTION_UPDATE_WIDGETS}) and updating extension data (see {@link #ACTION_UPDATE_EXTENSIONS}).
 */
public class DashClockService extends Service
        implements ExtensionManager.OnChangeListener, SharedPreferences.OnSharedPreferenceChangeListener {

From source file com.tomer.alwayson.SettingsFragment.java

public class SettingsFragment extends PreferenceFragment implements Preference.OnPreferenceChangeListener,
        Preference.OnPreferenceClickListener, SharedPreferences.OnSharedPreferenceChangeListener, ContextConstatns {

    boolean shouldEnableNotificationsAlerts;
    private View rootView;
    private Prefs prefs;

From source file org.quantumbadger.redreader.activities.MoreCommentsListingActivity.java

public class MoreCommentsListingActivity extends RefreshableActivity
        implements RedditAccountChangeListener, SharedPreferences.OnSharedPreferenceChangeListener,
        OptionsMenuUtility.OptionsMenuCommentsListener, RedditPostView.PostSelectionListener {

    private SharedPreferences sharedPreferences;
    private final ArrayList<RedditURLParser.RedditURL> mUrls = new ArrayList<RedditURLParser.RedditURL>(32);

From source file android_network.hetnet.vpn_service.ActivityLog.java

public class ActivityLog extends AppCompatActivity implements SharedPreferences.OnSharedPreferenceChangeListener {
    private static final String TAG = "NetGuard.Log";

    private boolean running = false;
    private ListView lvLog;
    private AdapterLog adapter;

From source file com.wanikani.androidnotifier.SettingsActivity.java

/**
 * The activity that handles the preferences menu.
 * In addition to the standard behaviour, whenever credentials or notification settings
 * are changed, we send an intent to the {@link DashboardActivity} to trigger refresh and
 * start/stop of the notification service. 
 */

From source file com.adkdevelopment.e_contact.TasksFragment.java

/**
 * Fragment with two adapters to show that I can handle both RecyclerView and ListView.
 * I didn't want to separate it in two different classes as they would've had too many repetitive code
 * Created by karataev on 4/8/16.
 */
public class TasksFragment extends Fragment implements LoaderManager.LoaderCallbacks<Cursor>,

From source file info.androidhive.slidingmenu.Games.WordSearch.wordsearch.view.controller.WordSearchActivityController.java

/**
 * 
 * @author Brendan Dahl
 *
 * controls game logic and sub-control modules for word search activity
 */

From source file com.peptrack.gps.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