Problem is with the system broadcast intent ["android.media.VOLUME_CHANGED_ACTION"] you are trying to use. This intent can not be used by non system app.
You can use MediaButton events. https://developer.android.com/guide/topics/media-apps/mediabuttons#mediabuttons-and-active-mediasessions
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.