I have written a new j2me application
in eclipse pulsar.
everything works fine.
but I would like to restart the application at the end of the program so it goes back to the Display splash screen at the start
I thought it would be easy as calling startApp();
but this throws an illegalstate exception.
is there a way to restart a j2me app ? or will I have to just quit the program and leave it at that.
Thanking you in advance.
Restarting a J2ME app within code
Page 1 of 1
Restarting a J2ME application
2 Replies - 3698 Views - Last Post: 13 May 2010 - 11:23 AM
Replies To: Restarting a J2ME app within code
Re: Restarting a J2ME app within code
Posted 13 May 2010 - 11:23 AM
You might want to define a reset() method, which initiates the program. You could invoke reset() in startApp(), and again when the user wants to start over.
Yeah I had done that figured out how to redisplay splash screen and reinitialise control items.
It was quite simple but I had forgot to declare a new choicegroup instance I had declared it earlier and not in the right place.
This post has been edited by snoopy11: 13 May 2010 - 11:23 AM
Page 1 of 1