在Androiid开发中我们肯定会遇到数据处理的很多机制,这里我们主要总结下Android开发中的ContentProvider。
顾名思义,就是数内容的供应者。在Android开发中它是一个数据源,屏蔽了具体底层数据源的细节,在ContentProvider内部你可以用Android支持的任何手段进行数据的存储和操作,可能比较常用的方式是基于Android的SQLite数据库(恩,文档中和示例代码都是以此为例)。无论如何,ContentProvider是一个重要的数据源。
Browser
Browser.BookmarkColumns
Browser.SearchColumns
CallLog The CallLog provider contains information about placed and received calls.
CallLog.Calls Contains the recent calls.
Contacts The Contacts provider stores all information about contacts.
Contacts.ContactMethods This table stores all non-phone contact methods and a reference to the person that the contact method belongs to.
Contacts.Extensions The extensions for a person
Contacts.GroupMembership
Contacts.Groups This table contains the groups for an account.
Contacts.Intents Contains helper classes used to create or manage Intents that involve contacts.
Contacts.Intents.Insert Convenience class that contains string constants used to create contact Intents.
Contacts.Intents.UI Intents related to the Contacts app UI.
Contacts.Organizations A sub directory of a single person that contains all of their Phones.
Contacts.People This table contains people.
Contacts.People.ContactMethods A subdirectory of a single person that contains all of their ContactMethods.
Contacts.People.Extensions The extensions for a person
Contacts.People.Phones A sub directory of a single person that contains all of their Phones.
Contacts.Phones This table stores phone numbers and a reference to the person that the contact method belongs to.
Contacts.Photos The photos over all of the people
Contacts.Settings The settings over all of the people
LiveFolders A LiveFolder is a special folder whose content is provided by a ContentProvider.
MediaStore The Media provider contains meta data for all available media on both internal and external storage devices.
MediaStore.Audio Container for all audio content.
MediaStore.Audio.Albums Contains artists for audio files
MediaStore.Audio.Artists Contains artists for audio files
MediaStore.Audio.Artists.Albums Sub-directory of each artist containing all albums on which a song by the artist appears.
MediaStore.Audio.Genres Contains all genres for audio files
MediaStore.Audio.Genres.Members Sub-directory of each genre containing all members.
MediaStore.Audio.Media
MediaStore.Audio.Playlists Contains playlists for audio files
MediaStore.Audio.Playlists.Members Sub-directory of each playlist containing all members.
MediaStore.Images Contains meta data for all available images.
MediaStore.Images.Media
MediaStore.Images.Thumbnails
MediaStore.Video
MediaStore.Video.Media
SearchRecentSuggestions This is a utility class providing access to SearchRecentSuggestionsProvider.
Settings The Settings provider contains global system-level device preferences.
Settings.NameValueTable Common base for tables of name/value settings.
Settings.Secure Secure system settings, containing system preferences that applications can read but are not allowed to write.
Settings.System System settings, containing miscellaneous system preferences.
UserDictionary A provider of user defined words for input methods to use for predictive text input.
UserDictionary.Words Contains the user defined words