Skip to content Skip to sidebar Skip to footer

Allow Users To Only Access Certain Tables In My Content Provider

I'm planning the database for my app. I would like to allow others to use my data. However, I only want them to access a couple tables. Is it possible to only allow other apps to

Solution 1:

In your Android Manifest file you should for your content provider tag set an attribute grandUriPermissions to false. Thus, you will protect all data of your content provider from access. After that inside <provider> </provider> you should add tag <grant-uri-permission>. About its attribute you can read here. (Your case, I guess, is pathPrefix attribute)


Post a Comment for "Allow Users To Only Access Certain Tables In My Content Provider"