Keep All Values Intact When Changing Activity
When I enter anything under Current Trip tab and switch to the Display Result tab and come back to the Current Trip tab, all the entries goes back to default. How do I prevent it?
Solution 1:
You need to save state in a bundle when the activity is paused, and restore that data when the activity is resumed. Read up on the Android activity lifecycle.
This assumes you are embedding activities, in a tab control.
Post a Comment for "Keep All Values Intact When Changing Activity"