Hello,
I try to send my own object to another activity class by using intent.putExtra("ownObject", ownObject);
OwnObject class looks like this:
public class OwnObject implements Serializable
{
private static final long serialVersionUID = 1L;
protected int member1= -1;
protected int member2= -1;
....
}
I send my intent like this:
Intent intent = new Intent(this,Screen2.class);
intent.putExtra("ownObject", ownObject);
startActivity(intent);
in screen2 I want to read the data using Bundle extras = getIntent().getExtras();
If I use for example intent.putExtra("int", new Integer(1234)); it works
What am I doing wrong?
Thanks


