Skip to content
This repository has been archived by the owner on Jun 23, 2022. It is now read-only.

Android M Sync adapter issues #278

Open
pareshchouhan opened this issue Aug 23, 2016 · 0 comments
Open

Android M Sync adapter issues #278

pareshchouhan opened this issue Aug 23, 2016 · 0 comments

Comments

@pareshchouhan
Copy link

As of Android M (probably 21+) the SyncAdapter doesn't sync automatically
need to set it to sync via code by setting syncable to true, do this in SyncAdapter in the function onAccountCreated

            ContentResolver.setIsSyncable(newAccount, context.getString(R.string
                    .content_authority), 1);
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant