For the MIDlet state, there is a application management software is specifically responsible for management. All you have to care about is how to deal with this am.
Pauseapp ()
Destroyapp ()
STARTAPP ()
Rewrite these three methods. Am will be invoked at the appropriate time.
and
Notifydestroyed ()
Notifypaused ()
Resumerequest ()
is to give you a chance to tell am what to do.
Here is a simple example that can be tested according to your own expansion. One thing that's odd is that, theoretically, when MIDlet is in an active state, AM will call Pauseapp () if there is a phone entry. However, the actual test did not find that am calling this method.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service