The Wayback Machine - https://web.archive.org/web/20151028230522/http://developer.xamarin.com:80/api/namespace/Android.Provider/
Android Guides | Samples

Android.Provider Namespace

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

Remarks

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.

Classes

TypeReason
AddressDataKindEnumerates values returned by several methods of AddressDataKind and taken as a parameter of the ContactsContract+CommonDataKinds+StructuredPostal.GetTypeLabel, ContactsContract+CommonDataKinds+StructuredPostal.GetTypeLabelFormatted, and ContactsContract+CommonDataKinds+StructuredPostal.GetTypeLabelResource members.
AggregateExceptionEnumerates values returned by the AggregateException.Automatic, AggregateException.KeepSeparate, and AggregateException.KeepTogether members.
AggregationModeEnumerates values returned by several methods of AggregationMode.
AlarmClockThe 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.
BaseColumns [Android Documentation]
BaseColumnsConsts
Browser [Android Documentation]
Browser+BookmarkColumnsColumn definitions for the mixed bookmark and history items available at Browser.BookmarksUri.
Browser+BookmarkColumns+InterfaceConsts
SearchColumnsColumn definitions for the search history table, available at Browser.SearchesUri.
InterfaceConsts
CalendarAccessEnumerates values returned by several types.
CalendarAlertsStateEnumerates values returned by several types.
CalendarAttendeesColumnEnumerates values returned by several types.
CalendarAttendeesRelationshipEnumerates values returned by several types.
CalendarAttendeesStatusEnumerates values returned by several types.
CalendarColoredTypesEnumerates values returned by several types.
CalendarContract

Overview

AttendeesFields and helpers for interacting with Attendees.
InterfaceConsts
AttendeesColumnsColumns from the Attendees table that other tables join into themselves.
AttendeesColumnsConsts
CalendarAlertsFields and helpers for accessing calendar alerts information.
InterfaceConsts
CalendarAlertsColumns
CalendarAlertsColumnsConsts
CalendarCacheCalendarCache stores some settings for calendar including the current time zone for the instances.
InterfaceConsts
CalendarCacheColumns
CalendarCacheColumnsConsts
CalendarColumnsColumns specific to the Calendars Uri that other Uris can query.
CalendarColumnsConsts
CalendarEntityClass that represents a Calendar Entity.
InterfaceConsts
CalendarsConstants and helpers for the Calendars table, which contains details for individual calendars.
InterfaceConsts
CalendarSyncColumnsGeneric columns for use by sync adapters.
CalendarSyncColumnsConsts
ColorsFields for accessing colors available for a given account.
InterfaceConsts
ColorsColumns
ColorsColumnsConsts
EventDaysFields and helpers for querying for a list of days that contain events.
InterfaceConsts
EventDaysColumns
EventDaysColumnsConsts
EventsConstants and helpers for the Events table, which contains details for individual events.
InterfaceConsts
EventsColumnsColumns from the Events table that other tables join into themselves.
EventsColumnsConsts
EventsEntityClass that represents an Event Entity.
InterfaceConsts
ExtendedPropertiesFields for accessing the Extended Properties.
InterfaceConsts
ExtendedPropertiesColumns
ExtendedPropertiesColumnsConsts
InstancesFields and helpers for interacting with Instances.
InterfaceConsts
RemindersFields and helpers for accessing reminders for an event.
InterfaceConsts
RemindersColumns
RemindersColumnsConsts
SyncColumnsColumns for Sync information used by Calendars and Events tables.
SyncColumnsConsts
SyncStateA table provided for sync adapters to use for storing private sync state data.
InterfaceConsts
CallerPresentationEnumerates values returned by several types.
CallLogThe CallLog provider contains information about placed and received calls.
CallsContains the recent calls.
InterfaceConsts
CallTypeEnumerates values returned by several methods of CallType.
ChatCapabilityEnumerates values returned by several types.
ContactKindEnumerates values returned by several methods of ContactKind and taken as a parameter of the Contacts+ContactMethods.GetDisplayLabel, and Contacts+ContactMethods.GetDisplayLabelFormatted members.
ContactMethodColumnEnumerates values returned by several methods of ContactMethodColumn and taken as a parameter of the Contacts+ContactMethods.GetDisplayLabel, and Contacts+ContactMethods.GetDisplayLabelFormatted members.
ContactOrganizationColumnEnumerates values returned by the ContactOrganizationColumn.Custom, ContactOrganizationColumn.Other, and ContactOrganizationColumn.Work members and taken as a parameter of the Contacts+Organizations.GetDisplayLabel, and Contacts+Organizations.GetDisplayLabelFormatted members.
ContactPhoneColumnEnumerates values returned by several methods of ContactPhoneColumn and taken as a parameter of several methods of Phones.
ContactPresenceStatusEnumerates values returned by several types.
ContactProtocolEnumerates values returned by several methods of ContactProtocol.
ContactsThe Contacts provider stores all information about contacts.
ContactMethodsThis table stores all non-phone contact methods and a reference to the person that the contact method belongs to.
InterfaceConsts
ContactMethodsColumnsColumns from the ContactMethods table that other tables join into themseleves.
ContactMethodsColumnsConsts
ExtensionsThe extensions for a person
InterfaceConsts
ExtensionsColumns
ExtensionsColumnsConsts
GroupMembership
InterfaceConsts
GroupsThis table contains the groups for an account.
InterfaceConsts
GroupsColumnsColumns from the groups table.
GroupsColumnsConsts
IntentsContains helper classes used to create or manage Intent that involve contacts.
InsertConvenience class that contains string constants used to create contact Intent.
UIIntents related to the Contacts app UI.
OrganizationColumnsColumns from the Organizations table that other columns join into themselves.
OrganizationColumnsConsts
OrganizationsA sub directory of a single person that contains all of their Phones.
InterfaceConsts
PeopleThis table contains people.
ContactMethodsA subdirectory of a single person that contains all of their ContactMethods.
InterfaceConsts
ExtensionsThe extensions for a person
InterfaceConsts
InterfaceConsts
PhonesA sub directory of a single person that contains all of their Phones.
InterfaceConsts
PeopleColumnsColumns from the People table that other tables join into themselves.
PeopleColumnsConsts
PhonesThis table stores phone numbers and a reference to the person that the contact method belongs to.
InterfaceConsts
PhonesColumnsColumns from the Phones table that other columns join into themselves.
PhonesColumnsConsts
PhotosThe photos over all of the people
InterfaceConsts
PhotosColumnsColumns from the Photos table that other columns join into themselves.
PhotosColumnsConsts
PresenceColumnsThe IM presence columns with some contacts specific columns mixed in.
PresenceColumnsConsts
SettingsThe settings over all of the people
InterfaceConsts
SettingsColumnsColumns from the Settings table that other columns join into themselves.
SettingsColumnsConsts
ContactsContract

