Android IMEI Hide hideSoftInput(Activity activity)

Here you can find the source of hideSoftInput(Activity activity)

Description

hide Soft Input

Declaration

public static void hideSoftInput(Activity activity) 

Method Source Code

//package com.java2s;

import android.app.Activity;

import android.view.WindowManager;

public class Main {
    public static void hideSoftInput(Activity activity) {
        activity.getWindow().setSoftInputMode(
                WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);
    }/*w  ww  .  j av a 2  s  .c  o  m*/
}

Related

  1. hide(Context ctx, EditText edit)
  2. hideKeyboard(Context context)