Skip to content

Instantly share code, notes, and snippets.

@ymhuang0808
Created February 19, 2014 04:52
Show Gist options
  • Save ymhuang0808/9086234 to your computer and use it in GitHub Desktop.
Save ymhuang0808/9086234 to your computer and use it in GitHub Desktop.
private HashMap<String, Station> mStationMap;
...
@Override
public void onSaveInstanceState(Bundle outState) {
StationHashMap stationHashMap = new StationHashMap();
stationHashMap.setStationMap(mStationMap);
outState.putParcelable(SAVE_INSTANCE_KEY_SATION_MAP, stationHashMap);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment