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.

Reasons that the passed Intent would be NULL in onStartCommand

Is there any other reason that the Intent that is passed to onStartCommand(Intent, int, int) would be NULL besides …

android android-intent android-service
ServiceConnectionLeaked in Android

I'm attempting to use a Service in Android for some basic database operations, but for some reason I'm getting an …

android android-service memory-leaks superclass
What is the difference between service, intentService in android?

What is the difference between Service and an IntentService in Android? What is the difference between AsyncTask and an IntentService …

android android-asynctask android-service intentservice
How to add a floating view to Android Window manager and listen to System/Hardware back button events

I have a service which displays a floating view on the window manager (using WINDOW_TYPE_ALERT permission). I'm able …

android android-service android-windowmanager
When is a started and bound Service destroyed?

I was going through the services documentation in android when I noticed two contradicting points: In the services document it …

android android-service
How to cancel a foreground service from using the notification (swipe dismiss) or clear all notifications?

I'm currently creating a foreground service with a notification that appears in the notification bar when the service starts. If …

android android-service android-notifications
Get rid of "Exported service does not require permission" warning

I'm looking for a solution to get rid of the warning. I don't understand even why it appears. I took …

android android-activity warnings android-manifest android-service
How to stop Android service when app is closed

I'm trying to keep service running continously until user close app. I'm using startService() method from onCreate() method of my …

android service android-service
Android keep BroadcastReceiver in background

I created a BroadcastReceiver and it runs only when my app shown in recent apps menu. If I remove my …

android broadcastreceiver android-service background-process android-broadcast
How it is possible Service run indefinitely and also allow binding in android?

I want a service which can run in the background until I stop, even if the component that started it …

java android android-service