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

Getting error with SmackAndroid.init(context)

I am trying to create a room using aSmack muc. I have a connect() method which connects to the xmpp server no problem (below). public void connect() { ConnectionConfiguration connConfig = new ConnectionConfiguration(HOST, …
user3777343
  • 51
  • 1
  • 5
-1
votes
1 answer

when using smack and servlets to connect to facebook chat

using jar files: smack3.3.1.jar, restfb 1.5.4.jar SEVERE: Allocate exception for servlet FriendsListServlet java.lang.ClassNotFoundException: org.jivesoftware.smack.XMPPException at…
user2709752
  • 488
  • 6
  • 26
-1
votes
1 answer

Tigase-XMPP Message Packet with Custom Elements or Attributes

AaaaaaaaaaaaaaaaaaaaaaaaaaAAaaaaaaa
-1
votes
1 answer

Notification using BindServices in android

I am working on chat application using smack in android. I have a question about showing notification. I am displaying a friend list with status to user after logIn in a ListView. Now I want show to user the notification of number of chats of…
-1
votes
5 answers

Why am I getting 'cannot find symbol' error?

The following statement shows an error : Presence p_tester = Presence(Presence.Type.available,"having lunch",1, Presence.Mode.available); The error higlighted by the IDE is : cannot find…
saplingPro
  • 20,769
  • 53
  • 137
  • 195
-1
votes
1 answer

Not able to register a user. How do I do that?

I know nothing about, how to register a user, using smack api . Looking at their documentation and seeing the Registration class. I wrote this code. But I guess this doesn't register the user. Though the code runs fine i.e without an error or…
Suhail Gupta
  • 22,386
  • 64
  • 200
  • 328
-1
votes
2 answers

get VCard Avatar iq packet from server SMACK Android XMPP

I am sending IQ packet to server properly but unable to get IQ packet from server after comparing hash codes IQ iq = new IQ(){ @Override public String getChildElementXML() { // TODO Auto-generated method stub …
Ravikiran
  • 2,413
  • 5
  • 25
  • 30
-1
votes
1 answer

keeps continuously sending packet in Packetlistenr smack

I have Packetlistener in which can show presence changed from different resources. what I want that whenever a presence change from other resource it should resend a received presence packet but only one time. However, it keeps continuously sending…
Qaiser Mehmood
  • 975
  • 6
  • 21
  • 33
-1
votes
1 answer

No Latency time with xmpp (smack - openfire)?

Im trying to communicate with 2 xmpp clients but this is not like messaging or chatting. It's more like event caused at one end and action performed at other (realtime). I wish there will not be any latency time when a Client A is trying to send…
Wesley
  • 1,808
  • 5
  • 31
  • 46
-2
votes
1 answer

Sending and Receiving Emojis in Smack

How can I send and receive Emojis over android application using smack library and OpenFire sever in Chat Application ?
K Guru
  • 1,292
  • 2
  • 17
  • 36
-2
votes
1 answer

How to create xmpp group chat and add members using smack 4.1 in android

In my app, I want to create groups and add users to the groups using smack 4.1. I am able to create group but unable to add user in that groups. My Code for create groups is... create group if (connection != null) { String groupName =…
Aris_choice
  • 392
  • 2
  • 18
-2
votes
1 answer

XMPP Group chat java - logic to join users in room inside invitation listener is not working

I am trying to create sample java application to implement the MultiUserChat of XMPP. Some how I can able to create user and make it online in openfire. Can any one suggest how to join all the users to the created chatRoom? Here is my sample code…
parthiban
  • 115
  • 1
  • 1
  • 9
-2
votes
1 answer

java code to get chat history between two users using smack api from openfire server

I am new to Smack API and i want retrieve chat history b/w 2 users from openfire xmpp server. For this, is it required to add any extra plugin or change of any settings required in open fire? Pls somebody share some sample java code to retrieve chat…
Uma
  • 1
-2
votes
1 answer

What if 5222 port/domain is blocked for Xmpp

I have a java Client(Smack API) connecting Openfire server which listens at port 5222. In one of the deployement scenarios the firewall has blocked 5222(tcp xmpp client communication). Tried using BOSH(Blabber library) , but its not able to handle…
logical
  • 41
  • 1
  • 8
-2
votes
1 answer

update java arraylist changes dynamically in html

I have a array list in java which contains notification messages which will be displayed in a html page. Is there way that when the array list gets updated(i will update this array list from the listeners in smack chat library) the list in html also…
Prakash
  • 693
  • 5
  • 17
1 2 3
98
99