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.

How to check if a service is running on Android?

How do I check if a background service is running? I want an Android activity that toggles the state of …

android android-service
getApplication() vs. getApplicationContext()

I couldn't find a satisfying answer to this, so here we go: what's the deal with Activity/Service.getApplication() and …

android android-activity android-service android-context
Service vs IntentService in the Android platform

I am seeking an example of something that can be done with an IntentService that cannot be done with a …

android multithreading android-service android-intentservice
Example: Communication between Activity and Service using Messaging

I couldn't find any examples of how to send messages between an activity and a service, and I have spent …

android android-activity android-service
Android Fatal signal 11 (SIGSEGV) at 0x636f7d89 (code=1). How can it be tracked down?

I've been reading the other posts on tracking down the reasons for getting a SIGSEGV in an Android app. I …

android android-ndk android-service segmentation-fault
How to get the current location latitude and longitude in android

In my application, I get the current location's latitude and longitude when application is open, but not when the application …

android android-service android-location
android start activity from service

Android: public class LocationService extends Service { @Override public void onStart(Intent intent, int startId) { super.onStart(intent, startId); startActivity(new …

android android-activity android-service
Android 8.0: java.lang.IllegalStateException: Not allowed to start service Intent

On application launch, app starts the service that should to do some network task. After targeting API level 26, my application …

android android-service android-8.0-oreo
Android - implementing startForeground for a service?

So I'm not sure where/how to implement this method to make my service run in the foreground. Currently I …

android service android-service
Trying to start a service on boot on Android

I've been trying to start a service when a device boots up on android, but I cannot get it to …

android broadcastreceiver android-service