Use Parcelable with an Object with Hashmap

view full story

http://stackoverflow.com – I have an arrayList of objects stored in a class that extends intentService. It's instance variables for the object are: int id; String name; HashMap<Long, Double> historicFeedData I want to be able to pass this arrayList back to an Activity. I have read that Parcelable is the way to go when you want to pass objects from a service to an activity. My method for writing to a parcel looks like this: public void writeToParcel(Parcel out, int flags) { out.writeInt(id); out.writeString(name); dest.writeMap(historicFeedData); } I am not sure how to read the hashmap back in (HowTos)