@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);
  }
  @Override
  protected void onPause() {

    // XXX experimentally, we're gonna disable contacts sync so it doesn't
    // interfere with our evil root plans - and here we restore it
    // Account a = new Account(account, ACCOUNT_TYPE);
    // ContentResolver.setSyncAutomatically(a, CONTACTS_AUTHORITY,
    // contactsSyncAuto);
    // ContentResolver.setSyncAutomatically(a, CONTACT_PHOTO_AUTHORITY,
    // contactPhotoSyncAuto);

    thumbMemCache.clear();
    if (contactsLoader != null) contactsLoader.cancel(false);
    for (AsyncTask<?, ?, ?> lt : asyncTasks) lt.cancel(false);
    asyncTasks.clear();
    super.onPause();
  }