caspergasper / Gready-Android

Android app for http://www.goodreads.com/
11 stars 4 forks source link

runtime error #2

Closed caspergasper closed 14 years ago

caspergasper commented 14 years ago

Note to myself to fix this occasional runtime error --

"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. "

At least Android gives you helpful error messages :-)

Here is some discussion: http://groups.google.com/group/android-developers/browse_thread/thread/a451221261cb6a93/2ab5bea015c38437?lnk=gst&q=For+Google+about+BaseAdapter+class#2ab5bea015c38437

line 211 of GoodreadsActivity.java is causing the problem:

if(myApp.userData.endBook < myApp.userData.totalBooks && myApp.userData.endBook < TOTAL_BOOKS_TO_DOWNLOAD) { // Need to query extra pages in the background Log.d(TAG, "Getting extra page of books..."); myApp.oauth.getXMLFile();

caspergasper commented 14 years ago

This is fixed in the source but I haven't pushed it into an .apk yet.

caspergasper commented 14 years ago

Fixed in 20100703