Android application stops only on a device and not the emulator
<p>I've made a simple app that will play a sound when a button is tapped and keep count of how many times it's been tapped. It works fine on the emulator, but on an actual device it crashes when the button is pressed.</p>

<p>Code:</p>

<pre><code>package com.ian.counter;

import android.app.Activity;
import android.view.View;
import android.widget.TextView;
import android.os.Bundle;
import android.widget.Toast;
import android.media.MediaPlayer;

public class CounterActivity extends Activity {
    /** Called when the activity is first created. */
    TextView textView1;
    //MediaPlayer ding;
    int count = 0;
    @Override  
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        textView1 = (TextView) this.findViewById(R.id.textView1);
        textView1.setText(Integer.toString(count));
        //ding = MediaPlayer.create(this, R.raw.ding);

    }

    public void Count(View view){
        count ++;
        textView1.setText(Integer.toString(count));
        //ding.start();
    }
}
</code></pre>

<p>Would anyone know why it works on the emulator but not on a device?</p>
