Android chat functionality? [closed]

孤街浪徒 提交于 2019-12-08 13:34:28

问题


I am trying to implement simple chat application for android. The concept is, users have to register and login to their account and can chat with each other. And i implemented the server side logic for registration kind of thing.

Can anyone please tell me the simplest and the most efficient way to design a chat application...

Please do the needful.

Thanks, Sai


回答1:


Simplest and efficient solution is to use a chat sdk. There are plenty of chat as a service solution available which provides the chat sdk along with backend. Have a look at https://www.applozic.com/docs/android-chat-sdk.html

Github Android SDK: https://github.com/AppLozic/Applozic-Android-SDK

Below tutorial will be of help: https://dzone.com/articles/add-chat-using-applozic-in-5-mins




回答2:


I would use the Google Talk API to build an XMPP client. That way, registration &c. are handled for you; you don't have to worry about maintaining a user database, connectivity, uptime, and so forth.




回答3:


Sai, The simplest way to make chat application is to make through web services. If want to make using web services then let me know,i will guide you step by step.




回答4:


You can use xmpp protocol for simple chat application which is supported by smack api.

Please look at the link. OUTDATED SAMPLE

UPDATE :

Updated code of above tutorial is here




回答5:


If you are looking forward to implement chat functionality in your application, maybe this Post can help you.




回答6:


you can build your own chat app with opentalkon chat api https://github.com/OpenTalkOn/OpenTalkOn-Android-Chat-API

opentalkon api is very simple.

  • Message Send You can easily send message with doSendMessage(TADataHandler handler, Long room_id, String msg, Long transact_id) method.

  • Message Receive You can easily register handler for receiving message with setClientInterfaceMsgHandler (MessageHandler handler) method.

I recommend to use opentalkon api!



来源:https://stackoverflow.com/questions/5950017/android-chat-functionality

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!