How to show Android system volume control programm

2019-01-18 13:48发布

问题:

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