Getting difficulty in passing Object from one Activity to another
<p>I want to pass Object of one activity to another but i am not able to do that.The problem is the eclipse is putting the Object which i want to pass in red clause.This is the code i am using:</p>

<pre><code>    DatabaseHandler1 db1 = new DatabaseHandler1(SecureMessagesActivity.this);
    Intent intent = new Intent(SecureMessagesActivity.this,ShowTheFoldersInSdCard.class);
    intent.putExtra("id",(int)id);
    intent.putExtra("MyClassObject", db1);
</code></pre>

<p>In the last line,it is showing problem in db1.Please help.Thanks in advance.</p>
