I'm trying to set data that the user has put in edittext's back to 0 every midnight so that the next day he/she can put in new information and save the information to other edittexts. But I don't know how to make this work. I tried startserviceat, but I cannot seem to make it work so that it starts every midnight.
This works fine, but is there a way to make datetime.now into datetime.time(0:00) or something, instead of datetime.now + 10*1000?
I'm fairly new to b4a and I couldn't figure it out with other threads.
sorry if this should be somewhere else on the forum or if it already exists.
Any help would be much appreciated
B4X:
StartServiceAt(AlarmService, DateTime.now, True)
I'm fairly new to b4a and I couldn't figure it out with other threads.
sorry if this should be somewhere else on the forum or if it already exists.
Any help would be much appreciated