简体   繁体   English

parse.com本地数据存储如何工作?

[英]How parse.com Local Datastore Work?

I know few thing about parse Local datastore link store objects in a local datastore on the Android device. 我对在Android设备上的本地数据存储中解析本地数据存储链接存储对象一无所知。 Especially useful for temporarily storing data so that it can be synced later. 对于临时存储数据特别有用,以便以后可以同步。

My Question is How Store data locally in android database and how synced later on when connect to internet. 我的问题是如何将数据本地存储在android数据库中,以及如何稍后在连接到互联网时进行同步。 I think data store in android sqlite database temporary and later on when it connect to network data going to synced from cloud. 我认为数据存储在android sqlite数据库中是临时的,以后会连接到要从云同步的网络数据。

Is it right? 这样对吗?

I want do store database on local database and when it connect to internet it synced. 我想将数据库存储在本地数据库中,并在连接到Internet时进行同步。 and if any update in cloud database then it synced in local DB. 如果云数据库中有任何更新,则它会在本地数据库中同步。 can parse useful for this or not? 解析对此有用吗? Please help me if someone know. 如果有人知道,请帮助我。

Yes, you can use parse for this purpose. 是的,您可以为此使用解析。 Start with this tutorial here. 从这里开始本教程。 It gives you step by step procedure for the exact requirement as yours. 它按照您的确切要求为您提供了逐步的过程。 https://www.parse.com/tutorials/using-the-local-datastore . https://www.parse.com/tutorials/using-the-local-datastore Hope this helps. 希望这可以帮助。

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

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