Android APIs
Added in API level 1
package

android.provider

Provides convenience classes to access the content providers supplied by Android.

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

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

Interfaces

BaseColumns  
CalendarContract.AttendeesColumns Columns from the Attendees table that other tables join into themselves. 
CalendarContract.CalendarAlertsColumns  
CalendarContract.CalendarCacheColumns  
CalendarContract.CalendarColumns Columns specific to the Calendars Uri that other Uris can query. 
CalendarContract.CalendarSyncColumns Generic columns for use by sync adapters. 
CalendarContract.ColorsColumns  
CalendarContract.EventDaysColumns  
CalendarContract.EventsColumns Columns from the Events table that other tables join into themselves. 
CalendarContract.ExtendedPropertiesColumns  
CalendarContract.RemindersColumns  
CalendarContract.SyncColumns Columns for Sync information used by Calendars and Events tables. 
Contacts.ContactMethodsColumns This interface was deprecated in API level 5. see ContactsContract  
Contacts.ExtensionsColumns This interface was deprecated in API level 5. see ContactsContract  
Contacts.GroupsColumns This interface was deprecated in API level 5. see ContactsContract  
Contacts.OrganizationColumns This interface was deprecated in API level 5. see ContactsContract  
Contacts.PeopleColumns This interface was deprecated in API level 5. see ContactsContract  
Contacts.PhonesColumns This interface was deprecated in API level 5. see ContactsContract  
Contacts.PhotosColumns This interface was deprecated in API level 5. see ContactsContract  
Contacts.PresenceColumns This interface was deprecated in API level 5. see ContactsContract  
Contacts.SettingsColumns This interface was deprecated in API level 5. see ContactsContract  
ContactsContract.BaseSyncColumns Generic columns for use by sync adapters. 
ContactsContract.CommonDataKinds.BaseTypes The base types that all "Typed" data kinds support. 
ContactsContract.CommonDataKinds.CommonColumns Columns common across the specific types. 
ContactsContract.ContactNameColumns Contact name and contact name metadata columns in the RawContacts table. 
ContactsContract.ContactOptionsColumns Columns of ContactsContract.Contacts that track the user's preferences for, or interactions with, the contact. 
ContactsContract.ContactsColumns Columns 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.DataColumns Columns in the Data table. 
ContactsContract.DataColumnsWithJoins Combines all columns returned by ContactsContract.Data table queries. 
ContactsContract.DataUsageStatColumns Columns in the Data_Usage_Stat table  
ContactsContract.DeletedContactsColumns  
ContactsContract.DisplayNameSources Types of data used to produce the display name for a contact. 
ContactsContract.FullNameStyle Constants for various styles of combining given name, family name etc into a full name. 
ContactsContract.GroupsColumns  
ContactsContract.PhoneLookupColumns  
ContactsContract.PhoneticNameStyle Constants for various styles of capturing the pronunciation of a person's name. 
ContactsContract.PresenceColumns Additional data mixed in with ContactsContract.StatusColumns to link back to specific _ID entries. 
ContactsContract.RawContactsColumns  
ContactsContract.SettingsColumns  
ContactsContract.StatusColumns Social status update columns. 
ContactsContract.StreamItemPhotosColumns This interface was deprecated in API level 21. - Do not use. This will not be supported in the future. In the future, cursors returned from related queries will be empty.  
ContactsContract.StreamItemsColumns This interface was deprecated in API level 21. - Do not use. This will not be supported in the future. In the future, cursors returned from related queries will be empty.  
ContactsContract.SyncColumns Columns that appear when each row of a table belongs to a specific account, including sync information that an account may need. 
MediaStore.Audio.AlbumColumns Columns representing an album  
MediaStore.Audio.ArtistColumns Columns representing an artist  
MediaStore.Audio.AudioColumns Columns for audio file that show up in multiple tables. 
MediaStore.Audio.GenresColumns Columns representing an audio genre  
MediaStore.Audio.PlaylistsColumns Columns representing a playlist  
MediaStore.Files.FileColumns Fields for master table for all media files. 
MediaStore.Images.ImageColumns  
MediaStore.MediaColumns Common fields for most MediaProvider tables  
MediaStore.Video.VideoColumns  
OpenableColumns These are standard columns for openable URIs. 
SyncStateContract.Columns  
Telephony.BaseMmsColumns Base columns for tables that contain MMSs. 
Telephony.CanonicalAddressesColumns Columns for the "canonical_addresses" table used by MMS and SMS. 
Telephony.TextBasedSmsColumns Base columns for tables that contain text-based SMSs. 
Telephony.ThreadsColumns Columns for the "threads" table used by MMS and SMS. 

