service

  1. M

    Android Question Geofence foreground doesn't Work

    Hi everyone, i'm taking a look to @Erel example on Geofence (https://www.b4x.com/android/forum/threads/geofence-monitoring-a-region-in-the-background.84767/#content). 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...
  2. M

    Android Question Continous background GPS tracking

    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...
  3. Kevin Hartin

    Android Question #StartAtBoot: True doesnt seem to work

    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...
  4. M

    Convert a Java (Android Studio) App into an Android Service

    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...
  5. S

    Android Question How to make SQL object reusable

    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. sqlManager #Region Service Attributes #StartAtBoot: True #End Region Sub Process_Globals 'These global variables will be...
  6. hatzisn

    Android Question Distinguish bluetooth connection/disconnection from start service at

    Hi everyone, I have the question as described in the subject. I have this code in manifest: AddReceiverText(sBT, <intent-filter> <action android:name="android.bluetooth.device.action.ACL_CONNECTED"/> <action android:name="android.bluetooth.device.action.ACL_DISCONNECTED"/> </intent-filter>)...
  7. ManSua

    Spanish Ayuda ** Service (httputils2service) Destroy **

    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: **...
  8. I

    Android Question Service gets paused when app is updated

    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...
  9. senat56

    Android Question Service is killed in 3-7 minutes, what is wrong?

    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...
  10. C

    Android Question Sending SMS in the background

    Is it possible to send small SMS messages in the background without the application having focus, and the phone, not being switched on (i.e. running, but in standby) Thanks, Colin
  11. carlos7000

    Spanish Ejecutar un servicio de forma intermitente [solucionado]

    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...
  12. K

    Android Question Bakground service not working

    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
  13. Sandman

    Android Code Snippet How to determine what started a Service

    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...
  14. carlos7000

    Spanish Correr otras aplicaciones (Solucionado)

    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...
  15. A

    מנוע דיבור בתוך אפליקציה

    הי שאלתי לא מזמן בפורום הכללי של אנדרויד איך אפשר להשתמש במנוע דיבור בשפה העברית, וענו לי שאני צריך להתקין ולהגדיר כברירת מחדל בטלפון שלי מנוע דיבור שתומך בשפה העברית. התקנתי כמה אפליקציות בטלפון שלי שמשתמשות בדיבור (לדוגמא הקראת הודעות) בעברית, למרות שבהגדרות הטלפון שלי מנוע הדיבור המכוון...
  16. rleiman

    Android Question Putting a service to sleep

    Hi Everyone, I'm trying to get my head around scheduling services to wake up then make it sleep. Can you look at my code because this simple app gets stuck in a loop waking up over and over again as soon as it is woken up using SetExactAndAllowWhileIdle. This indicates I'm missing some coding...
  17. Alessandro71

    Beta B4A 8 Beta#1: Service Notification icon corruption with style macro

    I'm converting my project to B4A 8 and I have this issue: I'm running a service, other than Starter, that gets started from the Main activity upon user action. In the start sub, I set an icon and put it in foreground Sub Service_Start (StartingIntent As Intent) 'more code Dim n As...
  18. M

    Android Question Exo player in service

    Hello I have added exoplayer to service and i have added file with activity to it. The problem is when i close the app , both service and app closes but what i want to do is keep the service running (im building a notification player) and make sound resume playing.
  19. Duque

    Android Question Google Drive, BacKup

    Hello someone has an example to use google drive and backup copies. Threads that I have visited https://www.b4x.com/android/forum/threads/class-b4x-google-oauth2.79426/#content https://www.b4x.com/android/forum/threads/any-new-google-drive-backup-restore-sample-for-b4a.80067/ I do not...
  20. rleiman

    Android Question Stopping a service that's rescheduled to restart

    Hi Everyone, I'm calling a service from an activity. That activity has a button to start the service and another button to stop it. In the called service I'm using SetExactAndAllowWhileIdle to reschedule the service so it continues to run. Same thing happens when using StartServiceAtExact from...
Top