Code example for Spinner

Methods: getSelectedItemPosition

0
	public void onClick(View v) {
		if (null != mAccount) {
			String albumName = mAlbumNameEditText.getText().toString();
			// TODO Check for empty String 
 
			String privacyValue = mPrivacyValues[mPrivacySpinner.getSelectedItemPosition()];
			String description = mAlbumDescEditText.getText().toString();
 
			v.setVisibility(View.GONE);
			mLoadingProgressBar.setVisibility(View.VISIBLE);
 
			new NewAlbumAsyncTask(mAccount, this).execute(albumName, description, privacyValue);
		} 
	} 
 
	public void onNewAlbumCreated(String albumId) {
		if (null != mAlbumCreated) {
			mAlbumCreated.onAlbumCreated();
 
			try { 
				dismiss();