Created
June 14, 2013 05:50
-
-
Save lyaotian/5779738 to your computer and use it in GitHub Desktop.
Smack VCard usage
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| VCard vCard = new VCard(); | |
| SmackConfiguration.setPacketReplyTimeout(300000); | |
| ProviderManager.getInstance().addIQProvider("vCard", "vcard-temp", new VCardProvider()); | |
| vCard.load(connection, user_mail_id); | |
| Log.d("Vcard XML", vCard.toXML()); // complete VCard information | |
| byte[] bs = vCard.getAvatar(); // Avtar in byte array convert it to Bitmap |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment