I'm trying to write a sqlite code for the database of an android application that counts your steps. At the end of each day I want the step count of that day to be saved in a database.
I'm not sure how to proceed, is there a way i can set a timer on inserting data into a database? so that it only runs once a day just before midnight?
Right now I just have a simple insert statement that takes in the date and the stepcount.
Aucun commentaire:
Enregistrer un commentaire