andriod music player . application not opening
===

i am trying to make an simple application of music player with simple imagebuttons for play and pause .i tried doing it but at the run time the emulator says "unfortunately not able to open the appication." i tried with only the code for play button and it workrd bt when the code for pause button is added the run time error occurs . can any1 tell me where i m going wrong 

thanku














public class Audio1Activity extends Activity {
	
	private static final String TAG = "AudioDemo";
	private static final String isPlaying = "Media is Playing"; 
	private static final String notPlaying = "Media has stopped Playing"; 
	private MediaPlayer player;
	ImageButton playbtn,pausebtn;
		
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        player= MediaPlayer.create(this , R.raw.a1);
        playbtn=(ImageButton) this.findViewById(R.id.image_button1);
      
        player.setLooping(false); 
        
		playbtn.setOnClickListener(new View.OnClickListener(){
        

		public void onClick(View v) {
			demoPlay();
			
		}
	});
 
	
		
		pausebtn.setOnClickListener(new View.OnClickListener() {
			
			public void onClick(View v) {
				demoPause();
			}
		});  
 }
        
        @Override
        public void onPause() {
        	super.onPause();
        	player.pause();
        }
        
        private void demoPause(){
            player.pause();
            Toast.makeText(this, notPlaying, Toast.LENGTH_LONG).show();
            Log.d(TAG, notPlaying);
    }
        
        private void demoPlay(){
            player.start();
            Toast.makeText(this, isPlaying, Toast.LENGTH_LONG).show();
            Log.d(TAG, isPlaying);
    }
}
