Code example for ListFragment

Methods: onDestroy

0
    registerForContextMenu(getListView());
  } 
 
  @Override 
  public void onDestroy() { 
    super.onDestroy(); 
 
    SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(mParent);
    prefs.unregisterOnSharedPreferenceChangeListener(mChangeListener);
  } 
 
  @Override 
  public void onAttach(Activity activity) {
    super.onAttach(activity);
 
    mParent = (MainActivity) activity;
  } 
 
  public void updateUser(String key, String value, String prefsKey) {
    new UpdateUserTask().execute(key, value, prefsKey);
  }