Code example for SparseArray

Methods: getindexOfKeyremove

0
		 * NakamapUtil().nakamapSetup(this); } 
		 */ 
	} 
 
	public OnActivityResultCallback getActivityCallback(int requestCode) { 
		if (_activityCallbacks.indexOfKey(requestCode) >= 0) { 
			OnActivityResultCallback found = _activityCallbacks 
					.get(requestCode); 
			_activityCallbacks.remove(requestCode); 
			return found; 
		} 
		else { 
			return null; 
		} 
	} 
 
	public void putActivityCallback(int requestCode, 
			OnActivityResultCallback callback) { 
		_activityCallbacks.put(requestCode, callback); 
	}