@Override
  public void onResume() {
    // TODO Auto-generated method stub
    super.onResume();
    int settingsNetworkMode =
        Settings.Secure.getInt(
            getContentResolver(), Settings.Secure.PREFERRED_NETWORK_MODE, preferredNetworkMode);

    if ((settingsNetworkMode >= 0) && (settingsNetworkMode <= 2)) {
      mNetworkMode.setValue(Integer.toString(settingsNetworkMode));
    }

    if (iTelephony == null) {
      return;
    }

    try {
      boolean Sim1Insert = iTelephony.isSimInsert(Phone.GEMINI_SIM_1);
      boolean Sim1Ready = false;

      if (Sim1Insert == true) {
        Sim1Ready = iTelephony.isRadioOnGemini(Phone.GEMINI_SIM_1);
      }

      mNetworkMode.setEnabled(Sim1Ready);

    } catch (RemoteException e) {
      Xlog.e(TAG, "RemoteException happens......");
    }
  }
 @Override
 public void onResume() {
   super.onResume();
   updateModeSummary();
   updateTemperatureSummary();
   mObserver.register(true);
 }
 @Override
 public void onResume() {
   super.onResume();
   // Refresh internal states in mInputMethodSettingValues to keep the latest
   // "InputMethodInfo"s and "InputMethodSubtype"s
   mInputMethodSettingValues.refreshAllInputMethodAndSubtypes();
   updateInputMethodPreferenceViews();
 }
  @Override
  public void onResume() {
    super.onResume();

    mSettingsObserver.resume();
    mIm.registerInputDeviceListener(this, null);

    if (!mIsOnlyImeSettings) {
      if (mLanguagePref != null) {
        Configuration conf = getResources().getConfiguration();
        String language = conf.locale.getLanguage();
        String localeString;
        // TODO: This is not an accurate way to display the locale, as it is
        // just working around the fact that we support limited dialects
        // and want to pretend that the language is valid for all locales.
        // We need a way to support languages that aren't tied to a particular
        // locale instead of hiding the locale qualifier.
        if (hasOnlyOneLanguageInstance(language, Resources.getSystem().getAssets().getLocales())) {
          localeString = conf.locale.getDisplayLanguage(conf.locale);
        } else {
          localeString = conf.locale.getDisplayName(conf.locale);
        }
        if (localeString.length() > 1) {
          localeString = Character.toUpperCase(localeString.charAt(0)) + localeString.substring(1);
          mLanguagePref.setSummary(localeString);
        }
      }

      updateUserDictionaryPreference(findPreference(KEY_USER_DICTIONARY_SETTINGS));
      if (SHOW_INPUT_METHOD_SWITCHER_SETTINGS) {
        mShowInputMethodSelectorPref.setOnPreferenceChangeListener(this);
      }
    }

    if (mStatusBarImeSwitcher != null) {
      mStatusBarImeSwitcher.setChecked(
          Settings.System.getInt(
                  getActivity().getContentResolver(), Settings.System.STATUS_BAR_IME_SWITCHER, 1)
              != 0);
    }

    // Hard keyboard
    if (!mHardKeyboardPreferenceList.isEmpty()) {
      for (int i = 0; i < sHardKeyboardKeys.length; ++i) {
        CheckBoxPreference chkPref =
            (CheckBoxPreference) mHardKeyboardCategory.findPreference(sHardKeyboardKeys[i]);
        chkPref.setChecked(System.getInt(getContentResolver(), sSystemSettingNames[i], 1) > 0);
      }
    }

    updateInputDevices();

    // IME
    InputMethodAndSubtypeUtil.loadInputMethodSubtypeList(this, getContentResolver(), mImis, null);
    updateActiveInputMethodsSummary();
  }
  @Override
  public void onResume() {
    super.onResume();
    if (mWifiEnabler != null) {
      mWifiEnabler.resume();
    }

    getActivity().registerReceiver(mReceiver, mFilter);
    updateAccessPoints();
  }
  @Override
  public void onResume() {
    super.onResume();

    if (mStatusBarImeSwitcher != null) {
      mStatusBarImeSwitcher.setChecked(
          Settings.System.getInt(getContentResolver(), Settings.System.STATUS_BAR_IME_SWITCHER, 1)
              != 0);
    }
  }
  @Override
  public void onResume() {
    super.onResume();

    getContentResolver()
        .registerContentObserver(
            Settings.System.getUriFor(Settings.System.PIE_GRAVITY), true, mPieTriggerObserver);

    updatePieTriggers();
  }
  @Override
  public void onResume() {
    super.onResume();
    loadInstalledServices();
    updateAllPreferences();

    mSettingsPackageMonitor.register(getActivity(), getActivity().getMainLooper(), false);
    mSettingsContentObserver.register(getContentResolver());
    if (RotationPolicy.isRotationSupported(getActivity())) {
      RotationPolicy.registerRotationPolicyListener(getActivity(), mRotationPolicyListener);
    }
  }
  @Override
  public void onResume() {
    super.onResume();

    // Check KeyStore here, so others do not need to deal with it.
    if (!mKeyStore.isUnlocked()) {
      if (!mUnlocking) {
        // Let us unlock KeyStore. See you later!
        Credentials.getInstance().unlock(getActivity());
      } else {
        // We already tried, but it is still not working!
        finishFragment();
      }
      mUnlocking = !mUnlocking;
      return;
    }

    // Now KeyStore is always unlocked. Reset the flag.
    mUnlocking = false;

    // Currently we are the only user of profiles in KeyStore.
    // Assuming KeyStore and KeyGuard do the right thing, we can
    // safely cache profiles in the memory.
    if (mPreferences.size() == 0) {
      PreferenceGroup group = getPreferenceScreen();

      final Context context = getActivity();
      final List<VpnProfile> profiles = loadVpnProfiles(mKeyStore);
      for (VpnProfile profile : profiles) {
        final VpnPreference pref = new VpnPreference(context, profile);
        pref.setOnPreferenceClickListener(this);
        mPreferences.put(profile.key, pref);
        group.addPreference(pref);
      }
    }

    // Show the dialog if there is one.
    if (mDialog != null) {
      mDialog.setOnDismissListener(this);
      mDialog.show();
    }

    // Start monitoring.
    if (mUpdater == null) {
      mUpdater = new Handler(this);
    }
    mUpdater.sendEmptyMessage(0);

    // Register for context menu. Hmmm, getListView() is hidden?
    registerForContextMenu(getListView());
  }
 public void onResume() {
   super.onResume();
   getContentResolver()
       .registerContentObserver(
           Settings.Global.getUriFor(Settings.Global.NFC_MULTISE_ACTIVE),
           false,
           mActiveCardModeObserver);
   getContentResolver()
       .registerContentObserver(
           Settings.Global.getUriFor(Settings.Global.NFC_MULTISE_LIST),
           false,
           mCardModeListObserver);
   getContentResolver()
       .registerContentObserver(
           Settings.Global.getUriFor(Settings.Global.NFC_MULTISE_IN_TRANSACTION),
           false,
           mCardtransactionObserver);
   getContentResolver()
       .registerContentObserver(
           Settings.Global.getUriFor(Settings.Global.NFC_MULTISE_IN_SWITCHING),
           false,
           mCardSwitchingObserver);
   updatePreferences();
 }
 @Override
 public void onResume() {
   super.onResume();
 }
 @Override
 public void onResume() {
   super.onResume();
   mPrefs.registerOnSharedPreferenceChangeListener(mPreferencesChangeListener);
 }
 @Override
 public void onResume() {
   super.onResume();
   initPreferences();
   refreshWifiInfo();
 }
 @Override
 public void onResume() {
   super.onResume();
   refreshDefault();
 }
 @Override
 public void onResume() {
   super.onResume();
   Settings.System.putInt(getContentResolver(), Settings.System.GESTURE_ANYWHERE_SHOW_TRIGGER, 1);
 }