Code example for SparseIntArray

Methods: clear

0
	 * Deallocates the resources and Instance of SoundManager 
	 */ 
	public static void clean() { 
		mSoundPool.release();
		mSoundPool = null;
		mSoundPoolMap.clear();
		mAudioManager.unloadSoundEffects();
		if (musicMediaPlayer != null) {
			musicMediaPlayer.release();
		} 
		mInstance = null;
	} 
 
	public static void setMusicEnabled(Boolean value) {
		if (mMusicEnabled == value) {
			return; 
		} 
		mMusicEnabled = value;
		if (musicMediaPlayer != null) {
			if (mMusicEnabled) {
				musicMediaPlayer.setVolume(0, 0);