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
6
votes
1 answer

Load Vcards with Smack (Android) in Openfire Server

I am implementing a messaging application with the XMPP protocol and Openfire server on android platform. I need save and load my own Vcard and other users vcard. At the moment, I managed to keep my vCard on the server and can load it again. The…
6
votes
1 answer

How To Create Service In Android Which Makes Persist Xmpp Connection With XMPP Server?

After searching a lot on Internet we have came to one conclusion in order to ensure an persist connection with XMPP server we have to create a service, We have created one which uses Smack library to connect with XMPP server and it is working fine…
Dev
  • 2,250
  • 22
  • 45
6
votes
2 answers

Difference between smack packet listener and message listener

Hi I am creating an android app as a XMPP client to an ejabbered server. But I am really confused because I saw I can send messages as apacket or messages also I can receive messages using PacketListener and MessageListener. Whats the difference…
6
votes
1 answer

how to handle keep alive connection in android Service

I am using asmack for an android IM application, where I am using remote service with AIDL interface. Inside of onStartCommand method of my service I write code as below. I create connection and then login using that. When anyone run my application…
aftab
  • 1,131
  • 8
  • 21
  • 39
6
votes
1 answer

Android Pass Custom Object from Service to activity

I am creating an Instant Messenger for android using asmack. I have started a Chat service which connects to xmpp server. the service connects to xmpp server and i am getting the roster and presence. but now i have to update the UI and pass the…
navraj
  • 85
  • 1
  • 7
5
votes
2 answers

XMPP aSmack MultiUserChat server continues to send already received messages

I'am a new user on stack, but I have a problem with MultiUserChat in aSmack library 3.2.1 for android. I'm using "gtalk.google.com" server. It's a simple example and I'am only one in room: String room="myConference@conference.jabber.org"; …
nizhney
  • 81
  • 1
  • 7
5
votes
7 answers

asmack XMPP new user registration

Good people of StackOverflow, please help. I've set up an ejabberd server on my ubuntu machine, added virtual host, set {access, register, [{allow, all}]}. and registered an admin account. I'm not a linux guru, but I've managed to do this basic…
Милан
  • 195
  • 1
  • 3
  • 9
5
votes
2 answers

(a)Smack returns "service-unavailable (503)" error at login()

I'm trying to implement a simple jabber messenger on Android using asmack library. Here's the code: public boolean login() { if (connection != null && connection.isConnected()) { Log.i("XMPP", connection.getHost()); try …
Ivan Gromov
  • 3,392
  • 6
  • 36
  • 53
5
votes
0 answers

ChatStateListener not working smack

Implementing smack API and now trying to get the Chat status like whether the user is Composing, Paused, etc.. What I have done So far public class IncomingChatListener implements ChatMessageListener, ChatStateListener { @Override …
no one
  • 467
  • 5
  • 18
5
votes
1 answer

Asmack login issue on Android 5.0 and above

I am facing an asmack SSL connection issue on Android 5.0 and above. I think it's related to security. I resolved it by disabling following before…
Jaspreet Chhabra
  • 1,443
  • 15
  • 23
5
votes
0 answers

Unable to receive file using asmack and xmpp

I'm working on file sharing using Asmack and XMPP. I am able to send file but not able to receive file on another device. I did so much of Research and Development, found so many ways tried all of them but haven't got success. Seems I am making any…
Android Rockss
  • 195
  • 2
  • 13
5
votes
2 answers

java.io.EOFException: no more data available - expected end tag to close start tag

I am working on a chat app using xmpp,As per our requirement we have three server Apache Tomcat 7,ejabbered 2.1.11 and mysql 5.5, to run xmppbot on tomcat used below library -Smack-core-4.0.3.jar -smack-tcp-4.0.3.jar -xlightweb2.5.jar …
Dev
  • 2,250
  • 22
  • 45
5
votes
2 answers

aSmack Android documentation and debugging

ASmack library refers to the documentation at http://www.igniterealtime.org/builds/smack/docs/latest/documentation/index.html which I think it is outdated and does not provide accurate info. Examples are the following: - Debugging: …
aselims
  • 1,683
  • 1
  • 15
  • 18
5
votes
3 answers

(a)Smack's IQ.toXml() returns XML without custom child elements

I'm using asmack the latest version (asmack-android-8-source-0.8.3) in a android project and I have the following code: connection.addPacketListener(new PacketListener() { @Override public void processPacket(Packet p) { …
Goran Horia Mihail
  • 3,129
  • 2
  • 23
  • 38
5
votes
1 answer

Presence listener not working in asmack

I am developing a chat application for Android using asmack. The connection is getting established and I'm able to login also. I've added listener for IQ packets and that is working fine. I have added listener for Presence packets also, here is my…
Abhishek
  • 346
  • 5
  • 17
1 2
3
37 38