开发者

Cursory requery doesn't refresh contents

开发者 https://www.devze.com 2023-02-14 23:01 出处:网络
I have implemented a ContentProvider for my app. I call startManagingCursor for my Activity. The View doesn\'t update.

I have implemented a ContentProvider for my app. I call startManagingCursor for my Activity. The View doesn't update.

So I go into debug mode and call cursor.requery manually only to see that the contents of the cursor doesn't refresh, and the original values are still there. From the ContentProvider I call notifyChange(contentUri). the c开发者_开发知识库ontentUri is the same as was used in cursor.query originally.

Am I doing something wrong? For now, I have to manually reconstruct the cursor each time, instead of calling simply requery on it.

0

精彩评论

暂无评论...
验证码 换一张
取 消