Android Keyboard Show showKeybaord(View view)

Here you can find the source of showKeybaord(View view)

Description

Show the soft keyboard

License

Apache License

Parameter

Parameter Description
view Current View being edited by keybaord

Declaration

public static void showKeybaord(View view) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import android.content.Context;

import android.view.View;

import android.view.inputmethod.InputMethodManager;

public class Main {
    /**//from   w  ww.  j  av  a  2 s . c om
     * Show the soft keyboard
     * 
     * @param view Current View being edited by keybaord
     */
    public static void showKeybaord(View view) {
        Context context = view.getContext();

        InputMethodManager imm = (InputMethodManager) context
                .getSystemService(Context.INPUT_METHOD_SERVICE);
        imm.showSoftInput(view, 0);
    }
}

Related

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