Skip to content Skip to sidebar Skip to footer

Android: Is There Any Way To Turn On-off The Physical Keyboard Programmatically?

I have an android 3.1 with usb host capabilities. I connected to it via usb an RFID reader that works as a keyboard emulator. For keyboard emulator I mean that once I scan a tag it

Solution 1:

Have you got any editText or similar to get the focus this way?

someEditText.requestFocus();
InputMethodManagermgr= (InputMethodManager)getActivity(). 
getSystemService(Context.INPUT_METHOD_SERVICE);                 
mgr.showSoftInput(someEditText, InputMethodManager.SHOW_IMPLICIT);

I mean, if you do this after plugging your RFID reader, the keyboard should appear. Did you try this?

Post a Comment for "Android: Is There Any Way To Turn On-off The Physical Keyboard Programmatically?"