code: public static void showKeyboard(Context context, View field){
          try {
              field.requestFocus();
              InputMethodManager imm = (InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE);
              imm.showSoftInput(field, InputMethodManager.SHOW_IMPLICIT);
          } catch (Exception ex) {
              Log.e("Caffeine", "Error occurred trying to show the keyboard.  Exception=" + ex);
          }
      }
docs: Show the pop-up keyboard
  
  @param context Activity/Context.
  @param field   field that requests focus.