powered by Jive Software

Cannot get information from my VCard with ASMACK library

Hi everyon. I am running into an issue when I want to get informations from my VCards.Indeed I am using the following functions to do so but I always recieve null results from them:

mVCard.getPhoneHome(“VOICE”)

or

mVCard.getFirstName()

with mVCard my user’s VCard.

But when I print my VCard in the debbuger I get this:

pedro Domingo

French

Domingo pedro

French

0665********

Here I can see that my informations are loaded properly but I cannot get them back with the asmack functions…

I tryed to add the folowing line before loading my VCard

ProviderManager.getInstance().addIQProvider("vCard ", “vcard-temp”, new org.jivesoftware.smackx.provider.VCardProvider());

But the problem remain…Any clue about how I could resolve it?

Thanks everyone