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 7888125
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T05:45:18+00:00 2026-06-03T05:45:18+00:00

I am currently working on an Android Application in which XMPP is used for

  • 0

I am currently working on an Android Application in which XMPP is used for communication between users. Now I need to add a function for importing friends from Facebook or the phone contact-list.
Does anyone know how this might be accomplished (that is, if all contacts are available, how to find out which ones are using my application and what their JID is)?

If everyone registers their account with the same email they use on Facebook and you could add friends through their email rather than their JID I can see how it could be done, but it seems like bot a stupid assumption to make, and as far as I know, you can’t add a user with only their email.

I am using asmack and an Openfire server.

  • 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-03T05:45:19+00:00Added an answer on June 3, 2026 at 5:45 am

    There is no standard way to deduce an XMPP address from an email address.

    Some services allow the same address to be used for email and XMPP – such as gmail.com. One way to detect whether a given domain has XMPP support is to check for the presence of SRV records, a hackier way is to check whether it is listening on port 5222/5269.

    Still, even given an email address and knowing the email host also serves XMPP does not guarantee that user1@example.com is the same user for email and XMPP. Don’t ask me why it ever wouldn’t be, but you can’t make the assumption.

    You say that you only need to check for other users of your application. You could store your own database mapping email addresses of accounts to JIDs. I agree with you that this isn’t ideal – but that is exactly how most services that do this work. Including Facebook, except they have a lot more data than just your email address…).

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

Sidebar

Related Questions

I am new to android development. Currently i am working on an application which
I am currently working on one android application which has C2DM implementation and I
I am currently working on an Android tablet application which has two fragments, a
I am a new android developer. Currently I am working on an application which
I am currently working on an Android application which has an order form. I
Can anybody tell about the asynctask used in android application. Currently I am working
I'm currently working on a Account Management Activity for my Android application and I'm
I'm currently working on an Android application. I wish to have a GridView on
I'm currently working on a Wrapper for Android, Which wraps an android apk with
I've made an Android application which contains most used German words and sentences. The

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.