Is it possible to control the volume of the default media player in Android from an Android application
<p>I have the following requirement.</p>

<p>I am developing an Android mobile application. A timer has been set for a specific duration for an activity.</p>

<p>i> I need to play "beep" sound three times when the timer duration is 10 seconds left to complete(i.e. become zero) , two times "beep" sound when the timer duration is 5 seconds left to complete &amp; once "beep" sound when the timer completes.</p>

<p>ii> The user may be playing music using the default music player of the Android phone while using the Android mobile application . I need to implement the logic so that when the "beep" sound is being played from the mobile application , I need to first decrease the volume of the default music &amp; then play the "beep" sound &amp; again reset to the original volume after the "beep" sound have been played the required no of times.</p>

<p>I wanted to know , whether this is technically feasible or not.</p>

<p>Warm Regards,</p>

<p>CB</p>
