asmack

How to know Typing Status in XMPP openfire using Smack

北城以北 提交于 2019-12-24 00:34:26
问题 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 " +

Unable to get all user in asmack

十年热恋 提交于 2019-12-23 19:24:50
问题 I am developing chat app on Android base on asmack lib. I create 1 user and add 3 friend in buddy list. When I use roster to display buddy list. I can't get all user in buddy list, just 1 user only. My code here: public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.tab_set); TextView textview = new TextView(this); setContentView(textview); Roster roster = Controller.getInstance().connection.getRoster(); Collection<RosterEntry> entries =

asmack : Receiving custom IQ messages in PacketListener

不羁的心 提交于 2019-12-23 04:42:10
问题 I am using asmack library for an XMPP chat application. I have some issues in receiving few custom IQ packets. This is my PacketListener code : PacketTypeFilter filter = new PacketTypeFilter(Packet.class); connection.addPacketListener(new PacketListener() { @Override public void processPacket(Packet packet) { Log.i("PacketListener : ", "Received Packet in General : " + packet.toXML()); } }, filter); It receives some IQ packets, but doesn't receive some other IQ packets. But, the asmack

Android chat using Smack API and talk.goolgle.com server

丶灬走出姿态 提交于 2019-12-23 04:03:28
问题 I want to create an android chat application using smack api and talk.google.com server but the problem is that when I create a connection to Smack API using gmail id and password and check my user name using "connection.getuser()" my id is showm in following format "anything@gmail.com/Smack_ (some smack id)".Now if I send a message from my app using another phone to "anything@gmail.com" it is not recieved but if I send it to "anything@gmail.com/Smack _ (same smack id)" it is properly

Android chat using Smack API and talk.goolgle.com server

巧了我就是萌 提交于 2019-12-23 04:03:12
问题 I want to create an android chat application using smack api and talk.google.com server but the problem is that when I create a connection to Smack API using gmail id and password and check my user name using "connection.getuser()" my id is showm in following format "anything@gmail.com/Smack_ (some smack id)".Now if I send a message from my app using another phone to "anything@gmail.com" it is not recieved but if I send it to "anything@gmail.com/Smack _ (same smack id)" it is properly

Which aSmack jar file (android-14, android-15, …) should be included to support SDK version 14-19?

最后都变了- 提交于 2019-12-23 01:24:08
问题 I am stuck between two different errors. Unable to instantiate activity ComponentInfo unable-to-execute-dex-multiple-dex-files-define-lcom-myapp-rarray In order to fix one I go with solution as mentioned in 1 , and it leads to second error , and vice versa . 1st solution instructs to remove private libraries after going into buildpath , other ask to check mark private libraries. There is no problem with android - manifest , as there is activity Main specified My app was working fine until I

Asmack 18 connection : google.com:5222 Exception: Could not connect to talk.google.com remote-server-timeout

喜欢而已 提交于 2019-12-23 00:52:34
问题 I am trying to use asmack 18 to connect to gtlak server for XMPP connection. public static final String HOST = "talk.google.com"; public static final int PORT = 5222; public static final String SERVICE = "gmail.com"; ConnectionConfiguration connConfig = new ConnectionConfiguration(HOST, PORT, SERVICE); XMPPConnection connection = new XMPPConnection(connConfig); try { //Connect to the server connection.connect(); connection.login("xxxxxxxx@gmail.com", "password"); // Set the status to

aSmack as a service

别来无恙 提交于 2019-12-22 06:06:13
问题 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 be a one way message system for notifications. I.E. Desktop Client -> Openfire Server -> Android XMPP Service -> Storage (DB) -> Android GUI for display As I've said, the Code is working (Connect, Login, Receive) but isn't a service. I could use the

Unable to connect XMPP server with ASmack in Android

可紊 提交于 2019-12-22 01:37:15
问题 I have a fully working Chat Client that I made in Java. Now I'm looking forward to implement the same on my android device. I started off with importing the ASmack Library in my project and I'm checking at each phase to avoid errors. I'm stuck at the very first step though. My Activity is not able to find the class in ASmack Jar, hence I assume I'm unable to proceed. My Simple code : package com.test.mypro; import org.jivesoftware.smack.ConnectionConfiguration; import org.jivesoftware.smack

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

别说谁变了你拦得住时间么 提交于 2019-12-21 12:18:33
问题 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); Log.e("Connection : ", ClosrrService.xmppConnection.toString()); // Get a MultiUserChat using MultiUserChatManager MultiUserChat muc = manager.getMultiUserChat("dayaroom@conference."+Constants.HOST); // Create the room and send an empty configuration form to make this an instant room muc