@Override
    public void onPerformSync(final Account account, final Bundle extras,
            final String authority, final ContentProviderClient provider,
            final SyncResult syncResult) {
        cancelCampaign();
        campaign = campaignFactory.create(syncResult);
        campaign.run();
    }
Create sync adapter for context

@param context
app/src/main/java/com/github/pockethub/android/sync/SyncAdapter.java