Android Question B4A timer and service with date not ok


Active Member
Licensed User
Longtime User
I would like to create an app that reads values from a sensor connected via esp8266, and upon reaching a certain threshold send me an alert.
I would like to do this without having to use the firebase.

I'm in the study phase of the service because I've never done it.

For this reason I have inserted a timer in a service, and every 5 seconds I must send a warning with the date and time.

I have problems

1 I would like that once the service has started, the home page will hide to leave the service in the backgraund and see only the icon of the message that it sends every 5 seconds.

2 The date and time are not consistent. neither in the format date.time nor in the format in milliseconds.

3. I would like to format the date in the European format

Attached is the code I'm studying

Good Easter


  • Timer e
    224.1 KB · Views: 149
Last edited: