问题
Possible Duplicate:
How to control volume in android?
How to show Android system volume control programmatically? As if the physical volume+/- button is pressed.
On Android 4.x
回答1:
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
来源:https://stackoverflow.com/questions/13732904/how-to-show-android-system-volume-control-programmatically