connexion20000
connexion20000

Reputation: 335

UI Thread slowing down when updating CursorAdapter

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

Answers (1)

jsmith
jsmith

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

Related Questions