How do you read/write data of Object data type ?
So Parcelable interface is officially recommended way how to pass data via Activities but there is also Serializable interface that provides same solution.
Now maybe many people can disagree with me but i recommend you to use Serializable interface and now you are able in very simple way serialize objects (and also custom objects) through Activities.
All what you need is to use Serializable interface:
public class MyObjectsWrapper implements Serializable {
private Object obj1;
private Object obj2;
private MyCustomObject customObject;
// getters and setters
}
And an usage:
// inserting data to Intent
Intent i = new Intent(context, Target.class);
i.putExtra("key", myObj);
// retrieving
MyObject obj = getIntent().getSerializableExtra("key");
Reason why i recommend Serializable interface is that is much more simplier for implementing and understanding. Parcelable interface requires much more code to write (it's annoying for me) and in the case you have many objects it takes time to implement it and time is money :)