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 codeRestarting a J2ME application
Page 1 of 1
2 Replies - 3698 Views - Last Post: 13 May 2010 - 11:23 AM
Replies To: Restarting a J2ME app within code
#2
Re: Restarting a J2ME app within code
Posted 13 May 2010 - 07:17 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.
#3
Re: Restarting a J2ME app within code
Posted 13 May 2010 - 11:23 AM
macosxnerd101, on 13 May 2010 - 06:17 AM, said:
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
|
|

New Topic/Question
Reply


MultiQuote






|