I am converting my app to OOP but am a bit stuck on how to save its properties in an efficient way.
For instance if I have declared the following Type in my Class module to represent the object's properties
How can I save those values on Activity Pause and then restore the object's properties (state?) on Activity Resume?
Or should I just use Public variables on the class module instead of declaring a Type? Then save their values on Activity Pause?
Thanks in advance.
For instance if I have declared the following Type in my Class module to represent the object's properties
B4X:
Type CatProperties (IsQuestion As Boolean, Level As Int, LevelCompleted As Boolean, ListBmpCat As List, QNo As Int, QTotal As Int, bmpCatQ As Bitmap)
How can I save those values on Activity Pause and then restore the object's properties (state?) on Activity Resume?
Or should I just use Public variables on the class module instead of declaring a Type? Then save their values on Activity Pause?
Thanks in advance.