Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
可能重复: 如何在 android 中控制音量?
如何以编程方式显示 Android 系统音量控制?好像按下了物理音量+/-按钮。
在 Android 4.x 上
试试setStreamVolume()方法。有很多可用的选项,请查看此链接:http: //developer.android.com/reference/android/media/AudioManager.html#FLAG_SHOW_UI
setStreamVolume()