简体   繁体   English

将活动音频流设置为android家庭音频流

[英]Set activity audio stream to android home audio stream

I want to set my activity and the soundpool to the audio stream that I can adjust when I am on the home screen (I presume this is the main stream?). 我想将自己的活动和声音池设置为在主屏幕上可以调整的音频流(我想这是主流吗?)。

What stream is this? 这是什么流? What is its name? 它叫什么名字?

Update: 更新:

Currently I am using the AudioManager.STREAM_MUSIC , however when I set the audio level of my phone to 0 and then open my app, the audio is level is back to 100, which I do not want. 当前,我正在使用AudioManager.STREAM_MUSIC ,但是当我将手机的音频级别设置为0然后打开我的应用程序时,音频级别又回到了100,这是我不希望的。

如果您是指在主屏幕上按音量键时要调整的音量,那么很可能是铃声音量(即STREAM_RING )。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM