Hi i have again a Problem,
my app plays sound 1 sec. this work fine but if i press less 20 time on any button then plays nothing more what is the error? How i can fix it?
tsc = (Button) findViewById(R.id.button12);
tsc.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
playSound(R.raw.en_bye);
}
private void playSound(int sFile) {
// set up MediaPlayer
final int medFile = sFile;
Thread thread = new Thread(new Runnable() {
public void run() {
mp = MediaPlayer.create(getApplicationContext(), medFile);
mp.start();
}
});
thread.start();
}
Thank you