service

  1. erraticless

    Android Question Freezing app while phone screen off

    Hello, When i run my project (an activity with a service) in release mode in my Samsung Galaxy S20, after about 3 minutes of screen turned off, the complete app just freezes for a few seconds (or even minutes sometimes) until i turn on screen again, and then the program continue working...
  2. G

    Android Question How to kill a service permanently

    Hi, I am using MyLocation as a basis for my project. I want to stop and kill the service when the user stops the program. This is what I tried: In tracker.bas: Sub Service_Destroy ' Service.StopAutomaticForeground CancelScheduledService(Me) StopService (Me)...
  3. swChef

    Android Example Custom Intent Provider Requester Services, updated for Android 11 (API 30)

    Not long ago Don provided example Provider Requester Activity based communication via Intents. Although that Activity version had some hints in it for Service based version, it took several additional steps to get it working (Service Intent must be explicit, which may reflect more on my...
  4. b4x_android

    Bug? Failed to get gattService. the BluetoothGatt return with no services

    Hi I could not get the BT services list the code line 65 return null Because code line 57 return BluetoothGatt with services size 0 I know for sure that the BT Device I am working with is working properly This is my first task in a new job and it is very important for me to solve it as...
  5. HZZ

    Android Question Ideal Background Service Setup

    I am using B4XPages in my project. There is a TTS module which is supposed to play even when screen is turned off. It plays for a while then pauses and resumes only when screen is unlocked ( probably as long as tts queue is clear) So after a lot of forum search - using a service seems to be the...
  6. FPGdevs

    Android Question Play Games services available for a non-game app?

    Is there a way I can implement google play games achievements and leaderboard into an app that is listed on the play store as an "app" and not as a game? In the play console, play games services are visible to me only when I set the app's type to game.
  7. Valentino.b

    Android Question Forward a call on Android (B4A)

    Hi all I would like to create an APP to forward an incoming call. F.e., after working-hours, if the call coming from a specific number or a list of numbers or a prefix, then I need to forward the call to another number. Dim PE As PhoneEvents Sub PE_PhoneStateChanged (State As String...
  8. catamitu

    Android Question Runtime connect widget to a service

    Hello! I am working to a project for creating and recalling sound profiles on my android. My question is: it is possible to "connect" a service to a widget in the moment of adding this widget to homescreen? in other words, when i add a widget to homescreen, a list of radiobuttons appear and i...
  9. red30

    iOS Question Uploading files to the server in ios.

    Since there are no services in ios, I cannot upload files in the background. I am trying to find a solution to this problem. In this post, Erel gave an example of how you can extend the upload of files by 30 seconds, but I don't understand how it works and how I can use it ... Can you explain...
  10. D

    Android Question Completely stable service

    Hello everyone I need a completely stable service to run the alarms and call the call to prayer at the right time. I tried a lot and tried the content of the site many times. I have encountered many problems. I also saw an example that took the coordinates and displayed it in the notifications...
  11. red30

    Android Question The service is destroyed

    I send a large number of photos (100-300 pieces) to the server and do it through the service in the background. I create a StarterPostPhoto service and call the Post subroutine there After that, in a loop, photos will be transferred to me. If I lock the phone to a physical button, the photos...
  12. D

    Android Question I try SpeechRecognitionNoUI as Service

    Hello! a greeting to the whole community! First of all, I am not a native speaker. I hope I can make myself understood. I am needing to use SpeechRecognitionNoUI as a service so that I recognize words with the screen off. I am new to android and b4a so there are some concepts I still need to...
  13. H

    SetServiceAttribute如何确定参数?How do SetServiceAttribute determine parameters?

    我在关于服务的教程 中看到android10 +系统中的补充要求的解决方法: 内容中提到了要使用SetServiceAttribute解决问题,但是我不知道它的参数该如何给. 如图,后面的2个参数我无法确定.我搜遍了整个论坛也没有找到相关说明.请问有什么渠道能了解呢? =================================================== I saw a solution to the additional requirements in the android10 + system in the tutorial on services...
  14. Mrphone

    Android Question StartActivity From Service (Android 10-9)

    hi everyone :) I use the StartActivity(....) command in the service. Works well on low Android, but does not work at all on high Android (9-10) and nothing happens What method should I use to start an activity? (Suitable for high Android)
  15. Alessandro71

    Android Question StartAtBoot initialization sequence

    I have a service (not the Starter service) set to #Region Service Attributes #StartAtBoot: True #End Region 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...
  16. K

    Android Question Service Contenxt Error at CreateFileProviderUri

    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 context.InitializeContext...
  17. OliverA

    Android Question #Extend, Accessibility Service, Starter Service - oddities

    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...
  18. I

    Android Question Does Wait For (job) JobDone(job As HttpJob) work in service while screen is off?

    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...
  19. I

    B4A Library Wrapper for Doki/Don't Kill My App

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

    Android Question Services Destroyed after 2 minutes

    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 ** ** Service...
Top