Roberto P. Well-Known Member Licensed User Longtime User Sep 20, 2016 #1 I'm missing something about the operation of services! Use ServiceStart to start a scheduler that controls some data. OK. I start a timer that updates each time x. OK. I close the application and the timer continues to run. OK. When I close the application from the history, the timer stops working. Because? What should I do to work the timer even after you've closed all App. Thanks. Attachments immagine.png 60.3 KB · Views: 234
I'm missing something about the operation of services! Use ServiceStart to start a scheduler that controls some data. OK. I start a timer that updates each time x. OK. I close the application and the timer continues to run. OK. When I close the application from the history, the timer stops working. Because? What should I do to work the timer even after you've closed all App. Thanks.
lemonisdead Well-Known Member Licensed User Longtime User Sep 20, 2016 #2 App closed by swiping ? It seems the service restarts if it is a sticky one (at least for my devices). But nothing to do if the app is forced closed by the Kill button from the apps activity of the Android's settings Upvote 0
App closed by swiping ? It seems the service restarts if it is a sticky one (at least for my devices). But nothing to do if the app is forced closed by the Kill button from the apps activity of the Android's settings
Erel B4X founder Staff member Licensed User Longtime User Sep 21, 2016 #3 See this tutorial: Creating a sticky service - long running background tasks Upvote 0