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.

Android the difference between onHandleIntent & onStartCommand

I am currently writing a android program which needs an IntentService. When I put the code in the onHandleIntent function, …

android android-service intentservice
Oreo - Starting a service in the foreground

I have created a service that tracks the device's location as it moves. The service is started in by an …

android android-service android-notifications foreground foregroundnotification
Add my app to AutoStart apps list in android programmatically

I want my app to be in the autostart list after installation. I know when I install an app like (…

android android-service android-manifest autostart
How to get a service from ServiceManager in Android?

I have a doubt concern the services registered by the ServiceManager and not register by the SystemServiceRegistry. In the comments …

android android-service system-services
Can I use greenrobot EventBus for Communication between Activity and Service?

EventBus Can I use this library for Activity to Service communication ? I have tried this in my app as follows: @…

android android-activity android-service greenrobot-eventbus
Save data in activity's onDestroy method

I'm writing a tasklist and have Project object, which holds all the tasks (and metadata). I use action log, so …

android android-service android-sqlite ondestroy
Can you start an IntentService on a separate process?

Is it possible to start an IntentService on a separate process? How? If so, is it mandatory to bind to …

android android-service
Running WebView in Background

I am developing an application which utilizes a WebView to sign into a website, pull content from it, then notify …

android android-webview android-service android-networking
When can onTaskRemoved() be called?

The docs state that This is called if the service is currently running and the user has removed a task …

android android-service android-lifecycle
Android: trouble with bindService() -> service is null

I'm having a problem with binding service to an activity. I get playing_service==null. I can't find what I'm …

android android-service android-binder