首页 | 本学科首页   官方微博 | 高级检索  
     

JNI在Android系统下串口控制的应用
引用本文:高海彬.JNI在Android系统下串口控制的应用[J].黑龙江电子技术,2013(10):173-176.
作者姓名:高海彬
作者单位:广州海格通信集团股份有限公司,广州510663
摘    要:Android是基于Linux的操作系统,应用程序是由Java语言编写并运行在虚拟机里的,这就造成了Android应用程序很难操作订制的硬件问题.利用Java的JNI机制,使用Android NDK编译环境,使应用程序可以透过Android系统的应用框架层,直接在Linux的文件系统对设备进行操作,解决了上述问题.

关 键 词:Android  JNI  串口

Application of serial port control under Android with JNI
Authors:GAO Hai-bin
Affiliation:GAO Hai-bin ( Guangzhou Haige Communication GroUp Incorperated Company, Guangzhou 510663, China)
Abstract:Android is based on Linux operation system. Android applications are written in Java and run in Android virtual machines. As a result, it is difficult to access those hardwares that there' s no method to access in Java libraries. This article describes the method to resolve the problem above, which is based on the JNI mechanism in Java and associated with the Android NDK compiling environment. The method can make Android applications access devices on the Linux file system directly without being concerned with the Android application framework.
Keywords:Android  JNI  serial communication port
本文献已被 维普 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号