asmack

Cannot build asmack

白昼怎懂夜的黑 提交于 2019-12-13 07:12:46
问题 Following the instructions here: https://github.com/Flowdalic/asmack/wiki/Build-Instructions-for-Linux This is what I get: +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Smack git repository git://github.com/Flowdalic/smack.git with branch master SMACK_LOCAL:false UPDATE_REMOTE:true BUILD_CUSTOM: BUILD_JINGLE:false PARALLEL_BUILD:false BASE:/home/pankaj/asmack ## Step 00: initialize ## Step 15: fetching sources Fetching master branch/commit from git://github.com

XMPP XEP 0333 Implementation in SMACK

痞子三分冷 提交于 2019-12-13 02:38:53
问题 I am developing a XMPP based chat application. My requirement is that I need to show the read/delivered status like in whatsapp. With some research I came to a understanding that I need to use XEP-0333 chat markers to achieve this functionality. In XMPP ios framework we have support for XEP-0333. For android I am using Smack library . I don't see any implementation of XEP-0333 in Smack library.Smack has implemented obsolete XEP-0022, not this one. Could somebody help me on this. How to

service unavailable response from server while sending custom IQ

大憨熊 提交于 2019-12-12 16:11:58
问题 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"; req.setType(IQ.Type.GET); req.setTo(Activity_title+Constants.DOMAIN); MainActivity.connection.sendPacket(req); Log.d(Constants.TAG, "xml value :"+req.toXML()); Log.d(Constants.TAG, "child element value :"+req.getChildElementXML()); Log.d(Constants.TAG, " custom IQ req sent");

Asmack alternative [duplicate]

人盡茶涼 提交于 2019-12-12 05:35:40
问题 This question already has answers here : Closed 8 years ago . Possible Duplicate: Android and XMPP: Currently available solutions Using Asmack precompiled lib i noticed my app inphone storage use increased a lot. (about 2mb and cannot be transfered to the sd card). Using the source code instead of precompiled lib will reduce the storage need? Is there any other alternative to asmack(and i don't mean smack). 回答1: I don't think that using the source code will reduce the storage need. Do you

Openfire Connecting Exception: remote-server-error(502) xmpperror connecting to 5222

北战南征 提交于 2019-12-12 04:36:18
问题 I working on chatApp. i am successfully implement xmpp chat using oenfire server past 2 month using asmack. but few hour ago i get below exception and till now i am unable to contact server. 192.168.0.1:5222 Exception: XMPPError connecting to 192.168.0.1:5222.; : remote-server-error(502) i try to find solution on google, but not get any success, below code using for contact openfire ConnectionConfiguration connConfig = new ConnectionConfiguration( Constants.TEST_HOST, Constants.PORT,

How to send and listen to custom xmpp presence packet with asmack the library

三世轮回 提交于 2019-12-11 03:44:03
问题 I'm struggling to listen to contacts' updating of VCard. I'm trying to do this by sending a custom presence that carries some custom information while updating VCard.from the output of the debug,I found that ,whenever such a custom presence is send,it's contact will receive the presence stanza.Unfortunately,when the contact's packetListener can not detect the incoming packet,and then all of the listener added to the connection seems have been removed, that is other packet that can be detected

Efficient XMPP user search

痞子三分冷 提交于 2019-12-11 02:46:23
问题 I want to efficiently check for all local address book contacts if they have a jabber account. The users are registered on the XMPP server with the mobile phone number. I currently send the following XEP-0055 stanza to the ejabberd server and evaluate the result. <iq type="set" id="searchByUserName" to="vjud.ecoimac1.local" from="+1222333444@ecoimac1.local"> <query xmlns="jabber:iq:search"> <x xmlns="jabber:x:data" type="submit"> <field type="hidden" var="FORM_TYPE"> <value>jabber:iq:search<

Smack 4.1.0 android Roster not displaying

↘锁芯ラ 提交于 2019-12-11 02:45:51
问题 I am trying to display all available contacts even though it is not displaying it Code: Roster roster = Roster.getInstanceFor(connection); Collection<RosterEntry> entries = roster.getEntries(); System.out.println("ENTRIEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEESS"); int roster_counter = 0; for (RosterEntry entry : entries) { roster_counter++; try { System.out.println("Here is Roster " + Integer.toString(roster_counter) + ": " + entry); }catch (Exception e){ System.out.println(

Show notification from background started service

牧云@^-^@ 提交于 2019-12-11 01:39:24
问题 So i'm using asmack library to listen for incoming xmpp packets. I've got the service implemented. It's started, bound, a method is run and then it's unbound. The service creates a PacketListener to get incoming messages, and displays a notification when a new message comes in. This all works while the app is the active activity, but doesn't work when it's fully closed (swiped away in the window list) and it's just the service running, the PacketListener doesn't fire. It fires as soon as the

Sending files with asmack (or any alternatives)

泪湿孤枕 提交于 2019-12-10 12:11:08
问题 I'm trying to send a file with asmack with the following: // mConn is an XMPPConnection FileTransferManager manager = new FileTransferManager(mConn); OutgoingFileTransfer transfer = manager.createOutgoingFileTransfer("operator@domain.corp"); transfer.sendFile(new File(fname), "File for the operator"); I'm receiving no exception but in the smack log I can see <error type="cancel" code="501"><feature-not-implemented... Does anyone know what can be the root of the problem? Since asmack hasn't