摘要
Android Java应用程序(APP)运行时需依赖Dalvik虚拟机环境,从而影响APP的性能表现.C/C++程序具有极好的硬件适应能力,但不能直接开发Android APP.针对该问题,利用Dalvik虚拟机支持JNI(Java Native Interface)调用的特点,设计了基于Qt的Android APP C/C++开发方法框架体系,给出了框架的详细工作机制和解决方案,系统总结了利用C/C++开发Android APP的主要过程和步骤.最后,以Android版机械CAD导教APP的开发工作为例,验证了方法的有效性和可行性,为直接利用C/C++开发Android APP提供了一种新途径.
Android Software Development Kit(SDK),a collection of Android tools,is an effective Java-based kit to develop Android APPlication(APP).However,Android APP's performance is usually limited by the backend Dalvik virtual machine environment.A novel practical model that Android APP developed by C/C++codes is proposed,because Java Native Interface(JNI)can support C/C++dynamic library callback mechanism.This paper firstly analyzes and compares the characters between the general development mode for Android APP and Qt cross-platform development framework,and presents a novel principle and a technical relationship between Android APP and Qt framework.Then,it describes the main processes,abstract implementation steps,and software list for the solution.Finally,the development of a sample APP,Mechanical CAD Teaching Assistant,is given as an example to verify the effectiveness and feasibility of the development pattern.This work provides a new way to use C/C++programming language to develop APPs running on Android operating system.
作者
闫锋欣
牛子杰
杜烁炜
潘天丽
YAN Feng-Xin;NIU Zi-Jie;DU Shuo-Wei;PAN Tian-Li(College of Mechanical and Electronic Engineering, Northwest A & F University, Yangling 712100, China)
出处
《计算机系统应用》
2018年第7期96-102,共7页
Computer Systems & Applications
基金
中央高校基本科研业务费专项资金(Z109021423)
农业部现代农业装备重点实验室开放课题(201603002)
国家自然科学基金(51302221)
西北农林科技大学校教学改革项目(JY1504046)
国家重点研发计划专项(2017YFD0502000)~~