Quantcast
Channel: Ignite Realtime : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 10742

Asmack - Update current user

$
0
0

Hello guys,

 

I try to update account from current user using asmack (asmack-android-8-4.0.5.jar), but the result is empty. I try it:

 

After connect on openfire server, I register provider:

ConnectionConfiguration connectionConfiguration = new ConnectionConfiguration("localhost", 5222);

XMPPConnection  connection = new XMPPTCPConnection(connectionConfiguration);

 

connection.connect();

ProviderManager.addIQProvider("vCard","vcard-temp", new VCardProvider());

 

 

//Load

VCard vcard = new VCard();

vcard.load(connection);

 

System.out.println(vcard.toXML());

 

It always return empty

 

<iq id='9zBv6-3' type='get'><vCard xmlns='vcard-temp'><FN></FN>

</vCard>

</iq>

 

Can anyone help me?


Viewing all articles
Browse latest Browse all 10742

Trending Articles