The Source for Java Technology Collaboration

Home » java.net Forums » Mobile & Embedded » ME Interest

Thread: MIDlet states on startup

Welcome, Guest Help
Login Login
Guest Settings Guest Settings
This question is answered.

Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 1 - Last Post: Jun 9, 2008 6:29 AM by: terrencebarr Threads: [ Previous | Next ]
davjoh

Posts: 118
MIDlet states on startup
Posted: Jun 8, 2008 7:58 AM
 
  Click to reply to this thread Reply

I've been reading a bit about MIDlet states and the AMS.

According to what I've read, on starting a MIDlet, it is moved into the Paused state, and then into an Active state by the AMS calling startApp().

My question is, why does it do it in this particular order on the first startup? Why does the MIDlet not just execute the startApp() method and move straight into an Active state without having been in a Paused one?

-David

terrencebarr

Posts: 544
Re: MIDlet states on startup
Posted: Jun 9, 2008 6:28 AM   in response to: davjoh
Correct
  Click to reply to this thread Reply

I guess that is mainly for symmetry reasons. The transition active->paused->active can happen at any later point once the MIDlet is execution so the MIDlet needs to implement these transitions anyway if it requires any special operations going into or coming out of the paused state.

-- Terrence




 XML java.net RSS