문제

I have a MediaPlayer that keeps playing when I change activities and when I even click the physical Home button on my phone. How can I make it so that the MediaPlayer keeps playing when I change activities yet stops playing when I click the Home screen button?

도움이 되었습니까?

해결책

You can use a service. that keeps running the background.

the service is similar to normal activities but they run in background and dont have a user interface

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top