Code example for AbstractThreadedSyncAdapter

Methods: getSyncAdapterBinder

0
        } 
    } 
 
    @Override 
    public IBinder onBind(Intent intent) {
        return sSyncAdapter.getSyncAdapterBinder();
    } 
     
    public AbstractThreadedSyncAdapter getSyncAdapter(Context context, boolean autoInitialize) {
        return new AbstractThreadedSyncAdapter(context, autoInitialize){
 
            @Override 
            public void onPerformSync(Account account, Bundle extras, String authority,
                                      ContentProviderClient provider, SyncResult syncResult) {
                SyncService.this.onPerformSync(account, extras, authority, provider, syncResult);
            } 
        }; 
    } 
 
    protected void onPerformSync(Account account, Bundle extras, String authority, ContentProviderClient provider, SyncResult syncResult) {
        Cursor cursor = getContentResolver().query(ModelContract.getUri(SyncDataSourceRequestEntity.class), null, null, null, SyncDataSourceRequestEntity.LAST_CHANGED + " ASC");