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

基于Qt的Android应用程序C/C++开发方法与实践
引用本文:闫锋欣,牛子杰,杜烁炜,潘天丽.基于Qt的Android应用程序C/C++开发方法与实践[J].计算机系统应用,2018,27(7):96-102.
作者姓名:闫锋欣  牛子杰  杜烁炜  潘天丽
作者单位:西北农林科技大学 机械与电子工程学院, 杨凌 712100,西北农林科技大学 机械与电子工程学院, 杨凌 712100,西北农林科技大学 机械与电子工程学院, 杨凌 712100,西北农林科技大学 机械与电子工程学院, 杨凌 712100
基金项目:中央高校基本科研业务费专项资金(Z109021423);农业部现代农业装备重点实验室开放课题(201603002);国家自然科学基金(51302221);西北农林科技大学校教学改革项目(JY1504046);国家重点研发计划专项(2017YFD0502000)
摘    要:Android Java应用程序(APP)运行时需依赖Dalvik虚拟机环境,从而影响APP的性能表现.C/C++程序具有极好的硬件适应能力,但不能直接开发Android APP.针对该问题,利用Dalvik虚拟机支持JNI (Java Native Inter-face)调用的特点,设计了基于Qt的Android APP C/C++开发方法框架体系,给出了框架的详细工作机制和解决方案,系统总结了利用C/C++开发Android APP的主要过程和步骤.最后,以Android版机械CAD导教APP的开发工作为例,验证了方法的有效性和可行性,为直接利用C/C++开发Android APP提供了一种新途径.

关 键 词:Android应用程序  Qt开发框架  C/C++编程语言  Java本地接口  开发方法实践
收稿时间:2017/10/31 0:00:00
修稿时间:2017/11/27 0:00:00

Qt-Based C/C++ Development Pattern and Its Application for Android APP
YAN Feng-Xin,NIU Zi-Jie,DU Shuo-Wei and PAN Tian-Li.Qt-Based C/C++ Development Pattern and Its Application for Android APP[J].Computer Systems& Applications,2018,27(7):96-102.
Authors:YAN Feng-Xin  NIU Zi-Jie  DU Shuo-Wei and PAN Tian-Li
Affiliation:College of Mechanical and Electronic Engineering, Northwest A & F University, Yangling 712100, China,College of Mechanical and Electronic Engineering, Northwest A & F University, Yangling 712100, China,College of Mechanical and Electronic Engineering, Northwest A & F University, Yangling 712100, China and College of Mechanical and Electronic Engineering, Northwest A & F University, Yangling 712100, China
Abstract: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.
Keywords:Android application  Qt development framework  C/C++ programming language  Java Native Interface (JNI)  development pattern and its application
点击此处可从《计算机系统应用》浏览原始摘要信息
点击此处可从《计算机系统应用》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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