Android API Guides 之 App Components(10) - Content Providers
来源:互联网 发布:保安站岗台 淘宝 编辑:程序博客网 时间:2024/05/07 09:10
Content Providers
TOPICS
- Content Provider Basics
- Creating a Content Provider
- Calendar Provider
- Contacts Provider
RELATED SAMPLES
- Contact Manager application
- "Cursor (People)"
- "Cursor (Phones)"
- Sample Sync Adapter
Content providers manage access to a structured set of data. They encapsulate the data, and provide mechanisms for defining data security. Content providers are the standard interface that connects data in one process with code running in another process.
When you want to access data in a content provider, you use theContentResolver
object in your application's Context
to communicate with the provider as a client. The ContentResolver
object communicates with the provider object, an instance of a class that implements ContentProvider
. The provider object receives data requests from clients, performs the requested action, and returns the results.
You don't need to develop your own provider if you don't intend to share your data with other applications. However, you do need your own provider to provide custom search suggestions in your own application. You also need your own provider if you want to copy and paste complex data or files from your application to other applications.
Android itself includes content providers that manage data such as audio, video, images, and personal contact information. You can see some of them listed in the reference documentation for the android.provider
package. With some restrictions, these providers are accessible to any Android application.
The following topics describe content providers in more detail:
- Content Provider Basics
- How to access data in a content provider when the data is organized in tables.
- Creating a Content Provider
- How to create your own content provider.
- Calendar Provider
- How to access the Calendar Provider that is part of the Android platform.
- Contacts Provider
- How to access the Contacts Provider that is part of the Android platform.
- Android API Guides 之 App Components(10) - Content Providers
- Android API Guides 之 App Components(11) - Content Providers - Basics
- Android API Guides 之 App Components(12) - Content Providers - Creating
- Android API Guides 之 App Components(13) - Content Providers - Calendar Provider
- Android API Guides 之 App Components(14) - Content Providers - Contacts Provider
- Android API Guides 之 App Components(15) - Content Providers - Storage Access Framework
- Android API Guides---Content Providers
- Android API Guides 之 App Components(16) - App Widgets
- Android API Guides 之 App Components(3) - Activities
- Android API Guides 之 App Components(4) - Activities - Fragments
- Android API Guides 之 App Components(5) - Activities - Loaders
- Android API Guides 之 App Components(7) - Services
- Android API Guides 之 App Components(9) - Services - AIDL
- Android API Guides - App Components
- Android API Guides 之 App Components(17) - App Widgets - App Widget Host
- API Guides - App Components
- Android API Guides 之 App Components(1) - Intents and Intent Filters
- Android API Guides 之 App Components(2) - Intents and Intent Filters - Common Intents
- oracle数据库常见的问题
- iPhone 6全新概念图:好似大号iPod nano
- 对象的值传递引发的问题
- 程序员技术练级攻略
- 让人有了一种幸福的错觉
- Android API Guides 之 App Components(10) - Content Providers
- 2014-03-31工作日志:判断文件是否存在可以使用GetFileAttributes 方法。
- 见过最萌的一篇快排算法介绍
- 十二步创建你的第一个JavaScript库
- mfc鼠标光标闪烁问题
- oracle spatial初探
- RVO-编译器返回值优化
- Spring JdbcTemplate框架搭建及其增删改查使用指南
- 外星人玩瘦身 Dell发布Alienware X51