asmack

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

Android smack library subscription(not showing inbond or outbond notifications)

血红的双手。 提交于 2019-11-30 20:54:00
问题 I am working on an android chat application in which i am using smack library for instant messaging everything is working fine but the huge problem is in subscription. How to send subscription notification to another user. Here is my code for sending subscription request: public void run() { /*runOnUiThread(new Runnable() { public void run() {*/ Roster roster = XMPPSmackConnection.getInstance().connection.getRoster(); roster.setSubscriptionMode(Roster.SubscriptionMode.manual); try { if(!

Custom extension element in Stanza for Smack 4.1.4

╄→尐↘猪︶ㄣ 提交于 2019-11-30 20:07:52
问题 I am moving my android application from asmack-android library to Smack 4.1.4. I have some PacketExtensions in the asmack version of Smack, which uses PacketExtension and PacketExtensionProvider classes to handle. Since the PacketExtension is deprecated in Smack 4.1.4, I am confused among the classes and interfaces ExtensionElement, DataPacketExtension, ExtensionElementProvider , DefaultExtensionElement. Could any one of you give me an example of creating an extension which can be added with

ReconnectionManager in asmack

可紊 提交于 2019-11-30 15:40:19
I have a project on Android, which needs to use asmack library to enable real time chat. The key feature is reconnecting mechanism, that means my application can reconnect automatically whenever the internet connection loses. Here is my code snippet: ConnectionConfiguration connConfig = new ConnectionConfiguration(HOST, PORT); connConfig.setSASLAuthenticationEnabled(true); connConfig.setReconnectionAllowed(true); XMPPConnection connection = new XMPPConnection(connConfig); But I got this error whenever I turned off then turned on Wifi: 10-01 21:43:26.942: W/System.err(13695): javax.net.ssl

How to retrieve one to one chat history from Openfire using asmack android

时光毁灭记忆、已成空白 提交于 2019-11-30 14:00:41
Please can anyone show me the exact code for retrieving a chat history from openfire server to android client application using asmack library and XMPP protocol? In my openfire server I was enable merged Monitoring service/Open archive service and all messages successfully stored into database. But I don't know how those messages (chat history) retrieve to my client application which is building in ANDROID. What type of chat I need is one-to-one user chat (not group chat). I am success ed to getting group chat history with help of this but i want to retrieve one to one chat history Please if

XMPP “stream:error (conflict)” on login with (a)Smack

三世轮回 提交于 2019-11-30 13:07:41
Currently i am working with xmpp/jabber chat for android.i just tried with Openfire and try to connect my jabber account.connection was successful.but i am not able to send any message.it shows some conflict error.please check the error log.give me a solution for this. Initializing connection to server eworks port 5222 Connected: true Creating entry for buddy 'testuser2' with name testuser2 Sending mesage 'Hello mate' to user testuser2@eworks Buddy:testuser2 - Status:null stream:error (conflict) at org.jivesoftware.smack.PacketReader.parsePackets(PacketReader.java:306) at org.jivesoftware

How to implement message read status like whatsapp blue tick mark?

ぃ、小莉子 提交于 2019-11-30 11:10:12
问题 I am developing one application in that chatting is one module, for chatting i am using xmpp. when i am sending message i am getting that message delivery status using DeliveryReceiptManager. DeliveryReceiptManager.getInstanceFor(connection).enableAutoReceipts(); DeliveryReceiptManager.getInstanceFor(connection).addReceiptReceivedListener(new ReceiptReceivedListener() { @Override public void onReceiptReceived(String arg0, String arg1, String arg2) { Log.v("app", arg0 + ", " + arg1 + ", " +

Cannot get list of public rooms from xmpp Server on Android?

若如初见. 提交于 2019-11-30 10:28:57
Hello Everyone i am new to android and i am currently stuck on this. I have to return list of public rooms created on xmpp server. The problem i am having is that the code below works fine for java but there is a null pointer exception in case of android. Any help regarding this would be appreciated. I am using an openfire server and testing it on local machine so that is the reason why i am using ip Address instead of domain name. I am using smack library for JAVA and Asmack Library for android String server_name = "192.168.3.113"; ConnectionConfiguration config = new ConnectionConfiguration(

Sending and Receiving custom XMPP IQs with aSmack on Android

邮差的信 提交于 2019-11-30 09:51:51
问题 Background: I have implemented one to one chat using aSmack for XMPP on Android. I am also able to send and receive IQ messages. The issue is: I am unable to send and receive custom IQ messages. for example if i want to send an IQ <iq type='get' to='ssmack@web.mystudios.com/mack'> <query xmlns='http://jabber.org/protocol/disco#items'/> </iq> aSmack works fine for this IQ as it is not custom, but if i change the name space here from disco#items to Match it will not work it will send back

How to get Openfire chat history on Android device with aSmack?

泪湿孤枕 提交于 2019-11-30 08:17:30
问题 I am developing a chatting application, where user will chats with one of the domain expert's group member. user uses my android app and domain expert uses spark web for chatting. I made Openfire setup and Spark web setup and developed Android chatting app with aSmack library. My app users are able to chat with domain expert. So far it is fine. Now I would like show chat history of user with any or specific expert on Android device. After surfing web, I am able to install Monitoring Service