I've two groups of Buttons,each has three buttons and three Activities such as Activity A,Activity B and Activity C in my android Application.
Group A
Button 1
Button 2
Button 3
Group B
Button 5
Button 6
Button 7
If I click Button 1 and then Button 5 ,Activity A must be opened
If I click Button 2 and then Button 6 ,Activity B must be opened
If I click Button 3 and then Button 7 ,Activity C must be opened .
How to achieve this ?