The application manager calls for start, pause, and destroy methods of a MIDlet life cycle to start, stop, and terminate a MIDlet. Sometimes an application manager terminates a MIDlet in between. For example, a MIDlet is saving persistent data and a call to the destroyApp() method is made by the application manager. This can cause corruption of data.
To overcome this type of situation, MIDletStateChangeException is implemented in code. It is used to reject the application manager’s request to start or terminate a MIDlet.
Best exam simulation SUN scmad download free trial. Download free practice test for SUN SCMAD Mobile Application Developer exam.
Like this article? Share it with others
If you like this article, please leave a comment or subscribe this blog via RSS or via e-mail, Bookmark and share through your network. Click the AddThis button below. Thanks.
If you like this article, please leave a comment or subscribe this blog via RSS or via e-mail, Bookmark and share through your network. Click the AddThis button below. Thanks.