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?
Asked
Active
Viewed 75 times
-1
-
http://developer.android.com/guide/components/services.html – ahodder Aug 17 '12 at 22:44
-
@AedonEtLIRA, What is your comment about? Please be more specific – Egor Aug 17 '12 at 23:47
-
@Egor I believe he is suggesting he needs to use a Service? – Alex Lockwood Aug 18 '12 at 00:01
1 Answers
0
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

Hossam Alaa
- 663
- 5
- 9