android - Android 中的自定义内容提供商

标签 android android-contentprovider

我正在尝试创建一个自定义 ContentProvider,以便多个应用程序( Activity ?)可以访问它。我有几个关于如何执行此操作的问题,

如何在代码中声明它是 ContentProvider? 其他应用程序( Activity ?)如何使用或导入ContentProvider?

最佳答案

除了广泛的 developer guide topic on content providers ,你可以看看Notepad TutorialNote Pad sample code有关创建您自己的内容提供商的信息。

关于android - Android 中的自定义内容提供商,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2763222/

相关文章:

android - ContentUri 的 id 格式为字符串

android - 使用 PreferenceActivity 并在 ContentProvider 中保存首选项,如何?

android - 根据电话号码添加原始联系人时联系人重复

Android:如何保证文件上传到WCF服务?

android - 通过android查看上传/下载速度

android - adb root 工作 Runtime.GetRuntime().Exec ("su");才不是

安卓 "No content provider found or permission revoke"与安卓 4

android - 有没有办法为 SearchRecentSuggestionsProvider 指定图标?

android - 登录表单不会显示在我的 WebView 中

java - 承运人定制申请