Android examples for android.view.inputmethod:KeyBoard
get InputManager
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*/ }