Volume Control In Android

deepak - Sat Nov 17 2012 09:53:00 GMT-0500 (EST)

Problem Statement

I added sound to my android application using the 
MediaPlayer API. 
But whenever i use the Volume control of the phone,
the app volume w/as not getting adjusted.
How to fix this

deepak - Sat Nov 17 2012 09:53:51 GMT-0500 (EST)

Here is the Answer

Add the below statement to the activity which is 
creating the sound.