|国家预印本平台
首页|ndroid终端与服务器数据同步系统设计

ndroid终端与服务器数据同步系统设计

esign of Data Synchronization System Between Android Terminal and The Server

中文摘要英文摘要

ndroid作为主流的移动终端平台之一,在交通运输领域有着广泛的应用。然而,移动终端本身具有体积小、数据存储容量小的缺点,无法存储大容量数据,这就需要数据同步技术将终端存储的数据同步到服务器,以保证数据的持久储存。本文的主要工作是在分析一个交通运输客运站的日常基本运作需求的基础上,建立一个单向数据同步系统。首先,通过SQLite触发器捕获Android PDA终端数据库中的数据变化,接着,由变化记录找到变更数据表中的新增记录,并将新增数据通过HTTP协议发送至服务器端的Web Service服务接口,最后由Web Service调用相应方法将数据存入服务器数据库中,实现数据同步。系统的PDA终端采用SQLite数据库存储数据,服务器采用SQL Server数据库存储数据,Web Service采用C#语言开发。经测试,系统能够达到Android终端到服务器的数据同步的目的。

ndroid has been widely ued as one of the mainstream mobile terminal platform in the field of transport.However, the mobile terminal itself has a too small data storage capacity to store large amounts of data, which requires data synchronization technology to synchronize data stored in terminal to the server, in order to ensure long-lasting data storage.The main work of this article is to established a one-way data synchronization system based on analysis of basic daily operational requirements of a transporation.First, capture data changes of databases in Android PDA terminal by SQLite trigger, and then find the new added records of data changed table by data changes, send the data to Web Service interface of the server by HTTP protocol.Finally, Web Service call appropriate method to store data in database to achieve data synchronization.PDA terminal uses SQLite database to store data, the server uses SQL Server database to store data and the Web Service uses C# to develop.After testing, the system can achieve synchronization from Android terminal to the server.

聂明新、孙圆

综合运输通信

计算机软件与理论同步触发器变化记录WebService

computer software and theorysynchronizationtriggerchanged recordWeb Service

聂明新,孙圆.ndroid终端与服务器数据同步系统设计[EB/OL].(2016-03-28)[2025-08-05].http://www.paper.edu.cn/releasepaper/content/201603-383.点此复制

评论