How to play video in background with Android MediaPlayer?

I am creating a program to play videos. First, I created an Activity to play a video from a URL using Android MediaPlayer

.

My problem is the Android Home button is pressed, I want to play audio continuously (audio only), and when I return to the program, the video should play continuously.

Do you have a solution to the problem?

+3


source to share





All Articles