1. A JAVA Micro Edition (ME) Application Program Interface (API) comprising: a JAVA ME method that initiates a dispatch call from within a JAVA ME environment of a mobile device, wherein when said JAVA ME method is invoked from an untrusted MIDlet: the JAVA ME environment is automatically exited; control is given to a native environment of the mobile device; and the dispatch call is completed within the native environment, and wherein when said JAVA ME method is invoked from a trusted MIDlet: a dispatch interface that handles the dispatch call is invoked without exiting the JAVA ME environment.