Android Service

How To Start Android Service Automatically At Boot Time

To start an android background service when the device boots, you should create a broadcast receiver, and make it listen to android.intent.action.BOOT_COMPLETED action. Then in the custom broadcast receiver’s onReceive method, you can start the background service.

How To Start Android Service Automatically At Boot Time Read More »

,

Android Play Audio File In Background Service Example

This article will show you how to communicate between activity and background service in android. It will play, pause and stop a web audio file in the android background service in this example. It will also update the activity progress bar from the background service to display the audio playing process.

Android Play Audio File In Background Service Example Read More »