When I'm loading my mobile app, I call that form to take a receipt Handles the camera. Upon returning to the upload form, if I select an edit, the virtual keyboard is not visible.
Can this be the problem? Is there any way to force this keyboard?
Try this way, hope it will help you solve your problem for.
/ ** * This method was used to hide soft keyboards. * / Public Zero Hide SoftkeyBong () {{InputMethodManager inputMethodManager = (InputMethodManager) getSystemService (activity.INPUT_METHOD_SERVICE); InputMethodManager.hideSoftInputFromWindow (getCurrentFocus (). GetWindowToken (), 0); } Hold (exception e) {e.printStackTrace (); }} / ** * This method was used to show a soft keyboard * / Public Zero Show softcard () {{InputMethodManager inputMethodManager = (InputMethodManager) getSystemService (activity.INPUT_METHOD_SERVICE); InputMethodManager.toggleSoftInputFromWindow (getCurrentFocus (). GetWindowToken (), InputMethodManager.SHOW_FORCED, 0); } Hold (exception e) {e.printStackTrace (); }}
Comments
Post a Comment