Display.getDisplay(midlet).setCurrent(((MidletName)midlet).MethodName());
in canvas whenever you want to switch your canvas code, you type this line. And Create Mehod in midlet, after you create object canvas. For example:
Splash hitSplash;
private Canvas gameView=null;
startApp() {
hitSplash= new CanvasClass(this);
Display.getDisplay(this).setCurrent(hitSplash);
}
public Canvas getMenu1()
{
if (gameView!=null) gameView = null;
gameView = new CrackerWindow(this,getSplash());
System.gc();
return gameView;
}
private Splash getSplash()
{
return hitSplash;
}