I am trying to work on sending an object of my customer class from one Activity
and display it in another Activity
.
The code for t
The best way is to have a class (call it Control) in your application that will hold a static variable of type 'Customer' (in your case). Initialize the variable in your Activity A.
For example:
Control.Customer = CustomerClass;
Then go to Activity B and fetch it from Control class. Don't forget to assign a null after using the variable, otherwise memory will be wasted.