Use the checkbox to go to an activity

0

Alright? I'm doing a project and I came across an issue I can not solve.

I have already created an activity with login and registration for a user, however my business model accepts two types of users, men or women. For this I created a RadioGroup and RadioButton in the registry to be able to separate in the database of Firebase which is which. The issue is that if the user is male I want the login button and the registry to lead to an activity 1 for example, however if the user is female I wanted the login button and the registration button to lead to activity 2 .

I thought about separating user data in other ways but this would be ideal for me, does anyone know how to do this? Thanks

    
asked by anonymous 07.10.2018 / 22:15

1 answer

0

What language are you using? is just to make an if .. if you post your code I will help you better, but it would look something like

if (checkboxMasculino.Checked)
{
 //codigo do botao masculino
}
else if (checkboxFeminino.Checked)
{
//codigo do botao feminino
}
    
07.10.2018 / 23:08