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
5
votes
3 answers

Connect to GTalk server (XMPP, Smack) using an authToken

I'm writing a chat app which is connecting to a XMPP server, and if the user chooses, I want to give them the option to connect to their google chat account, without having to enter the credentials... I used google's javascript api to popout the…
imVJ
  • 424
  • 4
  • 16
5
votes
2 answers

How to handle add request in smack API

I use Smack API to write my Google talk Client . Now i need to handle add request for this . I set SubscriptionMode to manual & now I have to registering a listener for presence packets but i don't know how !! can any body help ?
Ebrahim
5
votes
4 answers

Could not connect to the XMPP server via smack: No response from server

I'm stuck with this problem and I can not solve it. Code: ConnectionConfiguration config = new ConnectionConfiguration(host, port); config.setDebuggerEnabled(true); config.setSASLAuthenticationEnabled(true); …
Dmitry Zagorulkin
  • 8,370
  • 4
  • 37
  • 60
5
votes
1 answer

Android ADD FRIEND using Smack

I am new to the use of smack library and making one chatting application. I have made upto much extent and at this step i want to ask two questions. when i add a friend the friend got added in my list but there is not any notification sent to the…
Gaurav Arora
  • 8,282
  • 21
  • 88
  • 143
5
votes
1 answer

issue in Registration using asmack library and open fire as server

Hi i got error in Registration using asmack library . code of Registration Log.d(TAG, "creating new server account..."); AccountManager am = new AccountManager(connection); Log.i("Registration…
nitin tyagi
  • 1,176
  • 1
  • 19
  • 52
5
votes
2 answers

Smack "No Response From Server". Not sure why am i getting this error

I have an openfire server setted up on my local machine. I am trying to connect this server, but getting "No response from server" error. Not sure why? I have spark client on the same machine that is getting connected to the server successfully. Can…
Prals
  • 606
  • 3
  • 7
  • 22
4
votes
0 answers

File Transfer XMPP using smack api (receive listener doesnt get request)

Hi i m trying to send file. But it doesnt start transfer file. on examining i found that the receiver listener is not getting request from sender. Here is sender code:(ruff gui codes.. only look at the filetransfer thingy)import java.awt.Color;…
Bhupinder
  • 1,329
  • 1
  • 14
  • 29
4
votes
1 answer

Smack on Android, getting error code="404" remote-server-not-found while sending packets/message between two users via local Openfire server

I was glad to implement smack on android via local Openfire server where it connects to Gmail server-host and it worked like charm. The tutorial found here But I'm getting an error (pasted below) when I'm trying to connect two users via android…
Wesley
  • 1,808
  • 5
  • 31
  • 46
4
votes
1 answer

Can we delay responding to a XMPP presence subscription?

I am using a PacketListener to receive XMPP packets. If I receive the following: is the XMPP server expecting me to respond immediately ? Motivation: I want to cache all…
Jacques René Mesrine
  • 46,127
  • 27
  • 66
  • 104
4
votes
2 answers

MultiUserChat invitations in Smack

I have the following code to listen for invitations to a chatroom: Connection.DEBUG_ENABLED = true; XMPPConnection connection = new XMPPConnection("jabber.org"); connection.connect(); connection.login("username", "password"); …
Jonathan Pullano
  • 322
  • 2
  • 13
4
votes
4 answers

Android Smack chat client

Hi freinds I an using Smack3.2.1.jar downloaded from following url http://www.igniterealtime.org/downloads/index.jsp I added jar to my buildpath But when I run the application I get the following Error log 10-12 13:11:59.464:…
Ashwin N Bhanushali
  • 3,872
  • 5
  • 39
  • 59
4
votes
3 answers

Toast isn't working in listener

I want to open a Toast, but it doesn"t seem to work in a listener (of Smack), like this example: private ChatManagerListener chatManagerListener = new ChatManagerListener() { public void chatCreated(Chat newChat, boolean createdLocally) { …
user969039
  • 511
  • 2
  • 7
  • 18
4
votes
2 answers

android file transfer using smack

I am working on chatting application and i have to implement file transfer using smack api. I am able to Connect to the open fire server and can also chat with another client.But i dont know how to implement file transfer..I have found a code…
Karan_Rana
  • 2,813
  • 2
  • 26
  • 35
4
votes
2 answers

Android video chat using XMPP

I've been investigating the best way to develop a video chat application on android that: a) Is straight P2P OR b) Can take advantage of existing services (gtalk?) that already support video chat to handle communications while being able to maintain…
rjam
  • 577
  • 6
  • 19
4
votes
2 answers

Problem with Smack in Facebook chat app for Android: Connection.getRoster().getEntries() is always empty

I'm trying to implement a simple Facebook chat application on Android. It lets the user login, after which the app opens a new ListActivity enumerating the user's online contacts, and upon clicking on an item, another Activity opens where their…
Matthew Quiros
  • 13,385
  • 12
  • 87
  • 132