Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7713523
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T01:53:50+00:00 2026-06-01T01:53:50+00:00

I am retrieving vCard using asmack library. I am able to retrieve the vCard

  • 0

I am retrieving vCard using asmack library. I am able to retrieve the vCard but the response is not exactly what I require, it only gives response

<iq id="3842p-8" to="lalit3686.android@gmail.com" type="get">
                                <vCard xmlns='vcard-temp'><FN>Lalit Poptani</FN>

The expected response is complete detail/information about the user as shown here

I had tried it as below,

VCard vCard = new VCard();
try {
        ProviderManager.getInstance().addIQProvider("vCard", "vcard-temp",
                                                            new VCardProvider());
        vCard.load(conn, user);
        Log.d("Vcard XML", vCard.toXML());
    } catch (XMPPException e) {
        e.printStackTrace();
    }

I had also tried using this answer configuring everything thats required. So, is there anything that is required further to retrieve the complete xml of user’s vCard?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T01:53:51+00:00Added an answer on June 1, 2026 at 1:53 am

    Try it using regular Smack in a simple Java app (no android) where you can turn on the debug window (-Dsmack.debugEnabled=true) which will give you the raw stanzas being received from the server. This will at least confirm that the stanza’s are correct. If they are not, then you have server problem. I think this is unlikely, since malformed stanzas would typically cause the connection to terminate since the client cannot parse the stream.

    If they are correct, then there is probably a problem in the provider itself. According to the documentation, Smacks’ VCard class is incomplete, so it is possible that the information being returned is simply not in the list of fields that are parsed.

    Knowing the stanza returned would make it easier to verify this.

    asmack is derived from Smack so it should behave the exact same way in this particular case (most all cases actually).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am retrieving a String from SOAP service to asp.net. I am not able
I am retrieving 3 fields from a database, and by default, only the username
Retrieving data from the REST Server works well, but if I want to post
This works great at retrieving the php data for say 15 passes BUT when
I retrieving data from a csv/txt file using oledb driver ConnString = Provider=Microsoft.Jet.OleDb.4.0; Data
I am retrieving emails using the Fetcher plugin for Rails. It is doing a
I am retrieving the environment variables in win32 using GetEnvironmentStrings() . It returns a
I'm retrieving data from a .xls file using oledb and assigning it to a
Here i am retrieving minimum size of a text file inside a directory.But it
I'm retrieving results from mongo based on a geo query using the ruby driver.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.