sending an arraylist back to the parent activity
<p>i am trying to pass an arraylist back to my parent activity</p>

<p>Here is the simple code.</p>

<pre><code>private ArrayList&lt;Receipt&gt; receipts = new ArrayList&lt;Receipt&gt;();


 Intent data = new Intent();
 data. // what to do here?
setResult(RESULT_OK, data); 

//************************************
</code></pre>

<p>This is basic receipt Class</p>

<pre><code>public class Receipt {


    public String referenceNo;
    public byte[]   image;
    public String comments;
    public Date   createdOn;
    public Date   updatedOn;
</code></pre>

<p>Tell me how can i add it in my intent and how can i retrieve it back in parent activity from </p>

<pre><code>onActivityResult(final int requestCode, int resultCode, final Intent data)
</code></pre>
