I'm implementing one of those workarounds.

Real basic question related to that - What is the way to determine the
API Level at runtime?

On Nov 12, 12:23 pm, Mark Murphy <[email protected]> wrote:
> Well, according to the issue you linked to, others are seeing it on
> 2.2 (see comments 20, 22-24). And, Google re-opened it to fix in
> Gingerbread, so I'm guessing the 2.2 fix didn't quite solve the
> problem.
>
> There are a bunch of workarounds in that issue thread, though.
>
>
>
> On Fri, Nov 12, 2010 at 3:19 PM, jotobjects <[email protected]> wrote:
> > We have a very simple ViewFlipper widget in a layout.  The following
> > trace back happens when it crashes.  This does not trace back into our
> > application code at all.
>
> > There is a similar bug logged for 2.1
> >http://code.google.com/p/android/issues/detail?id=6191
>
> > We are running on 2.2 and getting this error.  Is this fixed or is it
> > necessary to create a workaround subclass?
>
> > 11-12 11:46:21.237: ERROR/AndroidRuntime(2435):
> > java.lang.IllegalArgumentException: Receiver not registered:
> > android.widget.viewflippe...@46023c60
> > 11-12 11:46:21.237: ERROR/AndroidRuntime(2435):     at
> > android.app.ActivityThread
> > $PackageInfo.forgetReceiverDispatcher(ActivityThread.java:814)
> > 11-12 11:46:21.237: ERROR/AndroidRuntime(2435):     at
> > android.app.ContextImpl.unregisterReceiver(ContextImpl.java:822)
> > 11-12 11:46:21.237: ERROR/AndroidRuntime(2435):     at
> > android.content.ContextWrapper.unregisterReceiver(ContextWrapper.java:
> > 331)
> > 11-12 11:46:21.237: ERROR/AndroidRuntime(2435):     at
> > android.widget.ViewFlipper.onDetachedFromWindow(ViewFlipper.java:104)
> > 11-12 11:46:21.237: ERROR/AndroidRuntime(2435):     at
> > android.view.View.dispatchDetachedFromWindow(View.java:6032)
> > 11-12 11:46:21.237: ERROR/AndroidRuntime(2435):     at
> > android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:1166)
> > 11-12 11:46:21.237: ERROR/AndroidRuntime(2435):     at
> > android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:1164)
> > 11-12 11:46:21.237: ERROR/AndroidRuntime(2435):     at
> > android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:1164)
> > 11-12 11:46:21.237: ERROR/AndroidRuntime(2435):     at
> > android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:1164)
> > 11-12 11:46:21.237: ERROR/AndroidRuntime(2435):     at
> > android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:1164)
> > 11-12 11:46:21.237: ERROR/AndroidRuntime(2435):     at
> > android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:1164)
> > 11-12 11:46:21.237: ERROR/AndroidRuntime(2435):     at
> > android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:1164)
> > 11-12 11:46:21.237: ERROR/AndroidRuntime(2435):     at
> > android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:1164)
> > 11-12 11:46:21.237: ERROR/AndroidRuntime(2435):     at
> > android.view.ViewRoot.dispatchDetachedFromWindow(ViewRoot.java:1647)
> > 11-12 11:46:21.237: ERROR/AndroidRuntime(2435):     at
> > android.view.ViewRoot.doDie(ViewRoot.java:2693)
> > 11-12 11:46:21.237: ERROR/AndroidRuntime(2435):     at
> > android.view.ViewRoot.die(ViewRoot.java:2663)
> > 11-12 11:46:21.237: ERROR/AndroidRuntime(2435):     at
> > android.view.WindowManagerImpl.removeViewImmediate(WindowManagerImpl.java:
> > 254)
> > 11-12 11:46:21.237: ERROR/AndroidRuntime(2435):     at
> > android.view.Window$LocalWindowManager.removeViewImmediate(Window.java:
> > 436)
> > 11-12 11:46:21.237: ERROR/AndroidRuntime(2435):     at
> > android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:
> > 3935)
> > 11-12 11:46:21.237: ERROR/AndroidRuntime(2435):     at
> > android.app.ActivityThread.access$2900(ActivityThread.java:135)
> > 11-12 11:46:21.237: ERROR/AndroidRuntime(2435):     at
> > android.app.ActivityThread$H.handleMessage(ActivityThread.java:2169)
> > 11-12 11:46:21.237: ERROR/AndroidRuntime(2435):     at
> > android.os.Handler.dispatchMessage(Handler.java:99)
> > 11-12 11:46:21.237: ERROR/AndroidRuntime(2435):     at
> > android.os.Looper.loop(Looper.java:144)
> > 11-12 11:46:21.237: ERROR/AndroidRuntime(2435):     at
> > android.app.ActivityThread.main(ActivityThread.java:4937)
> > 11-12 11:46:21.237: ERROR/AndroidRuntime(2435):     at
> > java.lang.reflect.Method.invokeNative(Native Method)
> > 11-12 11:46:21.237: ERROR/AndroidRuntime(2435):     at
> > java.lang.reflect.Method.invoke(Method.java:521)
> > 11-12 11:46:21.237: ERROR/AndroidRuntime(2435):     at
> > com.android.internal.os.ZygoteInit
> > $MethodAndArgsCaller.run(ZygoteInit.java:868)
> > 11-12 11:46:21.237: ERROR/AndroidRuntime(2435):     at
> > com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
> > 11-12 11:46:21.237: ERROR/AndroidRuntime(2435):     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 [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
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9
> Available!

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