This is the code for a button:
Using java Syntax Highlighting
- button2.setOnClickListener(
- new Button.OnClickListener(){
- public void onClick(View v)
- {
- MediaPlayer mp = MediaPlayer.create(context, R.drawable.test);
- mp.start();
- }
- });
Parsed in 0.031 seconds, using GeSHi 1.0.8.4
Sound plays but if I press the button 20-25 times everything hangs.
Why?
Thank you very much

