I want to create an activity with message ” Press any key to continue…” and by clicking any key on the keypad…another activity must be started.
Can any one give an idea how can I implement this?
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.
You can override activity method onKeyUp:
You don’t have to pay attention on what keyCode was sent to your method, cause this does not matter.
Also you can override
onKeyDown()instead of this. In this case, activity will start a little bit earlier (after you push you finger down).Happy coding 🙂