摘要
在移动开发领域,安卓应用的开发吸引着广大移动终端厂商和开发者的加入。目前,开发者大多采用传统的方式,基于集成开发环境为安卓应用的每一项组成部分进行设置或编码,这些工作可能花费开发者较多的时间。然而,与应用框架相关的部分代码与配置文件具有类似的模式,通过复用及定制的方式可以有效提高应用的整体开发效率。为了实现这一目标,提出一套借鉴MDA(Model-Driven Architecture)思想的方法,基于安卓应用的描述来完成安卓代码框架部分的自动生成。该方法包括一种描述安卓应用基本元素及其关联关系的元模型,以及一套可复用且支持定制的应用代码模版。基于元模型标准的特定安卓应用的描述可以驱动基于模版的安卓框架代码的自动生成。在该方法基础上,开发Android应用框架自动生成工具,并以一个实例展示了方法与工具的可用性。
In the field of mobile development,Android application development has attracted many mobile manufacturers and developers.At present,most of the developers use a traditional way to code and configure for each part of the Android application based on the integrated development environments,which takes much time. However,part of the code and configuration files related to application framework may have a similar pattern,and software reuse and customizing can effectively improve the overall development efficiency of application. In order to achieve this goal,this paper puts forward a collection of method making reference to the thought of MDA( Model-Driven Architecture).Within this method,automatically generating android code framework is based on the description of the Android application. The method includes a meta-model which describes elements and associated relationships of Android applications as well as a set of reusable and customization supported code template. Based on the standard of the meta-model,description of a specific android application can drive the android framework to generate automatically based on the code template. Based on the method,this paper developed Android code framework automatic generation tool,and an example is carried out to show the availability of the method and tool.
出处
《计算机应用与软件》
CSCD
2016年第11期169-174,共6页
Computer Applications and Software
基金
国家自然科学基金项目(61402113)
国家高技术研究发展计划项目(2013AA01A605)