smack

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

♀尐吖头ヾ 提交于 2019-12-01 18:31:38
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 emulators with a local Openfire server installed. 03-23 16:24:01.392: DEBUG/SMACK(233): 04:24:01 PM SENT (1155246128): <message id="t0tgA-5" to="justestingchat2" type="chat"><body>hi</body></message> 03-23 16:24:07.032: DEBUG/SMACK(233): 04:24:07 PM RCV (1155246128): <message id="t0tgA-5" to="justestingchat@admin-pc/Smack" from="justestingchat2" type=

How to know Typing Status in XMPP openfire using Smack

六眼飞鱼酱① 提交于 2019-12-01 16:55:57
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 { @Override public void processMessage(Chat arg0, Message arg1) { // TODO Auto-generated method stub } @Override public void stateChanged(Chat arg0, ChatState arg1) { // TODO Auto-generated method stub System.out.println(arg0.getParticipant() + " is " + arg1.name()); } } But i am confuse so that How will it work? I know that i need a packet where i can it

How to know Typing Status in XMPP openfire using Smack

时间秒杀一切 提交于 2019-12-01 14:40:00
问题 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 { @Override public void processMessage(Chat arg0, Message arg1) { // TODO Auto-generated method stub } @Override public void stateChanged(Chat arg0, ChatState arg1) { // TODO Auto-generated method stub System.out.println(arg0.getParticipant() + " is " +

Android/Eclipse Error - “Could not find class 'org.jivesoftware.smack.ConnectionConfiguration', referenced from method”

廉价感情. 提交于 2019-12-01 14:26:58
This is my first time working with Android/Java. I am trying to run this basic code and I keep getting the following error: "Could not find class 'org.jivesoftware.smack.ConnectionConfiguration', referenced from method" My code: package message.pack; import org.jivesoftware.smack.ConnectionConfiguration; import org.jivesoftware.smack.XMPPConnection; import org.jivesoftware.smack.XMPPException; import android.app.Activity; import android.os.Bundle; public class ThesimpleigniteandroidActivity extends Activity { /** Called when the activity is first created. */ @Override public void onCreate

Cannot Read Custom Attributes From Message TAG when using asmack XMPP library for android?

僤鯓⒐⒋嵵緔 提交于 2019-12-01 14:01:53
问题 This is the XML sent From XMPP Server Side that i want to recieve so that i can send it to my XML parser. <message to="39@domainname.com/smack" chat_id="73392" custom_packet="true" user_id="44" manager_id="39" time_stamp="0" website_id="0" visitor_name="John" end_time="False" xml:lang="en-us" type="groupchat" from="room73392@conference.domainname.com/39"> <body>Hello</body> <x xmlns="http://jabber.org/protocol/muc#user"> <status xmlns="" code="0"/> </x></message> This Is a sample XML that i

File is not being transferred in smack API

谁说我不能喝 提交于 2019-12-01 13:12:59
I am developing a chat application in which i need to give support of file transfer. For this i am using Smack API. But my file is not being transferred and i am getting the File status Error and progress 0.0 i have googled on net but they all are used the same way to send the file. but i am getting the error. I know there is a couple of question regarding this issue but proper solution is not given. so is there anyone who have idea about this? How to solve this problem? Edit: I have try with change the 127.0.0.1 to 10.0.2.2 , and now i got the status is Negotiating but after some tries i got

Android XMPP connection is not persistant - asmack library even running in a separate thread

旧城冷巷雨未停 提交于 2019-12-01 12:34:52
I am developing an Android chat app which uses asmack library. What I observe is that the XMPP connection beocmes disconnected after a particular interval of time. ( This also varies from device to device ) I am runnning the connection code in a separate thread as instructed in the below link Can't establish a new connection with aSmack 4.0.2 But I get the following exception D/Reconnection Manager(23105): scheduleReconnect: calling tryToConnect I/System.out(23105): default ping interval is :10 W/System.err(23105): org.jivesoftware.smack.SmackException$ConnectionException W/System.err(23105):

Android Smack 4.1.1 File Transfering, ERROR Could not establish socket

╄→гoц情女王★ 提交于 2019-12-01 12:11:31
I am trying to send files over my android app with smack library 4.1.1, though i am having some errors to do so. The thing is that i don't know why it just sends the files to a device but after that it doesn't let me to send to others and others can't send to others either, for example the first time i opened a listener with one device, that device could and can still send files just to one device (the first that it sent) but the one that receives can not, the file seems to arrive but with 0 data or maybe it doesn't arrive and just when arrives something causes error i am not sure but after a

Android Smack 4.1.1 File Transfering, ERROR Could not establish socket

佐手、 提交于 2019-12-01 11:43:42
问题 I am trying to send files over my android app with smack library 4.1.1, though i am having some errors to do so. The thing is that i don't know why it just sends the files to a device but after that it doesn't let me to send to others and others can't send to others either, for example the first time i opened a listener with one device, that device could and can still send files just to one device (the first that it sent) but the one that receives can not, the file seems to arrive but with 0

Reconnection to xmpp server using smack

依然范特西╮ 提交于 2019-12-01 11:18:20
i am trying to develop a chat app, everything is working fine when internet is stable. like i can send and receive messages. but when the internet goes off for a while xmpp closes the connection. when internet comes back i am trying to reconnect to server. after successful reconnection i got the Stream error of Client already logged in and connection is automatically closed. Here is my Broadcast receiver code to check Internet connection. networkReceiver = new BroadcastReceiver (){ @Override public void onReceive(Context context, Intent intent) { //super.onReceive(context, intent); if(intent