1

I had ported android app to blackberry 10 devices. For showing keyboard implicitly,i had used following code

InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
imm.showSoftInput(MyEditTextName, InputMethodManager.SHOW_IMPLICIT);

Above code is working in android but not working in Blackberry Z10 devices.How to show/hide soft keyboard in blackberry Z10 devices by android code? Thanks in advance.

Michael Donohue
  • 11,776
  • 5
  • 31
  • 44
Sakthimuthiah
  • 2,606
  • 6
  • 26
  • 41

1 Answers1

0

Toggle keyboard worked finally. And thanks to Mr.Nate

InputMethodManager imm = (InputMethodManager) this.getSystemService(Context.INPUT_METHOD_SERVICE);
                            imm.toggleSoftInput(InputMethodManager.SHOW_FORCED,0);
Sakthimuthiah
  • 2,606
  • 6
  • 26
  • 41