I have a service (not the Starter service) set to
#Region Service Attributes
In Service_Start I need to access some globals that are initialized in the Starter Service.
Can I assume that the Starter Service is always started first than a service that is set...
This Code run perfectly when call from activity.
Sub CreateFileProviderUri (Dir As String, FileName As String) As Object
Log(Dir & " : " & FileName)
Dim FileProvider As JavaObject
Dim context As JavaObject
Note: I'm playing around with #Extend to extend a B4A service directly with Android's AccessibilityService abstract class. Initially when the application is installed via the IDE, everything seems to work, and the inline Java routine onAccessibilityEvent calls the B4A's svc_accessibility...
The background location tracking example code works fine in its own. The service stays alive and it keeps on getting GPS location as well. What I want to do is send this location to a web service to save the location data. The code to fetch location is unchanged from the example. The only...
If you have worked on an app that has a service that needs to be running all the time, you must have gone through the delightful experience of different phones killing your background service in different ways, despite taking all the corrective measures. I get negative reviews routinely on Play...
Hi everyone i didn't understand why after two minutes that my app is in background in logs appears this:
** Activity (chat) Pause, UserClosed = false **
** Service (starter) Destroy (ignored)**
** Service (httputils2service) Destroy **
** Service (connectivtymanager) Destroy **
Hi everyone, i'm taking a look to @Erel example on Geofence
I'm trying to change it in order to implement it as foreground service, in this way TEORICALLY the OS can't kill my process...
Hi everyone, i'm coding an app for quite a whille (before the update), and i quitted beacuse the SO kill my foreground process while the app is in background, so after an random period of time it stop working.
I wish to know if there is a way with the new update to prevent the OS to kill my...
I have a php web server that happily sends Firebase Push Notifications when a new record is created for a particular customer. These appear when the Android app has been started manually, allowing clients to know when there is something demanding their attention, as the clicking of the...
I need an Android Studio Service written (actually just converted) to do a very simple task.
I have an Android Demo App (written in Java in Android Studio by the supplier) to demonstrate that their bitmap converter library we bought actually works. The library is there and it does work in App...
I am using SQLITE with B4A. I am using the database in multiple activities. I have created a service to contain my database object. StartAtBoot is set to True.
#Region Service Attributes
'These global variables will be...
I have the question as described in the subject.
I have this code in manifest:
Hola gente. Espero que las fiestas de navidad y fin de año estuvieran de película.
Quisiera pedir ayuda y preguntarles si alguno ha enfrentado problemas que se le destruya una de las librerías y el resto del código sigue funcionado. ¿Como lo han resulto?
EL MENSAJE QUE INDICA EN EL LOGS:
My app has a service which has StartAtBoot=True. It used to be a sticky service, but since the app now targets API Level 26, it uses Service.AutomaticForegroundMode = Service.AUTOMATIC_FOREGROUND_ALWAYS instead.
The service has a persistent notification icon. The problem is whenever a user...
Good day dear programmers. (I use Google as a translator, so do not swear strongly) Briefly, there is an oreo and you need a service that will check a certain URL every 20 seconds and cause a certain action. But the current code does not work much time, oreo kills it. What not so please tell me...
Hola a todos.
Deseo crear un servicio que cada 'n' segundos se conecte con un servidor y solicite información para saber si hay pedidos.
Ya leí los tutoriales de estos links:
Intent Filters - Intercepting SMS messages in the background...
Hii, I make background service app which show notification but it work in some device and not work in some devices.
Its work in Xiaomi MI A1 and not work in Redmi note 4.
I aslo use region service attributes == #StartAtBoot: True
As far as I can tell, there are three different reasons a service was started:
Manually started using StartService
Scheduled start using StartServiceAt or StartServiceAtExact
Automatically started at boot using #StartAtBoot
I recently found myself needing to know why a service was started, so...
Hola a todos.
Estoy tratando de ejecutar una aplicacion cada cierto tiempo. Desafortanadamente no sé que hice el código fuente de dicha aplicación, lo que me impide agregarle un 'servicio'. Por lo que he creado un servicio, para llamar a dicha aplicacion cada 5 minutos.
El código que estoy...