Frage

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?

War es hilfreich?

Lösung

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

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top