Keywords: J2ME? MIDLET? JAM
Contact your author: xiaozuidaizhi@sina.com
============================================================================================================================================================================================================= ===============================
??????? After a period of time learning J2ME, in addition to the class library, I still think that the difference between MIDlet and Application is mainly manifested on the control of the program, and an Application control is completely in the programmer itself. However, I think I can't call the MIDlet program that cannot be called a complete program, because JAMS (Java Application Management System) is also an extremely important role that controls MIDlet, this role is even more important than yourself.
??????? I think, when a MIDlet starts, there must be a higher priority thread followed by the MIDlet, its main task is to listen to the keyboard input. In addition, JAMS should have a mechanism to monitor the change of the MIDlet status. When you call DESTROYAPP (False); when this mechanism transforms the current state to a destruction state, when you call PauseApp () NOTICEPAUSE (); When this mechanism transforms the current state to a pause. The NOTICE method is this mechanism and the MIDlet communication interface!
????? The two points above, the content is made by Jams, so the MIDlet is not fully controlled in the hands of the programmer. ============================================================================================================================================================================================================= ===============================
Detailed discussion on this problem See the author's another article:
"Knocking the MIDlet's encephalop ---- Two threads running in the MIDlet"