Java tutorial
//package com.java2s; //License from project: Apache License import android.app.Activity; import android.view.WindowManager; public class Main { public static void hiddenKeyboard(Activity activity) { activity.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN); } }