As I understand it, the Content Provider is a means of accessing the contents of the database.
And access to the database requires some authority. This portion of authority is granted by CONTENT_URI. Therefore, Content_URI is a means to grant authority to the database. As for CONTENT_URI, it usually has the form
content://com.example.transportationprovider/trains/122 ______ |____________________________________|_____ |___ ABCD Where A = Content, B = Authority Part c = Path determining what data to request D = specific data
The above script is an ideal script in which we walk / train as the only database name. But what if I have the following content_uri:
content://com.example.transportationprovider/land/bus/133
In this case, /land/bus are the path segments.
But then internally, how is this data stored in a database? Or how does the content interpreter interpret this data?
Please help me.
android android-contentprovider
Ashish
source share