title: How to pass an object to another activity?
body: <p>I need to pass a class object to another activity via intent. Here is my class code:</p>
  
  <pre><code>public class Model
  {
      private String Name;
      private ArrayList&lt;Trim&gt; trim;
  
      public String getName()
      {
          return Name;
      }
  
      public void setName(String Name)
      {
          this.Name = Name;
      }
  
      public ArrayList&lt;Trim&gt; getTrim()
      {
          return trim;
      }
  
      public void setTrim(ArrayList&lt;Trim&gt; trim)
      {
          this.trim = trim;
      }
  }
  </code></pre>