What about multithreading in Android SQLite?

前端 未结 6 1049
旧巷少年郎
旧巷少年郎 2021-02-05 16:06

In my app I\'ve got to implement some UI and Sync service. It runs in the background and updates data. Sync service is not very simple, it uses multithreading.

So, here

6条回答
  •  时光说笑
    2021-02-05 16:18

    If you use only one singleton helper class to access the db you don't need to synchronize yourself and you can use the helper from multiple readers/writers because helper class manages synchronization itself.

    Look at this post for mor detailed explanation

提交回复
热议问题