Android Keyboard Show showInputMethod(final View anyView)

Here you can find the source of showInputMethod(final View anyView)

Description

show Input Method

Declaration

public static void showInputMethod(final View anyView) 

Method Source Code

//package com.java2s;

import android.content.Context;

import android.view.View;

import android.view.inputmethod.InputMethodManager;

public class Main {
    public static void showInputMethod(final View anyView) {
        anyView.postDelayed(new Runnable() {
            @Override//from   ww  w  .j  a v  a 2s.c  o  m
            public void run() {
                final InputMethodManager imm = (InputMethodManager) anyView
                        .getContext().getSystemService(
                                Context.INPUT_METHOD_SERVICE);
                imm.toggleSoftInput(0, InputMethodManager.HIDE_NOT_ALWAYS);
            }
        }, 100);
    }
}

Related

  1. showKeyboard(View view)
  2. showKeybaord(View view)
  3. showKeyboard(Context ctx)
  4. showKeyboard(EditText editText)
  5. isSoftKeyboardActive(Activity activity)