(Well, back to business, a friend asked me before why we don't do instant messaging based on XMPP protocol. There are many open servers, such as googletalk, Facebook, twitter, etc. And you can also build your own server, that is, open source openfire. For the specific construction scheme, please refer to the tutorial of building openfire server for Mac. Similar to other systems, I also refer to this blog to build on Ubuntu.
Therefore, for simplicity and convenience, I replaced the previous Baidu push with a new core: from Baidu cloud to asmack based instant messaging. Of course, there will be some changes in the interface, and some new things will be added to get rid of some unnecessary tediousness. In addition, the relatively large database access method will be changed to ContentProvider this time. As for one of the four basic components of Android, we almost use it more, and it is really rare to implement it. Let's take a look at the rendering:)