机器人:约ContentProvider的问题 [英] android: questions about ContentProvider
问题描述
据我了解,ContentProvider的 - 是整个设备的全球数据
该问题:
1)是否有可能开发和销售的ContentProvider只(不活动,即不是作为一个完整的应用程序,但只作为数据)?是否有人这样做?什么时候?
作为用户,将会是什么样子?的ContentProvider的构建和构建正常的应用程序之间的区别是什么?
2)如果另一个开发人员想用我的ContentProvider,那么他怎么就能获得必要跟我ContentProvider的工作列名和其他数据?我给图书馆?
对不起,我的英语水平。
感谢
1)是否有可能开发和销售的ContentProvider只(不
活动,...
块引用>您必须至少有一个活动添加到您的应用程序由user.In其实推出forsecurityreason所有服务,接收器,...您在舱单申报,将不被记录,除非你的应用程序用户,这需要显式运行到主/发射Activity.So你有这样的活动添加到您的应用程序。
2)如果另一个开发人员想用我的ContentProvider,...
块引用>您必须在你的应用程序发布文档。
As I understand it, ContentProvider - is the data on the global level of the whole device?
The questions:
1) Is it possible to develop and distribute only ContentProvider (no Activity, ie not as a complete application, but only as data)? Does anybody do so? And when? As for the user it will look like? What is the difference between build of ContentProvider and build of normal application?
2) If another developer wants to use my ContentProvider, then how he will be able to access the column names and other data necessary to work with my ContentProvider? I have to give the library?
Sorry for my English.
Thanks
解决方案1) Is it possible to develop and distribute only ContentProvider (no Activity,...
You have to add at least one Activity to your App to be launched by user.In fact forsecurityreason all services,receivers,... that you declare in manifest,will not register unless your App run explicitly by user and this needs to a Main/Launcher Activity.So you have to add such Activity to your App.
2) If another developer wants to use my ContentProvider,...
You have to publish documentation in about your App.
这篇关于机器人:约ContentProvider的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!