I have a simple Android app - a dictionary. I am using a ListView to populate the dictionary words on the main glossary screen. If a word is touched a new intent launches a wordscreen that shows the word and the definition. The problem is that if I hit "back" to go from the wordscreen back to the glossary the ListView does not populate.
I am using onStop() to close the database cursor when moving from the glossary screen, and onRestart() to open the cursor and (I thought) to populate the ListView. It doesn't seem to be working.
One important thing, if after going back to the glossary screen from the word screen (and getting a black screen with no ListView) I change the orientation of the app the ListView populates.
I thought that pressing "back" would always cause onRestart() to execute. Why would pressing back NOT cause the ListView to populate, but changing the orientation does?
Thanks