开发者

How to use a database created in an app in some other app [duplicate]

开发者 https://www.devze.com 2023-03-19 06:11 出处:网络
This question already has answers here: Closed 11 years ago. Possible Duplicate: Access database of another app
This question already has answers here: Closed 11 years ago.

Possible Duplicate:

Access database of another app

I made an app which is a broadcastreceiver, and inside it I have an sqlite database (say X) created. I created database using DatabaseHelper which extends SQLiteOpenHelper.

Now i want to use this database X in my another app. How is it done?

The database X is dynamic, i.e. entries are added as some broadcast is received so this dynamic behavior should be kept in another a开发者_如何学Cpp too.


Read up about ContentProviders. It might be a little tricky to build a content provider over a dynamic data set, but it's definitely possible.

0

精彩评论

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