I have created two screens, one main and one that I intend to call using a button, what would be the appropriate method to call this secondary screen?
I have created two screens, one main and one that I intend to call using a button, what would be the appropriate method to call this secondary screen?
findViewById(R.id.botao).setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent variavel = new Intent(context, classeSegundaTela.class);
startActivity(variavel);
}
});