In the following posts, we can see how to navigate to the other activity in android. In the Below, Example is the addUserBtn is the Button created, on clicking this button this has to navigate to the Activity Called the Registration Activity.
Button addUserBtn;
addUserBtn = (Button) findViewById(R.id.add_user_btn);
addUserBtn.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
openNewActivity(Registration.class);
}
});
No comments:
Write comments