Android when to use ContentResolver applyBatch or BulkInsert
问题 Right now for my application when I want to alter data for my ContentProvider, I just use the ContentResolver methods of insert, update, and delete. But on a couple of sample projects in the Android SDK, I notice they use applyBatch or BulkInsert. So I want to know when to use either of these methods and what are the advantages of using them over what I'm doing now. 回答1: Content Providers can have observers, such as Cursors, which are notified each time an insert, update or delete happens.