focusLastCharOfEditText
public void focusLastCharOfEditText(View view) {
if (view instanceof EditText) {
EditText editText = (EditText) view;
int pos = editText.getText().length();
editText.setSelection(pos);
editText.requestFocusFromTouch();
InputMethodManager imm = (InputMethodManager)getContext().getApplicationContext().getSystemService(Context.INPUT_METHOD_SERVICE);
imm.showSoftInput(view, InputMethodManager.SHOW_IMPLICIT);
} else {
Logger.e("This view is not a EditText.");
}
}