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.

Service: onTaskRemoved not called if started with bindService

I have a Service in which the onTaskRemoved() method has been implemented. When the service is started with startService() the …

android android-service android-service-binding
How to solve java.lang.RuntimeException error occured while executing doInBackground()?

I am beginner in android development, I am getting error in following code. I am calling asyn method for http …

android android-service android-handler android-internet
How to keep Listening for Push Notifications on Android in the background

I am working on Push Notifications in Android. Now the issue is that I want to keep running my Push …

java android android-service android-c2dm google-cloud-messaging
Shared preferences between two processes of the same application

I'm writing an Android app that contains both UI and separate processes running. I want to share simple information between …

android sharedpreferences android-service
Detect Lock Screen Incorrect Password by user in Android

I am building a security app and I need to know if the user is giving incorrect password . Suppose user …

android android-service android-broadcast android-windowmanager screen-lock
Is it correct to bind a ViewModel to a Service?

I've started using Architecture Components in my application and I'm still learning how to use it. In my app I …

android android-service android-architecture-components android-viewmodel
Subscribing or binding to an existing Intent service

I have an app that has an initial activty that list some files within a list view. When an item …

android android-intent android-service intentservice
What is a JobService in Android

I am inspecting the latest samples in Android-L developer SDK. There is a sample class in android-L/ui/views/Clipping/…

android android-service android-5.0-lollipop jobservice
How to use NotificationCompat.Builder and startForeground?

Short question: I'm trying to use the NotificationCompat.Builder class in order to create a notification that will be used …

android android-service compatibility android-notifications foreground
Foreground service getting killed from Oreo

I have written a foreground service which is working properly for all OS version lower than Oreo. From Oreo application …

android android-service android-source