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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T07:36:39+00:00 2026-05-28T07:36:39+00:00

I am trying the basics of setting up XMPP communication between android phones using

  • 0

I am trying the basics of setting up XMPP communication between android phones using aSmack. I have managed to register an account from my app and send messages to a Jabber-ID that I’m logged into on my PC. The issue is replies from my PC client don’t seem to be getting received, the processMessage() in my MessageListener doesn’t seem to be being called.

       try{connection.login("kmomochesstest", "password1");}
       catch(Exception e){Log.e("connection","Account login error: " + e.toString());}
       chat = connection.getChatManager().createChat("chesstestpc@macjabber.de", new MessageListener() {

             public void processMessage(Chat chat, Message message) {
                 try{System.out.println(message.getBody());}
             catch(Exception e){Log.e("connection","Message send error: " + e.toString());}
       });
       try{chat.sendMessage("Test Message from Activity");Log.d("connection","Just sent Message ");}
        catch(Exception e){Log.e("connection","Message send error: " + e.toString());}

At this point I’m trying to print to the console but I’ve tried printing to the Log and just echoing back to my PC with chat.sendMessage(message.getBody()). Nothing seems to register an incoming message. This seems to be the format on every how-to I’ve found online.

  • 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-05-28T07:36:40+00:00Added an answer on May 28, 2026 at 7:36 am

    What version of Smack are you using?

    There was a problem in earlier versions when trying to match messages that did not contain thread ids to existing chats that were created with one (as Smack does). Pidgin, for instance does not use thread id’s, which would in turn create a new chat instance when a message was received.

    The matching process was improved in 3.2 to prevent this from happening.

    Try creating a ChatManagerListener and see if you are getting new Chat’s created from your replies.

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

Sidebar

Related Questions

I'm trying to understand the basics of lambda calculus and Church numerals. I have
I have been trying to grasp the basics of Support Vector Machines, and downloaded
I'm working through the Erlang documentation, trying to understand the basics of setting up
From an earlier post about trying to improve my sites performance I have been
Greetings, everyone. I'm trying to learn some Silverlight basics, and have decided to write
I'm trying to learn the basics of tying up unmanaged C++ and .NET. So,
I'm trying to comprehend ontology basics. Here's an example: car (class) 2009 VW CC
I'm trying to learn jquery, I've some basics of javascript. I've written this piece
I am trying to optimize my program. I think I understand the basics of
I'm trying to do the very basic tutorial on setting up multiple views on

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.