| [ directory ] |
|
20.2 System PropertiesMIDP inherits the system property mechanism from CLDC (see Section 5.2.10, "Property Support"). In addition to the properties provided by the CLDC, the MIDP Specification defines the following additional properties that can be retrieved by calling the method java.lang.System.getProperty (see Table 20.1). The microedition.locale property is a String that consists of the language, country code, and variant separated by "-" (Unicode U+002D), for example, "fr-FR" or "en-US". Note that this is different from the J2SE definition for Locale printed strings where fields are separated by "_" (Unicode U+005F).
This locale string can be used by a MIDlet to determine the locale for which the underlying device is configured. The microedition.profiles property can be used by a MIDlet to ensure that the underlying platform supports the necessary profile(s) and profile version(s) that the application requires. |
| [ directory ] |
|