smack

How to know Typing Status in XMPP openfire using Smack

半腔热情 提交于 2019-11-26 10:32:17
问题 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 \"

XMPP with Java Asmack library supporting X-FACEBOOK-PLATFORM

China☆狼群 提交于 2019-11-26 09:31:23
问题 I\'m trying to make a Facebook Chat on Android with the Smack library. I\'ve read the Chat API from Facebook, but I cannot understand how I have to authenticate with Facebook using this library. Can anyone point me how to accomplish this? Update : According to the no.good.at.coding answer, I have this code adapted to the Asmack library. All works fine except I receive as response to the login: not-authorized. Here is the code I use: public class SASLXFacebookPlatformMechanism extends

Why am I getting java.lang.IllegalStateException “Not on FX application thread” on JavaFX?

北城余情 提交于 2019-11-26 01:43:10
问题 I have an application that has a TableView that has an attached listener so it refreshes as soon as it detects a change, but the thing is that I´m getting java.lang.IllegalStateException: Not on FX application thread; currentThread = Smack Listener Processor (0) . Here is my code: /** * This function resets the pagination pagecount */ public void resetPage() { try { System.out.println(\"RESET\"); int tamRoster = this.loginManager.getRosterService().getRosterList().size(); paginationContactos

Android and XMPP: Currently available solutions [closed]

左心房为你撑大大i 提交于 2019-11-26 01:22:26
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 months ago . Which XMPP library would be the best choice nowadays for Android development? I\'ve been using the patched Smack library as is suggested in many other questions here in SO. However, that\'s a patched version of the Smack API from two years ago. And although it generally works well I\'m exploring any other, more