I had to fix it today so I thought that I would be joint with the world. Say, for any reason you need to show or hide the virtual(soft) keyboard in Android App. It is not very intuitive, but you can easily do that. Heres one scenario youre the place of performance measures that focus in the text box. To my surprise, did not bring myTouch on the keyboard(or emulator). In fact, it requires the following additional codes:
To view:
[java]
editText EditText =(EditText) findViewById(R.id.myEdit)
MA InputMethodManager =(InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE)
// will do this only if no physical keyboard is open
mgr.showSoftInput(editText, InputMethodManager.SHOW_IMPLICIT)
[/ Java]
A to hide:
[java]
MA InputMethodManager =(InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE)
mgr.hideSoftInputFromWindow(editText.getWindowToken(), 0);
[/ Java]
Via: Android Mobile Reviews
Description of Source:
Android mobile reviews to compare the latest phones. Provide news on new phone releases and any knowledge about Google Android.
