Android code for open keypad in editText

how to open keypad in android apps
how to popup keyboard in android for use of editText

For open keypad in android used InputMethodManager

add following code for open keyboard in android

//To open key board
InputMethodManager MyKeboard = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
MyKeboard.toggleSoftInput(InputMethodManager.SHOW_FORCED, 0);

Here MyKeboard is variable

For using above code, we have to import following header file

import android.view.inputmethod.InputMethodManager;

One Comment

Add your comments here

Back to Top