Reputation: 335
I have custom CursorAdapter in my application with custom ContentProvider. I also have service with separate thread that updates data in my ContentProvider. My problem is that when service updates data in ContentProvider and CursorAdapter updates itself my UI is slowing down. I have circle progress indicator and during those operations, its animation is choppy.
Do you have any ideas, how can I make it more smoother?
Upvotes: 0
Views: 228
Reputation: 4897
I suspect that you should be updating your provider using batch operations.
See if this answer applies to your situation: Android when to use ContentResolver applyBatch or BulkInsert
Upvotes: 1