Does a MIDlet have access to native features of the device on which it is executing?

Bill Day

The J2ME Mobile Information Device Profile (MIDP) does allow for OEM- or device-specific features to be exposed using a Java interface. If the manufacturer of a given device chooses to present a Java-compliant OEM/device-specific API, then your MIDlet could use native services on the device.

Please note, however that using this API will by definition render your MIDlet nonportable. Stick to the standard MIDP (and CLDC) APIs to guarantee portability of your MIDlets.

More information on MIDlets and native services is available in the related FAQ entry on accessing native methods from J2ME applications.