I am trying to use a button to switch between the fragment I am working on to a new activity. I am using the On Click listener to try switch. As well as using start activity. I think I may have to use fragment manager but I am unsure of how to use this.
This is the code I have.
addPlayers.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
startActivity(new Intent(TeamManagementFragment.this,AddPlayer.class));
}
});
The error message I have is "Cannot resolve constructor"
Your help would be greatly appreciated :). Many thanks, Edward.