Restarting a J2ME app within code

Restarting a J2ME application

Page 1 of 1

2 Replies - 5054 Views - Last Post: 13 May 2010 - 11:23 AM

#1 snoopy11  Icon User is offline

  • Engineering ● Software
  • member icon

Reputation: 1460
  • View blog
  • Posts: 4,726
  • Joined: 20-March 10

Restarting a J2ME app within code

Posted 13 May 2010 - 07:12 AM

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.

Is This A Good Question/Topic? 0
  • +

Replies To: Restarting a J2ME app within code

#2 macosxnerd101  Icon User is online

  • Games, Graphs, and Auctions
  • member icon




Reputation: 12297
  • View blog
  • Posts: 45,395
  • Joined: 27-December 08

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.
Was This Post Helpful? 0
  • +
  • -

#3 snoopy11  Icon User is offline

  • Engineering ● Software
  • member icon

Reputation: 1460
  • View blog
  • Posts: 4,726
  • Joined: 20-March 10

Re: Restarting a J2ME app within code

Posted 13 May 2010 - 11:23 AM

View Postmacosxnerd101, 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

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1