asmack

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

倖福魔咒の 提交于 2019-12-04 04:32:52
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.create("testbotdaya"); muc.sendConfigurationForm(new Form(DataForm.Type.submit)); }catch (Exception e)

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

[亡魂溺海] 提交于 2019-12-04 04:10:15
问题 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

how to get user online or offline in asmack, android [duplicate]

筅森魡賤 提交于 2019-12-04 02:48:50
Possible Duplicate: XMPP aSmack - How can I get the current user state (offline/online/away/etc.)? I am developing chat app on Android base on asmack lib. I display all the user on the ListView but I use an image to show online/offline user. But It return offline image only, even the user is online, here is my code @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // setContentView(R.layout.buddies); Controller.getInstance().roster = Controller.getInstance().connection.getRoster(); // ArrayList<Buddy> buddies = new ArrayList<Buddy>(); Collection

Xmpp FileTransnfer in Android giving 503-service unavailable Error

瘦欲@ 提交于 2019-12-03 21:41:37
Now am working with Xmpp file Transfer in Android.While am sending files it give a 503 service unavailable error. > 07-29 15:33:12.183: D/SMACK(22151): 03:33:12 PM SENT (1095973320): > <iq id="s9DTB-10" to="jithu4@jabber.org/Smack" > from="jithu1@jabber.org/Smack" type="set"><si > xmlns="http://jabber.org/protocol/si" id="jsi_6388535575928662640" > mime-type="image/jpeg" > profile="http://jabber.org/protocol/si/profile/file-transfer"><file > xmlns="http://jabber.org/protocol/si/profile/file-transfer" > name="IMG_20130715_115622_1445552069.jpg" size="2105955" > ><desc>test_file</desc></file>

Facebook asmack xmpp client returns random numbers for roster

无人久伴 提交于 2019-12-03 21:18:28
I followed the guidlines given in the following SO question to connect to facebook chat using xmpp and I am able to connect to facebook and pull the correct number of contacts but when it prints the contacts they are all random numbers @chat.facebook.com and all return offline. Android Facebook chat example project public void connectToFb() throws XMPPException { ConnectionConfiguration config = new ConnectionConfiguration("chat.facebook.com", 5222); config.setSASLAuthenticationEnabled(true); config.setSecurityMode(SecurityMode.required); config.setRosterLoadedAtLogin(true); config

aSmack error: XMPPConnection is abstract; cannot be instantiated

馋奶兔 提交于 2019-12-03 16:25:32
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 ConnectionConfiguration(HOST, PORT, SERVICE); XMPPConnection connection = new XMPPConnection(connConfig); And I'm also getting some "Unhandled exception" when trying to use XMPPConnection elements. Also link to the tutorial: LINK Looks like this changed in Smack 4.0.0. The documentation still has not been updated. And it looks like they will change it again

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

牧云@^-^@ 提交于 2019-12-03 14:30:19
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 void XMPPAddNewPrivacyList(Connection connection, String userName) { String listName = "newList"; // Create the list of PrivacyItem that will allow or // deny some privacy aspect List<PrivacyItem> privacyItems = new Vector<PrivacyItem>(); PrivacyItem item = new PrivacyItem(PrivacyItem.Type.jid.toString(), false, 1); item.setValue(userName);

Android asmack Chat client for XMPP server

左心房为你撑大大i 提交于 2019-12-03 14:15:25
问题 I am trying to build an Android chat client using asmack library, and an XMPP server like openfire. So can anybody provide me with some links to tutorials or code snippets for my client programm. 回答1: Read their own documentation: SMACK DOCS 回答2: you can start with Xabber android client. 来源: https://stackoverflow.com/questions/10975001/android-asmack-chat-client-for-xmpp-server

Android File Transfer not working via XMPP and OpenFire

纵然是瞬间 提交于 2019-12-03 12:57:53
问题 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 ConnectionConfiguration("beta.myCompany.co.uk", 5222); connConfig.setSASLAuthenticationEnabled(true); try { connect("username", "password"); } catch (Exception e) { e.printStackTrace(); } ServiceDiscoveryManager sdm = ServiceDiscoveryManager.getInstanceFor(connection); if(sdm == null

asmack XMPP new user registration

丶灬走出姿态 提交于 2019-12-03 10:12:34
问题 Good people of StackOverflow, please help. I've set up an ejabberd server on my ubuntu machine, added virtual host, set {access, register, [{allow, all}]}. and registered an admin account. I'm not a linux guru, but I've managed to do this basic set up. Now, from my Win 7 machine, using Pidgin, I can login as admin and have access to many administrative features. Most important I can create new users on the server. The problem is that I can't do that with my android client using asmack library