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 :-)
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();
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();