Well if the StoryProvider class is inside a subpackage, you have to
add it to the name.

For example if your main package is
com.example.writer and the StoryProvider class is inside
com.example.writer.story then you need to change
android:name="StoryProvider" into android:name=".story.StoryProvider"


<manifest xmlns:android="http://schemas.android.com/apk/res/android";
      package="com.odessa.myapp"
      android:versionCode="1"
      android:versionName="1.0.0">
    <application android:icon="@drawable/icon" android:label="@string/
app_name">
        <provider       android:name=".Items.ItemsProvider"
                                android:authorities="com.odessa.myapp.Items" />
...
On Jan 17, 1:28 pm, Jean-Baptiste Queru <[email protected]> wrote:
> I'd recommend putting the full class name (including the full package
> name) in the android:name attribute. I don't know if that's it, but it
> can't hurt.
>
> JBQ
>
>
>
>
>
> On Fri, Jan 16, 2009 at 11:30 PM, Tim Bray <[email protected]> wrote:
> > I've written a ContentProvider, stealing heavily from NotePadProvider, I've
> > got the <content> in the manifest,
>
> > <provider android:name="StoryProvider"
> > android:authorities="com.example.writer.Story" />
>
> > Its CONTENT_URI is com.example.writer.Story/chapters, then when I try to use
> > to use that in a managedQuery(), the cursor comes back null and in the
> > logcat it says
> > E/ActivityThread( 5236): Failed to find provider info for
> > com.example.writer.Story
> > And indeed, the ContentProvider's  query() is not getting called.
> > So, any advice on where to go rooting around?  Is there a list of all the
> > available ContentProviders out there?  What stupid things commonly done by
> > n00bs prevent a ContentProvider from being found?
> > Any advice gratefully welcomed.  Next step, a plunge into the Android
> > source. -Tim
>
> --
> Jean-Baptiste M. "JBQ" Queru
> Android Engineer, Google.
--~--~---------~--~----~------------~-------~--~----~
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