I have a listview on one of my activities and I'd like to save it's state when the activity pauses.
I can use
to save the listview but how do I retrieve it?
this
causes a compile error of incompatible types - string and listview.
How can I persist a listview? This code is used for when the activity is paused and restarted like when orientation changes.
I'm puzzled.
regards, Ricky
I can use
B4X:
StateManager.SetSetting("lvaddmenuitems", lvAddMenuItems)
to save the listview but how do I retrieve it?
this
B4X:
If StateManager.GetSetting("lvaddmenuitems")<>"" Then lvAddMenuItems = StateManager.GetSetting("lvaddmenuitems")
causes a compile error of incompatible types - string and listview.
How can I persist a listview? This code is used for when the activity is paused and restarted like when orientation changes.
I'm puzzled.
regards, Ricky