ContentProvider线程化 [英] ContentProvider Threading
本文介绍了ContentProvider线程化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
很好奇.
getContentResolver().query(...)
我知道加载程序在后台线程上运行查询.这也适用于插入,更新和删除吗?我应该为此类调用创建AsyncTasks,Threads等吗? 较大的更新可能会阻塞我的应用程序的主线程.
I know that Loaders run queries on background threads. Does this also apply to inserts, updates and deletes? Should I create AsyncTasks, Threads, etc... for these kinds of calls? Large updates might block my application's main thread.
getContentResolver().insert(...)
谢谢!
推荐答案
查看全文