WEB开发网
开发学院手机开发Android 开发 Android 开发文档 程序基础 之Content providers组... 阅读

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

 2010-06-13 15:21:00 来源:WEB开发网   
核心提示:Content providers组件提供一系列可供其他程序使用的数据,这些数据可以保存在文件系统中,Android 开发文档 程序基础 之Content providers组件,或者SQLite数据库,或者其他任何方法,但是程序不会直接调用这些方法,而是利用ContentResolver对象调用其方法来代替,Cont

Content providers组件提供一系列可供其他程序使用的数据。

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

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

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

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

原文

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.

  出自:http://buhutuu.cn/google-api/android/android-jichu-content-providers/

Tags:Android 开发 文档

编辑录入:coldstar [复制链接] [打 印]
赞助商链接