>From the log, it seems that, when you go to sleep, some receiver is
getting un-registered. So, when you wake up and try to use that
Receiver, you are getting this excpetion since the Receiver is now not
registered but you are still trying to use it.

A little bit of code will help us in pointing out the exact code.

Thanks and Regards
Kumar Bibek,

On Jan 3, 10:19 am, Shane <shanemenchi...@gmail.com> wrote:
> I have a ViewFlipper in my app.
>
> When my app is running and the phone goes to sleep it works fine.
>
> When I wake the phone up and my app then tries to display again, I get
> the following error.
>
> Any thoughts or suggestions?  I can't figure this out :-(
>
> 01-02 20:59:22.706: ERROR/AndroidRuntime(11428): Uncaught handler:
> thread main exiting due to uncaught exception
> 01-02 20:59:22.726: ERROR/AndroidRuntime(11428):
> java.lang.IllegalArgumentException: Receiver not registered:
> android.widget.viewflippe...@44e0be10
> 01-02 20:59:22.726: ERROR/AndroidRuntime(11428):     at
> android.app.ActivityThread$PackageInfo.forgetReceiverDispatcher
> (ActivityThread.java:667)
> 01-02 20:59:22.726: ERROR/AndroidRuntime(11428):     at
> android.app.ApplicationContext.unregisterReceiver
> (ApplicationContext.java:747)
> 01-02 20:59:22.726: ERROR/AndroidRuntime(11428):     at
> android.content.ContextWrapper.unregisterReceiver(ContextWrapper.java:
> 321)
> 01-02 20:59:22.726: ERROR/AndroidRuntime(11428):     at
> android.widget.ViewFlipper.onDetachedFromWindow(ViewFlipper.java:104)
> 01-02 20:59:22.726: ERROR/AndroidRuntime(11428):     at
> android.view.View.dispatchDetachedFromWindow(View.java:5835)
> 01-02 20:59:22.726: ERROR/AndroidRuntime(11428):     at
> android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:1076)
> 01-02 20:59:22.726: ERROR/AndroidRuntime(11428):     at
> android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:1074)
> 01-02 20:59:22.726: ERROR/AndroidRuntime(11428):     at
> android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:1074)
> 01-02 20:59:22.726: ERROR/AndroidRuntime(11428):     at
> android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:1074)
> 01-02 20:59:22.726: ERROR/AndroidRuntime(11428):     at
> android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:1074)
> 01-02 20:59:22.726: ERROR/AndroidRuntime(11428):     at
> android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:1074)
> 01-02 20:59:22.726: ERROR/AndroidRuntime(11428):     at
> android.view.ViewRoot.dispatchDetachedFromWindow(ViewRoot.java:1570)
> 01-02 20:59:22.726: ERROR/AndroidRuntime(11428):     at
> android.view.ViewRoot.doDie(ViewRoot.java:2556)
> 01-02 20:59:22.726: ERROR/AndroidRuntime(11428):     at
> android.view.ViewRoot.die(ViewRoot.java:2526)
> 01-02 20:59:22.726: ERROR/AndroidRuntime(11428):     at
> android.view.WindowManagerImpl.removeViewImmediate
> (WindowManagerImpl.java:218)
> 01-02 20:59:22.726: ERROR/AndroidRuntime(11428):     at
> android.view.Window$LocalWindowManager.removeViewImmediate(Window.java:
> 436)
> 01-02 20:59:22.726: ERROR/AndroidRuntime(11428):     at
> android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:
> 3498)
> 01-02 20:59:22.726: ERROR/AndroidRuntime(11428):     at
> android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:
> 3599)
> 01-02 20:59:22.726: ERROR/AndroidRuntime(11428):     at
> android.app.ActivityThread.access$2300(ActivityThread.java:119)
> 01-02 20:59:22.726: ERROR/AndroidRuntime(11428):     at
> android.app.ActivityThread$H.handleMessage(ActivityThread.java:1867)
> 01-02 20:59:22.726: ERROR/AndroidRuntime(11428):     at
> android.os.Handler.dispatchMessage(Handler.java:99)
> 01-02 20:59:22.726: ERROR/AndroidRuntime(11428):     at
> android.os.Looper.loop(Looper.java:123)
> 01-02 20:59:22.726: ERROR/AndroidRuntime(11428):     at
> android.app.ActivityThread.main(ActivityThread.java:4363)
> 01-02 20:59:22.726: ERROR/AndroidRuntime(11428):     at
> java.lang.reflect.Method.invokeNative(Native Method)
> 01-02 20:59:22.726: ERROR/AndroidRuntime(11428):     at
> java.lang.reflect.Method.invoke(Method.java:521)
> 01-02 20:59:22.726: ERROR/AndroidRuntime(11428):     at
> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run
> (ZygoteInit.java:860)
> 01-02 20:59:22.726: ERROR/AndroidRuntime(11428):     at
> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
> 01-02 20:59:22.726: ERROR/AndroidRuntime(11428):     at
> dalvik.system.NativeStart.main(Native Method)

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