Questions tagged [background-service]

A background service is a computer service that runs "behind the scenes" (i.e. in the background) and without user intervention.

889 questions
0
votes
1 answer

Clever way to wakeup Android background service on shake

I want my Android background to go into sleep mode - but then wake up when the user starts moving. However, if I use the accelerometer in NORMAL mode (the lowest sample rate ~ 5Hz) I fear it would still consume too much power. The best way to do it…
Radu
  • 2,076
  • 2
  • 20
  • 40
0
votes
2 answers

Asynctask from loop gives error on 2.3 and older

Lately, I've encountered more and more errors that may seem easy to someone with more experience, but are quite hard for me to figure out. I'm trying to create a background service that checks for new feed entries each X minutes. Hence, I'm starting…
0
votes
1 answer

Executing particular task after every 10sec in a background(android)

I am developing android application in which I want to do some thing after every 10 sec. even application is closed.For that I implemented a background service which do background task for me.My code structure looks like: // my main…
nilkash
  • 7,408
  • 32
  • 99
  • 176
0
votes
2 answers

Background service is new process??

In Android, it allow each app using about 16Mb ram. I want to ask that i start a new service running in background. Can i use another 16Mb ram in this service?? Thanks.
King Wu
  • 387
  • 1
  • 8
  • 22
0
votes
2 answers

Android Background Service triggers event in main app

I'm trying to create an application that will blacklist certain applications (based on user input) and will block these applications from launching by bringing the main (or some other part of my app) to the foreground when the blacklisted apps are…
0
votes
1 answer

Background Service Android with Event Trigger

I want to design a service for Android which can run in the background at all times and can fire events which can be then handled by apps running on the phone(like the OnFling Event can be listened by any app). How can this be accomplished on…
KillerTheLord
  • 167
  • 1
  • 3
  • 9
-1
votes
0 answers

How can I prevent my desktop app from making duplicates of a hosted service?

Apologies again, I'm a beginner programmer who really needs some assistance. I'm in the process of making a desktop app to configure Quartz.NET jobs. With thanks to Selaka Nanayakkara (see here, so far I've been able to make a desktop app (with a…
-1
votes
1 answer

The service failed to start due to the following error: The service did not respond to the start or control request in a timely fashion

I created a worker service on .Net 3.1, after I created a windows service in Services.msc, but I can't start the new service. here are all the related errors I found in eventviewer. The TestWorkerService service failed to start due to the following…
-1
votes
1 answer

How to implement infinitely running background tasks in ASP.NET without third party services and without Windows Service?

Background I am not experienced in .NET, ASP.NET, Blazor or Azure. However, I would like to give it a try by building a simple web app with a specific functionality. I have some experience with Elixir and the Phoenix framework. In Elixir (and…
-1
votes
1 answer

Continuous job queue finish jobs before closure

Using the following code, I’m using a .net core Background Service with a continuous job queue where inside the ExecuteAsync simulates a job been added to the queue (this could be collecting an order, producing order responses etc) The background…
Houlahan
  • 783
  • 3
  • 19
  • 46
-1
votes
1 answer

Camera Preview run on background Android

I have an app that detects the eye using Firebase ML kit Detector in Java but I want the Camera Preview run on background and detect the eyes' position without showing in my screen. The xml file is mentioned bellow. I' ve changed the visibility to…
joe
  • 93
  • 2
  • 12
-1
votes
1 answer

Implementing a long running service (indefinite length / always available) to handle data in an ASP.NET Core Web Api

I'm going to try to simplify this, As part of an ASP.NET Core Web Api (.Net Core 2.2), I am working to achieve a taxi dispatcher background service that runs indefinitely and handles races -> assigns drivers to races, continuously fetch new drivers…
-1
votes
1 answer

background service getting closed automatically

I have written an android background service, which will start on button click and should stop on another button click. My service body is public class BatteryServices extends Service { int on; int off; int deviceStatus; …
-1
votes
2 answers

Receive FCM data messages in service when the app is not in Foreground

FCM documentation states that when app is in foreground, FCM messages are delivered to system tray. I want to handle these messages in a FirebaseMessagingService. Is it possible to access the system tray to get the firebase messages (as I've already…
-1
votes
2 answers

Started service gets killed after killing app

The service gets killed after removing the app from recent apps. But this should not be killed and run always on the background. I see that the service is running when the app is open. It's still running when I minimize the app via home-button. But…