Overview

AggregationExceptions

Columns

AggregationExceptions
int AggregationExceptions.Type read/write The type of exception: AggregateException.KeepTogether, AggregateException.KeepSeparate or AggregateException.Automatic.
long AggregationExceptions.RawContactId1 read/write A reference to the BaseColumns.Id of the raw contact that the rule applies to.
long AggregationExceptions.RawContactId2 read/write A reference to the other BaseColumns.Id of the raw contact that the rule applies to.
InterfaceConsts
BaseSyncColumnsGeneric columns for use by sync adapters.
BaseSyncColumnsConsts
CommonDataKindsContainer for definitions of common data types stored in the Data table.
BaseTypesThe base types that all "Typed" data kinds support.
BaseTypesConsts
Callable
InterfaceConsts
CommonColumnsColumns common across the specific types.
CommonColumnsConsts
ContactablesA special class of data items, used to refer to types of data that can be used to attempt to start communicating with a person (Phone and Email).
InterfaceConsts
Email

Column aliases

Type Alias Data column
String Email.Address DataColumns.Data1 Email address itself.
int CommonColumns.Type DataColumns.Data2 Allowed values are:
String CommonColumns.Label DataColumns.Data3
InterfaceConsts
Event

Column aliases

Type Alias Data column
String Event.StartDate DataColumns.Data1
int CommonColumns.Type DataColumns.Data2 Allowed values are:
String CommonColumns.Label DataColumns.Data3
InterfaceConsts
GroupMembership

Column aliases

Type Alias Data column
long GroupMembership.GroupRowId DataColumns.Data1
String GroupMembership.GroupSourceId none If this field is specified, the provider will first try to look up a group with this Groups. If such a group is found, it will use the corresponding row id. If the group is not found, it will create one.
InterfaceConsts
IdentityA data kind representing an Identity related to the contact.
InterfaceConsts
Im

