I was looking through my exception log from users and found this common exception:
java.lang.IllegalArgumentException: parameter must be a descendant of this view
at android.view.ViewGroup.offsetRectBetweenParentAndChild(ViewGroup.java:2521)
at android.view.FocusFinder.findNearestTouchable(FocusFinder.java:411)
at android.view.ViewRoot.handleMessage(ViewRoot.java:1746)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:123)
at android.app.ActivityThread.main(ActivityThread.java:4363)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:521)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
at dalvik.system.NativeStart.main(Native Method)
Is there some way I can gracefully handle this exception and prevent a Force Close? I can't reproduce the problem.
I found this Google thread about it being a problem with Donut (1.5) and it was fixed. But I'm getting this from users using later versions of Android. My min API is to 1.6 and targeted at 2.2.