Asmack - Update current user

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

Can anyone help me?

Hi!

May be you need login also

connection.login(username, password, resource);

since method “vcard.load(connection);” involve authentication check.