且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在android studio应用程序上使用Web应用程序数据库

更新时间:2023-02-13 08:31:42

你可能会写一个拉动的服务来自webapi的数据并放入本地SQLite DB。您可以安排该服务以特定间隔执行任务异步。此外,如果服务处于联机状态,您可以尝试同时更新两个数据库。您必须小心处理同步问题。
You probably can write a service that pulls data from webapi and puts into the local SQLite DB. You can schedule that service to do the task async at certain interval. In addition, you can try to update both db at the same time, if the service is online. You have to be careful with synchronizaiton issue.