android.provider 中的各种表列与类

android.provider

Provides convenience classes to access the content providers supplied byAndroid.

Android ships with a number of content providers that store common data suchas contact informations, calendar information, and media files. These classesprovide simplified methods of adding or retrieving data from these contentproviders.

For information about how to use a content provider, see the Content Providers developerguide.

Interfaces

BaseColumns 
CalendarContract.AttendeesColumnsColumns from the Attendees table that other tables join into themselves. 
CalendarContract.CalendarAlertsColumns 
CalendarContract.CalendarCacheColumns 
CalendarContract.CalendarColumnsColumns specific to the Calendars Uri that other Uris can query. 
CalendarContract.CalendarSyncColumnsGeneric columns for use by sync adapters. 
CalendarContract.ColorsColumns 
CalendarContract.EventDaysColumns 
CalendarContract.EventsColumnsColumns from the Events table that other tables join into themselves. 
CalendarContract.ExtendedPropertiesColumns 
CalendarContract.RemindersColumns 
CalendarContract.SyncColumnsColumns for Sync information used by Calendars and Events tables. 
Contacts.ContactMethodsColumnsThis interface is deprecated. see ContactsContract 
Contacts.ExtensionsColumnsThis interface is deprecated. see ContactsContract 
Contacts.GroupsColumnsThis interface is deprecated. see ContactsContract 
Contacts.OrganizationColumnsThis interface is deprecated. see ContactsContract 
Contacts.PeopleColumnsThis interface is deprecated. see ContactsContract 
Contacts.PhonesColumnsThis interface is deprecated. see ContactsContract 
Contacts.PhotosColumnsThis interface is deprecated. see ContactsContract 
Contacts.PresenceColumnsThis interface is deprecated. see ContactsContract 
Contacts.SettingsColumnsThis interface is deprecated. see ContactsContract 
ContactsContract.BaseSyncColumnsGeneric columns for use by sync adapters. 
ContactsContract.CommonDataKinds.BaseTypesThe base types that all "Typed" data kinds support. 
ContactsContract.CommonDataKinds.CommonColumnsColumns common across the specific types. 
ContactsContract.ContactNameColumnsContact name and contact name metadata columns in the RawContacts table. 
ContactsContract.ContactOptionsColumnsColumns of ContactsContract.Contacts that track the user's preferences for, or interactions with, the contact. 
ContactsContract.ContactsColumnsColumns of ContactsContract.Contacts that refer to intrinsic properties of the contact, as opposed to the user-specified options found in ContactsContract.ContactOptionsColumns
ContactsContract.ContactStatusColumns 
ContactsContract.DataColumnsColumns in the Data table. 
ContactsContract.DataColumnsWithJoinsCombines all columns returned by ContactsContract.Data table queries. 
ContactsContract.DisplayNameSourcesTypes of data used to produce the display name for a contact. 
ContactsContract.FullNameStyleConstants for various styles of combining given name, family name etc into a full name. 
ContactsContract.GroupsColumns 
ContactsContract.PhoneLookupColumns 
ContactsContract.PhoneticNameStyleConstants for various styles of capturing the pronunciation of a person's name. 
ContactsContract.PresenceColumnsAdditional data mixed in with ContactsContract.ContactStatusColumns to link back to specific_ID entries. 
ContactsContract.RawContactsColumns 
ContactsContract.SettingsColumns 
ContactsContract.StatusColumnsSocial status update columns. 
ContactsContract.StreamItemPhotosColumnsColumns in the StreamItemPhotos table. 
ContactsContract.StreamItemsColumnsColumns in the StreamItems table. 
ContactsContract.SyncColumnsColumns that appear when each row of a table belongs to a specific account, including sync information that an account may need. 
MediaStore.Audio.AlbumColumnsColumns representing an album 
MediaStore.Audio.ArtistColumnsColumns representing an artist 
MediaStore.Audio.AudioColumnsColumns for audio file that show up in multiple tables. 
MediaStore.Audio.GenresColumnsColumns representing an audio genre 
MediaStore.Audio.PlaylistsColumnsColumns representing a playlist 
MediaStore.Files.FileColumnsFields for master table for all media files. 
MediaStore.Images.ImageColumns 
MediaStore.MediaColumnsCommon fields for most MediaProvider tables 
MediaStore.Video.VideoColumns 
OpenableColumnsThese are standard columns for openable URIs. 
SyncStateContract.Columns 

Classes

AlarmClockThe AlarmClock provider contains an Intent action and extras that can be used to start an Activity to set a new alarm in an alarm clock application. 
Browser 
Browser.BookmarkColumnsColumn definitions for the mixed bookmark and history items available atBOOKMARKS_URI
Browser.SearchColumnsColumn definitions for the search history table, available atSEARCHES_URI
CalendarContract

The contract between the calendar provider and applications. 

