Java tutorial
//package com.java2s; //License from project: LGPL import android.content.Context; import android.view.inputmethod.InputMethodManager; import android.widget.EditText; public class Main { /** * @Description: * @param addNoteActivity */ public static void forceShowKeyboard(Context context, EditText edt) { InputMethodManager imm = (InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE); imm.showSoftInputFromInputMethod(edt.getWindowToken(), InputMethodManager.SHOW_FORCED); } }