title: Pass list of objects from one activity to other activity in android
body: <p>I want to pass a list of objects from one activity from another activity. I have one class <strong>SharedBooking</strong> Below:</p>
  
  <pre><code>public class SharedBooking {
    public int account_id;
    public Double betrag;
    public Double betrag_effected;
    public int taxType;
    public int tax;
    public String postingText;
  }
  </code></pre>
  
  <p>Code from Calling activity:</p>
  
  <pre><code>public List&lt;SharedBooking&gt; SharedBookingList = new ArrayList&lt;SharedBooking&gt;();
  
  public void goDivision(Context context, Double betrag, List&lt;SharedBooking&gt; bookingList) {
    final Intent intent = new Intent(context, Division.class);    
    intent.putExtra(Constants.BETRAG, betrag);        
    intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);  
    context.startActivity(intent);        
  }
  </code></pre>
  
  <p>COde on called activity:</p>
  
  <pre><code>Bundle extras = getIntent().getExtras();
  if (extras != null) {
    amount = extras.getDouble(Constants.BETRAG,0);
  }
  </code></pre>
  
  <p>How can I send the list of SharedBooking from one activity and receive that on other activity?</p>
  
  <p>Please suggest me any usable link or sample code.</p>