How to play media?
<p>Hi 
How to play media file in an application.I am trying it with the following code but do not know why it is not working for me</p>

<pre><code>player= new MediaPlayer().create(context, R.raw.lonely);
player.start();
player.release();
</code></pre>

<p>Help me.
Thanks in advance.</p>
