B4A Question Standard Class and Loading a layout into a panel - PaulMeuris (first post)    Nov 27, 2022   (1 reaction) From developers.android.com: Services overview A Service is an application component that can perform long-running operations in the background. It does not provide a user interface. B4A Tutorial Service Modules - Erel    Feb 07, 2023   (6 reactions) This is an old tutorial. Most of the information here is no longer correct. 255402345 Basic4android v1.2 adds support for Service modules. Service modules play an important role in the application and process life cycle. Start with this tutorial if you haven't read it before: Android Process and B4A Question Services (Can't keep it alive) - Erel (first post)    Sep 13, 2018   (1 reaction) This will not work. The minimum interval is 15 or 30 minutes.
If you want to do something every 30 seconds then you should use a foreground service. B4A Question Services... probably doing something wrong - wimpie3    Jun 20, 2021 When I start the app, the service starts and I can clearly see the message appearing every 10 seconds, even when the app itself is not active (when I'm at the homescreen for instance). However, as soon as I kill the app in Android, the service doesn't run anymore. I was expecting the service to cont B4A Question Services are processes or threads? - Erel (first post)    Dec 17, 2017 Services are neither processes nor threads. The services code runs on the main thread. B4A Question JRDC2 okhttputil issue - OliverA (first post)    Nov 18, 2019   (3 reactions) Ok, was able to get your error message. Real simple solution: Don't name any Service/Activity/Code Module Service. Service is an Object of the Core library. If you name a Service module Service, you are "overriding" the Service object. If that makes sense. Just try it. Recreate your project and do n B4A Question Generally stop services when the activitiy is paused? - Erel (first post)    Sep 25, 2018   (1 reaction) It really depends on your requirements. There is no right or wrong here.
One of the main advantages of using services is that you are not tied to the activities life cycle. Nothing bad happens if the service keeps running in the background for a few minutes. B4A Question Using Services to register person's location periodically - Pooya1 (first post)    Jul 25, 2018   (1 reaction) Hi
Use StartServiceAt for run service in every 5 minute
Also use Service.AutomaticForegroundMode = Service.AUTOMATIC_FOREGROUND_ALWAYS Use this code in end of service that you get location there
And after finish service's job,use Service.StopAutomaticForeground B4A Question Starter service loosing variables initialization? - ilan (first post)    Dec 18, 2017   (1 reaction) This should be the behavior but a service is a running activity and if you kill it the public variables of it wont be accessable any more and you have lot of apps that sell you stories by saying they will make your phone faster and what they do is they kill all background activities. So if the start B4A Question [RESOLVED] One of RECEIVER_EXPORTED or RECEIVER_NOT_EXPORTED should be specified when a receiver isn't being registered exclusively for .... - Jmu5667 (first post)    Jul 17, 2024 The service svc_service is a long running background service that manages other services and functions of the application. I already use the FGS methods as you can see in the manifest file I already posted. svc_service handles the foregound notifcation, it does funtionality does not appear in the sp Page: 1   2   3   4   5   6   7   Powered by ColBERT |