Hi, Did you manage to solve it? I have a similar problem. Every time I change the focus to a button, and then touch another button (I call setContentView()), the application crash with this Logcat:
08-04 17:12:00.251: ERROR/AndroidRuntime(880): Uncaught handler: thread main exiting due to uncaught exception 08-04 17:12:00.292: ERROR/AndroidRuntime(880): java.lang.IllegalArgumentException: parameter must be a descendant of this view 08-04 17:12:00.292: ERROR/AndroidRuntime(880): at android.view.ViewGroup.offsetRectBetweenParentAndChild(ViewGroup.java: 2454) 08-04 17:12:00.292: ERROR/AndroidRuntime(880): at android.view.ViewGroup.offsetDescendantRectToMyCoords(ViewGroup.java: 2391) 08-04 17:12:00.292: ERROR/AndroidRuntime(880): at android.view.ViewRoot.scrollToRectOrFocus(ViewRoot.java:1301) 08-04 17:12:00.292: ERROR/AndroidRuntime(880): at android.view.ViewRoot.draw(ViewRoot.java:1107) 08-04 17:12:00.292: ERROR/AndroidRuntime(880): at android.view.ViewRoot.performTraversals(ViewRoot.java:1030) 08-04 17:12:00.292: ERROR/AndroidRuntime(880): at android.view.ViewRoot.handleMessage(ViewRoot.java:1482) 08-04 17:12:00.292: ERROR/AndroidRuntime(880): at android.os.Handler.dispatchMessage(Handler.java:99) 08-04 17:12:00.292: ERROR/AndroidRuntime(880): at android.os.Looper.loop(Looper.java:123) 08-04 17:12:00.292: ERROR/AndroidRuntime(880): at android.app.ActivityThread.main(ActivityThread.java:3948) 08-04 17:12:00.292: ERROR/AndroidRuntime(880): at java.lang.reflect.Method.invokeNative(Native Method) 08-04 17:12:00.292: ERROR/AndroidRuntime(880): at java.lang.reflect.Method.invoke(Method.java:521) 08-04 17:12:00.292: ERROR/AndroidRuntime(880): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:782) 08-04 17:12:00.292: ERROR/AndroidRuntime(880): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540) 08-04 17:12:00.292: ERROR/AndroidRuntime(880): at dalvik.system.NativeStart.main(Native Method) This happens outside my code, once the onClick event is finished. Thanks in advance. Max --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

