Patent ID: 8650543

Claim:
A computer-implemented method for executing an application on a portable electronic device, comprising: detecting electrical coupling between the portable electronic device and an external electronic device, wherein the external electronic device is an audio jack swiper; launching, a test version of a module in the application that executes in an environment on the portable electronic device, wherein the test version simulates functionality that is needed to correctly initialize and run the audio jack swiper, wherein the test version checks at least if the application has permission to record audio, if the portable electronic device supports audio recording, and if the portable electronic device records at a correct frequency and sampling rate, wherein the module is associated with the external electronic device, and wherein launching the test version of the module involves providing configuration information associated with operation of the module to the environment, wherein the configuration information provided involves audio recording parameters required by the application; if, in response to the configuration information, the test version is initialized correctly by the environment, executing the application with the module; and if, in response to the configuration information, the test version is not initialized correctly by the environment, executing the application in the portable electronic device without the module.