Code example for SoundPool

Methods: loadplay

0
		setContentView(v);
	} 
 
	public void onClick(View v) {
		// TODO Auto-generated method stub 
		SoundPool sp = new SoundPool(5, AudioManager.STREAM_MUSIC, 0);
		explosion = sp.load(this, R.raw.explosion, 0);
		sp.play(explosion, 1, 1, 0, 0, 1);
	} 
 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE