is Key Board Shown - Android android.view.inputmethod

Android examples for android.view.inputmethod:InputMethodManager

Description

is Key Board Shown

Demo Code


//package com.java2s;

import android.content.Context;

import android.view.inputmethod.InputMethodManager;

public class Main {

    public static boolean isKeyBoardShow(Context _context) {
        InputMethodManager immDefault = (InputMethodManager) _context
                .getSystemService(Context.INPUT_METHOD_SERVICE);
        return immDefault.isActive();
    }//from   ww w  .  j a  v  a 2  s  . c  om
}

Related Tutorials