All you need to do is make your Note
Parcelable
like following:
public class Note implements Parcelable {
/**
*
*/
private String name;
public Note(Parcel in) {
super();
this.name = in.readString();
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
@Override
public int describeContents() {
return 0;
}
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeString(this.name);
}
public static final Parcelable.Creator CREATOR = new Creator<Note>() {
@Override
public Note createFromParcel(Parcel source) {
return new Note(source);
}
@Override
public Note[] newArray(int size) {
return new Note[size];
}
};
}
And just put the list of Note in intent
extra.