Creating of multiple instance of the same Activity?
<p>I am creating a chat application &amp; for that purpose i have used TabHost.</p>

<p>In that first tab contains List of Buddies, and as soon as user clicks on any of the buddy </p>

<p>from buddy it should create another tab for that buddy in order to chat.</p>

<p>I am completed up to this but my problem is I am using a single Activity to perform Chat</p>

<p>but It always shows the same activity for each buddy.</p>

<p>Any Help will be highly appreciated. Here is my code,</p>

<pre><code>public void onItemClick(AdapterView&lt;?&gt; arg0, View arg1, int position,   long arg3) 
        {
            RosterEntry entry = List.get(position);

            String userName = entry.getName();

            Intent intent = new Intent().setClass(RosterScreen.this, com.spotonsoft.chatspot.ui.ChatScreen.class);

            TabSpec tabSpec = Home.tabHost.newTabSpec("chat").setIndicator(userName).setContent(intent);

            Home.tabHost.addTab(tabSpec);

        }
</code></pre>

<p>Best Regards,</p>

<p>~Anup</p>
