Problem with playing media file
<p>I am using the following code to play audio file.
I have tested the audio file on Android phone player &amp; its playing quite loud.
When I am trying to play the same audio file from the following code , its very feeble.
Is there any problem with my code ? Can I increase the volume of the media file by changing any value ?</p>

<p>While testing , the volume of the Android device has been put to maximum value.</p>

<p>Kindly provide your inputs/sample code.
Thanks in advance.</p>

<p>Warm Regards.</p>

<p>CB</p>

<pre><code>public void playAlertSound() {

        MediaPlayer player = MediaPlayer.create(this, R.raw.beep);
        player.setLooping(false); // Set looping
        player.setVolume(0.90f, 0.90f);
        // Begin playing selected media
        player.start();
        // Release media instance to system
        player.release();

    }
</code></pre>
