我有两个活动。一个活动有listview,第二个活动有gridview..一个我从listview活动中单击下一个活动将安全打开,但是当我从模拟器按下后退按钮时,listacitivity会显示但是当我再次单击listactivity时,它会给我强制关闭选项和我的应用程序崩溃... Logcat 错误存在..
01-30 05:32:24.748: E/AndroidRuntime(998): FATAL EXCEPTION: main
01-30 05:32:24.748: E/AndroidRuntime(998): java.lang.IllegalStateException: The content of the adapter has changed but ListView did not receive a notification. Make sure the content of your adapter is not modified from a background thread, but only from the UI thread. [in ListView(16908298, class android.widget.ListView) with Adapter(class android.widget.ArrayAdapter)]
01-30 05:32:24.748: E/AndroidRuntime(998): at android.widget.ListView.layoutChildren(ListView.java:1538)
01-30 05:32:24.748: E/AndroidRuntime(998): at android.widget.AbsListView.onTouchEvent(AbsListView.java:3513)
01-30 05:32:24.748: E/AndroidRuntime(998): at android.view.View.dispatchTouchEvent(View.java:7127)
01-30 05:32:24.748: E/AndroidRuntime(998): at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2170)
01-30 05:32:24.748: E/AndroidRuntime(998): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1905)
01-30 05:32:24.748: E/AndroidRuntime(998): at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2176)
01-30 05:32:24.748: E/AndroidRuntime(998): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1919)
01-30 05:32:24.748: E/AndroidRuntime(998): at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2176)
01-30 05:32:24.748: E/AndroidRuntime(998): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1919)
01-30 05:32:24.748: E/AndroidRuntime(998): at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2176)
01-30 05:32:24.748: E/AndroidRuntime(998): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1919)
01-30 05:32:24.748: E/AndroidRuntime(998): at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:1925)
01-30 05:32:24.748: E/AndroidRuntime(998): at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1379)
01-30 05:32:24.748: E/AndroidRuntime(998): at android.app.Activity.dispatchTouchEvent(Activity.java:2396)
01-30 05:32:24.748: E/AndroidRuntime(998): at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:1873)