Skip to main content

All Questions

Filter by
Sorted by
Tagged with
0 votes
2 answers
561 views

Android - Pause/Resume music across all Activities

I'm working on a game with a MainActivity which opens activities with the game levels. Each of the level activities inherits a BaseActivity. MainActivity never finishes. All the levels open on top of ...
Mallika Khullar's user avatar
0 votes
2 answers
930 views

Service and MediaPlayer - Control screen rotation and App exit

SOLVED - See answer. I'm dealing with an app that uses a service for playing music with the MediaPlayer class. I'm having problem with screen rotation and when I leave the app. I lose the ...
Alberto's user avatar
  • 377
-1 votes
1 answer
2k views

onStartCommand() function doesn't seem to get called.

I'm trying to implement the tutorial from this video that implements a player that streams a file on the web: http://www.youtube.com/watch?v=-Xh4zlHoARM but it seems that onStartCommand() function ...
Irfan Ali's user avatar
8 votes
3 answers
3k views

How to continue playing music in background after user swipes away the app?

In Android, I use Service and MediaPlayer to play music. The music continues playing when I press home button, but stops if I "swipes away" the app. How could I continue music playing after swiping ...
tagtraum's user avatar
  • 515