Các phương pháp itemStateChanged () nhận được giá trị theo yêu cầu của người sử dụng và gọi phương pháp setVolume () để điều chỉnh khối lượng phát lại âm thanh thông qua VolumeControl của Thủ. ShowAlert () phương pháp (xem dưới đây) được gọi là | 122 ANDTHEJTWI for int i 0 i i if connections i .equals sms 1234 new Thread public void run .start . One other use of the push registry should be mentioned before we leave this topic. The PushRegistry class provides the register-Alarm method public static long registerAlarm String midlet long time This allows a running MIDlet to register itself or another MIDlet in the same suite for activation at a given time. The midlet argument is the class name of the MIDlet to be launched at the time specified by the time argument. The launch time is specified in milliseconds since January 1 1970 00 00 00 GMT. The push registry may contain only one outstanding activation time entry per MIDlet in each installed MIDlet suite. If a previous activation entry is registered it will be replaced by the current invocation and the previous value returned. If no previous wakeup time has been set a zero is returned. The Push Registry and the Security Model The PushRegistry is a protected API and as such a signed MIDlet suite which registers connections statically or contains MIDlets which register connections and or alarms must explicitly request the permission in its MIDlet-Permissions attribute for example MIDlet-Permissions . Note that a signed MIDlet suite must also explicitly request the permissions necessary to open the connection types of any connections it wishes to register either statically or dynamically. If the protection domain to which the signed MIDlet suite would be bound grants or potentially grants the requested permission the MIDlet suite can be installed and the MIDlets it contains will be able to register and deregister connections and register alarms either automatically or with user permission depending on the security policy in effect. MIDP 123 Untrusted MIDlets do not require a MIDlet-Permissions entry. Whether access is granted to the