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

How to get DiscussionHistory for MultiUserChat room using aSmack?

How to get the DiscussionHistory of a MUC room from MultiUserChat? I am able to create MultiUserChat instance and room by using aSmack library, now I want to show all the previous conversations that happened in the room. Anybody experienced in the…
RajaReddy PolamReddy
  • 22,428
  • 19
  • 115
  • 166
5
votes
3 answers

aSmack as a service

Basically I have a Main class running the entire project. The code is working perfectly although once the App is unfocused it becomes inactive. I was wondering how I would go about making it a service. One that would startup at boot. The app will…
Webb
  • 166
  • 1
  • 6
5
votes
2 answers

Smack Packet Listener Not Running

I am trying to write a listener for a asmack packet. What ends up happening is the listener sometimes just doesn't get the packet and process it. Here is some of the code: try { XMPPMethods.getConnection().addPacketListener( new…
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
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
3 answers

Cant get offline messages using asmack api for Gtalk application

I am creating a chat application for Gtalk using the asmack api, and i want to get the messages when user goes offline, but gettting problems because of some problems in ServiceDiscoveryManager and its saying that feature not implemented(501) and…
mayank_droid
  • 1,015
  • 10
  • 19
4
votes
5 answers

XMPP : Asmack Connection PacketListener Issue...

I am using asmack api for the Android XMPP Integration... After the successful authentication for the xmpp connection, I have used PacketListener for the incoming message notification. My application is tab based application. When I am moving to…
Vishal Khakhkhar
  • 2,106
  • 3
  • 29
  • 60
4
votes
3 answers

Connecting to XMPP server from android

The same code is working if I run the class from eclipse as a java application but when I am using same class in android studio I am getting the following RuntimeException. java.lang.NoClassDefFoundError: Failed resolution of:…
Aman jangra
  • 268
  • 1
  • 16
4
votes
3 answers

How to receive message without using createChat for android XMPP chat smack api

Hi I am confused with the logic of implementing chatManagerListener interface inside a Service. Below is my service code: public class MyService3 extends Service { ChatManager chatManager; ChatManagerListener…
Rahul Lohra
  • 824
  • 1
  • 10
  • 21
4
votes
2 answers

Error code 503 on transferring file using xmpp

I am trying to send an image file using smack and openfire xmpp. For this I am using FileTransferManager class. To use FileTransferManager class I am using asmack-android-6.jar. I followed this link to do file sharing. This issue is also shared in…
Android Rockss
  • 215
  • 3
  • 13
4
votes
2 answers

service unavailable response from server while sending custom IQ

I am trying to send custom information with IQ in asmack from android. So I am using below code to send the custom IQ message. public void onClick(View arg0) { CustomIQ req = new CustomIQ(); req.myData="Hello world"; …
kavuru
  • 379
  • 3
  • 4
  • 14
4
votes
4 answers

How to enable the XEP-0199 in Smack?

I'm using aSmack. My app listens a chatroom and reacts to the messages but it never send a message. The app doesn't receive more messages if the chatroom remains in silence for a while and then a new message is sent. I researched and I think that…
Brais Gabin
  • 5,827
  • 6
  • 57
  • 92
4
votes
2 answers

aSmack error: XMPPConnection is abstract; cannot be instantiated

I'm following a tutorial to make a very basic chat app with Android Studio, but I'm getting the error: Error:(131, 45) error: XMPPConnection is abstract; cannot be instantiated at the following line: ConnectionConfiguration connConfig = new…
zeroone
  • 43
  • 1
  • 6
4
votes
2 answers

Retrieving offline messages using asmack

I'm new to asmack and openfire, looked a lot for a working answer to this but couldn't find it anywhere. How do I retrieve offline messages on Logging into my account on asmack? I've used the following code: …
user3498348
  • 41
  • 1
  • 2
4
votes
3 answers

Delivery receipt requests not working for XMPP Android (aSmack)

I'm using OpenFire with aSmack. I can't seem to get DeliveryReceipts working. I do the following when I create a connection: //create connection connection.login(username,…
Bam
  • 1,183
  • 1
  • 9
  • 13