Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to show Android system volume control programmatically [duplicate]

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

like image 626
Yi Wang Avatar asked Dec 05 '12 21:12

Yi Wang


1 Answers

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

like image 196
Pavlos Avatar answered Oct 04 '22 00:10

Pavlos