Java tutorial
//package com.java2s; import android.app.Service; import android.view.inputmethod.InputMethodManager; import android.widget.EditText; public class Main { public static void showKeyboard(EditText editText) { InputMethodManager imm = (InputMethodManager) editText.getContext() .getSystemService(Service.INPUT_METHOD_SERVICE); imm.showSoftInput(editText, 0); } }