Saving state on rotation

MotoMusher

Active Member
Licensed User
Longtime User
Curious as to best practices for saving variables after a screen rotation. I have an activity with 2 distinct parts. I could rewrite it I suppose to be 2 activities, but looking to learn.

I have a variable activitystatewhich is either a 1 or 2. Value gets rewritten to default when the screen rotates. Any way other than tracking with a text file to maintain the value in activitystate?
 
Top