开发者

help with Content provider

I've been working on this content provider for a few days now, and I've been looking for answers online.

Could someone please clarify for me.

I am trying to transfer my android sqlite DB from one app to 开发者_开发百科another, and I want to use the content provider. I have it written out, but it is not working.

My question is, does the content provider and the CONTENT_URI go in the same package of the source app? And then I call to it from the other app?


Yes, content provider and the CONTENT_URI can go in the same package of the source app. For the other app to call to it, you will have to have the same CONTENT_URI and then, the content resolver will do the rest for you.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