Code example for SoundPool

Methods: releaseunload

0
		} 
	} 
	public void onStop(){ 
		super.onStop(); 
		if(mSoundPool != null){
			mSoundPool.unload(buttonClick_sound);
			mSoundPool.release();
		} 
	} 
//	public static boolean isBGM(Context context) { 
//		return context.getSharedPreferences("pref", MODE_PRIVATE).getBoolean("bgm", true); 
//	} 
//	public static boolean isSE(Context context) { 
//		return context.getSharedPreferences("pref", MODE_PRIVATE).getBoolean("se", true); 
//	} 
	class SubMenuClickListener implements OnClickListener{
		public void onClick(View v){
			mSoundPool.play(buttonClick_sound, 0.5f, 0.5f, 1, 0, 1.0f);
			if(v == home_ib){
				Intent home_it = new Intent(SubMenuActivity.this, MainMenuActivity.class);
//				home_it.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);