Can I get 2 users Contact info at a time
<p>Actually my problem is I want to get 2 gmail users <code>Contacts</code> at a time.I have a code which gets <em>Contact info</em> of only one user.By clicking second user also I am unable to obtain the Contact Info of second user. Can someone help me with this.
Thanks in Advance</p>

<pre><code>Accounts.setOnItemLongClickListener(new OnItemLongClickListener() {
     public boolean onItemLongClick(AdapterView&lt;?&gt; parent, View view, int position, long id) {

        Object ob = (Object) view.getTag();
        if (ob != null) {
            AccountsItem acc = (AccountsItem) view.getTag();
            String name = acc.getName();
            String password = acc.getPass();

            Log.i("username", "_" + name);
            Log.i("password", "_" + password);  

            CreateLIstDialog(position, acc);    
            updateContactList();
        }
        return true;
    }
});

private void setupClient(final String uname, final String upass) {
    Log.i(TAG, "Log_ins" + no_of_logins);
    if (this.xmpp_client == null) {
        this.xmpp_client = new GmailXmppClient(this);

        new Thread(new Runnable() {
            public void run() {
                try {
                    xmpp_client.Login(uname, upass,no_of_logins );
                } catch (XMPPException e) {
                    e.printStackTrace();
                }
            }
        }).start();
}
}
/**
* This function is used to Notify the activity that login operation is
* complete. This function triggers an update in UI to populate the full
* contact list.
*/
public void logInComplete() {
    Log.i(TAG, "Log_ins" + no_of_logins);
    synchronized (this.contactJids) {
    Roster roster = this.xmpp_client.getRoster();
    for (RosterEntry entry : roster.getEntries()) {
        if (entry.getType() == ItemType.to
                || entry.getType() == ItemType.both) {
                this.contactJids.add(entry.getUser());
                this.contactNames.add(entry.getName());

                MyContact con = new MyContact();
                con.setId(entry.getUser());
                con.setName(entry.getName());
                con.setLogName(no_of_logins);

                my_contacts.add(con);

            }
        }
}

m_handler.post(new Runnable() {
        public void run() {
            updateContactList();
        }
    });
    no_of_logins++;
</code></pre>
