站内搜索: 请输入搜索关键词

当前页面: 开发资料首页J2ME 专题请问notifyDestroyed()是做什么用的?

请问notifyDestroyed()是做什么用的?

摘要: 请问notifyDestroyed()是做什么用的?


本人刚开始学习J2ME,不理解notifyDestroyed的作用,在网上也没搜到解释,所以想请这里的各位兄弟帮帮忙,先谢谢了!


推出程序用的
只有MIDLET有


通知AMS关闭MIDlet


notifyDestroyed
public final void notifyDestroyed()Used by an MIDlet to notify the application management software that it has entered into the Destroyed state. The application management software will not call the MIDlet's destroyApp method, and all resources held by the MIDlet will be considered eligible for reclamation. The MIDlet must have performed the same operations (clean up, releasing of resources etc.) it would have if the MIDlet.destroyApp() had been called.



关闭MIDlet必用的


notifyDestroyed通知应用程序管理器,该midlet已进入销毁状态,随时可以回收内存


↑返回目录
前一篇: 用Http上传大数据问题,在线等待
后一篇: 请解释一下J2ME的按键事件触发过程