CalendarContract.AttendeesFields and helpers for interacting with Attendees. 
CalendarContract.CalendarAlertsFields and helpers for accessing calendar alerts information. 
CalendarContract.CalendarCacheCalendarCache stores some settings for calendar including the current time zone for the instances. 
CalendarContract.CalendarEntityClass that represents a Calendar Entity. 
CalendarContract.CalendarsConstants and helpers for the Calendars table, which contains details for individual calendars. 
CalendarContract.ColorsFields for accessing colors available for a given account. 
CalendarContract.EventDaysFields and helpers for querying for a list of days that contain events. 
CalendarContract.EventsConstants and helpers for the Events table, which contains details for individual events. 
CalendarContract.EventsEntityClass that represents an Event Entity. 
CalendarContract.ExtendedPropertiesFields for accessing the Extended Properties. 
CalendarContract.InstancesFields and helpers for interacting with Instances. 
CalendarContract.RemindersFields and helpers for accessing reminders for an event. 
CalendarContract.SyncStateA table provided for sync adapters to use for storing private sync state data. 
CallLogThe CallLog provider contains information about placed and received calls. 
CallLog.CallsContains the recent calls. 
ContactsThis class is deprecated. The APIs have been superseded byContactsContract. The newer APIs allow access multiple accounts and support aggregation of similar contacts. These APIs continue to work but will only return data for the first Google account created, which matches the original behavior. 
Contacts.ContactMethodsThis class is deprecated. see ContactsContract 
Contacts.ExtensionsThis class is deprecated. see ContactsContract 
Contacts.GroupMembershipThis class is deprecated. see ContactsContract 
Contacts.GroupsThis class is deprecated. see ContactsContract 
Contacts.IntentsThis class is deprecated. see ContactsContract 
Contacts.Intents.InsertThis class is deprecated. see ContactsContract 
Contacts.Intents.UIThis class is deprecated. see ContactsContract 
Contacts.OrganizationsThis class is deprecated. see ContactsContract 
Contacts.PeopleThis class is deprecated. see ContactsContract 
Contacts.People.ContactMethodsThis class is deprecated. see ContactsContract 
Contacts.People.ExtensionsThis class is deprecated. see ContactsContract 
Contacts.People.PhonesThis class is deprecated. see ContactsContract 
Contacts.PhonesThis class is deprecated. see ContactsContract 
Contacts.PhotosThis class is deprecated. see ContactsContract 
Contacts.SettingsThis class is deprecated. see ContactsContract 
ContactsContract

The contract between the contacts provider and applications. 

ContactsContract.AggregationExceptions

Constants for the contact aggregation exceptions table, which contains aggregation rules overriding those used by automatic aggregation. 

ContactsContract.CommonDataKindsContainer for definitions of common data types stored in theContactsContract.Data table. 
ContactsContract.CommonDataKinds.Email

A data kind representing an email address. 

ContactsContract.CommonDataKinds.Event

A data kind representing an event. 

ContactsContract.CommonDataKinds.GroupMembership

Group Membership. 

ContactsContract.CommonDataKinds.IdentityA data kind representing an Identity related to the contact. 
ContactsContract.CommonDataKinds.Im

A data kind representing an IM address

You can use all columns defined for ContactsContract.Data as well as the following aliases. 

ContactsContract.CommonDataKinds.Nickname

A data kind representing the contact's nickname. 

ContactsContract.CommonDataKinds.Note

Notes about the contact. 

ContactsContract.CommonDataKinds.Organization

A data kind representing an organization. 

ContactsContract.CommonDataKinds.Phone

A data kind representing a telephone number. 

ContactsContract.CommonDataKinds.Photo

A data kind representing a photo for the contact. 

ContactsContract.CommonDataKinds.Relation

A data kind representing a relation. 

ContactsContract.CommonDataKinds.SipAddress

A data kind representing a SIP address for the contact. 

ContactsContract.CommonDataKinds.StructuredNameA data kind representing the contact's proper name. 
ContactsContract.CommonDataKinds.StructuredPostal

A data kind representing a postal addresses. 

ContactsContract.CommonDataKinds.Website

A data kind representing a website related to the contact. 

ContactsContract.ContactsConstants for the contacts table, which contains a record per aggregate of raw contacts representing the same person. 
ContactsContract.Contacts.AggregationSuggestions

A read-only sub-directory of a single contact aggregate that contains all aggregation suggestions (other contacts). 

ContactsContract.Contacts.DataA sub-directory of a single contact that contains all of the constituent raw contactContactsContract.Data rows. 
ContactsContract.Contacts.Entity

A sub-directory of a contact that contains all of its ContactsContract.RawContacts as well asContactsContract.Data rows. 

ContactsContract.Contacts.PhotoA read-only sub-directory of a single contact that contains the contact's primary photo. 
ContactsContract.Contacts.StreamItems

A sub-directory of a single contact that contains all of the constituent raw contactContactsContract.StreamItems rows. 

ContactsContract.Data

Constants for the data table, which contains data points tied to a raw contact. 

ContactsContract.DataUsageFeedback

API allowing applications to send usage information for each ContactsContract.Contacts.Data row to the Contacts Provider. 

