title: How to pass an object from one activity to another on Android
body: <p>I am trying to work on sending an object of my <em>customer</em> class from one <code>Activity</code> and displaying it in another <code>Activity</code>.</p>
  <p>The code for the customer class:</p>
  <pre><code>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 = &quot;First Name :&quot; + firstName + &quot; Last Name :&quot; + lastName
          + &quot; Age : &quot; + age + &quot; Address : &quot; + address;
  
          return data;
      }
  }
  </code></pre>
  <p>I want to send its object from one <code>Activity</code> to another and then display the data on the other <code>Activity</code>.</p>
  <p>How can I achieve that?</p>