I want a gesture D-Pad, but how can I send an e keyevent if I detect a gesture? For example, I detect the gesture down, and now I want to send the keyevent KEYCODE_DPAD_DOWN.
How can i do that?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you want to send the key event only to your application, the easiest is to just inject it in the root view:
If you want to send it to another application/window, then you cannot (you would need a special permission, which requires you to have your application signed with the system certificate, AFAIK)