Classes

AlarmClock The AlarmClock provider contains an Intent action and extras that can be used to start an Activity to set a new alarm or timer in an alarm clock application. 
Browser  
Browser.BookmarkColumns Column definitions for the mixed bookmark and history items available at BOOKMARKS_URI
Browser.SearchColumns Column definitions for the search history table, available at SEARCHES_URI
CalendarContract

The contract between the calendar provider and applications. 

CalendarContract.Attendees Fields and helpers for interacting with Attendees. 
CalendarContract.CalendarAlerts Fields and helpers for accessing calendar alerts information. 
CalendarContract.CalendarCache CalendarCache stores some settings for calendar including the current time zone for the instances. 
CalendarContract.CalendarEntity Class that represents a Calendar Entity. 
CalendarContract.Calendars Constants and helpers for the Calendars table, which contains details for individual calendars. 
CalendarContract.Colors Fields for accessing colors available for a given account. 
CalendarContract.EventDays Fields and helpers for querying for a list of days that contain events. 
CalendarContract.Events Constants and helpers for the Events table, which contains details for individual events. 
CalendarContract.EventsEntity Class that represents an Event Entity. 
CalendarContract.ExtendedProperties Fields for accessing the Extended Properties. 
CalendarContract.Instances Fields and helpers for interacting with Instances. 
CalendarContract.Reminders Fields and helpers for accessing reminders for an event. 
CalendarContract.SyncState A table provided for sync adapters to use for storing private sync state data. 
CallLog The CallLog provider contains information about placed and received calls. 
CallLog.Calls Contains the recent calls. 
Contacts This class was deprecated in API level 5. The APIs have been superseded by ContactsContract. 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.ContactMethods This class was deprecated in API level 5. see ContactsContract  
Contacts.Extensions This class was deprecated in API level 5. see ContactsContract  
Contacts.GroupMembership This class was deprecated in API level 5. see ContactsContract  
Contacts.Groups This class was deprecated in API level 5. see ContactsContract  
Contacts.Intents This class was deprecated in API level 5. see ContactsContract  
Contacts.Intents.Insert This class was deprecated in API level 5. see ContactsContract  
Contacts.Intents.UI This class was deprecated in API level 5. see ContactsContract  
Contacts.Organizations This class was deprecated in API level 5. see ContactsContract  
Contacts.People This class was deprecated in API level 5. see ContactsContract  
Contacts.People.ContactMethods This class was deprecated in API level 5. see ContactsContract  
Contacts.People.Extensions This class was deprecated in API level 5. see ContactsContract  
Contacts.People.Phones This class was deprecated in API level 5. see ContactsContract  
Contacts.Phones This class was deprecated in API level 5. see ContactsContract  
Contacts.Photos This class was deprecated in API level 5. see ContactsContract  
Contacts.Settings This class was deprecated in API level 5. 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.CommonDataKinds Container for definitions of common data types stored in the ContactsContract.Data table. 
ContactsContract.CommonDataKinds.Callable

Convenient functionalities for "callable" data. 

ContactsContract.CommonDataKinds.Contactables A special class of data items, used to refer to types of data that can be used to attempt to start communicating with a person (ContactsContract.CommonDataKinds.Phone and ContactsContract.CommonDataKinds.Email). 
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.Identity A 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.StructuredName A 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.Contacts Constants 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.Data A sub-directory of a single contact that contains all of the constituent raw contact ContactsContract.Data rows. 
ContactsContract.Contacts.Entity

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

ContactsContract.Contacts.Photo A read-only sub-directory of a single contact that contains the contact's primary photo. 
ContactsContract.Contacts.StreamItems This class was deprecated in API level 21. - Do not use. This will not be supported in the future. In the future, cursors returned from related queries will be empty.  
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.DeletedContacts Constants for the deleted contact table. 
ContactsContract.Directory A Directory represents a contacts corpus, e.g. 
ContactsContract.DisplayPhoto Helper class for accessing full-size photos by photo file ID. 
ContactsContract.Groups Constants for the groups table. 
ContactsContract.Intents Contains helper classes used to create or manage Intents that involve contacts. 
ContactsContract.Intents.Insert Convenience class that contains string constants used to create contact Intents
ContactsContract.PhoneLookup A table that represents the result of looking up a phone number, for example for caller ID. 
ContactsContract.PinnedPositions

Contact-specific information about whether or not a contact has been pinned by the user at a particular position within the system contact application's user interface. 

