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
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
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