Try this
Add this before your onCreate
SoundPool sp;
int yourSound = 0;
And this inside your onCreate
sp = new SoundPool(5, AudioManager.STREAM_MUSIC, 0);
yourSound = sp.load(this, R.raw.whatEverTheNameOfYourSound, 1);
Then add this in your button on your XML
android:onClick="playSound"
And last add this method on your activity
public void playSound(View v){
if(yourSound != 0)
sp.play(yourSound, 1, 1, 0,0, 1);
}
Don't forget to add the sound file on your raw folder. Hope it helps.
the sp.play(yourSound, 1, 1, 0,0, 1);
means
sp.play(int soundID, float leftVolume, float rightVolume, int priority, int loop, float rate);
You can see it here.