Code example for Spinner

Methods: getSelectedItemId

0
		((SimpleCursorAdapter) mSpinner.getAdapter()).notifyDataSetChanged();
		setGroupId(mApp.getSelectedGroup());
	} 
	 
	public long getSelectedItemId() { 
		return mSpinner.getSelectedItemId();
	} 
	 
	public void setOnGroupSelectedListener(OnGroupSelectedListener groupSelectedListener) {
		this.onGroupSelectedListener = groupSelectedListener;
	} 
 
	public OnGroupSelectedListener getOnGroupSelectedListener() { 
		return onGroupSelectedListener;
	} 
 
	public interface OnGroupSelectedListener { 
		void onGroupSelected(long groupId);
	} 
 
}