Column aliases

Type Alias Data column
String CommonColumns.Data DataColumns.Data1
int CommonColumns.Type DataColumns.Data2 Allowed values are:
String CommonColumns.Label DataColumns.Data3
String Im.Protocol DataColumns.Data5
String Im.CustomProtocol DataColumns.Data6
InterfaceConsts
Nickname

Column aliases

Type Alias Data column
String Nickname.Name DataColumns.Data1
int CommonColumns.Type DataColumns.Data2 Allowed values are:
String CommonColumns.Label DataColumns.Data3
InterfaceConsts
Note

Column aliases

Type Alias Data column
String Note.NoteColumnId DataColumns.Data1
InterfaceConsts
Organization

Column aliases

Type Alias Data column
String Organization.Company DataColumns.Data1
int CommonColumns.Type DataColumns.Data2 Allowed values are:
String CommonColumns.Label DataColumns.Data3
String Organization.Title DataColumns.Data4
String Organization.Department DataColumns.Data5
String Organization.JobDescription DataColumns.Data6
String Organization.Symbol DataColumns.Data7
String Organization.PhoneticName DataColumns.Data8
String Organization.OfficeLocation DataColumns.Data9
String PHONETIC_NAME_STYLE DataColumns.Data10
InterfaceConsts
Phone

Column aliases

Type Alias Data column
String Phone.Number DataColumns.Data1
int CommonColumns.Type DataColumns.Data2 Allowed values are:
String CommonColumns.Label DataColumns.Data3
InterfaceConsts
Photo

Column aliases

Type Alias Data column
NUMBER Photo.PhotoFileId DataColumns.Data14 ID of the hi-res photo file.
BLOB Photo.PhotoColumnId DataColumns.Data15 By convention, binary data is stored in DATA15. The thumbnail of the photo is stored in this column.
InterfaceConsts
Relation

Column aliases

Type Alias Data column
String Relation.Name DataColumns.Data1
int CommonColumns.Type DataColumns.Data2 Allowed values are:
String CommonColumns.Label DataColumns.Data3
InterfaceConsts
SipAddress

Column aliases

Type Alias Data column
String SipAddress.SipAddressColumnId DataColumns.Data1
int CommonColumns.Type DataColumns.Data2 Allowed values are:
String CommonColumns.Label DataColumns.Data3
InterfaceConsts
StructuredNameA data kind representing the contact's proper name.
InterfaceConsts
StructuredPostal

Column aliases

Type Alias Data column
String StructuredPostal.FormattedAddress DataColumns.Data1
int CommonColumns.Type DataColumns.Data2 Allowed values are:
String CommonColumns.Label DataColumns.Data3
String StructuredPostal.Street DataColumns.Data4
String StructuredPostal.Pobox DataColumns.Data5 Post Office Box number
String StructuredPostal.Neighborhood DataColumns.Data6
String StructuredPostal.City DataColumns.Data7
String StructuredPostal.Region DataColumns.Data8
String StructuredPostal.Postcode DataColumns.Data9
String StructuredPostal.Country DataColumns.Data10
InterfaceConsts
Website

Column aliases

