get InputManager - Android android.view.inputmethod

Android examples for android.view.inputmethod:KeyBoard

Description

get InputManager

Demo Code

import android.annotation.TargetApi;
import android.content.Context;
import android.hardware.input.InputManager;
import android.os.Build;

public class Main {

  @TargetApi(Build.VERSION_CODES.JELLY_BEAN)
  public static final InputManager getInputManager(Context context) {
    return (InputManager) context.getSystemService(Context.INPUT_SERVICE);
  }/*from   w ww  .  java2s.co m*/

}

Related Tutorials