How can I send data, using a custom variable type I created, between activities? I have checked and the "putExtra/putExtras" option does not allow me to send my custom made variable, it only allows string/boolean/int/....
Send data between activities with custom variable
491 Views Asked by Roberto Dzija At
2
There are 2 best solutions below
0

you need to serialize your object
intent.putExtra("MyData", data);
getIntent().getSerializableExtra("MyData");
you can see more informations in this post
How to pass an object from one activity to another on Android
Use a Bundle and make your custom variable Serializable.