Type Alias Data column
String Website.Url DataColumns.Data1
int CommonColumns.Type DataColumns.Data2 Allowed values are:
String CommonColumns.Label DataColumns.Data3
InterfaceConsts
ContactNameColumnsContact name and contact name metadata columns in the RawContacts table.
ContactNameColumnsConsts
ContactOptionsColumnsColumns of Contacts that track the user's preferences for, or interactions with, the contact.
ContactOptionsColumnsConsts
ContactsConstants for the contacts table, which contains a record per aggregate of raw contacts representing the same person.
AggregationSuggestions
InterfaceConsts
DataA sub-directory of a single contact that contains all of the constituent raw contact Data rows.
InterfaceConsts
Entity
InterfaceConsts
InterfaceConsts
PhotoA read-only sub-directory of a single contact that contains the contact's primary photo.
InterfaceConsts
StreamItems
InterfaceConsts
ContactsColumnsColumns of Contacts that refer to intrinsic properties of the contact, as opposed to the user-specified options found in ContactOptionsColumns.
ContactsColumnsConsts
ContactStatusColumns
ContactStatusColumnsConsts
Data
InterfaceConsts
DataColumnsColumns in the Data table.
DataColumnsConsts
DataUsageFeedback
DataUsageStatColumnsColumns in the Data_Usage_Stat table
DataUsageStatColumnsConsts
DeletedContactsConstants for the deleted contact table.
InterfaceConsts
DeletedContactsColumns
DeletedContactsColumnsConsts
DirectoryA Directory represents a contacts corpus, e.g.
InterfaceConsts
DisplayNameSourcesTypes of data used to produce the display name for a contact.
DisplayNameSourcesConsts
DisplayPhotoHelper class for accessing full-size photos by photo file ID.
FullNameStyleConstants for various styles of combining given name, family name etc into a full name.
FullNameStyleConsts
GroupsConstants for the groups table.
InterfaceConsts
GroupsColumns
GroupsColumnsConsts
IntentsContains helper classes used to create or manage Intent that involve contacts.
InsertConvenience class that contains string constants used to create contact Intent.
PhoneLookupA table that represents the result of looking up a phone number, for example for caller ID.
InterfaceConsts
PhoneLookupColumns
PhoneLookupColumnsConsts
PhoneticNameStyleConstants for various styles of capturing the pronunciation of a person's name.
PhoneticNameStyleConsts
PinnedPositions
Presence
PresenceColumnsAdditional data mixed in with ContactStatusColumns to link back to specific BaseColumns.Id entries.
PresenceColumnsConsts
Profile

Operations

Insert
The user's profile entry cannot be created explicitly (attempting to do so will throw an exception). When a raw contact is inserted into the profile, the provider will check for the existence of a profile on the device. If one is found, the raw contact's RawContactsColumns.ContactId column gets the _ID of the profile Contact. If no match is found, the profile Contact is created and its _ID is put into the RawContactsColumns.ContactId column of the newly inserted raw contact.
Update
The profile Contact has the same update restrictions as Contacts in general, but requires the android.permission.WRITE_PROFILE permission.
Delete
The profile Contact cannot be explicitly deleted. It will be removed automatically if all of its constituent raw contact entries are deleted.
Query
  • The Profile.ContentUri for profiles behaves in much the same way as retrieving a contact by ID, except that it will only ever return the user's profile contact.
  • The profile contact supports all of the same sub-paths as an individual contact does - the content of the profile contact can be retrieved as entities or data rows. Similarly, specific raw contact entries can be retrieved by appending the desired raw contact ID within the profile.
InterfaceConsts
ProfileSyncStateA table provided for sync adapters to use for storing private sync state data for the user's personal profile.
InterfaceConsts
QuickContactHelper methods to display QuickContact dialogs that allow users to pivot on a specific Contacts entry.
RawContactsConstants for the raw contacts table, which contains one row of contact information for each person in each synced account.
DataA sub-directory of a single raw contact that contains all of its Data rows.
InterfaceConsts
DisplayPhoto
Entity
InterfaceConsts
InterfaceConsts
StreamItems
InterfaceConsts
RawContactsColumns
RawContactsColumnsConsts
RawContactsEntity
InterfaceConsts
SearchSnippets
Settings

Columns

Settings
String SettingsColumns.AccountName read/write-once The name of the account instance to which this row belongs.
String SettingsColumns.AccountType read/write-once The type of account to which this row belongs, which when paired with SettingsColumns.AccountName identifies a specific account.
int SettingsColumns.ShouldSync read/write Depending on the mode defined by the sync-adapter, this flag controls the top-level sync behavior for this data source.
int SettingsColumns.UngroupedVisible read/write Flag indicating if contacts without any GroupMembership entries should be visible in any user interface.
int SettingsColumns.AnyUnsynced read-only Read-only flag indicating if this SettingsColumns.ShouldSync or any GroupsColumns.ShouldSync under this account have been marked as unsynced.
int SettingsColumns.UngroupedCount read-only Read-only count of Contacts from a specific source that have no GroupMembership entries.
int SettingsColumns.UngroupedWithPhones read-only Read-only count of Contacts from a specific source that have no GroupMembership entries, and also have phone numbers.
InterfaceConsts
SettingsColumns
SettingsColumnsConsts
StatusColumnsSocial status update columns.
StatusColumnsConsts
StatusUpdates

