beautypg.com

7java.lang implementation, Java.lang support – Motorola HANDSET C381P User Manual

Page 29

background image

7
Java.lang
Implementation

29

7

Java.lang Implementation

java.lang support

Motorola implementation for the java.lang.System.getProperty method will support
additional system properties beyond what is outlined in the JSR 118 specification and is
controlled by a flex bit. These additional system properties can only be accessed by
trusted MIDlets.
The additional system properties are as follows:

• Cell ID: The current Cell ID of the device will be returned during implementation.
• IMEI: The IMEI number of the device will be returned during implementation.


The Code Sample 1 shows java.lang support:

System.getProperty("phone.mcc")
System.getProperty("phone.mnc")
System.getProperty("phone.imei")
System.getProperty("phone.cid")
System.getProperty(“phone.lai”)
System.getProperty(“phone.ta”)

Code Sample 1 Java.lang support