Hello,
I got a problem when I'm trying to close my J2ME Application on a real device not the emulator.
When I use it on the emulator from Nokia ( 7210 ) it works quite well.
When I'm trying to close the application on my Mobile Phone, it throw's an Security Exception but why?
The Midlet code is:
Can someone give me a hint what I made wrong?Code:/* This file was created by Nokia Developer's Suite for J2ME(TM) */ package inselwelt; import javax.microedition.lcdui.*; import javax.microedition.midlet.*; public class Inselwelt extends MIDlet{ public static Display display; public static inselwelt.InselweltGame canvas; public Inselwelt() { canvas = new inselwelt.InselweltGame(); Display.getDisplay(this).setCurrent(canvas); InselweltGame.midlet = this; } protected void destroyApp(boolean p1) throws MIDletStateChangeException { display = null; System.gc(); destroyApp(false); } protected void startApp( ) throws MIDletStateChangeException { Display.getDisplay(this).setCurrent(canvas); } protected void pauseApp() { } }
Thanks in advance!
cheers,
Sven

Reply With Quote

