How do i make the screen content to remain same again after the screen starts

Hello Makeroid team,
I have made a pedometer app showing some basic details like steps duration, speed etc.
When I backpress the screen, everything just disappears and gets reset to 0.
I want everything to display the same information (which was there on the screen before pressing back) after the screen starts again.
Can anyone please help me with this problem.

You can store the values with TinyDB.

1 Like