sound1= sounds.load(getApplicationContext(),R.raw.sound1,1);

Here is a function that want to play a sound when the button is clicked.

public void playsound1(View v ) {
 sounds.play(sound1,1.0f,1.0f,0,10f);
}

But i don't know why it does not working?

1

There are 1 best solutions below

3
Sotiris S. Magionas On

In your code look above your method. You must have forgotten to put the } symbol to close the method right above.