How to get music player information set in expande

2019-08-08 17:46发布

问题:

I want to read notifications and get to know if any media player is showing in notification when expended.

I tried using NotificationManager and getActiveNotification api but got empty list.