ContactsContract.DirectoryA Directory represents a contacts corpus, e.g. 
ContactsContract.DisplayPhotoHelper class for accessing full-size photos by photo file ID. 
ContactsContract.GroupsConstants for the groups table. 
ContactsContract.IntentsContains helper classes used to create or manageIntents that involve contacts. 
ContactsContract.Intents.InsertConvenience class that contains string constants used to create contactIntents
ContactsContract.PhoneLookupA table that represents the result of looking up a phone number, for example for caller ID. 
ContactsContract.PresenceThis class is deprecated. This old name was never meant to be made public. Do not use. 
ContactsContract.Profile

Constants for the user's profile data, which is represented as a single contact on the device that represents the user. 

ContactsContract.ProfileSyncStateA table provided for sync adapters to use for storing private sync state data for the user's personal profile. 
ContactsContract.QuickContactHelper methods to display QuickContact dialogs that allow users to pivot on a specificContacts entry. 
ContactsContract.RawContactsConstants for the raw contacts table, which contains one row of contact information for each person in each synced account. 
ContactsContract.RawContacts.DataA sub-directory of a single raw contact that contains all of itsContactsContract.Data rows. 
ContactsContract.RawContacts.DisplayPhoto

A sub-directory of a single raw contact that represents its primary display photo. 

ContactsContract.RawContacts.Entity

A sub-directory of a single raw contact that contains all of its ContactsContract.Data rows. 

ContactsContract.RawContacts.StreamItems

A sub-directory of a single raw contact that contains all of its ContactsContract.StreamItems rows. 

ContactsContract.RawContactsEntity

Constants for the raw contacts entities table, which can be thought of as an outer join of the raw_contacts table with the data table. 

ContactsContract.Settings

Contacts-specific settings for various Account's. 

ContactsContract.StatusUpdates

A status update is linked to a ContactsContract.Data row and captures the user's latest status update via the corresponding source, e.g. 

ContactsContract.StreamItemPhotos

Constants for the stream_item_photos table, which contains photos associated with social stream updates. 

ContactsContract.StreamItems

Constants for the stream_items table, which contains social stream updates from the user's contact list. 

ContactsContract.StreamItems.StreamItemPhotos

A sub-directory of a single stream item entry that contains all of its photo rows. 

ContactsContract.SyncStateA table provided for sync adapters to use for storing private sync state data for contacts. 
LiveFoldersThis class is deprecated. Live folders are no longer supported by Android. These have been replaced by the newAppWidget Collection APIs introduced in HONEYCOMB. These provide all of the features of live folders plus many more. The use of live folders is greatly discouraged because of security issues they introduce -- publishing a live folder requires making all data show for the live folder available to all applications with no permissions protecting it. 
MediaStoreThe Media provider contains meta data for all available media on both internal and external storage devices. 
MediaStore.AudioContainer for all audio content. 
MediaStore.Audio.AlbumsContains artists for audio files 
MediaStore.Audio.ArtistsContains artists for audio files 
MediaStore.Audio.Artists.AlbumsSub-directory of each artist containing all albums on which a song by the artist appears. 
MediaStore.Audio.GenresContains all genres for audio files 
MediaStore.Audio.Genres.MembersSub-directory of each genre containing all members. 
MediaStore.Audio.Media 
MediaStore.Audio.PlaylistsContains playlists for audio files 
MediaStore.Audio.Playlists.MembersSub-directory of each playlist containing all members. 
MediaStore.FilesMedia provider table containing an index of all files in the media storage, including non-media files. 
MediaStore.ImagesContains meta data for all available images. 
MediaStore.Images.Media 
MediaStore.Images.ThumbnailsThis class allows developers to query and get two kinds of thumbnails: MINI_KIND: 512 x 384 thumbnail MICRO_KIND: 96 x 96 thumbnail 
MediaStore.Video 
MediaStore.Video.Media 
MediaStore.Video.ThumbnailsThis class allows developers to query and get two kinds of thumbnails: MINI_KIND: 512 x 384 thumbnail MICRO_KIND: 96 x 96 thumbnail 
SearchRecentSuggestionsThis is a utility class providing access to SearchRecentSuggestionsProvider
SettingsThe Settings provider contains global system-level device preferences. 
Settings.NameValueTableCommon base for tables of name/value settings. 
Settings.SecureSecure system settings, containing system preferences that applications can read but are not allowed to write. 
Settings.SystemSystem settings, containing miscellaneous system preferences. 
SyncStateContractThe ContentProvider contract for associating data with ana data array account. 
SyncStateContract.Constants 
SyncStateContract.Helpers 
UserDictionaryA provider of user defined words for input methods to use for predictive text input. 
UserDictionary.WordsContains the user defined words. 
VoicemailContractThe contract between the voicemail provider and applications. 
VoicemailContract.StatusDefines fields exposed through the /status path of this content provider. 
VoicemailContract.VoicemailsDefines fields exposed through the /voicemail path of this content provider. 

Exceptions

Settings.SettingNotFoundException 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值