摘要
针对Android移动终端与远程web服务器在进行数据通讯时,一是要保证通讯数据的安全、通用、快速,二是要保持移动终端的数据与服务器端的数据同步.在移动终端进行数据通讯时,一般采用XML数据格式和JSON数据格式,选择JSON格式进行数据交互,可以提高数据的传输率,减少响应时间和数据流量;而要保证移动终端数据与服务器数据同步,Android目前通常采用C2DM云端推送、MQTT、RSMB、XMPP等方法方案.通过研究发现该方案都有不足之处,针对持久连接(Push)方式的不足,结合国内情况,采用极光推送第三平台,搭建基于极光推送平台的web服务器与Android客户端的数据推送来解决数据同步问题.
In view of the Android mobile terminal and the remote web server in data communication, a communication is to ensure data security,popularity and speediness. The second one is to maintain the data of the mobile terminal and the server data synchronization. Data communication in a mobile terminal, the general use of XML data format and JSON data format,and selection of JSON format data exchange can improve the data transmission rate, reduce the response time and data flow. It can also ensure the mobile terminal data with the server data synchronization. Android is commonly used in current C2DM cloud push, MQTT, RSMB, XMPP method scheme. The study finds that the program has shortcomings. Persistent connection (Push) mode is insufficient. In view of the domestic situation, the aurora push third platform is used to build web server Aurora push platform and Android client data are sent to solve the data synchronization problem.
出处
《湖南工程学院学报(自然科学版)》
2015年第3期46-50,共5页
Journal of Hunan Institute of Engineering(Natural Science Edition)
基金
2013郧阳师范高等专科学校科研项目(2013B16)