Wednesday 26 October 2011

How to Show Soft Keyboard Programatically in Android

Hi This below code is use full for show 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.toggleSoftInput(InputMethodManager.SHOW_FORCED,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...