您的位置:首页 > 移动开发 > Android开发

Android 开发文档 程序基础 ——Content providers组件

2010-06-19 10:47 706 查看
Content providers组件提供一系列可供其他程序使用的数据。

这些数据可以保存在文件系统中,或者SQLite数据库,或者其他任何方法。

Content providers组件扩展了ContentProvider基类,执行一系列让其他程序取得和保存数据的方法。

但是程序不会直接调用这些方法,而是利用ContentResolver对象调用其方法来代替。

ContentResolver对象可以与任何content provider对象对话。

转自我的android博客

原文

A content provider
makes a specific set of the application’s
data available to other applications. The data can be stored in the
file system, in an SQLite database, or in any other manner that makes
sense. The content provider extends the
ContentProvider

base class to implement a standard set of methods that enable other
applications to retrieve and store data of the type it controls.
However, applications do not call these methods directly. Rather they
use a
ContentResolver

object and call its methods instead. A ContentResolver can talk to
any content provider; it cooperates with the provider to manage any
interprocess communication that’s involved.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: