It is backwards, android:name is the class name (like all of the other manifest components). The android:authorities is one or more URI authorities for the name of your content provider... which means it should NOT be anything like "com.google.*" since that namespace is owned by Google.
On Wed, Jan 7, 2009 at 6:28 AM, inder <[email protected]> wrote: > > I followed the instructions at > http://code.google.com/android/devel/data/contentproviders.html > and also followed the NotesPad sample for creating my ContentProvider. > However, I can not figure out where exactly the NotePadProvider class > is registered to be the ContentProvider for the specified Content > URI. > > The Android manifest file has this line: > <provider android:name="NotePadProvider" > android:authorities="com.google.provider.NotePad" > /> > > I presume that the android:name here has nothing to do with the class > name, but android:authorities point to a valid class name. However, > the NotePad class makes no reference to NotesPadProvider. > > Can someone enlighten me on how to register my content provider with > Android system? > Thanks > Inder > > > > > -- Dianne Hackborn Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

