0

As stated in the title, how do I call the digits keypad on activity start? Right now I have this:

InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);
imm.toggleSoftInput(InputMethodManager.SHOW_FORCED, 0);

in OnCreate. But this is just a normal full keyboard with letters.

bunbun
  • 2,595
  • 3
  • 34
  • 52

1 Answers1

0

this was my aproach.

To show it

InputMethodManager lIMManager

lIMManager = (InputMethodManager) getSystemService(this.INPUT_METHOD_SERVICE);
lIMManager.getInputMethodList();
lIMManager.toggleSoftInput(InputMethodManager.SHOW_FORCED, 0);

To hide it

mIMManager.hideSoftInputFromWindow(txtPin.getWindowToken(), 0);

The down side is that you have to close it by hand( it wont even close if you close the app) Hope this helps! Regards

Aerim
  • 1,960
  • 3
  • 16
  • 28