hi all , i have a query regrding to playing wave file from raw directory from res > raw
<p>i have a query regrding to playing wave file from raw directory from res > raw,
 i have written a code  on button click event here is my code    </p>

<pre><code>public void buttonOnclick(View v) {         
    try {           
        MediaPlayer mMediaPlayer = new MediaPlayer();           
        mMediaPlayer = MediaPlayer.create(this, R.raw.sc1malf);
        mMediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC);
        mMediaPlayer.setLooping(true);          
        mMediaPlayer.start();                   
    } catch(Exception e) {           

    }   
}  
</code></pre>

<p>but this code  is not working on samsung android mobile ,any one correct this code</p>
