Everything appeared to be working fine until I started to add some crimes on my Froyo 2.2 emulator. The first one is added, then after pressing Add for the second one this error occurs:
[code]FATAL EXCEPTION: main
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 com.bignerdranch.android.criminalintent.CrimeListFragment$CrimeAdapter)]
To check if I had made a mistake I imported ‘17_FileIO_CriminalIntent’ from the source download and ran this on the emulator. It gives me the same error.
Can anyone please help?