本文介绍了同步与网站Android应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在这里,我开始了我的

Here I launched the first version of my flash card application

我工作的闪存卡的应用程序。在这里,我用sqlite的分贝来存储我的卡和
数据。

I am working on Flash Card application. Here I used sqlite Db to store my cards anddata.

现在我想我的数据库与网站数据库同步。

Now I want to synchronize my database with website database.

那么我将如何做到这一点我的应用程序?

So how would I do this for my application?

请任何一个可以告诉我,我应该怎么开始做这个,也告诉我可能
方法可以做到这两个设备端和网页端。

Please any one tell me how should I start doing this and also tell me the possibleways to do this on both device side and website side.

其迫切我的应用程序。任何一个可以帮助我呢?

Its urgent for my application. Can any one help me out?

推荐答案

不知道你是否使用同步框架来管理同步考虑。如果您感兴趣可以看看开源项目,OpenMobster的同步服务。你可以做下面的同步操作。

Wonder if you have considered using a Sync Framework to manage the synchronization. If that interests you can take a look at the open source project, OpenMobster's Sync service. You can do the following sync operations


  • 双向

  • 单向客户端

  • 单向器

  • 启动

除此之外,所有的修改都自动跟踪,并与云同步。当网络连接断开,你可以有你的应用程序脱机。该项目将跟踪任何更改,并在后台自动将其与云计算的时候连接返回同步。它还提供了类似的iCloud同步跨多个设备

Besides that, all modifications are automatically tracked and synced with the Cloud. You can have your app offline when network connection is down. It will track any changes and automatically in the background synchronize it with the cloud when the connection returns. It also provides synchronization like iCloud across multiple devices

在云/网站边,有一个Java通道框架将数据暴露给同步引擎。您编写基于同步信道和您的所有数据的简单CRUD将保持同步与设备上的数据。

On the Cloud/website side, there is a Java Channel Framework to expose your data to the Sync Engine. You write a simple CRUD based Sync Channel and all your data will be kept in sync with the data on the device.

下面是对开源项目的链接:

Here is a link to the open source project: http://openmobster.googlecode.com

下面是一些示例code,以了解这些走到一起:的

Here is some sample code to see how these come together: http://openmobster.googlecode.com/svn/samples/offlineapp.zip

披露:我是OpenMobster项目的总工程师

Full Disclosure: I am the Chief Engineer of the OpenMobster project

这篇关于同步与网站Android应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-02 17:08