I'm attempting to work at sending an object of my client class from one Activity and show it in another Activity.
public class Customer {
private String firstName, lastName, Address;
int Age;
public Customer(String fname, String lname, int age, String address) {
firstName = fname;
lastName = lname;
Age = age;
Address = address;
}
public String printValues() {
String data = null;
data = "First Name :" + firstName + " Last Name :" + lastName
+ " Age : " + Age + " Address : " + Address;
return data;
}
}
I need to send its object starting with one Activity then onto the next and afterward, show the information on the other Activity.
How can I achieve that?