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.

Background service using alarm manager

I have followed below example code for implementing Periodic background service. Periodic task executes correctly If app on foreground on 1…

android broadcastreceiver android-service android-pendingintent android-intentservice
How to perform notification-action (click) on lock-screen?

TL;DR How can I make a notification that does some work from the lock-screen without unlocking? After clicking an …

android notifications android-service android-5.0-lollipop lockscreen
Android Pie (9.0) WebView in multi-process

Starting Android Pie (API 28), Google isn't allowing using a single WebView instance in 2 different processes. Documentation: https://developer.android.com/…

android multiprocessing android-service android-9.0-pie
Concurrent writing to android database (from multiple services)?

I've a serious problem with android sqlite database and concurrent writing. For better explanations, I will give you a real …

android sqlite android-service sqliteopenhelper
android service notify activity completed best way?

I created a service which syncs data from the web on a background thread and want to notify a list …

android android-service android-cursor
Creating an Android background service that continuously polls a REST API for data

I need to write an Android service that polls a server for data, parses the data, and then sends it …

android android-service android-syncadapter
Can I call stopSelf() in Service.onStartCommand?

There are some conditions where my service could be attempted to be started when it should not be. In cases …

android android-service
Method onHandleIntent() does not get called

After many hours of researching I am finally consulting official help. Why does not onHandleIntent() get called? Is there something …

java android android-service intentservice
Getting window display from service android

I am trying to display a window from service but don't getting it how to do this Here is my …

android android-service android-view android-windowmanager
Android start service using broadcast receiver

I am implementing the following code, in which I want to start a service using broadcast receiver. The toast in …

android-service android-broadcast