Questions tagged [smack]

Smack is an XMPP (Jabber) client library written in Java for Android and Java SE. It provides a simple API allowing developers to write clients for XMPP services.

Smack is an Open Source Java library for writing XMPP based clients. It provides access to the core functionality as well as many of the XMPP extensions. Smack supports both standard Java and Android since version 4.1 and obsoletes the fork.

Note: For Linux SMACK (Simplified Mandatory Access Control Kernel) see .

1476 questions
6
votes
2 answers

File transfer using smack in android apps.

This error come in log. from='kutbi1@360degree/Smack' to='akash@360degree/Smack' type='error' id='hK1L6-5'>
Akash Singh
  • 5,171
  • 2
  • 26
  • 55
6
votes
3 answers

Who actually uses a full JID?

When logging in to an XMPP server via smack, I only send the userid/password combination. Do server components actually use the "resource" parameter in a full JID? e.g. ali@someplace/resource What are the benefits of sending it?
Jacques René Mesrine
  • 46,127
  • 27
  • 66
  • 104
6
votes
1 answer

How can we access archive messages into android application from xmpp server

I took a brief overview on xmpp.org website, and read all things related to message archiving(XEP-0136 protocol). After reading all document, still i am not getting exact way to start implementation on that things into my android application. Any…
sumeet
  • 525
  • 2
  • 7
  • 16
6
votes
1 answer

smack- create entry in roster

I know that this question has been asked before, but only a partial response has been given by mschonaker here. On my website, user can add people to their roster, then the buddy has to accept and finally they are connected. The first person (user…
Guillaume
  • 2,912
  • 3
  • 35
  • 59
6
votes
4 answers

How to use smack with Openfire

Hi I am planning to develop a chat client which can connect to gtalk facebook etc...I have decided to use the smack API along with openfire.. But I need little guidance as to how to use it with openfire server.. And does the openfire provide a…
newbie
  • 80
  • 1
  • 1
  • 7
6
votes
1 answer

ejabberd and smack handshake fails

I run ejabberd in my cloud server and I think it is working well because I can connect to it from my PC using pidgin.(ejabberdctl connected-users-number answers 1 when I connect and 0 when I'm offline.) Now I try to connect to if from my android…
user3698465
  • 185
  • 1
  • 10
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
3 answers

Smack throws "NoClassDefFoundError: Failed resolution of: Lorg/jxmpp/util/XmppStringUtils"

I got a problem with my app in which I want to create a simple XMPP client that connects to my server. I got the following problem when I'm starting the app (compilation runs through without problems), but my app closes instantly. …
Marco Reisacher
  • 85
  • 1
  • 13
6
votes
1 answer

How to put Custom fields to XMPP vCard Android/SMACK

I am currently developing a chat application and I am using the following Vcard to store User information. public void run() { VCard vcard = new…
Kishath
  • 5,560
  • 4
  • 17
  • 22
6
votes
2 answers

How to retrieve sender name or its JID in multi user chat message with Smack?

i am working on chat app based on XMPP in Android. i have done one to one chat functionality, but having some problem in multi user chat. i have successfully created new chat room, multiple users can join that room. i have also written code for…
Yograj Shinde
  • 839
  • 12
  • 23
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
5 answers

Unable to get presence of roster by using smack, openfire

I am new to smack API. I am trying to develop a chat application where I was trying for setting and getting the presence. When I change the presence of a user, its working perfectly fine and it is getting reflected in the Openfire Server. But when I…
Le Hoang Long
  • 61
  • 1
  • 1
  • 3
6
votes
0 answers

Openfire: Create MUC Room with custom fields

First of all, I'd like to provide some background information: I want to exchange unstructured data between various clients using XMPP. Data sources are supposed to publish their data simply to Mulit-User-Chat rooms (XEP-0045) so that any interested…
cmdaltent
  • 337
  • 2
  • 7
6
votes
1 answer

Android Push Notification from device to other devices

I have been trying to learn android programming following Ravi Tamada's tutorials - AndroidHive for weeks now. I created an app that performs Create, Read, Update and Delete actions (CRUD). Similar to this . Now, what I want in my app is to have…
6
votes
0 answers

During File Transfer using smack in android: java.util.concurrent.ExecutionException: no response from Client

public void ReceiveFile() { ServiceDiscoveryManager sdm = ServiceDiscoveryManager.getInstanceFor(connection); if (sdm == null) { sdm = new ServiceDiscoveryManager(connection); Log.e("service…
Nitish Singla
  • 171
  • 1
  • 8