Reputation: 21
In android , after lock and unlock the mobile, the activity get pause and resumed. On that time listview become empty.Pls help me to save values in onPause and retrieve that in onResume...
Thanks in advance
Upvotes: 2
Views: 1947
Reputation: 16191
Try putting the contents into the listview in onResume()
instead of your onCreate()
or some other method. Or even saving the instance is an option as @Drooling_Sheep said.
Upvotes: 2