安卓系统的开放性和安卓应用开发的较低的技术门槛,吸引了大量开发者加入到安卓应用开发阵营中来。在编码过程中,开发者需要兼顾界面设计和业务逻辑,并手工维护他们的一致性;相似的界面、类似的逻辑也需要开发者手工进行“复制-粘贴”式的开发。提出安卓应用界面和业务逻辑的结构模型,以统一的方式描述安卓应用的界面元素、业务逻辑以及两者的关联,支持将安卓应用的界面代码和业务逻辑代码对应起来。提出可配置的安卓应用结构化描述和组装方法,使得开发人员可以以书写配置文件的方式从业务层面描述应用,并支持界面和业务逻辑代码片段的组装,从而快速构建符合需求的安卓应用。设计了安卓应用开发实验来验证所提方法及技术的有效性。%The openness of the Android system and low threshold of Android application development attracted a large number of developers to join in the Android application development camp.In the process of coding,developers need to consider the interface design and business logic,and maintain their consistency by hand.Some similar interface and logic also need developers manually "copy-and-paste".This paper puts forward the interface and business logic structure model of Android application,and describes the Android application interface,business logic,and the relationship between them in a uniform way.The model also supports the correspondence between interface code and business logic code in the development of Android application.We propose a configurable structural description and assembly method of Android applications,which allows developers to write configuration file to describe application from the business level.The method supports the assembly of interface and business logic code snippets to help developers quickly build Android applications conforming to the requirements.In order to verify the effectiveness of the method and technology,we design a set of Android application development experi-ments.
展开▼