service

  1. xiaoyao

    Android Question I want to make a simple alarm clock using service?

    I want to make a simple alarm clock using service (timer_fw) how to change Activity( main).lable1.text?
  2. walterf25

    Android Question Start B4XPage from Receiver (SOLVED)

    Hi all, I have an app that schedules a notification for the user, the notification has two action buttons, "Check In" and "Close", I have a receiver that captures these actions in the starting intent, based on which of these two buttons are pressed when the user opens the notification, I need to...
  3. walterf25

    Android Question Scheduling Notification 14 days from now (Receiver)

    Hi all, I have the need to schedule a notification on my app 14 days from whenever the user completes certain tasks, I came across this thread here that requests the REQUEST_SCHEDULE_EXACT_ALARM permission so, My question is, will a Receiver work in this case, is there anything special I need to...
  4. D

    Android Question Android 14 not sending network message when App closes.

    I have an APP which communicates with a computer using network sockets (TCP protocol). The computer is only allowed to communicate with one device at a time, therefore when the App is closed (by the user), it sends a special sign-off message to the computer. Generally, the App works Ok on...
  5. M

    Android Question how to set automatic widget android in home screen

    hi my app is have a widget for make my app live for get and send gps location services i want after run my app if widget is no active in home screen is automaticly added this in there
  6. Greg Breinholt

    Android Question SOLVED: B4A 13 targeting SDK 34 ... how to start service?

    When targeting SDK 34 there are new requirements for starting a service, where you have to include a foreground service type... https://developer.android.com/about/versions/14/changes/fgs-types-required There is this tutorial page, but it does not mention using the Service.StartForground...
  7. Dave O

    Android Question foreground service exception - update to "short-term" service or receiver?

    My checklist app uses a service to upload a backup file to Google Drive when the list changes or the app exits. I first save the file locally (instant), but because it takes a few seconds to upload to the net, I thought a service would be the right way to do this (so that the service gets the...
  8. M

    Android Question [B4XPages] Put onUserInteraction event inside a Service

    Hi everyone, The app I'm developing needs to detect user interaction in every part of the screen at any time in order to reset a Timeout timer. I did this currently with B4XPages exploiting this Java method, but this needs to be put in an Activity module, more specifically, in case of B4XPages...
  9. H

    Android Question KeepAlive on the service

    I'm finishing making an alarm app - in fact I've already finished -, but I wanted the warning to be displayed instantly, without going through other pages. I achieve this by placing KeepAlive on the page that will display the warning, after loading everything. It happens that the alarm becomes...
  10. mohsen programmer

    Android Question Failure to recognize code module methods

    Hello I use the following code in Service_Create in my starter to send a notification with firebase: Sub Service_Create Try CallSubDelayed(FirebaseMessaging, "SubscribeToTopics") Catch End Try End Sub There are also functions in this service (starter). In these functions...
  11. M

    Bug? [B4A] Intent Based Camera stops working in certain conditions ?

    Hi everyone, I'm using this method by @Erel to take a picture from Android in my app released months ago. Since some days, some customers told me that the "take picture" button is not working anymore, randomly. After some investigation in my code, I could not find the problem... the only thing...
  12. Duque

    Spanish Receptores VS Servicios

    Hola Según esta discusión nos esperan problemas con Android 12+ El debate es sobre los servicios y receptores después de android 12+ Según lo que entendí me puse manos a la obra para actualizar... yo tengo una aplicación donde el usuario configura un recordatorio, este lo programo de la...
  13. M

    Android Question Start activity in service when screen locked android10+

    Hi everyone I am trying to make an app that will start activity even if the screen is locked with password when a specific text message is received. I'm using service intent filter for sms receiveing and it work fine when phone is on Tank's for any help
  14. H

    Android Question Android ends service!

    I'm just writing to try to understand when a service running in the foreground is disabled by the Android system. I developed an alarm app and after choosing the text and time data for the alarms, I close the app and only its service is running in the foreground, sometimes it works for a day...
  15. Cainsoft

    Android Question Android API 33 - services/receiver vs http

    Hi, I had a problem for which there was no solution: https://www.b4x.com/android/forum/threads/startreceiverat-okhttputils2-during-phone-sleep.149687/ Somehow I managed to get a service to run in the "foreground" under Android 13 (API 33). What's interesting is that this service doesn't stop...
  16. Hosein_Mghr

    Android Question Automatic software launch

    I have a project that needs to enable auto-start by the user and check that auto-start is enabled Asking to enable autostart works fine but I can't figure out if autostart is enabled or not I used the following Sub to get auto launch permission : Sub CheckAppAutoStartSomeDevice Try...
  17. naengi

    Android Question HttpJob timeout in receiver

    Hello I use HTTPJob in the receiver There is no problem when the program is running and all requests are sent correctly But When I close the program, I get a timeout error or Unable to resolve host error ? What is the problem? And one more question, is it still possible to run a service in...
  18. M

    Android Question Clicking on the notification and running the service

    Hi How can I create a notification with a big image using a library: https://www.b4x.com/android/forum/threads/nb6-notifications-builder.91819/#content which when clicked run a service without bringing up any activity?
  19. M

    iOS Question BLE SetNotify does not return anything

    Hi everyone, i've used BLE library with Android and i have the necessity to use the SetNotify method. On Android this method return a boolean value to tell if the operation went ok or not. On iOS seems that the SetNotify method does not have a return value. I use the return value to wait for...
  20. S

    Android Question How i can create service always in background without notification

    Hello, I have searched the forum but I have not found an example that makes me understand how I can create a hidden service that is running even when my application is closed (or opened) where I can call a web service and check some data, and only if my condition it is true to display a...
Top