AlertType怎么用呢?请做个简单示例
这个不是播放声音的吗?请做个小示例。我很愚笨、不好意思。
------解决方案--------------------谁又能比谁聪明多少呢?:) 
 public boolean playSound(Display display)   
 Alert the user by playing the sound for this AlertType. The AlertType instance is used as a hint by the device to generate an appropriate sound     
 这两句很重要!playSound方法由AlertType调用。AlertType是谁呢?就是 static AlertType    
 ALARM 其中之一种。因为ALARM是一个AlertType对象。而且是静态的,所以你用要用类名.变量    
 来调用 :   
     AlertType.ERROR.playSound(display)语句将发出“错误”类型的声音。还有其它类型。自己试试吧。   
 AlertType类中有五个静态数据成员,这是预定义的AlertType类型,提供给Alert类使用。它们是: 
 (1)AlertType.ALARM 警报 
 (2)AlertType.CONFIRMATION 确认 
 (3)AlertType.ERROR 错误 
 (4)AlertType.INFO 提示信息 
 (5)AlertType.WARNING 警告