Code example for ExtractedTextRequest

Methods: getExtractedText

0
				break; 
			case KEYCODE_HOME:
				getCurrentInputConnection().setSelection(0, 0);
				break; 
			case KEYCODE_END:
				ExtractedText et = getCurrentInputConnection()
						.getExtractedText(new ExtractedTextRequest(), 0);
				if (et != null) {
					int length = et.text.length();
					getCurrentInputConnection().setSelection(length, length);
				} 
				break; 
			} 
 
		} 
	} 
 
	/** 
	 * Handle key input on the Morse Code keyboard. It has 5 keys and each of 
	 * them does something different. 
Stop searching for code, let great code find you!  Add Codota to your java IDE