System properties

As mobile devices feature a large amount of different possible API combinations and other device features, you may need to utilize system properties in your MIDlet. System properties can tell what versions of APIs are installed, what localized directory names are used, or whether a certain feature is available. System properties can be retrieved with the System.getProperty() method on runtime. The returned value reveals whether the API is available, for example.

For a list of system properties in different APIs, see the following links:

For an example on using the system properties, see the SystemProperties example MIDlet.