dwalkes / WakeMeSki

An application for the Android OS which turns your phone into a ski or snowboard alarm clock with ski resort monitoring features. This project is based on android-ski-report found at http://code.google.com/p/android-ski-report/
www.wakemeski.com
7 stars 0 forks source link

Crash report from android market #21

Open dwalkes opened 13 years ago

dwalkes commented 13 years ago

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(2131361798, class android.widget.ListView) with Adapter(class com.wakemeski.ui.ReportListAdapter)] at android.widget.ListView.layoutChildren(ListView.java:1567) at android.widget.AbsListView.onLayout(AbsListView.java:1259) at android.view.View.layout(View.java:7088) at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1249) at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1125) at android.widget.LinearLayout.onLayout(LinearLayout.java:1042) at android.view.View.layout(View.java:7088) at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1249) at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1125) at android.widget.LinearLayout.onLayout(LinearLayout.java:1042) at android.view.View.layout(View.java:7088) at android.widget.FrameLayout.onLayout(FrameLayout.java:334) at android.view.View.layout(View.java:7088) at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1249) at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1125) at android.widget.LinearLayout.onLayout(LinearLayout.java:1042) at android.view.View.layout(View.java:7088) at android.widget.FrameLayout.onLayout(FrameLayout.java:334) at android.view.View.layout(View.java:7088) at android.view.ViewRoot.performTraversals(ViewRoot.java:1056) at android.view.ViewRoot.handleMessage(ViewRoot.java:1752) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:123) at android.app.ActivityThread.main(ActivityThread.java:4627) 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:871) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:629) at dalvik.system.NativeStart.main(Native Method)

dwalkes commented 13 years ago

Comments from Andy:

I was looking at newer api's that do the list adapter. It looks like they do their add a little different.

https://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/java/android/widget/ArrayAdapter.java;h=03ada94d667e71577cc1ec4ed80c64cf5a025d3f;hb=master

https://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/java/android/widget/BaseAdapter.java;h=532fd766ec66ae54a6e4b3def4b8bdc839c1db7a;hb=master