How can I open Android's numeric keyboard programmatically?
I know how to set the EditText to numeric and initiate numeric keyboard but I want a solution without EditText or Layout because I am trying to open the keyboard for Webview.
How can I open Android's numeric keyboard programmatically?
I know how to set the EditText to numeric and initiate numeric keyboard but I want a solution without EditText or Layout because I am trying to open the keyboard for Webview.
Try this
EditText etxt = new EditText(this);
etxt.setInputType(InputType.TYPE_CLASS_NUMBER);