Weird Behaviour Of Service And Media Player
I have an activity that starts and binds to a music playing service, hence I have implemented both the onStartCommand and onBind methods. I have a MediaPlayer object in the service
Solution 1:
When you use media player
to play music, the media player does not directly play the music, but requests the playback engine of the android system to play the music.
When you no longer use the playback engine of the android system, you should call the release()
method of the media player
to release system resources.
Post a Comment for "Weird Behaviour Of Service And Media Player"