title: how to serialize manually a class?
body: <p>I want to serialize my class. I have this code :</p>
  
  <pre><code>public class Video implements Serializable{
  public long videoId;
  public String title;
  public String publisher;
  public String language;
  public Date lastModified;
  public Date published;
  public String imageUrl;
  public String url;
  public Bitmap myVideoScreenshotBm;
  //public Drawable myVideoScreenshotDrawable;
  
  public CedemoVideo (long newVideoId) {
      this.videoId=newVideoId;
  }
  </code></pre>
  
  <p>}</p>
  
  <p>As far I have check i'm getting a NotSerializableException because of the Bitmap variable.</p>
  
  <p>I apparently need to implement :</p>
  
  <pre><code> private void writeObject(java.io.ObjectOutputStream out) throws IOException
  
  private void readObject(java.io.ObjectInputStream in) throws IOException, ClassNotFoundException
  </code></pre>
  
  <p>Anyone know what I should do in these function ?? How should I write my Bitmap variable ?Any code examples ? anyone did it ?</p>