i\'ve implemented a Parcelable class:
public class Evento implements Parcelable {
private int;
private String ;
private String imagen;
//more at
Parcelable is much better than serialization in a performance wise and other features.
refer this link:
http://www.3pillarglobal.com/insights/parcelable-vs-java-serialization-in-android-app-development
This code
Bundle informacion= new Bundle();
informacion.putParcelableArrayList("eventos", ArrayList<Eventos> eventos);
intent.putExtras(informacion);
Should be
Bundle informacion = new Bundle();
ArrayList<Eventos> mas = new ArrayList<Eventos>();
informacion.putSerializable("eventos", mas);
intent.putExtras(informacion);
and Make sure your Eventos structure like a serializable object
private class Eventos implements Serializable {
}
Reading Values
ArrayList<Eventos> madd=getIntent().getSerializableExtra(key);