05-28 17:18:34.086: E/AndroidRuntime(973): Caused by: java.lang.IllegalArgumentException: The observer is null.05-28 17:18:34.086: E/AndroidRuntime(973): at android.database.Observable.unregisterObserver(Observable.java:59)05-28 17:18:34.086: E/AndroidRuntime(973): at android.widget.BaseAdapter.unregisterDataSetObserver(BaseAdapter.java:42)05-28 17:18:34.086: E/AndroidRuntime(973): at android.widget.HeaderViewListAdapter.unregisterDataSetObserver(HeaderViewListAdapter.java:256)05-28 17:18:34.086: E/AndroidRuntime(973): at android.widget.AbsListView.onDetachedFromWindow(AbsListView.java:2373)05-28 17:18:34.086: E/AndroidRuntime(973): at android.view.View.dispatchDetachedFromWindow(View.java:9818)05-28 17:18:34.086: E/AndroidRuntime(973): at android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:2268)05-28 17:18:34.086: E/AndroidRuntime(973): at android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:2266)05-28 17:18:34.086: E/AndroidRuntime(973): at android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:2266)05-28 17:18:34.086: E/AndroidRuntime(973): at android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:2266)05-28 17:18:34.086: E/AndroidRuntime(973): at android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:2266)05-28 17:18:34.086: E/AndroidRuntime(973): at android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:2266)05-28 17:18:34.086: E/AndroidRuntime(973): at android.view.ViewGroup.removeAllViewsInLayout(ViewGroup.java:3717)05-28 17:18:34.086: E/AndroidRuntime(973): at android.view.ViewGroup.removeAllViews(ViewGroup.java:3672)
Android 4.0.3, 调用mFrameLayout.removeAllViews();出现此错误; Android 2.3.3正常; 有待研究!
这个错误还真不是个例! 已经被提交到这了:
http://code.google.com/p/android/issues/detail?id=22751
http://code.google.com/p/android/issues/detail?id=22946