@Override public void performSync( Context context, Account account, Bundle extras, String authority, ContentProviderClient provider, SyncResult syncResult) { LeadDB lead = new LeadDB(context); OEHelper oe = lead.getOEInstance(); if (oe != null) { if (oe.syncWithServer()) { Intent intent = new Intent(SyncFinishReceiver.SYNC_FINISH); sendBroadcast(intent); } } }