I have checkboxes in my activity A.
I want to know is that if a user checks one of the given box, then I would like to link that to another activity so as when a user checks the box he goes to that activity B, similarly all the other boxes are linked to different activities.
I tried the code for intent in buttons but that doesn't seem to work. If i can get the particular code and the imports, that would be very helpful thanks in advance.
public void onClick(View view){
Intent i = new Intent(this, 2nd java.class);
startActivity(i);
}
I use the above one for buttons.