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.

564 questions
9
votes
2 answers

SMACK XEP-313 Implementation

It is necessary to attach a 0313 XEP (0.2) http://xmpp.org/extensions/attic/xep-0313-0.2.html#sect-idp616432 in to SMACK/ASMACK. I create PacketExtension for this. public class Archive313 implements PacketExtension { static final public…
9
votes
3 answers

Send and Receive IQ XMPP ASMACK Android

Background: I have been able to implement one to one chatting through XMPP in android using asmack library. I am able to send presence to the server as well. I am using OpenFire server for my Chat based application. Problem: I am using…
Hassaan Rabbani
  • 2,469
  • 5
  • 30
  • 55
9
votes
8 answers

How to know Typing Status in XMPP openfire using Smack

I am developing chat application by using Openfire XMPP server. I can text chat between two user. But i want to know Typing status when some one is typing message. So i created a class :- public class typingStatus implements ChatStateListener { …
user2160008
  • 379
  • 2
  • 5
  • 20
9
votes
1 answer

XMPP "stream:error (conflict)" on login with (a)Smack

Currently i am working with xmpp/jabber chat for android.i just tried with Openfire and try to connect my jabber account.connection was successful.but i am not able to send any message.it shows some conflict error.please check the error log.give me…
Jithu P.S
  • 1,843
  • 1
  • 19
  • 32
8
votes
1 answer

How to retrieve one to one chat history from Openfire using asmack android

Please can anyone show me the exact code for retrieving a chat history from openfire server to android client application using asmack library and XMPP protocol? In my openfire server I was enable merged Monitoring service/Open archive service and…
Mahi
  • 1,754
  • 2
  • 16
  • 37
8
votes
1 answer

Android background service for Smack (XMPP) chat application

I am implementing a chat app using asmack library. I want to start a always running service where all the connection management task is to be done and that should be keep on receiving the incoming packets and saving the messages in my sqlite…
Rahul Rastogi
  • 4,486
  • 5
  • 32
  • 51
8
votes
4 answers

Issue in blocking user in chatlist using smack and open fire server

I want to block a particular friend from my chat list with XMPP. code works fine. There is no Exception, but I am not able to block a user. I'm using open fire server. what changes should i made on server? Can u guys have any idea? My code: public…
Ganesh karthik
  • 313
  • 1
  • 9
8
votes
2 answers

Android xmpp MUC setting default configuration

Am using the Xabber open source project and am able to create a new group, But it always says: This room is locked from entry until configuration is confirmed. I tried to set a default configuration but it throws me exception: 401 not authorized.…
sukarno
  • 597
  • 2
  • 10
  • 31
8
votes
2 answers

Android File Transfer not working via XMPP and OpenFire

Problem : Can't receive a file sent to my android app via XMPP and OpenFire Server. I can successfully send a file though. The asmack jar I am using is asmack-jse-buddycloud-2010.12.11.jar Code : connConfig = new…
Andy A
  • 4,191
  • 7
  • 38
  • 56
7
votes
3 answers

getSearchForm returns null when using UserSearch in XMPP with aSmack

I have this code, almost unmodified from examples: UserSearchManager usm = new UserSearchManager(conn); Form searchForm = usm.getSearchForm("search.myserver.com"); Form answerForm =…
Nacho L.
  • 9,582
  • 2
  • 25
  • 25
7
votes
1 answer

getting "XMPPException$XMPPErrorException: XMPPError: service-unavailable - cancel" while creating group using XMPP (4.1.3)

I am facing issue while creating chat group using XMPP(4.1.3). My code is try{ // Get the MultiUserChatManager MultiUserChatManager manager = MultiUserChatManager.getInstanceFor(ClosrrService.xmppConnection); …
Dayanand Lande
  • 211
  • 4
  • 23
7
votes
2 answers

How to send XMPP message when sender is offline?

I am using aSmack and Openfire for my chat application. I am able send and receive message finely. Openfire support offline message transfer when recipient is offline by keeping message until he comes online. But what to do when sender is offline or…
Sushant
  • 1,272
  • 2
  • 15
  • 31
7
votes
2 answers

get online users(Roster entries) using smack 4.1 in android

I have been trying to get roster entries using smack 4.1 beta 2 in android. https://github.com/igniterealtime/Smack/wiki/Smack-4.1-Readme-and-UpgradeGuide Quotes from above link.. "Roster now follows the Manager pattern (use Roster.instanceFor to…
Hitendra
  • 3,218
  • 7
  • 45
  • 74
7
votes
1 answer

ASmack - Where to get ChatManager from?

I am trying to make a small XMPP-capable chat application for a school project using aSmack-8-4-rc2 on Android 4.2.2, and I am having issues getting a ChatManager object to process incoming messages. Every example I have seen so far does ChatManager…
rubbyrubber
  • 567
  • 4
  • 19
7
votes
1 answer

Check if a user exist on server in XMPP with (a)smack

I'm working on a chat application using asmack as a library and on android platform. Is there is any way that before adding friend in Roster can I check that friend exist on server or not?
nitin tyagi
  • 1,176
  • 1
  • 19
  • 52
1
2
3
37 38