AnsweredAssumed Answered

I cannot obtain profile picture from GoogleTalk using smack API

Question asked by bogdan.chende on Aug 2, 2012
Latest reply on Aug 3, 2012 by bogdan.chende

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?

Outcomes