Java tutorial
//package com.java2s; import android.content.Context; import android.view.View; import android.view.inputmethod.InputMethodManager; public class Main { private static InputMethodManager imm; public static void showKeyboard(Context context, View view) { imm = (InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE); imm.showSoftInput(view, 0); // imm.showSoftInput(view, InputMethodManager.SHOW_IMPLICIT); } }