Skip to content

Instantly share code, notes, and snippets.

@ymhuang0808
Created February 19, 2014 04:52
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
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