Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Hamza Ahmed
4,231 PointsSwitching into activities by using conditions in android.
Hello, i am trying to develop my first android application and i have a query. In my current activity i have put two radio groups. in first group i have 3 buttons(1,2,3) and in second group i have 2 buttons(A,B). my next step is that when someone clicks button 2 and button A, then it takes him to next activity(suppose X1) and likewise if he clicks button 3 and B it takes him into some other activity (X2) and same thing for rest of two button combination. As far i think it will require some if else condition but i m not sure.So I kindly request if u can help me how to do this.
Thank you.