Comparison of several open-source XMPP Android clients, xmppandroid

Source: Internet
Author: User

Comparison of several open-source XMPP Android clients, xmppandroid
 

I want to create an xmpp-Based Instant Messaging tool, and the server has been basically formed. Of course, the client needs to be used together. The PC end is transformed Based on spark, and the mobile end starts with Android (IOS is probably not a human ).

Originally, Android development was half a bucket of water, and a decent development product was never done. Now I have the right to go back and study without any foundation. After more than a month, I can understand the code, find several open-source XMPP clients and want to have at least one framework as the foundation. Because Android is not familiar with it, it takes 3 or 4 days to compile and run it. After reading the basic framework, we can record it for reference by ourselves and others.

 

Git address: https://github.com/redsolution/xabber-android

After installation, an account is added with a drop-down list. It seems that the goal is Gaim on Android. However, it cannot be achieved on PCs, but it cannot be achieved on mobile phones. The core is based on Smack, and an xmpp package is packaged. The interface is really bad. There is only basic "text" chat function on it. The code is rich and even MUC processing is completed, so the entire code is complicated.

 

2. Conversion

Git address: https://github.com/siacs/Conversations

After installation, the interface is still very good, and common chat and group chat are also implemented, and even images and other files can be sent, which is quite satisfactory. However, at the bottom layer, the author implemented a set of protocols. After all, smack is used by many people and bug repair is fast. From the perspective of stability, let's move aside for the moment. However, his entire code organization method is still quite elegant and can be used for reference.

3. TestXMPP and yaxim

Yaxim: Git address: https://github.com/pfleidi/yaxim

TestXMPP: Csdn address: http://blog.csdn.net/way_ping_li/

I have not compiled and installed Yaxim, but TestXMPP has been quite beautiful. It is one of the most beautiful open-source projects. It integrates with plug-ins such as slidingMenu, IphoneTreeView, swipeback, and pulltorefresh. the biggest advantage is that smack is encapsulated into a class, and the service is also a Singleton, with a simple structure. the disadvantage is that there is only simple chat and roster functions, and there is only a low-pixel layout. actually, the core is used several times.

 

4. EIM

Http://blog.csdn.net/shimiso/article/details/11225873/ (Csdn)

It is also based on asmack. The interface design cannot be viewed, but it still has some reference for xmpp encapsulation. In particular, it is used to separate the login into an asynchronous task, the subsequent messages are processed independently by different asmack listeners.

 

Summary:

Xabber and Conversations are too big to be thoroughly studied in a short period of time. EIM can be used as a reference for composite functions, starting with Yaxim and TestXMPP. make a Demo and then enrich the functions as needed.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.