Code example for SparseArray

Methods: get, put, remove

0
	 * set volume of sound index 
	 * @param index - individual index of loading sound 
	 * @param volume - volume of sound 0..1 
	 */ 
	public void setPlaySoundVolume(int index, float volume){
		if (mVolumeMap.get(index) != null){
			mVolumeMap.remove(index);
		} 
		mVolumeMap.put(index, volume);
	} 
	 
	/** 
	 * play preveously loaded sound 
	 * @param index - individual index of loading sound 
	 */ 
	public void playSound(int index)
	{ 
		delayPlay	= true;
		delayLooped	= false;
		if (mSoundPoolMap.get(index) != null){
			if (	mLoadComplete.get(mSoundPoolMap.get(index)) != null