O'Reilly logo

Programming Wireless Devices with the Java™ 2 Platform, Micro Edition, Second Edition by Jim Holliday - Editor, Aleksi Uotila, Mark Patel, Jyri Huopaniemi, Jim Van Peursem, Antero Taivalsaari, Roger Riggs

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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; ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required