自定义内容提供商的android [英] custom content providers in android

查看:172
本文介绍了自定义内容提供商的android的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图使自定义的ContentProvider使多个应用程序(活动?)可以访问它。我有一个关于如何做到这一点的几个问题,

I'm attempting to make a custom ContentProvider so that more than one application (activity?) has access to it. I have several questions about how to do this,

我如何申报在code,这是一个ContentProvider的? 如何做其他应用程序(活动?),使用或进口的ContentProvider?

How do I declare in the code that it is a ContentProvider? How do other applications (activities?) use or import the ContentProvider?

推荐答案

除了丰富的的开发指南的内容提供商的话题,你可以看的记事本教程注意垫样品code 有关创建自己的内容提供者的信息。

Aside from the extensive developer guide topic on content providers, you can look at the Notepad Tutorial and Note Pad sample code for information on creating your own content providers.

这篇关于自定义内容提供商的android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