Columns

StatusUpdates
long PresenceColumns.DataId read/write Reference to the BaseColumns.Id entry that owns this presence. If this field is not specified, the provider will attempt to find a data row that matches the PresenceColumns.Protocol (or PresenceColumns.CustomProtocol) and PresenceColumns.ImHandle columns.
long PresenceColumns.Protocol read/write See Im for a list of defined protocol constants.
String PresenceColumns.CustomProtocol read/write Name of the custom protocol. Should be supplied along with the PresenceColumns.Protocol value IMProtocolDataKind.Custom. Should be null or omitted if PresenceColumns.Protocol value is not IMProtocolDataKind.Custom.
String PresenceColumns.ImHandle read/write The IM handle the presence item is for. The handle is scoped to PresenceColumns.Protocol.
String PresenceColumns.ImAccount read/write The IM account for the local user that the presence data came from.
int StatusColumns.Presence read/write Contact IM presence status. The allowed values are:
int StatusColumns.ChatCapability read/write Contact IM chat compatibility value. The allowed values combinations of the following flags. If None of these flags is set, the device can only do text messaging.
String StatusColumns.Status read/write Contact's latest status update, e.g. "having toast for breakfast"
long StatusColumns.StatusTimestamp read/write The absolute time in milliseconds when the status was entered by the user. If this value is not provided, the provider will follow this logic: if there was no prior status update, the value will be left as null. If there was a prior status update, the provider will default this field to the current time.
String StatusColumns.StatusResPackage read/write The package containing resources for this status: label and icon.
long StatusColumns.StatusLabel read/write The resource ID of the label describing the source of contact status, e.g. "Google Talk". This resource is scoped by the StatusColumns.StatusResPackage.
long StatusColumns.StatusIcon read/write The resource ID of the icon for the source of contact status. This resource is scoped by the StatusColumns.StatusResPackage.
InterfaceConsts
StreamItemPhotos

Account check

Operations

Insert
Update
Delete
Deletes can be made against either a specific photo item in a stream item, or against all or a selected subset of photo items under a stream item. For example:
Deleting a single photo via the StreamItemPhotos.ContentDirectory sub-path of a stream item:
Deleting all photos under a stream item
Query
Querying for a specific photo in a stream item

