The application that offers the provider needs to have the <provider>
element in its manifest file. This declares the provider to Android.
Any other application that uses the provider has to know the
provider's authority.

So if application A creates the provider, then application A's
manifest must include something like:

<provider android:name="com.somename.ProviderClass"
          android:authorities="com.somename.theprovider"/>
</provider>

"com.somename.ProviderClass" is the fully-qualified name of the class
that extends ContentProvider. The android:authorities attribute
provides a unique name for the provider. The best way to get a unique
name is to use a domain name you own. For example, the OP could make
an authority
"com.pedroteixeira.org.somename.theprovider" as the authority. See
http://developer.android.com/guide/topics/providers/content-providers.html
for more details.

If you're sure that you don't have the <providers> element in both
applications, then it's possible you've mistakenly copied an authority
from an example somewhere, and that authority is already installed on
your device. Android maintains a global table of providers, organized
by authority name.


On Sep 27, 8:10 am, Pedro Teixeira <[email protected]> wrote:
> Anyone has a clue about this?
>
> Please... I have to applications... one has a provider tag in the  
> manifest, the other doesn't have anything.
> And I keep getting this error but I don't know how can I change it  
> since I don't know which one is the standard.
>
> On Sep 27, 2010, at 8:59 AM, Pedro Teixeira wrote:
>
>
>
>
>
> > Hi all,
>
> > I know this will be elementray but I'm not finding anywhere for a
> > straightforward answer...
> > I'm getting this : Installation error:
> > INSTALL_FAILED_CONFLICTING_PROVIDER
>
> > Which apparentlly seems I'm I give the provider an authority which is
> > already being used by another app on the system.
>
> > I mean.. how do I change that? What authority are everyone talking
> > about, I can't find anything like that in the manifest...
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to [email protected]
> > To unsubscribe from this group, send email to
> > [email protected]
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> Pedro Teixeira
>
> www.pedroteixeira.org

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to