• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Just started... How to close a keypad?

Hi everyone,

I got the urge to create an android app and so I loaded Android App Studio and all required and have my first app going.

Learning lots and using the net as best as I can.. Ordered a book but not here yet..

Question i have is: How do I close a numeric keyboard view instead of waiting for the user to hit Done on the keyboard?

This keyboard was created with an EditText object and the inputtype is number, so it is not a full keyboard.

Lots to learn, so this may be an easy one...

Will work on my profile. SuperDaveTX

25 years + in s/w dev. C++, C#, C, Ada, asm, php, sql, etc
 
Too Slow...

Solved.

((InputMethodManager) getSystemService(Activity.INPUT_METHOD_SERVICE))
.hideSoftInputFromWindow(v.getWindowToken(),0);
 
Back
Top Bottom