Android data sharing-content provider learning Summary

Source: Internet
Author: User

Content provider as an Android ApplicationProgramOne of the four main components is to achieve data sharing among applications and enhance application reuse. For example, You Need To Obtain Address Book information on your mobile phone during development, in this case, you do not need to re-develop the whole process of reading data,

Instead, you can directly access the content provider object that comes with the system to directly obtain data (this example only shows that there is a ready-made contentprovider that can meet the needs at any time, as long as you have the relevant permissions, you don't have to worry about which application it comes from ).

When using content providers, you also need to use the contentresolver object as a proxy to indirectly manipulate contentprovider to obtain data. Contentprovider can be considered to correspond to one or more data tables (similar to the dataset returned after the query ). Another important concept is uri. It can be used to find the corresponding contentprovider and locate the corresponding data table or field.

After sorting out the relevant knowledge, we will list the following mind map to help you learn things frequently. We hope that we can give you a hint of thinking, which can be considered as a reference.

The night is already deep. I will go to work again tomorrow. In the face of the new week, sort out my thoughts and move on ......

Related Article

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.