For an Android activity its state is the property values of the controls currently displayed and any other information which is required to get the activity back to its current condition.
For a simple form application this would just be the text values of the text boxes, the check state of the check boxes etc. For a more complicated application like a game you might need to record the positions, velocities, scores and other data in which case an object orientated approach would probably be better and you would need to store a master object in memory.
No comments:
Post a Comment