Hello.
I am working on a Pedometer app that records:
The steps of the user in a session.
The distance covered in a session.
The calories burnt in the session.
The above scenario takes place in the Home Screen after the user logs in through Google.
What I want now is -
After “Stop” is pressed, the values of the session to be stored somewhere and show in the Profile (Vertical Arrangement) on the same screen.
And for 24 hours, the addition of the values of all the sessions’ of the day to be added over there.
These are the Home Arrangement & Profile Arrangement:
@shashank, We usually lead the way. And the user usually tries to do something. Generally, after trying and failing, the user asks for help showing what he did.
Hey @Rogerio_Rios & @ADDYLIN,
As per your recomendation, I tried using TinyDB to store all values and then use variables to get the total values, but it doesn’t seem to work.
Use Do it to debug your code . As you set global variables most probably you get empty strings cause you have to use set distance_label text to one of the blocks below and then when pedometer stop set label text to get global variable . After that save it to tinyDb
I faced the same error while working with TinyDB. You can use the logic where if user opens the app for the first time, then set TinyDB value to 0 (on screen Initialization). It will solve your problem.