I want to access the keys on the keyboard without pressing the button, I want to press ctrl+alt+del without keyboard.
I found this code but it's not working:
dispatchKeyEvent(new KeyEvent(KeyEvent.KEYCODE_CTRL_LEFT, KeyEvent.KEYCODE_CTRL_LEFT));
dispatchKeyEvent(new KeyEvent(KeyEvent.ACTION_MULTIPLE, KeyEvent.KEYCODE_ALT_LEFT));
dispatchKeyEvent(new KeyEvent(KeyEvent.ACTION_MULTIPLE, KeyEvent.KEYCODE_FORWARD_DEL));
I want to send action of holding all three of these buttons at same time.