asmack

What is the difference between Smack and aSmack?

爱⌒轻易说出口 提交于 2019-12-03 10:03:53
问题 I am not able to use Smack on Android whereas aSmack works perfectly? When compared the source code it looks somewhat similar, where does the difference comes from? What is the difference between Smack and aSmack? 回答1: Smack < 4.1 does not work on Android, mostly because of APIs missing on Android (e.g. most of the javax APIs). That is the reason the aSmack build environment was born. It is a way to modify Smack so that it can be used on Android. Besides many minor changes the biggest changes

Using the Android TrustStore for aSmack in Android 4+ (ICS)

佐手、 提交于 2019-12-03 08:48:49
I am not an expert on keystores and have a hard time understanding the nuances of this but this is how far I got: In creating a xmpp-connection using the asmack build found here one still has to change the truststore, which usually, so say multiple sources on the web, is done using these commands ConnectionConfiguration config = new ConnectionConfiguration(host, Integer.parseInt(port), service); config.setTruststorePath("/system/etc/security/cacerts.bks"); config.setTruststorePassword("changeit"); config.setTruststoreType("bks"); XMPPConnection connection = new XMPPConnection(connConfig);

get online users(Roster entries) using smack 4.1 in android

折月煮酒 提交于 2019-12-03 08:14:31
I have been trying to get roster entries using smack 4.1 beta 2 in android. https://github.com/igniterealtime/Smack/wiki/Smack-4.1-Readme-and-UpgradeGuide Quotes from above link.. "Roster now follows the Manager pattern (use Roster.instanceFor to obtain an instance, no more XMPPConnection.getRoster)" First of all i am not able get the "Roster" object, libraries that i have imported may not have that package or i miss any lib here? I m using all the libraries mentioned in above link. Can anyone help me to get the Roster Entries using smack 4.1? Thanks Siege This is a step-by-step solution that

How to get DiscussionHistory for MultiUserChat room using aSmack?

戏子无情 提交于 2019-12-03 08:04:55
How to get the DiscussionHistory of a MUC room from MultiUserChat ? I am able to create MultiUserChat instance and room by using aSmack library, now I want to show all the previous conversations that happened in the room. Anybody experienced in the same please help me. I Google searched a lot about this but still I did't get any proper documentation / explanation on this. DiscussionHistory history = new DiscussionHistory(); history.setSince(date); muc.join(nickname, null, history, SmackConfiguration.getReplyTimeout()); // Get historical message; Message oldMsg = muc.nextMessage(timeout); You

Can't create a multi user chat (MUC) room with aSmack library for Android: “packet.DefaultPacketExtension cannot be cast to packet.MUCUser”

。_饼干妹妹 提交于 2019-12-03 04:30:50
问题 For an application I need to be able to create a multi user chatroom and join it. The chat server is a openfire server. I used to have: MultiUserChat chat = new MultiUserChat(connection, roomName + "@conference.localhost"); chat.join(nickname); When the room doesn't exist it creates the room and joins. however the next user can't join. He get's a 404, recipient unavailable(404). Which suggests the chatroom is locked or something. Then I found code in the documentation and I tried the

Android asmack Chat client for XMPP server

╄→гoц情女王★ 提交于 2019-12-03 04:05:02
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. Read their own documentation: SMACK DOCS 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 03:13:16
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) sdm = new ServiceDiscoveryManager(connection); fileTransferManager = new FileTransferManager

asmack XMPP new user registration

时间秒杀一切 提交于 2019-12-03 01:48:19
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. I can establish connection and login, but when I try to register a new user either trough account

What is the difference between Smack and aSmack?

风格不统一 提交于 2019-12-03 00:46:18
I am not able to use Smack on Android whereas aSmack works perfectly? When compared the source code it looks somewhat similar, where does the difference comes from? What is the difference between Smack and aSmack? Smack < 4.1 does not work on Android, mostly because of APIs missing on Android (e.g. most of the javax APIs). That is the reason the aSmack build environment was born. It is a way to modify Smack so that it can be used on Android. Besides many minor changes the biggest changes are Disabling XMPP SASL auth methods that are not supported on Android Using apache harmony for SASL

How to get timestamp of incoming xmpp message?

纵然是瞬间 提交于 2019-12-02 20:44:33
I am using aSmack library to communicate with remote xmpp server. I am able to send/receive messages, but I want to get timestamp of incoming message. Could you tell me please, is it possible at all? Because I can't find anything about this question. Thanks in advance Timestamp is not part of the regular messages. Therefore you cannot extract it. There is a spec (as mentioned by @Dmitry), but this only applies to specific types of messages. Typically those that are NOT realtime, such as offline and publishing the last pubsub message of a node when a new subscription is created. These are