Does this simply mean you cannot have both applications installed on the same device because they use the same ContentProvider?
You cannot have both applications installed on the same device because they both attempt to declare the same authority (in android:authorities
) in a <provider>
. There can only be one provider for a given authority.
This is similar to how you cannot have two apps installed with the same package
.
Do I need to create a new ContentProvider in my new Android Project with a new name instead?
I'd start by considering whether a ContentProvider
is necessary, and perhaps drop it if it is not.
Otherwise, the implementation of the ContentProvider
can be the common one from the library project. However, the android:authorities
must be unique, and therefore any clients of that ContentProvider
need to know the right authority to use to reach the right provider.