I wonder if my adobe air application can communicate with external hardware’s API functions.
I wonder if my adobe air application can communicate with external hardware’s API functions.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The short answer is no. AIR has no straightforward mechanism to interact with native code or operating system processes on the client’s machine.
You can however make socket connections from the AIR client to a server process running on the client machine. Provided the server process can do the hardware integration you need, this will work, although it will complicate your installation routine somewhat since you need to install the AIR app + other native code.
One example of this is the Merapi project which connects AIR to a server-based Java application running on the client’s machine, which can make exec() calls to launch native apps or use JNI to leverage native code.
http://www.merapiproject.net/