Common URIs in Android

Source: Internet
Author: User

The URI of the Android system management contact is as follows
ContactsContract.Contacts.CONTENT_URI managing a contact's URI
ContactsContract.CommonDataKinds.Phone.CONTENT_URI the URI of the phone that manages the contact
ContactsContract.CommonDataKinds.Email.CONTENT_URI the URI of the email that manages the contact
(Note: Contacts has two tables, respectively, Rawcontact and Data,rawcontact record the user's ID and name, where the ID column name is: contactscontract.contacts._id, The Name field is ContactContract.Contracts.DISPLAY_NAME, and the foreign key ID of the telephone information table is ContactsContract.CommonDataKinds.Phone.CONTACT_ID. The phone number column name is:
ContactsContract.CommonDataKinds.Phone.NUMBER.
The name of the email address bar in the data table is:
ContactsContract.CommonDataKinds.Email.DATA
The key bar is: ContactsContract.CommonDataKinds.Email.CONTACT_ID)

The ContentProvider URI provided by Android for multimedia is as follows:
MediaStore.Audio.Media.EXTERNAL_CONTENT_URI audio files stored on an SD card
MediaStore.Audio.Media.INTERNAL_CONTENT_URI audio files stored on the phone's internal memory
MediaStore.Audio.Images.EXTERNAL_CONTENT_URI image file contents on SD card
MediaStore.Audio.Images.INTERNAL_CONTENT_URI image on the internal memory of the phone
MediaStore.Audio.Video.EXTERNAL_CONTENT_URI Video on SD card
MediaStore.Audio.Video.INTERNAL_CONTENT_URI video on your phone's internal memory
(Note: The picture's display name bar: Media.display_name, the picture's detailed description column is: Media.description Picture's save location: Media.data
SMS Uri:content://sms
SMS Uri:content://sms/outbox in the Sending box

Common URIs in Android

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.