Very new user - convert from Google's AppInventor, which won't run background services. Very impressed with first B4A programs.
Trying to produce a service which reminds me to take a pill! Just getting started with it. Read the 'life cycle' document several times! Possibly still confused!
The 'stripped down' project is attached (with a reminder set at 30 seconds). The toast message indicates when the service fires. I'm using the emulator.
Question 1: I expect the UI button to stop the service, hide the notification and close the app. However, the service fires up again within 30 sec and is not closed. Any ideas what I'm doing wrong?
Question 2: The emulator keeps running the service as I am editing my code. I assume that it completely resets itself before loading a re-compiled app, so it couldn't be running a service from a previously compiled version at the same time as I am running the current version. Is this correct?
Many thanks for your help in advance.
Trying to produce a service which reminds me to take a pill! Just getting started with it. Read the 'life cycle' document several times! Possibly still confused!
The 'stripped down' project is attached (with a reminder set at 30 seconds). The toast message indicates when the service fires. I'm using the emulator.
Question 1: I expect the UI button to stop the service, hide the notification and close the app. However, the service fires up again within 30 sec and is not closed. Any ideas what I'm doing wrong?
Question 2: The emulator keeps running the service as I am editing my code. I assume that it completely resets itself before loading a re-compiled app, so it couldn't be running a service from a previously compiled version at the same time as I am running the current version. Is this correct?
Many thanks for your help in advance.