The system shouldn't crash, but your code is broken.
 Your Uri.parse("refreshChange") is creating a Uri that is not actually a
content: URI.  You need to provide a Uri that is a full content: URI (with
authority) to the data you want to observe.

On Sun, Oct 31, 2010 at 7:58 AM, oriharel <ori.ha...@gmail.com> wrote:

> the triggering code is:
>
> getContentResolver().registerContentObserver(Uri.parse("refreshChange"),
>                                false, _refreshObserver);
>
> On Oct 31, 11:38 am, oriharel <ori.ha...@gmail.com> wrote:
> > I get weird exception:
> >
> > 10-31 09:09:51.308: ERROR/ContentService(59): Content Service Crash
> > 10-31 09:09:51.308: ERROR/ContentService(59):
> > java.lang.NullPointerException
> > 10-31 09:09:51.308: ERROR/ContentService(59):     at
> > android.content.ContentService
> > $ObserverNode.collectObserversLocked(ContentService.java:620)
> > 10-31 09:09:51.308: ERROR/ContentService(59):     at
> > android.content.ContentService.notifyChange(ContentService.java:134)
> > 10-31 09:09:51.308: ERROR/ContentService(59):     at
> > android.content.IContentService$Stub.onTransact(IContentService.java:
> > 91)
> > 10-31 09:09:51.308: ERROR/ContentService(59):     at
> > android.content.ContentService.onTransact(ContentService.java:83)
> > 10-31 09:09:51.308: ERROR/ContentService(59):     at
> > android.os.Binder.execTransact(Binder.java:288)
> > 10-31 09:09:51.308: ERROR/ContentService(59):     at
> > dalvik.system.NativeStart.run(Native Method)
> >
> > after that - only a restart of the emulator helps.
> > anyone knows what is this?
> >
> > Ori
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to