As a part of my application, I want the android default keypad to be displayed on starting of the application, I got the following code from the forum, but it is not working.
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
InputMethodManager imm;
imm = = (InputMethodManager) gettSystemService(Context.INPUT_METHOD_SERVICE);
imm.toggleSoftInput(InputMethodManager.SHOW_FORCED, inputMethodManager.HIDE_IMPLICIT_ONLY);
Please let me know, if I am doing anything wrong, or is there any other way to accomplish the functionality.
Thanks in advance