Java Native Interface | Peripheral Input/Output Services
In the mobile environment, access to mobile peripherals (like printers, scanners, barcode readers etc.) is obviously key for many business applications. Technically, such peripherals are accessed via native drivers on the operating system of the mobile device. On the other hand, MI - being a Java-based platform, is agnostic of the operating system currently used and the device drivers currently installed there.
Peripheral Input/Output Services describes in detail
the printer API and how to emulate the printing process during the development
process.
You can integrate peripheral support into your mobile application using the standard Java approach in this matter: Java Native Interface (JNI). JNI is a native programming interface for Java and is standard part of JDK. Using JNI, your code is completely portable across all platforms, but still allows your programs to operate with libraries or applications that are written in other languages like C or C++. With this generic approach, you can easily call a native driver for virtually any peripheral from within your mobile application and still not lose the platform independence of your code.
![]() |
|