如何获得Openfire的聊天记录在Android设备与aSmack? [英] How to get Openfire chat history on Android device with aSmack?

查看:250
本文介绍了如何获得Openfire的聊天记录在Android设备与aSmack?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发一个聊天应用程序,其中用户将与领域专家的组成员之一聊天。用户使用我的Andr​​oid应用程序和领域专家使用的火花网络进行聊天。我做的Openfire安装和星火网络设置和开发的Andr​​oid聊天aSmack库的应用程序。我的应用程序的用户都能够聊天领域的专家。到目前为止,这是罚款。现在我想用户展示的聊天记录与任何特定或专家的Andr​​oid设备。浏览网页后,我能够安装监控服务的插件对我开枪的服务器,这正显示出如下图所示的用户的管理员一边聊天记录。

I am developing a chatting application, where user will chats with one of the domain expert's group member. user uses my android app and domain expert uses spark web for chatting. I made Openfire setup and Spark web setup and developed Android chatting app with aSmack library. My app users are able to chat with domain expert. So far it is fine. Now I would like show chat history of user with any or specific expert on Android device. After surfing web, I am able to install Monitoring Service plugin for my open fire server, which is showing chat history of user on Admin side as shown below.

现在我想展示这段历史在我的Andr​​oid应用程序,我怎样才能做到这一点。任何建议,最欢迎。我是不是在朝着正确的方向发展?或者有什么简单的方法做我的工作?对任何信息,其中该聊天记录将被保存在明火数据库,这样我就可以使SQL查询和使用web服务的数据得到的是最AP preciated。

Now I would like to show this history in my Android app, How can I achieve this. Any suggestions, most welcome. Am I moving in the right direction? or there any simple ways to do my job? Any info on where this chat history will be stored in Open fire Database, so that I can make SQL queries and get data using webservices is most appreciated.

推荐答案

我加了监控服务的插件来的Openfire,这创造了一些额外的表来存储聊天任意两个账户之间的谈话细节。监控服务还为您提供了数据库查询静。从管理面板数据的基础上静,我能得到哪些表,其中列这个聊天的细节得到了保存。同时还需要查询。使用上述信息,我的后端团队编写的Web服务,以获得所需的信息。这是我实现的方式。

I added Monitoring service Plugin to openfire, which created some additional tables to store chat conversation details between any 2 accounts. Monitoring service also gives you data base query statics. From admin panel data base statics, I am able to get in which tables, which columns this chat details got stored. Also required queries. using the above info, My back end team has written web services to get required info. This is the way I implemented.

这篇关于如何获得Openfire的聊天记录在Android设备与aSmack?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