how to pass a user defined object from one activity to another
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/2736389/how-to-pass-object-from-one-activity-to-another-in-android">How to pass object from one activity to another in Android</a>  </p>
</blockquote>



<p>I want to pass a user defined class object from one <code>Activity</code> to another. I know the way we pass a <code>String</code> to other <code>Activity</code>:</p>

<pre><code>Intent in=new Intent(LoginActivity.this,WebserviceClient.class);
in.putExtra("res", "abc");
startActivityForResult(in, 0);
</code></pre>

<p>and how to extract it on the other side:</p>

<pre><code>Intent i = getIntent();
res = i.getStringExtra("res");
</code></pre>

<p>But I want to know how to do this for both sides for a user defined object?</p>
