Code example for ContentValues

Methods: getAsInteger

0
		this.control = control;
		control.setOnItemSelectedListener(this);
	} 
 
	public void Load(ContentValues content) {
		Integer pos = content.getAsInteger(column);
		if (pos == null)
			modified = true;
		else 
		{ 
			control.setSelection(pos);
			modified = false;
		} 
	} 
 
	public void Save(ContentValues content) {
		int pos = control.getSelectedItemPosition();
		if (pos == Spinner.INVALID_POSITION)
			content.putNull(column);
		else  
			content.put(column, pos);