I made custom keyboardview in Android. I used to this in my application where I don't want to use any other keyboard. Soft keyboard is hide. I can't get capital letters from keyboard. Have you got any idea how can I get capital letter in my editview?
BasicOnKeyboardActionListener
@Override
public void onKey(int primaryCode, int[] keyCodes) {
long eventTime = System.currentTimeMillis();
KeyEvent event = new KeyEvent(eventTime, eventTime,
KeyEvent.ACTION_DOWN, primaryCode, 0, 0, 0, 0,
KeyEvent.FLAG_SOFT_KEYBOARD | KeyEvent.FLAG_KEEP_TOUCH_MODE);
mTargetActivity.dispatchKeyEvent(event);
I have tried check capital letter with event.isCapsLockOn() and event.isShiftPressed(), but without success. For capslock I used to 115 code, but for shift 59 code in xml for keyboard.
I look forward to receiving your reply. Many thanks