Creates a Splash screen.paramdisplay - the display associated wit the Manager midletparamnextScreen - the screen to be displayed after timeout this.nextScreen = nextScreen; this.display = display; setFullScreenMode(true);
this.nextScreen = nextScreen; this.display = display; setFullScreenMode(true);
Override hideNotify to cancel timer task. if (timerTask != null) { timerTask.cancel(); } timerTask = null; timeoutTimer = null;
if (timerTask != null) { timerTask.cancel(); } timerTask = null; timeoutTimer = null;
Paint splash screen.paramg Graphics instance to paint on // White background g.setColor(255, 255, 255); g.fillRect(0, 0, getWidth(), getHeight()); if (splashScreen != null) { g.drawImage(splashScreen, 0, 0, Graphics.LEFT | Graphics.TOP); }
// White background g.setColor(255, 255, 255); g.fillRect(0, 0, getWidth(), getHeight()); if (splashScreen != null) { g.drawImage(splashScreen, 0, 0, Graphics.LEFT | Graphics.TOP); }
Override showNotify to set a timer task so that Splash screen automatically switches to the App Manager Screen. if (timerTask != null) { timerTask.cancel(); } if (timeoutTimer == null) { timeoutTimer = new Timer(); } splashScreen = GraphicalInstaller.getImageFromInternalStorage("splash_screen_" + getWidth() + "x" + getHeight()); timerTask = new TimeoutTask(); timeoutTimer.schedule(timerTask, 2000);
if (timerTask != null) { timerTask.cancel(); } if (timeoutTimer == null) { timeoutTimer = new Timer(); } splashScreen = GraphicalInstaller.getImageFromInternalStorage("splash_screen_" + getWidth() + "x" + getHeight()); timerTask = new TimeoutTask(); timeoutTimer.schedule(timerTask, 2000);