Use checkbox to go to an Activity

Asked

Viewed 21 times

0

All right? I’m doing a project and I came across an issue that I can’t 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 Firebase database which is which. The issue is that if the user is a man I want the login button and registration to lead to an Activity 1 for example, however if the user is a woman I wanted the login and registration button to lead to Activity 2.

I thought of separating the user data in other ways but this would be ideal for me, does anyone know how to do that? Thank you

  • Fabricio, how are you? It is interesting that you make clear your doubt in the title, because in the listing is what draws the attention of possible people who can give the answer. A susgestion: How to make a dial on a Radiobutton lead to an Activity 1 or Activity 2?

  • 1

    @egomesbrandao thank you very much, I would pay more attention in the next =]

1 answer

0


What language are you using? it is only to do an if .. if you post your code I help you better, but it would be something like

if (checkboxMasculino.Checked)
{
 //codigo do botao masculino
}
else if (checkboxFeminino.Checked)
{
//codigo do botao feminino
}
  • Hi Sloan, you helped me so much!!! Thank you so much indeed

  • That nothing! any other doubt we are here !

Browser other questions tagged

You are not signed in. Login or sign up in order to post.