I have a class that implements Parcelable interface:
class A implements Parcelable {
}
I have another class B that contains an A object as an instance variable. In the writeToPacel inside class B, I want to write object B to the Parcel:
class B implements Parcelable{
public void writeToParcel(Parcel dest, int flags) {
dest.write ???
}
}
How can I write and read it?
if you want to read it use this