Java tutorial
//package com.java2s; //License from project: Apache License import android.app.Activity; import android.view.Window; import android.view.WindowManager; public class Main { public static void forceShowInputMethod(Activity activity) { Window window = activity.getWindow(); window.setSoftInputMode( window.getAttributes().softInputMode | WindowManager.LayoutParams.SOFT_INPUT_STATE_VISIBLE); } }