java Example

 Cursor c = getContentResolver().query(
     ContentUris.withAppendedId(
         Uri.withAppendedPath(
             ContentUris.withAppendedId(StreamItems.CONTENT_URI, streamItemId)
             StreamItems.StreamItemPhotos#CONTENT_DIRECTORY),
         streamItemPhotoId), null, null, null, null);
Querying for all photos in a stream item

java Example

 Cursor c = getContentResolver().query(
     Uri.withAppendedPath(
         ContentUris.withAppendedId(StreamItems.CONTENT_URI, streamItemId)
         StreamItems.StreamItemPhotos#CONTENT_DIRECTORY),
     null, null, null, StreamItemPhotos.SORT_INDEX);
The record will contain both a StreamItemPhotosColumns.PhotoFileId and a StreamItemPhotosColumns.PhotoUri. The StreamItemPhotosColumns.PhotoFileId can be used in conjunction with the DisplayPhoto API to retrieve photo content, or you can open the StreamItemPhotosColumns.PhotoUri as an asset file, as follows:

java Example

 public InputStream openDisplayPhoto(String photoUri) {
     try {
         AssetFileDescriptor fd = getContentResolver().openAssetFileDescriptor(photoUri, "r");
         return fd.createInputStream();
     } catch (IOException e) {
         return null;
     }
 }
InterfaceConsts
StreamItemPhotosColumnsColumns in the StreamItemPhotos table.
StreamItemPhotosColumnsConsts
StreamItems
InterfaceConsts
StreamItemPhotos
InterfaceConsts
StreamItemsColumnsColumns in the StreamItems table.
StreamItemsColumnsConsts
SyncColumnsColumns that appear when each row of a table belongs to a specific account, including sync information that an account may need.
SyncColumnsConsts
SyncStateA table provided for sync adapters to use for storing private sync state data for contacts.
InterfaceConsts
DisplayModeEnumerates values returned by the DisplayMode.Grid, and DisplayMode.List members.
DisplayNameSourcesEnumerates values returned by several types.
DocumentContractFlagsEnumerates values returned by several types.
DocumentRootFlagsEnumerates values returned by several types.
DocumentsContractDefines the contract between a documents provider and the platform.
Document
Root
DocumentsProviderBase class for a document provider.
EmailDataKindEnumerates values returned by several methods of EmailDataKind and taken as a parameter of the ContactsContract+CommonDataKinds+Email.GetTypeLabel, ContactsContract+CommonDataKinds+Email.GetTypeLabelFormatted, and ContactsContract+CommonDataKinds+Email.GetTypeLabelResource members.
EventDataKindEnumerates values returned by several methods of EventDataKind and taken as a parameter of the ContactsContract+CommonDataKinds+Event.GetTypeLabel, ContactsContract+CommonDataKinds+Event.GetTypeLabelFormatted, and ContactsContract+CommonDataKinds+Event.GetTypeResource members.
EventsAccessEnumerates values returned by several types.
EventsAvailabilityEnumerates values returned by several types.
EventsStatusEnumerates values returned by several types.
ExportSupportEnumerates values returned by several types.
FullNameStyleEnumerates values returned by several types.
GlobalWifiSleepPolicyEnumerates values returned by several types.
HistoryProjectionEnumerates values returned by several methods of HistoryProjection.
IMProtocolDataKindEnumerates values returned by several methods of IMProtocolDataKind and taken as a parameter of the ContactsContract+CommonDataKinds+Im.GetProtocolLabel, ContactsContract+CommonDataKinds+Im.GetProtocolLabelFormatted, and ContactsContract+CommonDataKinds+Im.GetProtocolLabelResource members.
IMTypeDataKindEnumerates values returned by several methods of IMTypeDataKind and taken as a parameter of the ContactsContract+CommonDataKinds+Im.GetTypeLabel, ContactsContract+CommonDataKinds+Im.GetTypeLabelFormatted, and ContactsContract+CommonDataKinds+Im.GetTypeLabelResource members.
LiveFolders

Lifecycle

Setting up the live folder activity

java Example

 public static class MyLiveFolder extends Activity {
     public static final Uri CONTENT_URI = Uri.parse("content://my.app/live");

     protected void onCreate(Bundle savedInstanceState) {
         super.onCreate(savedInstanceState);

         final Intent intent = getIntent();
         final String action = intent.getAction();

         if (LiveFolders.ACTION_CREATE_LIVE_FOLDER.equals(action)) {
             setResult(RESULT_OK, createLiveFolder(this, CONTENT_URI, "My LiveFolder",
                     R.drawable.ic_launcher_contacts_phones));
         } else {
             setResult(RESULT_CANCELED);
         }

         finish();
     }

     private static Intent createLiveFolder(Context context, Uri uri, String name,
             int icon) {

         final Intent intent = new Intent();

         intent.setData(uri);
         intent.putExtra(LiveFolders.EXTRA_LIVE_FOLDER_NAME, name);
         intent.putExtra(LiveFolders.EXTRA_LIVE_FOLDER_ICON,
                 Intent.ShortcutIconResource.fromContext(context, icon));
         intent.putExtra(LiveFolders.EXTRA_LIVE_FOLDER_DISPLAY_MODE, LiveFolders.DISPLAY_MODE_LIST);

         return intent;
     }
 }
Component Type Description Required
URI URI The ContentProvider URI Yes
LiveFolders.ExtraLiveFolderName Extra String The name of the live folder Yes
LiveFolders.ExtraLiveFolderIcon Extra NoType:android/content/Intent$ShortcutIconResource;Href=../../../reference/android/content/Intent.ShortcutIconResource.html The icon of the live folder Yes
LiveFolders.ExtraLiveFolderDisplayMode Extra int The display mode of the live folder. The value must be either Android.Provider.LiveFolders.DISPLAY_MODE_GRID or Android.Provider.LiveFolders.DISPLAY_MODE_LIST. Yes
LiveFolders.ExtraLiveFolderBaseIntent Extra Intent When the user clicks an item inside a live folder, the system will either fire the intent associated with that item or, if present, the live folder's base intent with the id of the item appended to the base intent's URI. No

Setting up the content provider

Column Type Description Required
LiveFolders.Name String The name of the item Yes
LiveFolders.Description String The description of the item. The description is ignored when the live folder's display mode is Android.Provider.LiveFolders.DISPLAY_MODE_GRID. No
LiveFolders.Intent Intent The intent to fire when the item is clicked. Ignored when the live folder defines a base intent. No
LiveFolders.IconBitmap Bitmap The icon for the item. When this column value is not null, the values for the columns LiveFolders.IconPackage and LiveFolders.IconResource must be null. No
LiveFolders.IconPackage String The package of the item's icon. When this value is not null, the value for the column LiveFolders.IconResource must be specified and the value for the column LiveFolders.IconBitmap must be null. No
LiveFolders.IconResource String The resource name of the item's icon. When this value is not null, the value for the column LiveFolders.IconPackage must be specified and the value for the column LiveFolders.IconBitmap must be null. No
InterfaceConsts
LocaleTypeEnumerates values returned by the LocaleType.All, and LocaleType.Current members and taken as a parameter of the UserDictionary+Words.AddWord member.
MediaStoreThe Media provider contains meta data for all available media on both internal and external storage devices.
AudioContainer for all audio content.
AlbumColumnsColumns representing an album
AlbumColumnsConsts
AlbumsContains artists for audio files
InterfaceConsts
ArtistColumnsColumns representing an artist
ArtistColumnsConsts
ArtistsContains artists for audio files
AlbumsSub-directory of each artist containing all albums on which a song by the artist appears.
InterfaceConsts
InterfaceConsts
AudioColumnsColumns for audio file that show up in multiple tables.
AudioColumnsConsts
GenresContains all genres for audio files
InterfaceConsts
MembersSub-directory of each genre containing all members.
InterfaceConsts
GenresColumnsColumns representing an audio genre
GenresColumnsConsts
Media
InterfaceConsts
PlaylistsContains playlists for audio files
InterfaceConsts
MembersSub-directory of each playlist containing all members.
InterfaceConsts
PlaylistsColumnsColumns representing a playlist
PlaylistsColumnsConsts
Radio
FilesMedia provider table containing an index of all files in the media storage, including non-media files.
FileColumnsFields for master table for all media files.
FileColumnsConsts
ImagesContains meta data for all available images.
ImageColumns
ImageColumnsConsts
Media
InterfaceConsts
ThumbnailsThis class allows developers to query and get two kinds of thumbnails: MINI_KIND: 512 x 384 thumbnail MICRO_KIND: 96 x 96 thumbnail
InterfaceConsts
MediaColumnsCommon fields for most MediaProvider tables
MediaColumnsConsts
Video
Media
InterfaceConsts
ThumbnailsThis class allows developers to query and get two kinds of thumbnails: MINI_KIND: 512 x 384 thumbnail MICRO_KIND: 96 x 96 thumbnail
InterfaceConsts
VideoColumns
VideoColumnsConsts
MediaTypeEnumerates values returned by several types.
MessageBoxTypeEnumerates values returned by several types.
MmsSmsErrorTypeEnumerates values returned by several types.
MmsSmsProtocolEnumerates values returned by several types.
NicknameDataKindEnumerates values returned by several methods of NicknameDataKind.
OpenableColumnsThese are standard columns for openable URIs.
OpenableColumnsConsts
OrganizationDataKindEnumerates values returned by the OrganizationDataKind.Custom, OrganizationDataKind.Other, and OrganizationDataKind.Work members and taken as a parameter of the ContactsContract+CommonDataKinds+Organization.GetTypeLabel, ContactsContract+CommonDataKinds+Organization.GetTypeLabelFormatted, and ContactsContract+CommonDataKinds+Organization.GetTypeLabelResource members.
PhoneDataKindEnumerates values returned by several methods of PhoneDataKind and taken as a parameter of the ContactsContract+CommonDataKinds+Phone.GetTypeLabel, ContactsContract+CommonDataKinds+Phone.GetTypeLabelFormatted, and ContactsContract+CommonDataKinds+Phone.GetTypeLabelResource members.
PhoneticNameStyleEnumerates values returned by several types.
PhotoSupportEnumerates values returned by several types.
QueriesProjectionEnumerates values returned by several methods of QueriesProjection.
QuickContactModeEnumerates values returned by the QuickContactMode.Large, QuickContactMode.Medium, and QuickContactMode.Small members and taken as a parameter of the ContactsContract+QuickContact.ShowQuickContact, and ContactsContract+QuickContact.ShowQuickContact members.
RelationDataKindEnumerates values returned by several methods of RelationDataKind and taken as a parameter of the ContactsContract+CommonDataKinds+Relation.GetTypeLabel, ContactsContract+CommonDataKinds+Relation.GetTypeLabelFormatted, and ContactsContract+CommonDataKinds+Relation.GetTypeLabelResource members.
RemindersMethodEnumerates values returned by several types.
ScreenBrightnessEnumerates values returned by several types.
SearchesProjectionEnumerates values returned by the SearchesProjection.DateIndex, and SearchesProjection.SearchIndex members.
SearchRecentSuggestionsThis is a utility class providing access to SearchRecentSuggestionsProvider.
SecurityLocationModeEnumerates values returned by several types.
SettingsThe Settings provider contains global system-level device preferences.
GlobalGlobal system settings, containing preferences that always apply identically to all defined users.
NameValueTableCommon base for tables of name/value settings.
InterfaceConsts
SecureSecure system settings, containing system preferences that applications can read but are not allowed to write.
SettingNotFoundException
SystemSystem settings, containing miscellaneous system preferences.
ShortcutSupportEnumerates values returned by several types.
SipAddressDataKindEnumerates values returned by several types and taken as a parameter of the ContactsContract+CommonDataKinds+SipAddress.GetTypeLabel, ContactsContract+CommonDataKinds+SipAddress.GetTypeLabelFormatted, and ContactsContract+CommonDataKinds+SipAddress.GetTypeLabelResource members.
SmsIntentResultEnumerates values returned by several types.
SmsMessageTypeEnumerates values returned by several types.
SmsStatusEnumerates values returned by several types.
StatusPresenceEnumerates values returned by several types and taken as a parameter of the ContactsContract+StatusUpdates.GetPresenceIconResourceId, and ContactsContract+StatusUpdates.GetPresencePrecedence members.
SyncStateContractThe ContentProvider contract for associating data with ana data array account.
Columns
ColumnsConsts
Constants
InterfaceConsts
Helpers
TelephonyThe Telephony provider contains data related to phone operation, specifically SMS and MMS messages and access to the APN list, including the MMSC to use.
BaseMmsColumns
BaseMmsColumnsConsts
CanonicalAddressesColumns
CanonicalAddressesColumnsConsts
Carriers
InterfaceConsts
Mms
Addr
InterfaceConsts
Draft
InterfaceConsts
Inbox
InterfaceConsts
Intents
InterfaceConsts
Outbox
InterfaceConsts
Part
InterfaceConsts
Rate
Sent
InterfaceConsts
MmsSms
InterfaceConsts
PendingMessages
InterfaceConsts
Sms
Conversations
InterfaceConsts
Draft
InterfaceConsts
Inbox
InterfaceConsts
Intents
InterfaceConsts
Outbox
InterfaceConsts
Sent
InterfaceConsts
TextBasedSmsColumns
TextBasedSmsColumnsConsts
Threads
InterfaceConsts
ThreadsColumns
ThreadsColumnsConsts
ThreadTypeEnumerates values returned by several types.
ThumbnailKindEnumerates values returned by the ThumbnailKind.FullScreenKind, ThumbnailKind.MicroKind, and ThumbnailKind.MiniKind members and taken as a parameter of several types.
UserDictionaryA provider of user defined words for input methods to use for predictive text input.
WordsContains the user defined words.
InterfaceConsts
VideoThumbnailKindEnumerates values returned by several types and taken as a parameter of the MediaStore+Video+Thumbnails.GetThumbnail, and MediaStore+Video+Thumbnails.GetThumbnail members.
VoicemailConfigurationStateEnumerates values returned by several types.
VoicemailContractThe contract between the voicemail provider and applications.
StatusDefines fields exposed through the /status path of this content provider.
InterfaceConsts
VoicemailsDefines fields exposed through the /voicemail path of this content provider.
InterfaceConsts
VoicemailDataChannelStateEnumerates values returned by several types.
VoicemailNotificationChannelStateEnumerates values returned by several types.
WebsiteDataKindEnumerates values returned by several methods of WebsiteDataKind.
WifiSleepPolicyEnumerates values returned by several types.