Quantcast
Channel: Ignite Realtime : Unanswered Discussions - Support
Viewing all articles
Browse latest Browse all 4979

No VCard for user@host.com

$
0
0

I am trying to get a VCard but my logcat tells me "No VCard for usertofind@myhost.com"

 

Can somebody help me? I am using the asmack-android-19-0.8.10.jar library.

 

This is the code I am using:

 

 

public HashMap getVCard(String user) {          Log.d(TAG, "getVCard");                    VCard card = new VCard();                    try {               card.load(Connection, user);                              String jabber_id = card.getJabberId();               String firstname = card.getFirstName();               String middlename = card.getMiddleName();               String lastname = card.getLastName();                              HashMap vcard = new HashMap();                              vcard.put("jabber_id", jabber_id);               vcard.put("firstname", firstname);               vcard.put("middlename", middlename);               vcard.put("lastname", lastname);                              return vcard;          } catch (XMPPException e) {               e.printStackTrace();          }                    return null;     }

Viewing all articles
Browse latest Browse all 4979

Trending Articles