Android Keyboard Show isSoftKeyboardActive(Activity activity)

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

Description

is Soft Keyboard Active

License

Open Source License

Declaration

public static boolean isSoftKeyboardActive(Activity activity) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import android.app.Activity;
import android.content.Context;

import android.view.inputmethod.InputMethodManager;

public class Main {
    public static boolean isSoftKeyboardActive(Activity activity) {
        if (activity == null)
            return false;
        InputMethodManager inputManager = (InputMethodManager) activity
                .getSystemService(Context.INPUT_METHOD_SERVICE);
        return inputManager.isAcceptingText();
    }/*from ww  w  .jav  a 2 s. com*/
}

Related

  1. showKeyboard(View view)
  2. showKeybaord(View view)
  3. showKeyboard(Context ctx)
  4. showKeyboard(EditText editText)
  5. showInputMethod(final View anyView)