20.2. System Properties

MIDP 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).

Table 20.1. System properties defined by MIDP
System PropertyDescription
microedition.localeThe current locale of the device; ...

Get Programming Wireless Devices with the Java™ 2 Platform, Micro Edition, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.