Michael Zeuner Michael Zeuner - 1 year ago 62
Android Question

how do you make it so the Android keyboard doesnt open up when the user opens up my app?

can you make it so when you open up the app the on screen keyboard wont open up untill you click on one of the editText's?

Answer Source

In order to hide the virtual keyboard, you can use the InputMethodManager like this (you can put it in the onCreate()method of your landing activity) :

InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);
imm.hideSoftInputFromWindow(myEditText.getWindowToken(), 0);
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download