@Override
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    addPreferencesFromResource(R.xml.lcd_density_setup);

    String currentDensity = SystemProperties.get("ro.sf.lcd_density");
    PreferenceScreen prefs = getPreferenceScreen();

    mStockDensity = (ListPreference) findPreference("stock_density");
    mStockDensity.setOnPreferenceChangeListener(this);

    mReboot = findPreference("reboot");
    mClearMarketData = findPreference("clear_market_data");
    mOpenMarket = findPreference("open_market");

    mCustomDensity = (ListPreference) findPreference("lcd_density");
    mCustomDensity.setOnPreferenceChangeListener(this);
  }
 @Override
 public void onPause() {
   super.onPause();
 }
  @Override
  public void onResume() {
    super.onResume();

    mClearMarketData.setSummary("");
  }