Questions tagged [asmack]

Before Smack added native support for Android in Smack 4,1, aSmack was the build environment for using the Smack library on Android, enabling XMPP protocols.

aSmack is a build environment for Smack that uses an existing Smack source to add additional Android specific patches to smack which

  • use the built in XML parser provided by the Android library
  • add support for DNS SRV lookups

Starting with Version 4.1 is able to run without modifications on Android, so aSmack is essentially obsolete.

564 questions
4
votes
1 answer

Reuse asmack connection or recreate it in case of disconnect ( including broken TCP connections) in a safe way?

I'm coding a chat app, and I'm using asmack client library ( thank you Flow for maintain it :) ). The problem is I don't know how to handle disconnects ( normals, that are notified by connection listeners or broken TCP's caused ones ) Let's say I…
adragomir
  • 457
  • 4
  • 16
  • 33
4
votes
4 answers

ReconnectionManager in asmack

I have a project on Android, which needs to use asmack library to enable real time chat. The key feature is reconnecting mechanism, that means my application can reconnect automatically whenever the internet connection loses. Here is my code…
duong_dajgja
  • 4,196
  • 1
  • 38
  • 65
4
votes
1 answer

Not able to send file to group chat openfire

i am creating a rooms in openfire. want to send files in a room so that it can distribute that file to all room occupants. I am done with one to one file transfer by following this post…
Mehul Kaklotar
  • 365
  • 1
  • 19
4
votes
1 answer

Can not receive chat messages in Android using XMPP and aSmack

I am writing a chat client in Android using the XMPP protocol. I have used the asmack.jar as provided by http://asmack.freakempire.de/. The implementation works in plain Java (using smack.jar) which I have tested. But in Android, I can only send…
nkr
  • 118
  • 1
  • 8
4
votes
3 answers

Login exception SASL authentication failed using mechanism DIGEST-MD5 asmack in android

I m try to connect with Xmpp server,But i m getting exception Login exception SASL authentication failed using mechanism DIGEST-MD5 i use this code ,can any one help me,or code try { if (xmppConnection == null) { …
4
votes
3 answers

SMACK: how do I listen for user availability status changes?

How do I subscribe to listen to user availability status changes in SMACK? To get the availability status for a user I use the following: XMPPConnection.getRoster().getPresence(name).isAvailable(); But how can I subscribe so I receive some…
Alexander Kulyakhtin
  • 47,782
  • 38
  • 107
  • 158
4
votes
2 answers

Can't send or receive presence with ASmack

I am trying to develop a XMPP chat client for Android (using Java connected to C#/Unity). I have got the Java -> Unity/C# connection working perfectly. I have also downloaded Asmack and can generate a library and my of wrapper class for initilazing…
Sunkas
  • 9,542
  • 6
  • 62
  • 102
4
votes
2 answers

How do I know if a chat message is recieved by the server?

I'm creating an Instant Messenger application for Android using XMPP. How can I determine whether the messages that I send are received by the server? Or how do I determine if the message has been sent?
oczdref
  • 534
  • 1
  • 6
  • 15
4
votes
1 answer

How to accept buddy request properly in Android smack?

There is a openfire server and Android clients (smack). All clients can add each other to buddy/roster list (without authorization, I want user can see each other without accept buddy request). I have some problems of getting the Presence…
mobile app Beginner
  • 1,651
  • 3
  • 26
  • 40
4
votes
2 answers

Cannot get list of public rooms from xmpp Server on Android?

Hello Everyone i am new to android and i am currently stuck on this. I have to return list of public rooms created on xmpp server. The problem i am having is that the code below works fine for java but there is a null pointer exception in case of…
Sheraz Ahmad Khilji
  • 8,300
  • 9
  • 52
  • 84
3
votes
1 answer

Not getting exact response from vCard using asmack

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
Lalit Poptani
  • 67,150
  • 23
  • 161
  • 242
3
votes
2 answers

Unable to get all user in asmack

I am developing chat app on Android base on asmack lib. I create 1 user and add 3 friend in buddy list. When I use roster to display buddy list. I can't get all user in buddy list, just 1 user only. My code here: public void onCreate(Bundle…
user1078574
  • 123
  • 1
  • 6
3
votes
1 answer

how to listen for vcard changes of any of my roster entries

is there is any way in smack library that make me able to be updated with changes in vcard of any of my contacts I tried roster listener and packets listeners which listen for Iq packets but I couldn't get any thing
Ahmed Aswani
  • 8,271
  • 7
  • 33
  • 54
3
votes
1 answer

Image/binary data not being parsed from XMPP vCard

Please help, I am stuck with this issue. Basically I am getting a AVATAR BASED VCARD i can see that in debug mode, but ASMACK is not parsing image properly. Its just dropping the tag which contains the image value. Logcat shows the XML being…
Programmer
  • 5,360
  • 10
  • 37
  • 61
3
votes
3 answers

Lost messages with aSmack

i'm using aSmack in my Android app to receive messages from my Desktop-Jabber-client. This works fine and even if my android phone is offline (after the connection was closed properly) it will receive the offline messages after the next login. But…
Biggie
  • 7,037
  • 10
  • 33
  • 42