    protected void onActivityResult (int requestCode, int resultCode, Intent data){
	 	if(resultCode != RESULT_OK) return;
	 	switch(requestCode){
	 		case REQUEST_ADD_WORD :
		 		saveNewWord(	
		 				data.getStringExtra(AddWordActivity.EXTRA_QUESTION),
		 				data.getStringExtra(AddWordActivity.EXTRA_QUESTION)
		 				);
	 		break;
		 	case REQUEST_EDIT_WORD :
		 		saveEditedWord(
		 				data.getLongExtra(EditWordActivity.EXTRA_WORD_ID, -1),
		 				data.getStringExtra(EditWordActivity.EXTRA_QUESTION),
		 				data.getStringExtra(EditWordActivity.EXTRA_QUESTION)
	 				);
	 		break;
		 	case REQUEST_VIEW :
		 			int action = data.getIntExtra(ViewWordActivity.ACTION, -1);
		 			long wordId = data.getLongExtra(EditWordActivity.EXTRA_WORD_ID, -1);
		 			switch(action){
		 				case ViewWordActivity.EVENT_EDIT :
		 					onEditWordClicked(wordId);
		 				break;
		 				case ViewWordActivity.EVENT_DELETE :
		 					onDeleteClicked(wordId);
		 				break;
		 			}
	 		break;
	 		default : 
	 			throw new Error("Unknown activity requestCode: " + requestCode);
	 	}
        super.onActivityResult(requestCode, resultCode, data);
    }

    protected void onActivityResult (int requestCode, int resultCode, Intent data){
	 	if(resultCode != RESULT_OK) return;
	 	switch(requestCode){
	 		case REQUEST_ADD_WORD :
		 		saveNewWord(	
		 				data.getStringExtra(AddWordActivity.EXTRA_QUESTION),
		 				data.getStringExtra(AddWordActivity.EXTRA_ANSWER)
		 				);
	 		break;
		 	case REQUEST_EDIT_WORD :
		 		saveEditedWord(
		 				data.getLongExtra(EditWordActivity.EXTRA_WORD_ID, -1),
		 				data.getStringExtra(EditWordActivity.EXTRA_QUESTION),
		 				data.getStringExtra(EditWordActivity.EXTRA_ANSWER)
	 				);
	 		break;
		 	case REQUEST_VIEW :
		 			int action = data.getIntExtra(ViewWordActivity.ACTION, -1);
		 			long wordId = data.getLongExtra(EditWordActivity.EXTRA_WORD_ID, -1);
		 			switch(action){
		 				case ViewWordActivity.EVENT_EDIT :
		 					onEditWordClicked(wordId);
		 				break;
		 				case ViewWordActivity.EVENT_DELETE :
		 					onDeleteClicked(wordId);
		 				break;
		 			}
	 		break;
	 		default : 
	 			throw new Error("Unknown activity requestCode: " + requestCode);
	 	}
        super.onActivityResult(requestCode, resultCode, data);
    }
