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.

566 questions
166
votes
7 answers

Android and XMPP: Currently available solutions

Which XMPP library would be the best choice nowadays for Android development? I've been using the patched Smack library as is suggested in many other questions here in SO. However, that's a patched version of the Smack API from two years ago.…
alkar
  • 5,288
  • 7
  • 25
  • 43
26
votes
3 answers

No response from remote client: error during file transfer using asmack

I have a problem while receiving file using asmack. Here I paste error and packets that I sent and receive log // error 04-21 19:21:05.109: WARN/System.err(7401): Error in execution: 04-21 19:21:05.109: WARN/System.err(7401): -- caused by:…
Kutbi
  • 1,008
  • 2
  • 16
  • 30
20
votes
3 answers

Integrating Smack with Android Studio project for chat application

I am trying to implement a chat messenger using ejabberd server and smack library but having a hard time to integrate all the jars and dependencies of smack. I am using android Studio. My build.gradle(module): apply plugin:…
no one
  • 467
  • 5
  • 18
19
votes
3 answers

Enable Stream Management asmack android

I am facing an issue with using XEP-0198 stream management. Basically, I want to enable this for message dropping issue on Android when internet disconect randomly and server still has client presence online. To solve this issue I want to use…
Akhil Dad
  • 1,728
  • 19
  • 33
19
votes
0 answers

WhatsApp like group chat in android using xmpp and asmack

I am developing a clone of WhatsApp for which i need to implement group chat like in WhatsApp. i am using Openfire as a server and Asmack on android end. Now i have implemented group chat following this guide but this is no way like WhatsApp. Users…
Talha Mir
  • 1,126
  • 10
  • 19
18
votes
5 answers

XMPP aSmack - How can I get the current user state (offline/online/away/etc.)?

I am new to xmpp/asmack in android. Can anyone please help me in getting the presence of the user's friends ( roster list) I am using this : Presence availability = roster.getPresence(user); Mode userMode = availability.getMode(); What else should…
samsad
  • 1,326
  • 1
  • 10
  • 15
16
votes
6 answers

How to get timestamp of incoming xmpp message?

I am using aSmack library to communicate with remote xmpp server. I am able to send/receive messages, but I want to get timestamp of incoming message. Could you tell me please, is it possible at all? Because I can't find anything about this…
Infernus
  • 287
  • 1
  • 4
  • 10
15
votes
5 answers

XMPP messages lost on Android while switching data connectivity (e.g. turning Wifi of, GSM <-> Wifi switch)

I'm developing a chat application in android. Using XMPP server. PHP server has been migrated to ejabber. My notification works properly in all scenarios. But in one case I am losing the XMPP messages. In fact I am not getting notifications. In…
Alpan
  • 518
  • 1
  • 6
  • 20
13
votes
4 answers

What is the difference between Smack and aSmack?

I am not able to use Smack on Android whereas aSmack works perfectly? When compared the source code it looks somewhat similar, where does the difference comes from? What is the difference between Smack and aSmack?
SPB
  • 3,552
  • 15
  • 42
  • 58
13
votes
5 answers

SASLError using PLAIN: not-authorized

I am trying to shift my app from aSmack to Smack 4.1.1. However I am having trouble using the same server and login details in the case of Smack while on aSmack it is working excellently. Here's my old code of login in aSmack - void…
noob
  • 17,131
  • 18
  • 103
  • 168
12
votes
2 answers

Can't create a multi user chat (MUC) room with aSmack library for Android: "packet.DefaultPacketExtension cannot be cast to packet.MUCUser"

For an application I need to be able to create a multi user chatroom and join it. The chat server is a openfire server. I used to have: MultiUserChat chat = new MultiUserChat(connection, roomName +…
Stephan Celis
  • 2,266
  • 4
  • 20
  • 37
10
votes
3 answers

XMPP Connection with Smack 4.1 on Android Studio

I am trying to do an XMPP Connection with Smack 4.1.0 rc1 from https://github.com/igniterealtime/Smack I followed this guide: https://github.com/igniterealtime/Smack/wiki/Smack-4.1-Readme-and-Upgrade-Guide importing the Gradle. Source code: package…
kobbycoder
  • 652
  • 2
  • 9
  • 33
10
votes
3 answers

How to implement message read status like whatsapp blue tick mark?

I am developing one application in that chatting is one module, for chatting i am using xmpp. when i am sending message i am getting that message delivery status using…
NareshRavva
  • 704
  • 2
  • 17
  • 44
10
votes
3 answers

How to get Openfire chat history on Android device with aSmack?

I am developing a chatting application, where user will chats with one of the domain expert's group member. user uses my android app and domain expert uses spark web for chatting. I made Openfire setup and Spark web setup and developed Android…
Ganesh K
  • 2,435
  • 6
  • 43
  • 72
9
votes
2 answers

how to get user online or offline in asmack, android

Possible Duplicate: XMPP aSmack - How can I get the current user state (offline/online/away/etc.)? I am developing chat app on Android base on asmack lib. I display all the user on the ListView but I use an image to show online/offline user. But…
user1078574
  • 123
  • 1
  • 5
1
2 3
37 38