最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

audio - setVolumeControlStream(AudioManager.STREAM_ALARM) does not affect a compose dialog - Stack Overflow

programmeradmin0浏览0评论

I need the hardware volume controls to affect the Alarm audio stream (AudioManager.STREAM_ALARM) when a certain Dialog is displayed. I already set in in the Activity is its OK. When the Dialog is displayed, the audio stream is automatically switched to media. I tried to call setVolumeControlStream(AudioManager.STREAM_ALARM) from within the dialog to no avail.

发布评论

评论列表(0)

  1. 暂无评论