Skip to content

Instantly share code, notes, and snippets.

@rakyll
Created May 5, 2013 15:21
Show Gist options
  • Save rakyll/5521097 to your computer and use it in GitHub Desktop.
Save rakyll/5521097 to your computer and use it in GitHub Desktop.
Ugly but AppdataPreferencesSyncer is a singleton.
AppdataPreferencesSyncer syncer =
AppdataPreferencesSyncer.get(getApplicationContext());
syncer.setPreferences(mPreferences);
syncer.setCredential(credential);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment