App with media Player forces down
<pre><code>case R.id.btn7:
    if (mp != null &amp;&amp; mp.isPlaying()) mp.stop();
    mp = MediaPlayer.create(a.this, R.raw.aaaa);
    mp.start();
    break;
case R.id.btn8:
    if (mp != null &amp;&amp; mp.isPlaying()) mp.stop();
    mp = MediaPlayer.create(a.this, R.raw.bbbb);
    mp.start();
    break;
</code></pre>

<p>How could I use setDataSource in order to stop my app for force close? Please help!
If I use it like this, eclipse highlights red the setDataSource;</p>

<pre><code>public void onClick(View v) {
    switch(v.getId()) {
        case R.id.btn:
            if (mp != null &amp;&amp; mp.isPlaying()) mp.stop();
            mp.setDataSource(zoo.this,R.raw.gata);
            mp.prepare();
            mp.start();
            break;
</code></pre>
