Use .setDataSource to get mediaMetadata from currently playing music app
问题 I want to get MediaMetadata (song title / artist) from the current playing android audio source for any app (spotify, google play, soundcloud, YouTube, blackplayer, etc) and am trying to use MediaMetadataRetriever.setDatSource Currently I have a function 'getActiveNotifications' in 'MainActivity.java' that gets called whenever a button is pressed, my code looks like this: public void getActiveNotifications(View view) { String temp ="temp"; Log.i("myTag", "Logging active notifications:"); /