A background service is a computer service that runs "behind the scenes" (i.e. in the background) and without user intervention.
Questions tagged [background-service]
889 questions
7
votes
2 answers
How to Scan the BLE device in background service without library?
I am trying to connect BLE device with android application. I am getting the device name,Mac Address and rssi value in foreground. I dont know how to scan the device in background and get the details of that particular device like MAC address,rssi…

S.Sathya Priya
- 470
- 1
- 5
- 19
7
votes
0 answers
Android DownloadManager counterpart for uploads
Is there a counterpart to androids DownloadManager? I want to start uploading files and when the app gets killed, the upload should continue. It should offer similar possibilities like setting headers, progress notification, notification hub…

Sven-Michael Stübe
- 14,560
- 4
- 52
- 103
7
votes
1 answer
Pass data from android service to ContentPage in Xamarin Form based application
I am having one Application based on XamarinForms.
One background service I have created in Android project and that service would like to send data to ContentPage(which is in PCL) which is displayed to user.
How could I pass data to…

Nirav Shah
- 2,064
- 5
- 24
- 34
7
votes
1 answer
Phonegap/Cordova platform independent background service
We've been working on a mobile app using Phonegap/Cordova 3.3.0.
The problem we have now is that we really need a background service for this app which needs to run without opening the app itself.
I've found some services like…

luuk86
- 149
- 1
- 3
- 10
6
votes
5 answers
How to run a background service on demand - not on application startup or on a timer
In a .Net 5 Web API, I would like to run a background task that sends out bulk emails and SMSes.
I know I can create a service that inherits from BackgroundService, and then add it to the DI Container in the Startup.ConfigureServices method like…

Fabricio Rodriguez
- 3,769
- 11
- 48
- 101
6
votes
1 answer
My foreground service is killed on some devices like vivo after killing app?
My foreground service is killed on some devices like vivo after killing app, is there any workaround to keep it alive?
I am using foreground service like:
public class MyService extends IntentService {
private final String TAG =…

Anurag Mishra
- 139
- 7
6
votes
1 answer
App sometimes crashes with "Background start not allowed: service Intent"
I only do Android development part time (which seems challenging considering the many subtleties and low-levelness of the APIs) and have a problem with receiving notifications while my app is in the background. I am targeting Android 8.1. My app…

Gerry
- 1,031
- 1
- 14
- 30
6
votes
1 answer
Migrating from IntentService to JobIntentService for Android O
Previously I was using IntentService to send data to the server periodically. However, since Android O limiting background task and processes I am moving towards JobIntentService.
My Activity code to schedule an alarm
Intent intent = new…

Kunu
- 5,078
- 6
- 33
- 61
6
votes
0 answers
FusedLocationApi Background Location service stops receiving updates randomly
i'm trying to use FusedLocationApi with pending intent to get period location updates so i can send the data to some server for processing. Everything works. However, there are some instances where the broadcast just stops receiving. I would need to…

Jason Law
- 61
- 3
6
votes
1 answer
Screen capture with background service
I started to work with Lollipop & Media.Projection class to implement a screen sharing app. The demo project from Google is quite good enough for me to understand this new feature of Lollipop. But then I found it's hard to make the screen capture…

Kobayashi
- 143
- 1
- 13
6
votes
2 answers
What happens to background service when the app is updated in android?
Let's say I started a repeating background service that was stated on first app launch and on boot. What happens when I provide an update of the app. Will that background service be killed?
Will user have to open the app again to register the…

kamalkishor1991
- 876
- 9
- 14
6
votes
1 answer
Background Service in apache cordova app
I need to poll a server in a given interval with on a Apache Cordova app and notify the user if there is relevant information for him/her. I'm not sure if it could be done with webworkers because the event (server poll) also has to happen when the…

Tristian
- 3,406
- 6
- 29
- 47
6
votes
2 answers
Get the object of a running service
Background: I'm running a background service (independent of the app opened or not) to maintain connection with Tizen-based app on Gear2 (not Android, hence the manual maintenance).
Whenever my phone apps (multiple apps) have data to send to send…

EyeQ Tech
- 7,198
- 18
- 72
- 126
6
votes
3 answers
How to use Android AlarmManager with small intervals like 1 minute?
I want to make some external service monitor and be notified on problems as fast as possible.
I tried to set up AlarmManager with 1-2 minutes interval, but it looks like it fires randomly every several minutes.
Of course, I want to be safe from…

Piotr Müller
- 5,323
- 5
- 55
- 82
6
votes
1 answer
How to know how many applications are running in the background in android?
I can run an application in background but I want to know how many applications are running in the background. Like in some mobile while pressing the center button a list of currently running applications are displayed.
Is this is possible in…

Rajapandian
- 7,059
- 11
- 37
- 27