I'm getting this crash when I'm running my app with monkey.  The crash is 
not seen when just running the app on the emulator nor on a device.  This is 
a revision of an app I've had out for over a year and modified for tablets 
using the Google 3.0 API.

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.CalendarView$WeeksAdapter)]

Thing is there is no ListView in my code that does this.  And what adapter 
mods are made in my ListViews are in a Handler not in a background thread.  
Calendar is called to get date information but not in a ListView.   Running 
the original app (for 1.5 and above) does not throw this error.

Here is the rest of the trace if it suggests anything:

//     at android.widget.ListView.layoutChildren(ListView.java:1522)
//     at 
android.widget.AbsListView.onWindowFocusChanged(AbsListView.java:2392)
//     at android.view.View.dispatchWindowFocusChanged(View.java:4691)
//     at 
android.view.ViewGroup.dispatchWindowFocusChanged(ViewGroup.java:752)
//     at 
android.view.ViewGroup.dispatchWindowFocusChanged(ViewGroup.java:756)
//     at 
android.view.ViewGroup.dispatchWindowFocusChanged(ViewGroup.java:756)
//     at 
android.view.ViewGroup.dispatchWindowFocusChanged(ViewGroup.java:756)
//     at 
android.view.ViewGroup.dispatchWindowFocusChanged(ViewGroup.java:756)
//     at 
android.view.ViewGroup.dispatchWindowFocusChanged(ViewGroup.java:756)
//     at 
android.view.ViewGroup.dispatchWindowFocusChanged(ViewGroup.java:756)
//     at 
android.view.ViewGroup.dispatchWindowFocusChanged(ViewGroup.java:756)
//     at 
android.view.ViewGroup.dispatchWindowFocusChanged(ViewGroup.java:756)
//     at 
android.view.ViewGroup.dispatchWindowFocusChanged(ViewGroup.java:756)
//     at 
android.view.ViewGroup.dispatchWindowFocusChanged(ViewGroup.java:756)
//     at android.view.ViewRoot.handleMessage(ViewRoot.java:2102)
//     at android.os.Handler.dispatchMessage(Handler.java:99)
//     at android.os.Looper.loop(Looper.java:132)
//     at android.app.ActivityThread.main(ActivityThread.java:4025)
//     at java.lang.reflect.Method.invokeNative(Native Method)
//     at java.lang.reflect.Method.invoke(Method.java:491)
//     at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841)
//     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599)
//     at dalvik.system.NativeStart.main(Native Method)
// 

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to