处理MIDlets
1. MIDlet是使用MIDP特征和CLDC配置的MIDlet应用
1).MIDlet是打包成JAD(JAVA描述符)文件的Java类文件
2).MIDlet运行在已安装于MIDP设备上的Application Management Software(应用管理软件AMS).AMS提供KVM和MIDlets的环境
3).MIDlet是在支持CLDC和MIDP的手持设备中使用.
2. MIDlet的生命周期(图)
3. 开发MIDlets实例
1).任务陈述-----SaveMyMoney移动银行应用的第一个屏幕上要显示的消息为”Welcome to SaveMyMoney Bank!”,屏幕顶部有一个显示消息"Welcome to the World of Mobile Banking!"的滚动文本;
第二个屏幕上要显示的消息为"Dear Customer, , You can view your personal account information by entering your PIN number and sending it to the number 9002. If you have not received the PIN number, please contact us at our Head Office."屏幕顶部有一个显示消息"Note: Your PIN number has been sent to you at your mailing address."的滚动文本
2).代码如下-----
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
//需要实现lcdui类中的CommandListener接口
public class MB extends MIDlet