rahul
rahul

Reputation: 1115

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?

Upvotes: 4

Views: 900

Answers (1)

CommonsWare
CommonsWare

Reputation: 1006869

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.

Upvotes: 4

Related Questions