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.

Broadcast Receiver within a Service

I am trying to start up a BroadcastReceiver within a Service. What I am trying to do is have a …

android sms broadcastreceiver android-service
How to startForeground() without showing notification?

I want to create a service and make it run in the foreground. Most example codes have notifications on it. …

android android-service foreground
Communication between Activity and Service

I am trying to make my own MusicPlayer for android. Where i came to a problem is running some things …

android android-activity android-service message-passing
Difference between Service, Async Task & Thread?

What is the difference between Service, Async Task & Thread. If i am not wrong all of them are used …

android android-asynctask android-service java-threads
Android onCreate or onStartCommand for starting service

Usually when I create an Android service I implement the onCreate method, but in my last project this does not …

android android-service oncreate
How to start Service using Alarm Manager in Android?

In my application, I am trying to start a service using Alarm manager. When I am clicking a button service …

android android-service
How to always run a service in the background?

I am in the process of creating an app that is similar to the built-in SMS app. What I need: …

android android-service background-thread
Permission Denial: startForeground requires android.permission.FOREGROUND_SERVICE

Lately we have suddenly been seeing a few of the following stack traces. Why could that be? This is from …

android android-service android-permissions
How to execute Async task repeatedly after fixed time intervals

How to make Async task execute repeatedly after some time interval just like Timer...Actually I am developing an application …

android android-asynctask android-service timertask
Taking picture from camera without preview

I am writing an Android 1.5 application which starts just after boot-up. This is a Service and should take a picture …

android android-camera android-service