android pass object contains bitMap to another activity
<p>i am new in android .and i need some help
 i have ArrayList which is an object implements Parciable .and i want to pass this ArrayList to another Activity.
this is my NewsEntity.java</p>

<p>public class NewsEntity implements Parcelable{
    /**
     * 
     */
    private Bitmap bitmap;
    private String title;
    private String brief;
    private String details;
    private String reporter;
    private String ImageFile;
    private String date;
    private String readCount;
    private String shareCount;
    public int addRead_count;
    public int addShare_count;</p>

<pre><code>private static ByteBuffer dst;
private static byte[] bytesar;
public NewsEntity() {
    bitmap=null;
    title="";
    brief="";
    details="";
    reporter="";
    ImageFile="";
    date="";
    readCount="";
    shareCount="";
    addRead_count=0;
    addShare_count=0;
}

public void setTitle(String title) {
    this.title = title;
}
public String getTitle() {
    return title;
}
public void setBrief(String brief) {
    this.brief = brief;
}
public String getBrief() {
    return brief;
}
public void setDetails(String details) {
    this.details = details;
}
public String getDetails() {
    return details;
}
public void setReporter(String reporter) {
    this.reporter = reporter;
}
public String getReporter() {
    return reporter;
}

public void setImageFile(String imageFile) {
    ImageFile = imageFile;
}
public String getImageFile() {
    return ImageFile;
}
public void setDate(String date) {
    this.date = date;
}
public String getDate() {
    return date;
}
public void setReadCount(String readCount) {
    this.readCount = readCount;
}
public String getReadCount() {
    return readCount;
}
public void setShareCount(String shareCount) {
    this.shareCount = shareCount;
}
public String getShareCount() {
    return shareCount;
}

public Bitmap getBitmap() {
        return bitmap;
}

public void setBitmap(Bitmap bitmap) {
        this.bitmap = bitmap;
}

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel out, int flags) {
         try{
             out.writeString(title);
         out.writeString(brief);
         out.writeString(details);
         out.writeString(reporter);
         out.writeString(readCount);
         out.writeString(shareCount);
         out.writeInt(addRead_count);
         out.writeInt(addShare_count);
         out.writeString(date);
         out.writeString(ImageFile);

    }

     public static final Parcelable.Creator&lt;NewsEntity&gt; CREATOR = new Parcelable.Creator&lt;NewsEntity&gt;() {
         //public class MyCreator implements Parcelable.Creator&lt;MyProduct&gt; {    
          public NewsEntity createFromParcel(Parcel in) {
                    return new NewsEntity();
                }

                public NewsEntity[] newArray(int size) {
                    return new NewsEntity[size];
                }
            };
            private NewsEntity(Parcel in) {
                try{
                    title=(String) in.readString();
                 brief=(String) in.readString();
                 details=(String) in.readString();
                 date=(String) in.readString();
                 reporter=(String) in.readString();
                 readCount=(String) in.readString();
                 shareCount=(String) in.readString();
                 ImageFile=(String) in.readString();
                 addRead_count=(Integer) in.readInt();
                 addShare_count=(Integer) in.readInt();
                bitmap=in.readParcelable(Bitmap.class.getClassLoader());

                }
                catch(Exception e){}
               }
</code></pre>

<p>}</p>

<p>and this line which to pass ArrayList with intent
    newsDetailsIntent.putExtra("display", result_news);
   startActivity(newsDetailsIntent);</p>

<p>i need help.how to do it</p>

<p>thanks in advance</p>
