title: Sending arraylist of objects using serializable
body: <p>I am storing my JSON data into a arraylist of objects, my object class is Venue and I am  passing that data into another activity using serializable from fragment but I am not receiving any values in the actvity. It is receiving the extra. bundle is not null. </p>
  
  <p>My code is:</p>
  
  <p><strong>Fragment:</strong></p>
  
  <pre><code> Intent intent = new Intent(getActivity(), SearchVenueActivity.class);
  
   //pass values
   Bundle bundle = new Bundle();
   bundle.putSerializable("arrayListVenue",arrayListVenue);
   intent.putExtras(bundle);
   startActivity(intent);
  </code></pre>
  
  <p><strong>Activity:</strong></p>
  
  <pre><code>if (getIntent().hasExtra("arrayListVenue")) {
      Bundle bundle = getIntent().getExtras();
      if(bundle!=null)
          rowItems = (ArrayList&lt;Venue&gt;) bundle.getSerializable("arrayListVenue");
      else
          Log.e("null","null");
  }
  </code></pre>
  
  <p><strong>Venue Class:</strong></p>
  
  <pre><code>public class Venue implements Serializable{
  
      String venue_id;
      String venue_name;
      String venue_address;
      String venue_city;
  
      public String getVenue_city() {
          return venue_city;
      }
  
      public void setVenue_city(String venue_city) {
          this.venue_city = venue_city;
      }
  
      public Venue(String venue_id, String venue_name, String venue_address, String venue_city, String venue_zip, String venue_phone, String venue_mobile) {
          this.venue_id = venue_id;
          this.venue_name = venue_name;
          this.venue_address = venue_address;
          this.venue_city = venue_city;
  
          this.venue_zip = venue_zip;
          this.venue_phone = venue_phone;
          this.venue_mobile = venue_mobile;
      }
  
      public String getVenue_id() {
          return venue_id;
      }
  
      public void setVenue_id(String venue_id) {
          this.venue_id = venue_id;
      }
  
      public String getVenue_name() {
          return venue_name;
      }
  
      public void setVenue_name(String venue_name) {
          this.venue_name = venue_name;
      } 
  }
  </code></pre>