Top "Android-service" questions

A Service is an application component representing either an application's desire to perform a longer-running operation while not interacting with the user or to supply functionality for other applications to use.

Asynctask vs Thread vs Services vs Loader

I got slightly confused about the differences between Asynctask, Thread, Service, Loader in Android. I know how it works. But …

android multithreading android-asynctask android-service
Access denied finding property "camera.hal1.packagelist"

While using camera in service mobile screen is getting un-touchable(locked by transparent window ) and only below error is occuring …

android android-service android-camera android-camera2
How to show a notification everyday at a certain time even when the app is closed?

Although this question might have been asked before on Stack Overflow, I still haven't found a clear answer. I want …

android android-intent android-service android-notifications android-alarms
Scheduled Alarm Manager not working Android

I am trying to start an alarm service that repeats every day at a particular time. I have gone through …

android broadcastreceiver android-service alarmmanager repeatingalarm
PendingIntent to launch and stop a Service

I'm trying to make a simple widget with a button that start a Service with the OnClickPendingIntent(). I can start …

android android-widget android-service android-pendingintent
How to keep an IntentService running even when app is closed?

In my Android app I start an IntentService from within an Activity by calling startService(new Intent(this, MyService.class)); …

android android-service intentservice android-intentservice
In Oreo (8.0.0+) (API 26+), How to get a location services update when the app is in the background or kill

In Android O (8.0.0+) (API 26+), How to get a location services update when the app is in the background or kill. …

android background geolocation android-service android-8.0-oreo
Minimal android foreground service killed on high-end phone

I'm trying to create an app that lets users log routes (locations/GPS). To ensure locations are logged even when …

android android-service android-lifecycle android-location android-doze
Android 9 (Pie), Context.startForegroundService() did not then call Service.startForeground(): ServiceRecord

First of all, I looked at these; Context.startForegroundService() did not then call Service.startForeground() Context.startForegroundService() did not then …

android android-service foreground-service