开发者

notify change in SQLite

开发者 https://www.devze.com 2023-03-31 07:23 出处:网络
I have created a SQLite DB (which I am trying to use as contentProvider) and need your help to guide me on this:

I have created a SQLite DB (which I am trying to use as contentProvider) and need your help to guide me on this:

1) Register a content observer (I don't know how to create URI for my Database)

2) 开发者_开发问答on DB changes like update/delete row, I want to notify the contentObserver which has registered to URI of DB .

How can this be done?


You need to extend the ContentProvider class to implement your content provider.

The Android documentation walks you through the necessary steps including how to signal ContentObservers:

http://developer.android.com/guide/topics/providers/content-providers.html

0

精彩评论

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