Skip to content

Instantly share code, notes, and snippets.

@briangriffey
Created August 4, 2014 03:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save briangriffey/941266dfcb8f2c1700f1 to your computer and use it in GitHub Desktop.
Save briangriffey/941266dfcb8f2c1700f1 to your computer and use it in GitHub Desktop.
sync cocktail
ContentResolver.setIsSyncable(account, StubProvider.AUTHORITY, 1);
ContentResolver.setSyncAutomatically(account, StubProvider.AUTHORITY, true);
ContentResolver.addPeriodicSync(account, StubProvider.AUTHORITY, new Bundle(), AbstractSyncableResource.SYNC_TIME);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment