Is it possible if I have 5 (or more buttons) to change activity when all of then are pressed. Like when last button is pressed my app should change activity. And it shouldn’t matter what button of those five is pressed last.
Any ideas? 🙂
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.
Sure, create an array of booleans for each button:
In each of the listeners, when the button is pressed set the appropriate cell in the array to true, and then call such a method (abstract implementation):