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 ......