开发者

notify change in SQLite

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