It's hard to tell exactly what's going wrong without more information,
but it looks like you're probably overriding onCreate() and not
calling super.onCreate().

-Jeff

On Mon, Sep 1, 2008 at 3:50 AM, Alan <[EMAIL PROTECTED]> wrote:
>
> I am using my own content provider extends from
> SyncableContentProvider, and I found that the function bulkInsert is
> "FINAL", why?
>
> Besides, following code using my own content provider always get
> NullPointerException. It even doesn't go into insertInternal( ) of my
> own content provider
>
> getContentResolver().bulkInsert(MY_PROVIDER.CONTENT_URI, some_data)
> .
> As described in document of SyncableContentProvider.bulkInsert, the
> default implementation will
> iterate over the values and call insert(Uri, ContentValues) on each of
> them, so insertInternal() should be called many times, right?
>
> Here are the exception message
>
> java.lang.NullPointerException
>     at
> android.content.SyncableContentProvider.bulkInsert(SyncableContentProvider.java:
> 319)
>     at android.content.ContentProvider
> $Transport.bulkInsert(ContentProvider.java:144)
>     at
> android.content.ContentResolver.bulkInsert(ContentResolver.java:358)
>     at com.cyberon.daemon.Daemon.insertAllData(Daemon.java:734)
>     at com.cyberon.daemon.Daemon.access$3(Daemon.java:699)
>     at com.cyberon.daemon.Daemon$1.run(Daemon.java:314)
>     at java.lang.Thread.run(Thread.java:914)
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to