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.

Google IO Rest design pattern, finished ContentProvider and stuck on getting the data from the network

After watching the very known video on this topic I decided to go with design pattern B. Using a contentprovider …

android rest android-service android-contentprovider googleio
Can you use a LoaderManager from a Service?

I have a data loading system set up using a custom Loader and Cursor that is working great from Activities …

android android-fragments android-service android-loadermanager
Android service periodically performing tasks in background?

I have created an Android Service which I start simply in my activity Intent i = new Intent(); i.setClassName("com.…

java android android-activity android-service android-background
How to expand/collapse status bar through ADB?

Is there any way to expand/collapse status bar of Android phone over ADB?

android shell android-service adb android-statusbar
Android: When to use Service vs Singleton?

I'm quite new to Android development. When is it a good idea to create an Android Service instead of just …

android android-service
How can a remote Service send messages to a bound Activity?

I've read the documentation about Bound Services, where it is shown that you can easily communicate through Messages from an …

android android-service ipc android-binder
Getting java.lang.ClassCastException: android.os.BinderProxy every time i declare and run two services

I am encountering following binder.proxy exception every time i declare and run two services. One service runs in different …

java android android-service android-service-binding
Android O - Detect connectivity change in background

First off: I know that ConnectivityManager.CONNECTIVITY_ACTION has been deprecated and I know how to use connectivityManager.registerNetworkCallback. Furthermore …

android android-service android-8.0-oreo
difference between RTC and RTC_WAKEUP in android

i am new to android i have to perform some operation after every 30 min whether my application is running or …

android android-intent android-service android-alarms
Allow notification to be cancelled after calling stopForeground(false)

I have a Media service that uses startForeground() to show a notification when playback starts. It has pause/stop buttons …

android android-service android-notifications android-notification-bar