简体   繁体   English

android同步/下载框架

[英]android sync/download framework

I have to build an app that's supposed to ... 我必须构建一个应该......

  • sync a lot of XML files with a SQLite database 使用SQLite数据库同步大量XML文件
  • sync/download even more PDF files 同步/下载更多PDF文件

The lazy guy that I am, I looked for frameworks that provide some of these functionalities, so I could reduce the amount of code I'd have to produce for the before mentioned tasks, like batch downloads in separate threads. 我是懒惰的人,我寻找提供其中一些功能的框架,因此我可以减少为前面提到的任务生成的代码量,比如在单独的线程中批量下载。

Unfortunately I didn't find anything helpful. 不幸的是我找不到任何有用的东西。 Which leads me to my question ... 这引出了我的问题......

Does anybody know a framework/library of some sort that I should have to look out for? 有人知道我应该注意的某种框架/库吗?

I did take a look into http://www.openintents.org/en/libraries already, which was a waste of time :/ 我确实已经看过http://www.openintents.org/en/libraries ,这是浪费时间:/

I would like to invite you to take a look at the open source project, OpenMobster's Sync service. 我想邀请您看一下开源项目OpenMobster的Sync服务。 You can do all types of sync operations (two-way,one-way client,one-way device, bootup, etc). 您可以执行所有类型的同步操作(双向,单向客户端,单向设备,启动等)。 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. 它将跟踪任何更改,并在连接返回时自动在后台与云同步。

On the Cloud side you just expose your data through a Java Channel. 在云端,您只需通过Java Channel公开数据。 This would be where your xml files and PDF files are injected into the Sync Channel. 这将是您的xml文件和PDF文件注入同步通道的位置。 Once inside the Channel the data is then made available on the device for use. 一旦进入通道,数据就可以在设备上使用。 Any changes on either side (cloud or device) is automatically kept in sync via the Sync Channel. 任何一方(云或设备)的任何更改都会通过同步通道自动保持同步。

The platform works on Android and iOS 该平台适用于Android和iOS

Here is a link to the open source project: http://openmobster.googlecode.com 以下是开源项目的链接: http//openmobster.googlecode.com

我建议你可以看看框架文件,也许文件设置错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM