The app is running just fine: I can add, delete, etc.
However, I noticed that when I exit the app, the results are not being saved after deletions. That is, I delete some crime, then hit the return key and further delete the CriminalIntent app from the task list. Next time I start up, the deleted item is back! I put a breakpoint in the onPause method, but noticed that it is not called when I remove CriminalIntent from the task list. That means that the save operation doesn’t happen.
Why is the onPause method not called in this case?
Answer: Since the delete is happening in the same activity.
BUT, see below…