How do I make another button after every 5000 steps on the pedometer?

i have it.............

What is happening on Screen4?

There is a picture and a button to go back.

This solution is innaccurate.

Therefore, do you need a different screen after every 5000 steps, or a different picture to appear ?

If we know what you are trying to achieve, we can better help you....explain what your app will be doing, rather than leave us guessing.....

Did your app go to sleep before your step count got to 850? The Pedometer doesn't post steps while the app is in the background. Do a DoIt to determine whether you reached a total of more than 850 steps.

different screen

The application counts even if another application is used or the mobile is turned off

Try setting the threshold to 10 steps and walk while the app is in the foreground.

The button is still not visible.

This simple code works fine on my Android 8.1

Pedometer

That the example code works and your SimpleSteps>= 850 does not suggests that even though the pedometer 'counts, the app cannot execute the if statement while the app is asleep. I don't know but I do know that the Button1 in the example is hidden when the app starts and displays when it reaches a count of 5 while the device screen is still open.

See Pedometer work in background
and experiment and debug using a DoIt.