How to show Android system volume control programmatically

Yi Wang picture Yi Wang · Dec 5, 2012 · Viewed 16k times · Source

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

Answer

Pavlos picture Pavlos · Dec 5, 2012

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