I’m searching for a class in Android which does the same as java.awt.Robot
java.awt.Robot is able to emulate pressing and releasing keys.
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.
No, there is no equivalent of
Robot. Apps cannot control other apps, for obvious privacy and security reasons.For testing, you can “emulate pressing and releasing keys” through any number of test frameworks, such as the standard Android JUnit test cases, uianimator, and monkeyrunner.