Code example for SoundPool

Methods: releaseunload

0
	} 
	@Override 
	public void onStop(){ 
		super.onStop(); 
		if(mSoundPool != null){
			mSoundPool.unload(buttonClick_sound);
			mSoundPool.release();
		} 
	} 
	class MainMenuClickListener implements OnClickListener{
		public void onClick(View v){
			mSoundPool.play(buttonClick_sound, 0.5f, 0.5f, 1, 0, 1.0f);
			if(v == imgbt1){
				Intent it = new Intent(MainMenuActivity.this, SensorActivity.class);
				it.putExtra("score", score);
				it.putExtra("Life", lf);
				startActivity(it);
				MainMenuActivity.this.finish();
			} 
			else if(v == imgbt2){
				Intent it = new Intent(MainMenuActivity.this, StageSelectActivity.class);