Java tutorial
//package com.java2s; import android.content.Context; import android.view.inputmethod.InputMethodManager; import android.widget.EditText; public class Main { /** * Show always Soft Keyboard * * @param context is current Activity */ public static void showKeyboard(Context context, EditText editText) { InputMethodManager imm = (InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE); if (editText != null) { imm.showSoftInput(editText, 0); } } }