Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to have same Authority for content provider in 2 different android apps?

Can anyone explain me what will happen if I have 2 apps which individually have their own content providers, but have same authority. So if I call insert using getContentResolver(), which content provider will be called?

like image 618
rahul Avatar asked Oct 21 '25 03:10

rahul


1 Answers

Can anyone explain me what will happen if I have 2 apps which individually have their own content providers, but have same authority.

Whichever one you try to install second on the same device will fail to install, with a "duplicate provider authority" install error.

like image 124
CommonsWare Avatar answered Oct 26 '25 06:10

CommonsWare