Intent buttonDown = new Intent(Intent.ACTION_MEDIA_BUTTON);
buttonDown.putExtra(Intent.EXTRA_KEY_EVENT, new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_MEDIA_PLAY_PAUSE));
sHotkeyApplication.getContext().sendOrderedBroadcast(buttonDown, null);
buttonDown = null;
Intent buttonUp = new Intent(Intent.ACTION_MEDIA_BUTTON);
buttonUp.putExtra(Intent.EXTRA_KEY_EVENT, new KeyEvent(KeyEvent.ACTION_UP, KeyEvent.KEYCODE_MEDIA_PLAY_PAUSE));
sHotkeyApplication.getContext().sendOrderedBroadcast(buttonUp, null);
buttonUp = null;
인터넷에는 이런식으로 하면 키가 먹힌다고 나오는데 저는 왜 안되는걸까요 ㅠ