Java tutorial
//package com.java2s; import android.app.Activity; import android.content.Context; import android.view.inputmethod.InputMethodManager; import android.widget.EditText; public class Main { public static void showSoftInput(Activity acitivity, EditText et) { if (et == null) return; et.requestFocus(); InputMethodManager imm = (InputMethodManager) et.getContext() .getSystemService(Context.INPUT_METHOD_SERVICE); imm.showSoftInput(et, InputMethodManager.RESULT_UNCHANGED_SHOWN); } }