@Override protected void onResume() { super.onResume(); contactsLoader = new LoadContactsTask(); contactsLoader.execute(account); // XXX experimentally, we're gonna disable contacts sync so it doesn't // interfere with our evil root plans // Account a = new Account(account, ACCOUNT_TYPE); // contactsSyncAuto = ContentResolver.getSyncAutomatically(a, // CONTACTS_AUTHORITY); // contactPhotoSyncAuto = ContentResolver.getSyncAutomatically(a, // CONTACT_PHOTO_AUTHORITY); // ContentResolver.setSyncAutomatically(a, CONTACTS_AUTHORITY, false); // ContentResolver.setSyncAutomatically(a, CONTACT_PHOTO_AUTHORITY, false); }