How To Make Android VideoView Seekto Method Consistent

In the previous article we have introduced how to use the android VideoView widget to play, pause, continue, stop and replay video files in android. But when you use VideoView‘s method seekto to make the video play from a particular position, you will find the video playing is inconsistent. Sometimes it starts from the beginning.

How To Make Android VideoView Seekto Method Consistent Read More »

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 »