daily pastebin goal
7%
SHARE
TWEET

Untitled

a guest Jan 12th, 2018 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         // listen for settings changes
  2.         ContentResolver resolver = mContext.getContentResolver();
  3.         Cursor settingsCursor = resolver.query(Settings.Secure.CONTENT_URI, null,
  4.                 "(" + Settings.System.NAME + "=?)",
  5.                 new String[]{Settings.Secure.LOCATION_PROVIDERS_ALLOWED},
  6.                 null);
  7.         mSettings = new ContentQueryMap(settingsCursor, Settings.System.NAME, true, mLocationHandler);
  8.         SettingsObserver settingsObserver = new SettingsObserver();
  9.         mSettings.addObserver(settingsObserver);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top