I have some simple code for displaying a splash screen. Assum _canvas refers to an instantiated FullCanvas subclass and that its keyPressed event sets lastKey...
// Display splash screen
Display.getDisplay(this).setCurrent(_canvas);
for (int index = 0; index < 40; index++) {
try {
_canvas.repaint();
if (_canvas.lastKey != -1) break;
Thread.sleep(50);
} catch (InterruptedException e) {
}
}
// Do other stuff
My question is, why does this work on the 7210 emulator and NOT on a 7210 handset? On the actual handset, it displays the splash screen fine, but pressing a key doesn't move on. Hmph. Any ideas?

Reply With Quote

