Is there any way to get the details of media files that is executed in android(default) media player?
MediaPlayer Class in Android is used to play media files.
MediaPlayer class can be used to control playback of audio/video files and streams.
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 !
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With