AndreyPozdnyakov
Member
Is it possible for an application like MyLocation to automatically continue running after the device is rebooted?
For testing, we will add a timer to the Starter service module. We are not changing anything else in MyLocation!
Let's start the timer.
The timer will work even if you turn off the device.
But if the device is rebooted, the timer will continue to work only if the application is forced to start.
How, then, do applications that receive notifications from the developer server work after a reboot, for example?
For testing, we will add a timer to the Starter service module. We are not changing anything else in MyLocation!
B4X:
Sub Process_Globals
Private Timer_Starter As Timer
Dim Bp As Beeper
End Sub
Let's start the timer.
B4X:
Sub Service_Create
Timer_Starter.Initialize("Timer_Starter", 5000)
Timer_Starter.Enabled = True
Bp.Initialize(50, 400)
End Sub
The timer will work even if you turn off the device.
B4X:
Sub Timer_Starter_Tick
Log("Timer_Starter_Tick")
Bp.Beep
End Sub
But if the device is rebooted, the timer will continue to work only if the application is forced to start.
How, then, do applications that receive notifications from the developer server work after a reboot, for example?