title: How can I fix the error saying DeferFlushOpWorker: Timed out waiting for ops to flush? Android
body: <p>Running my android application, I get the error mentioned above and then the phone I'm debugging on becomes unresponsive until I force restart it.  The code that's causing the error to occur is in this class: </p>
  
  <pre><code>public class BitmapSerializable implements Serializable 
  {
  
  /**
   * 
   */
  private static final long serialVersionUID = 6855267020377781806L;
  
  private transient Bitmap image;
  private byte[] imageByteArray;
  
  public BitmapSerializable()
  {
  
  }
  
  public BitmapSerializable(Bitmap bmp)
  {
      setImage(bmp);
  }
  
  public Bitmap getImage() {
      if (imageByteArray == null)
      {
          return null;
      }
      image = BitmapFactory.decodeByteArray(imageByteArray, 0, imageByteArray.length);
      return image;
  }
  
  public void setImage(Bitmap image) {
      this.image = image;
      ByteArrayOutputStream baos = new ByteArrayOutputStream();
      image.compress(Bitmap.CompressFormat.PNG, 100, baos);
      imageByteArray = baos.toByteArray();
  }
  
   }
  </code></pre>
  
  <p>The error is thrown when I serialize this object, read it back in, and then call the getImage() method.  Can anyone help?</p>