B4A Question How to keep apps running that use StartServiceAt in a loop - JackKirk    May 22, 2021   (1 reaction) This is more of an open discussion than a solution.
According to this thread StartServiceAt uses... as they please.
I have looked at the 2 android phones I use to run apps that use StartServiceAt in... B4A Question B4A v8.00 StartServiceAt / StartServiceAtExact / SetExactAndAllowWhileIdle - Pendrush    Mar 19, 2018 Do we still need this code in B4A 8.00+:
Sub SetExactAndAllowWhileIdle (Time As Long, ServiceName As String)
Dim p As Phone
If p.SdkVersion < 23 Then
StartServiceAtExact(ServiceName... B4A Question Service/StartServiceAt reliability - advice sought - JackKirk    May 20, 2021 Hi,
I have a couple of B4A v10.7 apps that use services with StartServiceAt to periodically check for certain changes in AWS S3 files.
They work pretty reliably on my Samsung S5 and I have a SMS... B4A Tutorial Background location tracking - Erel    Jul 3, 2024   (50 reactions)   tags: Longrunningaoo, background clock alive, B4A Background location, gps, B4A https://www.b4x.com/basic4android/images/SS-2018-11-29_15.48.38.png Simple example of a foreground service that keeps the process running in the background. The current location is shown in the persistent notification. The app starts at boot and theoretically should run all the time. It also schedules itself to run with StartServiceAt. This can help in cases where the OS kills the process. Relevant example, based on this example, which plays music in the background: https://www.b4x.com... B4A Question How does StartServiceAt work under the hood? - JackKirk    May 22, 2021 If you
google "startserviceat"
including the quotes so that you don't get a pile of garbage hits - it seems to indicate that there is no such thing as an Android startserviceat.
I'd be interested to know how it was implemented in B4A.
Thanks...... B4A Question StartServiceAt UTC or Local Ticks - canalrun    Feb 9, 2021 I am going to be using StartServiceAt() to run a service at dawn then again at dusk. There is a web... to use these times with StartServiceAt().
Do I need to convert the text strings to local time... B4A Question I issue a StartServiceAt() and in the meanwhile the running App is killed. - tigrot    Nov 20, 2020 I start a StartServiceAt() with a period of 60 minutes. Expecially during the night, the running App is killed and the Service is never started. I was thinking that StartServiceAt() was enough to keep the App running. Have I to keep some service foreground to succede in this job?
Thank you for... B4A Question Cancel a running StartServiceAt() - Alessandro71    Jul 8, 2020 I'm scheduling a short lived service to run every 4 hours
If I exit the app, even with ExitApplication, at the next scheduled period, the service starts anyway.
Is there a way to cancel a StartServiceAt() that was already issued without scheduling another one?
I think I can set the next start time at about 100 years in the future, but it doesn't seem to be an elegant solution.... B4A Question StartServiceAt headaches... - Creaky    Oct 17, 2013   (1 reaction) Ok I'm going nuts here :) I've tried a couple of solutions for starting a service every day at the same time, but I keep running into loops! Can somebody _please_ post the complete code for a service that i.e. runs every day at 17:00 hours and writes something to the log? I'm absolutely sure I'm doing something wrong, but I can't figure out what and I need an example of how i... B4A Question Does StartServiceAt need to be in the same service's Service_Start Sub? - JohnC    Mar 23, 2020 be scheduled to run again, and then later do a StartServiceAt() in a sub that is NOT the Service_Start sub - in fact, the StartServiceAt call might be in a different service all together.
So, is there some reason a StartServiceAt should be in the Start_Activity - for example would it increase... Page: 1   2   3   4   5   |