Android Keyboard Show showKeyboard(Context ctx)

Here you can find the source of showKeyboard(Context ctx)

Description

show Keyboard

License

Open Source License

Declaration

static public void showKeyboard(Context ctx) 

Method Source Code

//package com.java2s;

import android.content.Context;

import android.view.inputmethod.InputMethodManager;

public class Main {
    static public void showKeyboard(Context ctx) {

        InputMethodManager imm = (InputMethodManager) ctx
                .getSystemService(Context.INPUT_METHOD_SERVICE);
        imm.toggleSoftInput(InputMethodManager.SHOW_FORCED, 0);

    }//  ww w.  j  a v a 2 s.c om
}

Related

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