I have a class like:
Class persona implements Serializable {
int age;
String name;
}
And my first Activity fill an array:
persona[] p;
Then, I need this info in another Activity. How I can send it?
I try to make:
Bundle b = new Bundle();
b.putSerializable("persona", p);
But I Can’t.
AFAIK the is no method that put a serializable array into bundle any way here is a solution to use that uses parcel
change you class to this
then you can send the array like this
btw using Parcelable instead of Serializable is more efficient in Android