When i click on my display, the onClick sound comes per click 1 time. So when i click about 50 times the sound does not come anymore..
if (smaragt.getTag(R.id.artsmaragt) == BLAU) {
final MediaPlayer coin2 = MediaPlayer.create(this, R.raw.coin1);
coin2.start();
punkte += 5;
}
can someone help me ? I have no idea why
Don't create a new MediaPlayer each time. That's expensive and likely your problem. Create a media player once, and just play it every time the button is clicked.