B4A Question StartServiceAtExact - Alexander Stolte (first post)    May 23, 2024   (1 reaction) by calling “StartServiceAtExact” as soon as the service has been started by the previous “StartServiceAtExact”. Italian Gestione USB e alimentazione - Fulvio75 (first post)    Aug 19, 2023 In Activity_Create puoi commentare StartService(AccServ) il servizio parte ugualmente anche senza richiamarlo, non chiedermi perchè non lo so parte sarà forse che i servizi si avviano in automatico Sub Activity_Create(FirstTime As Boolean) Log("Start") If FirstTime = True Then B4A Question JavaObject not works in Android 14 - Jmu5667 (first post)    Nov 20, 2024 No, startservice does still work in Android 14. what is the service trying to do. Can you post code pls ? B4A Question How to solve a problem? - JohnC (first post)    Feb 13, 2021   (1 reaction) Just do a search in this forum - this was the first entry:
StartServiceAt (Service As Object, Time As Long, DuringSleep As Boolean)Schedules the given service to start at the given time.
Service - The service module. Pass Me when calling from a service module that schedules itself.
Time - The time B4A Question Not allowed to start service Intent { cmp=appy.app/.starter } - FrankBerra (first post)    May 20, 2018 Thank you for your precious sugegstions! In this official page https://developer.android.-8.0-changes i found this: "The startService() method now throws an IllegalStateException if an app targeting Android 8.0 tries to use that method in a situation when it isn't permitted to create background serv B4A Question Notification service that runs after 24 hours - Erel (first post)    Feb 08, 2015 Timers will not help at all.
Have you seen the services tutorial? https://www.b4x./#content
StartService - Starts the service now.
StartServiceAt - Starts the service at the scheduled time.
Nothing bad will happen if you don't stop the service.
You just need to call:
StartServiceAt(me, DateTime B4A Question Launching the application at the required time - DonManfred (first post)    Jan 07, 2023 1. StartServiceAt(Me, NextTimeInstance(21, 50) ,True) Is a code to start A SERVICE! You CAN NOT start an activity as a Service. FORGET about Activities: Switch to B4XPages. And use a SERVICE to start with StartServiceAt B4A Question startserviceat with startserviceforeground - josejad (first post)    May 27, 2018 In main
Sub BtnStartStop_Click
ServiceState= Not(ServiceState)
If ServiceStateThen
StartService(LocationService)
ToastMessageShow("Service started", False)
Else
StopService(LocationService)
ToastMessageShow("Service stopped", False)
End If
End Sub B4A Question Alarm Date Problem - Erel (first post)    Feb 10, 2020 StartServiceAt(AlarmService, Alarm, True) B4A Question using SetExactAndAllowWhileIdle without the need for notifications - rleiman (first post)    Mar 18, 2018 Hi Erel, When the app is run for the first time, I start the activity: StartService(ServiceTimeForPrayer) It calls SetExactAndAllowWhileIdle so the service will wake up at a given time: Page: 1   2   3   4   5   6   7   Powered by ColBERT |