ContactsContract.Presence This class was deprecated in API level 5. 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.ProfileSyncState A table provided for sync adapters to use for storing private sync state data for the user's personal profile. 
ContactsContract.QuickContact Helper methods to display QuickContact dialogs that display all the information belonging to a specific Contacts entry. 
ContactsContract.RawContacts Constants for the raw contacts table, which contains one row of contact information for each person in each synced account. 
ContactsContract.RawContacts.Data A sub-directory of a single raw contact that contains all of its ContactsContract.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 This class was deprecated in API level 21. - Do not use. This will not be supported in the future. In the future, cursors returned from related queries will be empty.  
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.SearchSnippets Additional column returned by Contacts.CONTENT_FILTER_URI explaining why the filter matched the contact. 
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 This class was deprecated in API level 21. - Do not use. This will not be supported in the future. In the future, cursors returned from related queries will be empty.  
ContactsContract.StreamItems This class was deprecated in API level 21. - Do not use. This will not be supported in the future. In the future, cursors returned from related queries will be empty.  
ContactsContract.StreamItems.StreamItemPhotos This class was deprecated in API level 21. - Do not use. This will not be supported in the future. In the future, cursors returned from related queries will be empty.  
ContactsContract.SyncState A table provided for sync adapters to use for storing private sync state data for contacts. 
DocumentsContract Defines the contract between a documents provider and the platform. 
DocumentsContract.Document Constants related to a document, including Cursor column names and flags. 
DocumentsContract.Root Constants related to a root of documents, including Cursor column names and flags. 
DocumentsProvider Base class for a document provider. 
LiveFolders This class was deprecated in API level 14. Live folders are no longer supported by Android. These have been replaced by the new AppWidget 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.  
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.Audio.Radio  
MediaStore.Files Media provider table containing an index of all files in the media storage, including non-media files. 
MediaStore.Images Contains meta data for all available images. 
MediaStore.Images.Media  
MediaStore.Images.Thumbnails This 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.Thumbnails This class allows developers to query and get two kinds of thumbnails: MINI_KIND: 512 x 384 thumbnail MICRO_KIND: 96 x 96 thumbnail  
SearchRecentSuggestions This is a utility class providing access to SearchRecentSuggestionsProvider
Settings The Settings provider contains global system-level device preferences. 
Settings.Global Global system settings, containing preferences that always apply identically to all defined users. 
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. 
SyncStateContract The ContentProvider contract for associating data with ana data array account. 
SyncStateContract.Constants  
SyncStateContract.Helpers  
Telephony The Telephony provider contains data related to phone operation, specifically SMS and MMS messages and access to the APN list, including the MMSC to use. 
Telephony.Carriers Carriers class contains information about APNs, including MMSC information. 
Telephony.Mms Contains all MMS messages. 
Telephony.Mms.Addr Contains address information for an MMS message. 
Telephony.Mms.Draft Contains all MMS messages in the MMS app drafts folder. 
Telephony.Mms.Inbox Contains all MMS messages in the MMS app inbox. 
Telephony.Mms.Intents Intents class. 
Telephony.Mms.Outbox Contains all MMS messages in the MMS app outbox. 
Telephony.Mms.Part Contains message parts. 
Telephony.Mms.Rate Message send rate table. 
Telephony.Mms.Sent Contains all MMS messages in the MMS app sent folder. 
Telephony.MmsSms Contains all MMS and SMS messages. 
Telephony.MmsSms.PendingMessages Contains pending messages info. 
Telephony.Sms Contains all text-based SMS messages. 
Telephony.Sms.Conversations Contains all sent text-based SMS messages in the SMS app. 
Telephony.Sms.Draft Contains all sent text-based SMS messages in the SMS app. 
Telephony.Sms.Inbox Contains all text-based SMS messages in the SMS app inbox. 
Telephony.Sms.Intents Contains constants for SMS related Intents that are broadcast. 
Telephony.Sms.Outbox Contains all pending outgoing text-based SMS messages. 
Telephony.Sms.Sent Contains all sent text-based SMS messages in the SMS app. 
Telephony.Threads Helper functions for the "threads" table used by MMS and SMS. 
UserDictionary A provider of user defined words for input methods to use for predictive text input. 
UserDictionary.Words Contains the user defined words. 
VoicemailContract The contract between the voicemail provider and applications. 
VoicemailContract.Status Defines fields exposed through the /status path of this content provider. 
VoicemailContract.Voicemails Defines fields exposed through the /voicemail path of this content provider. 

Exceptions