title: Use Parcelable with an Object with Hashmap
body: <p>I have an arrayList of objects stored in a class that extends intentService. It's instance variables for the object are:</p>
  
  <pre><code>int id;
  String name;
  HashMap&lt;Long, Double&gt; historicFeedData
  </code></pre>
  
  <p>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:</p>
  
  <pre><code>public void writeToParcel(Parcel out, int flags) {
       out.writeInt(id);
       out.writeString(name);
       dest.writeMap(historicFeedData);
   }
  </code></pre>
  
  <p>I am not sure how to read the hashmap back in from the parcel though? <a href="https://stackoverflow.com/questions/9388356/android-parcelable-parcel-hashmap">This question</a> suggested using Bundle but I am unsure what they meant. Any help much appreciated.</p>