Here you can find the source of showKeyboard(EditText editText)
public static void showKeyboard(EditText editText)
//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);/*from ww w . ja v a 2 s . c om*/ } }