Android development: find out which application is currently playing

I would like to know how to find out which application is currently broadcasting music in my program. I looked at AudioManager, which contains information on whether the music is active or not ( public boolean isMusicActive () ). But I'm also looking for the name of the application that plays this music.

Thanks in advance.

+6
source share

Source: https://habr.com/ru/post/892753/


All Articles