由网友(背着书包去打架 !)分享简介:可能重复: 如何控制机器人的体积? 如何显示Android系统音量控制编程?仿佛物理卷+/-按钮是pressed。How to show Android system volume control programmatically? As if the physical volume+/- button is p...
可能重复: 如何控制机器人的体积?
如何显示Android系统音量控制编程?仿佛物理卷+/-按钮是pressed。
How to show Android system volume control programmatically? As if the physical volume+/- button is pressed.
在Android 4.x版
On Android 4.x
推荐答案
尝试 setStreamVolume()
方法。有很多可供选择,检查此链接:http://developer.android.com/reference/android/media/AudioManager.html#FLAG_SHOW_UI
Try setStreamVolume()
method. There are a lot of options available, check this link: http://developer.android.com/reference/android/media/AudioManager.html#FLAG_SHOW_UI
相关推荐
最新文章