Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Java Micro Edition and the fly likes notifyDestroyed and destroyApp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "notifyDestroyed and destroyApp" Watch "notifyDestroyed and destroyApp" New topic
Author

notifyDestroyed and destroyApp

vijay kolli
Greenhorn

Joined: May 23, 2009
Posts: 10
Can anyone explain whether destroyApp method is going to be called after notifyDestroyed method is called.

I have gone through several posts but still it is confusing.

http://www.coderanch.com/t/229975/Java-Micro-Edition/Mobile/destroyApp-true-notifyDestroyed#1073041
In the above link it was given that destroyApp method will not be called after notifyDestroyed method.

But in this link http://www.coderanch.com/t/157252/Mobile-Application-Certification-SCMAD/certification/MIDlet-destroyApp-vs-MIDlet-notifyDestroyed
it was given that destroyApp method will be called after notifyDestroyed method.

thanks,
vijay.
Peter Miklosko
Ranch Hand

Joined: May 26, 2009
Posts: 76
No, notifyDestroyed() will not call destroyApp(). Notify will just tell application management that midlet entered Destroyed state, but it will not release resources that has to be done through destroyApp. API is clear on it, dunno why that confusion in second linked post
 
Consider Paul's rocket mass heater.
 
subject: notifyDestroyed and destroyApp
 
Similar Threads
Problem in MIDLET basics
Problem in Destroying Midlet...
Hello World MIDlet test
destroyApp(true) || notifyDestroyed()
Licensing implementation ...:confused: