Get info about audio, playing in another application
问题 How can i get info about source (filedesc. or uri) from which another application playing audio? In AudioManager there is only isMusicActive() method, which doesn't give any additional information. And because of it isn't my application, i doesn't have any MediaPlayer object. 回答1: Register a broadcast receiver for known action intents and handle the broadcast to show or do something with the track information, source: public class CurrentMusicTrackInfoActivity extends Activity { public static