Caused by: java.lang.NullPointerException
        at android.os.Parcel.readException(Parcel.java:1253)
        at android.os.Parcel.readException(Parcel.java:1235)
        at android.content.IContentService$Stub
$Proxy.registerContentObserver(IContentService.java:419)
        at
android.content.ContentResolver.registerContentObserver(ContentResolver.java:
804)
        at
android.database.AbstractCursor.setNotificationUri(AbstractCursor.java:
520)

SDK 2.2 (testing on N1)

This exception is thrown roughly once every two calls. When the
exception is not thrown, the whole notification process works fine.

Background: I'm trying to use a combination of
AbstractCursor.setNotificationUri() and ContentResolver.notifyChange()
to facilitate notification of database changes within my app.

I'm not using ContentProviders because I don't need to expose this
data outside of my app.

Within my database adapter class, I run a query and then immediately
set the notification uri. This is the call which sometimes throws an
NPE.

Any ideas?


-- 
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