Message Alert Tone
<p>I am working on an App that gets sms alerts and would like to control volume of alert tone based on device volume. How do I adjust alert notification sound in alignment with device master volume. Following code doesn't change volume of alert in my app based on device volume.  Thank you.</p>

<pre><code>    volume = audioMan.getStreamVolume(AudioManager.STREAM_RING);
     mPlayer.setVolume(volume, volume);
</code></pre>
