title: how to pass an object containing with drawable parameter to another activity through intent using Parcelable Interface In android
body: <p>I want to pass an object containing a drawable field using Parcelable Inteface to another Activity. But problem is, in 
  <code>public void writeToParcel(Parcel parcel, int flags)</code> overridden  method in class(whose object has to send), I can't have "parcel.writeDrawable" kind of method. So other fields I'm able to pass, but not Drawable. 
  I have added the following methods in my class after implementing Parcelable Interface. </p>
  
  <pre><code>public static final Parcelable.Creator&lt;ImageInfo&gt; CREATOR = new Parcelable.Creator&lt;ImageInfo&gt;() {
  
      public ImageInfo createFromParcel(Parcel source) {
          return new ImageInfo(source);
      }
  
      public ImageInfo[] newArray(int size) {
          return new ImageInfo[size];
      }
  };
  
  public int describeContents() {
      return 1;
  }
  
  public void writeToParcel(Parcel parcel, int flags) {
      parcel.writeString(name);   
      parcel.writeString(price);
      parcel.writeString(urlOfImage);
  }
  </code></pre>
  
  <p>and using following code I'm putting my object in intent</p>
  
  <pre><code>Bundle b = new Bundle();
  b.putParcelable("parse", imageInfo);
  intentTrackIntHome.putExtras(b);
  </code></pre>
  
  <p>So what I have to do to pass that drawable field.</p>
  
  <p>I know I can use shared Preferences, sd card, global application class, static fields; but I don't want to use it. Because in future my code can change, so I want robust code.</p>