Not sure if it works as expected


Hey. I ended the chapter 18 and I have a question.

I can delete as many as crimes I want, I can create and after delete crimes without a problem but when I open the application CriminalIntent the last crimes I had there are still there.

I am guessing that, every time I am deleting a crime it doesn’t removed from my SD. Did anyone else had this problem?
In emulator I think that it works fine, the “problem” appears when I am running the app in my mobile.



After you delete crimes you need to make sure you call saveCrimes() again.
In the ‘onActionItemClicked’ implementation for ‘listView.setMultiChoiceModeListener’ add CrimeLab.saveCrimes() before ‘return true’ statement.
That ought to fix it.