FAQ

Frequently Asked Questions

How do I call another screen in Totalcross?

To call a screen in Totalcross is quite simple. If you are in MainWindow and want to call a class that inherits from container you use this command:

public void ChamaRelatorios(View view){
       Intent intent = new Intent(this, Relatorios.class);
       startActivity(intent);

}

But if you’re already in a class that inherits from container and you want to call another, you use this command here:

MainWindow.getMainWindow().swap(new NomeClasse());