Technical Note Forum.Nokia.com
MIDP: System Properties
Version 1.2; May 3, 2006
Overview
This document lists system properties that can be retrieved by using the System.getProperty()
method call. The documentation package also includes a small MIDlet for checking the system
properties that devices support.
Detailed Description
CLDC 1.0 & 1.1, MIDP 1.0 & 2.0, and JTWI 1.0
String Description
microedition.profiles
For MIDP 2.0 devices, this property MUST contain at
least “MIDP-2.0”.
microedition.configuration
The J2ME configuration supported by this device.
For example, “CLDC-1.0”.
microedition.locale
The name of the current locale on this device.
For example, “en-US”.
microedition.platform
The name of the host platform or device. In Nokia
devices the name consists of “Nokia”, the device
model, and software version separated by “/”. There is
no space between “Nokia” and the model number nor
on either side of “/”. Formally, the syntax of the
platform string is: Nokia MODEL_NUMBER “/”
SW_VERSION.
For example,
Nokia6310i/4.42 or
Nokia3510i/p1.25.
microedition.encoding
Returns the platform’s default character encoding. In
Nokia devices this value is “ISO-8859-1”.
microedition.commports
A comma-separated list of ports is returned which can
be combined with a
comm: prefix as the URL string to
be used to open a serial port connection.
microedition.hostname
Defined in MIDP 2.0
javax.microedition.io.SocketConnection
getLocalAddress() method. Returns the local
hostname, if it is available.
microedition.jtwi.version
To identify a compliant device and the implemented
version of this specification, the value of the system
property
microedition.jtwi.version must be
“1.0”.
MIDP: System Properties 1 (9)
评论0