I wannt to get my profile picture using VCards, but I cannot obtain any info, not only the avatar, I cannot obtain anything about my profile. My code is the fallowing:
VCard vCard = new VCard();
SmackConfiguration.setPacketReplyTimeout(300000);
ProviderManager.getInstance().addIQProvider(“vCard”, “vcard-temp”,
new VCardProvider());
try {
vCard.load(connection,"username@gmail.com");
} catch (XMPPException e) {
e.printStackTrace();
}
byte[] bs = vCard.getAvatar(); // Avatar in byte array convert it to Bitmap
Does someone know why or did someone encounted the same problem?