Java Code Examples for android.content.AbstractThreadedSyncAdapter

The following are top voted examples for showing how to use android.content.AbstractThreadedSyncAdapter. These examples are extracted from open source projects. You can vote up the examples you like and your votes will be used in our system to generate more good examples.
Example 1
Project: android_xcore   File: SyncService.java   View source code 5 votes vote down vote up
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);
        }
    };
}
 
Example 2
Project: pedefacil   File: MCXApplication.java   View source code 4 votes vote down vote up
public void inject(AbstractThreadedSyncAdapter fragment) {
    getObjectGraph().inject(fragment);
}
 
Example 3
Project: YourAppIdea   File: MCXApplication.java   View source code 4 votes vote down vote up
public void inject(AbstractThreadedSyncAdapter fragment) {
    getObjectGraph().inject(fragment);
}