Reputation: 2564
I want to know if could be possible that your custom content provider could be called by default by the operating system.
For example, if you open the contact app, is possible that in this moment your custom provider could be called and check at this moment?
If this is possible, how can I do this?
Thanks,
Upvotes: 0
Views: 33
Reputation: 1007359
Content provider authority names must be unique on the device. Your app cannot even be installed if it has an authority name that matches an existing one, whether the existing one is from another ordinary SDK app or from some pre-installed app. Hence, you cannot replace an existing content provider by "name".
Android does not offer any facility whereby the user could say "for ContentProvider
operations for such-and-so content, please use this app rather than this pre-installed app", so the user cannot request to redirect all requests to your provider either.
Upvotes: 1