@Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { CMBLApplication.getInstance().addChooseCar(this); PreferenceHelper.write(this, "ChooseCar", "carSeries", listData.get(position).getName()); showActivity(this, ChooseTypeActivity.class); }
@Override protected void onResume() { super.onResume(); CMBLApplication.getInstance().removeChooseCar(this); PreferenceHelper.remove(this, "ChooseCar", "carSeries"); }