search

Home  >  Q&A  >  body text

Android如何开发即时通讯功能?

新手求带,最近在开发一个即时通讯也就是聊天的功能,看了很多例子,有自己写的,也有用sdk比如说融云的,请问大家都怎么实现这个功能呢?哪种方法比较简单。

怪我咯怪我咯2772 days ago989

reply all(14)I'll reply

  • 阿神

    阿神2017-04-17 13:34:15

    segmentfault portal: development ideas for android instant messaging software http://segmentfault.com/q/1010000002536430

    reply
    0
  • PHPz

    PHPz2017-04-17 13:34:15

    SDK is the simplest. You can build it yourself based on the XMPP protocol, which is the openfire+asmack mentioned in other answers. However, the XMPP protocol is based on xml, and the verbosity directly leads to traffic and electricity consumption. You can consider adding a layer yourself during transmission. Binary Protocol

    reply
    0
  • 巴扎黑

    巴扎黑2017-04-17 13:34:15

    Either use Huanxin or the like, or build it yourself based on xmpp, but Huanxin is recommended

    reply
    0
  • 巴扎黑

    巴扎黑2017-04-17 13:34:15

    Many people recommend studying Mogujie’s open source IM, but its code is relatively complex and there are not many things that can really be solved. It is not easy to deploy successfully. If you have the conditions and time to develop it yourself, you will need to operate it later. It’s much easier.
    However, it is not easy to develop it completely by yourself, but more importantly, the workload is also huge.
    Recommend an open source lightweight mobile instant messaging technology framework: http://git.oschina.net/jackjiang/MobileIMSDK,
    The documentation is also relatively complete: http://www.52im.net/forum -89-1.html, go take a look, I wonder if you can use it.

    reply
    0
  • Cancelreply