Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get details of current media file playing in android media player

Is there any way to get the details of media files that is executed in android(default) media player?

like image 635
Nithin Avatar asked Aug 31 '10 07:08

Nithin


People also ask

Which class keeps a record of MediaPlayer's state and what is currently being played?

MediaPlayer Class in Android is used to play media files.

What does MediaPlayer release do?

MediaPlayer class can be used to control playback of audio/video files and streams.

How can I stop MediaPlayer in another activity?

You can't destroy one activity from another activity. But you can pause the media player by creating a new instance of MediaPlayer in the second activity and callind the 'stop' method !


1 Answers

This thread might help you to find what you are looking for: http://www.alexc.me/android-music-app-service-currently-playing-song/231/

Regards

like image 85
david.castillo.fuentes Avatar answered Sep 19 '22 07:09

david.castillo.fuentes