Wednesday 26 October 2011

Hide Soft Keyboard Programatically in Android

Hi This below code is use full for hide keyboard programatically when Activity start  or Dialog show.

Just copy this below code as per your requirement in Activity or with in Dialog

InputMethodManager imputMM  (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
imputMM.hideSoftInputFromWindow(singleedittext.getWindowToken(),0); 

No comments:

Post a Comment

Android SQLite Database Viewer or Debuging with Stetho

Every Android Developer uses SQLite Database to store data into the Android Application data. But to view the data in SQLite have a lot of...