startserviceat

  1. walterf25

    Android Question Receivers vs Services (Which one?)

    Hi all, I'm working on a small app that connects to a power usb meter via BLE, I need to log voltage and current values vs Time to a csv file, my question is, since I haven't used Services in a long time, I'm not sure of which one to use, I now see that there are Receivers, as if our lives are...
  2. Hosein_Mghr

    Android Question Start Service In Android 13

    In Android 13, I did everything to be able to restart the service after destroying it. Android 13 does not allow restarting. I tried StartService and StartServiceAt, but it didn't work. Now I want to know if it can be done with the new b4a receivers from the intent action. I should make a...
  3. gezueb

    Android Question Run a service every hour while phone sleeps

    I use a service to get the sea level air pressure (QNH) from the internet every hour and store it into a ring buffer. I used an example from the forum to repetitively schedule this cyclic process with phone wake state in partial lock. I removed the call to StartServiceat as Erel said it would...
  4. A

    Android Question Once again about StartServiceAt

    Hello. I am a programmer from Kazakhstan. Previously I worked in Visual Basic, recently I am trying to create my first application in B4A. The essence of my project is a program of reminders about scheduled events. The basis of the project is to force the service module to be activated at the...
  5. 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>)...
  6. A

    Android Question StartServiceAt problem

    Hello, I now trie to use StartServiceAt by Erel's example (https://www.b4x.com/android/forum/threads/startserviceat-headaches.33646/#post-196829) Sub Service_Start (StartingIntent As Intent) StartServiceAt(Me, NextTimeInstance(17, 27) ,True) StartActivity(Main) End Sub Sub...
  7. walterf25

    Android Question Services (Can't keep it alive)

    Hello all, i've been noticing this problem for a very long time, i have read all the threads that talk about Services, I stopped working on an app almost a year ago because i could not figure out why my Services were being killed and not re-started. Basically i was working on an Email Client...
  8. rleiman

    Android Question Starting a service every 15 minutes.

    Hi Everyone, I would like to wake up a service in 15 minute intervals and continue to do that constantly. For example, if the user pressed a button to start it and the current time is 11:05, I would like the service to wake up at 11:15, 11:30, 12:00 and so on. I was thinking about maybe using...
Top