[go: up one dir, main page]

CN105320499A - Adaptive method and related device of application program - Google Patents

Adaptive method and related device of application program Download PDF

Info

Publication number
CN105320499A
CN105320499A CN201410244159.8A CN201410244159A CN105320499A CN 105320499 A CN105320499 A CN 105320499A CN 201410244159 A CN201410244159 A CN 201410244159A CN 105320499 A CN105320499 A CN 105320499A
Authority
CN
China
Prior art keywords
application
terminal
parameter information
application program
file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410244159.8A
Other languages
Chinese (zh)
Inventor
黄敏飞
莫晓斌
陈海峰
付威
尹辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Group Guangxi Co Ltd
Original Assignee
China Mobile Group Guangxi Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Group Guangxi Co Ltd filed Critical China Mobile Group Guangxi Co Ltd
Priority to CN201410244159.8A priority Critical patent/CN105320499A/en
Publication of CN105320499A publication Critical patent/CN105320499A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Between Computers (AREA)
  • Stored Programmes (AREA)

Abstract

本发明公开了一种应用程序的适配方法和相关装置,用以解决现有技术中在开发和适配应用程序时,资源开销比较大以及效率比较低的问题。该方法包括:应用服务器确定终端的参数信息;所述应用服务器根据所述参数信息,对预先存储的通用应用程序进行适应性修改,得到适配于所述终端的特定应用程序。

The invention discloses an application program adaptation method and a related device, which are used to solve the problems of relatively large resource overhead and relatively low efficiency when developing and adapting application programs in the prior art. The method includes: the application server determines the parameter information of the terminal; the application server performs adaptive modification to a pre-stored general application program according to the parameter information, and obtains a specific application program adapted to the terminal.

Description

一种应用程序的适配方法和相关装置Application adaptation method and related device

技术领域technical field

本发明涉及计算机通信技术领域,尤其涉及一种应用程序的适配方法和相关装置。The invention relates to the technical field of computer communication, in particular to an application program adaptation method and a related device.

背景技术Background technique

随着3G技术的应用和推广,游戏、动漫、音频和视频等应用成为移动终端(如手机)增值业务的重要发展方向。目前,用户在使用移动终端浏览应用服务器上提供的应用时,可以看到同一款应用会包括多个版本,每个版本适配某种型号的移动终端。之所以会出现这种情况,是因为不同型号的移动终端在硬件环境和软件环境上都存在一定差异,为了使应用可以在不同型号的移动终端上都能良好的运行,开发人员在开发每款应用时,就需要针对不同型号的移动终端重复开发不同的版本,而这一过程既复杂又繁琐,不仅导致开发人员的适配工作量巨大,而且效率比较低。With the application and promotion of 3G technology, applications such as games, cartoons, audio and video have become important development directions for value-added services of mobile terminals (such as mobile phones). At present, when a user uses a mobile terminal to browse applications provided on an application server, he can see that the same application includes multiple versions, and each version is adapted to a certain type of mobile terminal. The reason for this situation is that different types of mobile terminals have certain differences in hardware and software environments. In order to make applications run well on different types of mobile terminals, developers are developing each When applying, it is necessary to repeatedly develop different versions for different types of mobile terminals, and this process is complicated and cumbersome, which not only leads to a huge adaptation workload for developers, but also reduces efficiency.

目前尚无有效的解决方法。There is currently no effective workaround.

发明内容Contents of the invention

本发明实施例提供一种应用程序的适配方法和相关装置,用以解决现有技术中在开发和适配应用程序时,资源开销比较大以及效率比较低的问题。Embodiments of the present invention provide an application program adaptation method and a related device, which are used to solve the problems of relatively large resource overhead and relatively low efficiency when developing and adapting application programs in the prior art.

本发明实施例采用以下技术方案:Embodiments of the present invention adopt the following technical solutions:

一种应用程序的适配方法,包括:An adaptation method for an application program, comprising:

应用服务器确定终端的参数信息;The application server determines the parameter information of the terminal;

所述应用服务器根据所述参数信息,对预先存储的通用应用程序进行适应性修改,得到适配于所述终端的特定应用程序。The application server adaptively modifies the pre-stored general application program according to the parameter information to obtain a specific application program adapted to the terminal.

可选的,所述应用服务器根据所述参数信息,对预先存储的通用应用程序进行适应性修改,得到适配于所述终端的特定应用程序,具体包括:Optionally, the application server adaptively modifies the pre-stored general application program according to the parameter information to obtain a specific application program adapted to the terminal, specifically including:

所述应用服务器根据所述参数信息,生成多媒体应用描述文件;The application server generates a multimedia application description file according to the parameter information;

利用所述多媒体应用描述文件对所述通用应用程序进行适应性修改,得到适配于所述终端的特定应用程序。Adaptive modification is performed on the general application program by using the multimedia application description file to obtain a specific application program adapted to the terminal.

可选的,按照如下方式生成所述通用应用程序:Optionally, generate the general application as follows:

生成应用程序描述语言文件,所述应用程序描述语言文件用于记录应用程序中出现的各应用对象、各应用对象的属性以及各应用对象的交互动作;Generate an application description language file, and the application description language file is used to record each application object appearing in the application program, the attribute of each application object and the interaction action of each application object;

对所述应用程序描述语言文件进行解析,得到扩展描述语言文件;Analyzing the application description language file to obtain an extended description language file;

根据所述扩展描述语言文件,对预先存储的模板文件中的模板内容进行修改,生成通用应用程序。According to the extended description language file, the template content in the pre-stored template file is modified to generate a general application program.

可选的,应用服务器确定终端的参数信息之前,所述方法还包括:Optionally, before the application server determines the parameter information of the terminal, the method further includes:

所述应用服务器接收所述终端发送的应用程序下载请求;所述应用程序下载请求中携带所述终端的型号;则The application server receives the application download request sent by the terminal; the application download request carries the model of the terminal; then

应用服务器确定终端的参数信息,具体用于:The application server determines the parameter information of the terminal, specifically for:

所述应用服务器从预先存储的各终端的型号与参数信息的对应关系中,确定与所述终端的型号对应的参数信息。The application server determines the parameter information corresponding to the terminal model from the pre-stored correspondence between the terminal model and parameter information.

可选的,所述参数信息包括:Optionally, the parameter information includes:

所述终端的硬件参数和/或软件参数。Hardware parameters and/or software parameters of the terminal.

一种应用程序的适配装置,包括:An adaptation device for an application program, comprising:

参数信息确定单元,用于确定终端的参数信息;a parameter information determining unit, configured to determine parameter information of the terminal;

适配单元,用于根据参数信息确定单元确定的参数信息,对预先存储的通用应用程序进行适应性修改,得到适配于所述终端的特定应用程序。The adapting unit is configured to, according to the parameter information determined by the parameter information determining unit, perform adaptive modification on the pre-stored general application program to obtain a specific application program adapted to the terminal.

可选的,所述适配单元,具体包括:Optionally, the adaptation unit specifically includes:

多媒体应用描述文件生成模块,用于根据参数信息确定单元确定的参数信息,生成多媒体应用描述文件;A multimedia application description file generating module, configured to generate a multimedia application description file according to the parameter information determined by the parameter information determination unit;

适配模块,用于利用多媒体应用描述文件生成模块生成的多媒体应用描述文件对所述通用应用程序进行适应性修改,得到适配于所述终端的特定应用程序。The adaptation module is configured to use the multimedia application description file generated by the multimedia application description file generation module to perform adaptive modification on the general application program to obtain a specific application program adapted to the terminal.

可选的,所述装置还包括:Optionally, the device also includes:

通用应用程序生成单元,用于生成应用程序描述语言文件,所述应用程序描述语言文件用于记录应用程序中出现的各应用对象、各应用对象的属性以及各应用对象的交互动作;对所述应用程序描述语言文件进行解析,得到扩展描述语言文件;根据所述扩展描述语言文件,对预先存储的模板文件中的模板内容进行修改,生成通用应用程序。A general application generating unit, configured to generate an application description language file, the application description language file is used to record each application object that appears in the application program, the attributes of each application object, and the interaction of each application object; The application description language file is parsed to obtain an extended description language file; according to the extended description language file, the template content in the pre-stored template file is modified to generate a general application program.

可选的,所述装置还包括:Optionally, the device also includes:

下载请求接收单元,用于接收所述终端发送的应用程序下载请求;所述应用程序下载请求中携带所述终端的型号;The download request receiving unit is configured to receive the application program download request sent by the terminal; the application program download request carries the model number of the terminal;

所述多媒体应用描述文件生成模块,具体用于:The multimedia application description file generating module is specifically used for:

从预先存储的各终端的型号与参数信息的对应关系中,确定与所述终端的型号对应的参数信息。The parameter information corresponding to the model of the terminal is determined from the pre-stored correspondence between the model of each terminal and the parameter information.

可选的,所述参数信息包括:Optionally, the parameter information includes:

所述终端的硬件参数和/或软件参数。Hardware parameters and/or software parameters of the terminal.

本发明实施例的有益效果如下:The beneficial effects of the embodiments of the present invention are as follows:

本发明实施例中,通过确定终端的参数信息,并根据终端的参数信息对预先存储的通用应用程序进行适应性修改,得到适配于所述终端的特定应用程序。与现有技术相比,只需一个通用应用程序和终端的参数信息,便可以自动进行应用程序的适配,得到适配于终端的特定应用程序,无需再由开发人员对不同版本的应用程序进行重复开发,从而大大降低了资源开销,提高了开发和适配效率。In the embodiment of the present invention, the specific application program adapted to the terminal is obtained by determining the parameter information of the terminal and adaptively modifying the pre-stored general application program according to the terminal parameter information. Compared with the existing technology, only one general application program and terminal parameter information are needed to automatically adapt the application program to obtain a specific application program adapted to the terminal, eliminating the need for developers to modify different versions of the application program Repeated development greatly reduces resource overhead and improves development and adaptation efficiency.

附图说明Description of drawings

图1为本发明实施例提供的一种应用程序的适配方法的实现流程图;FIG. 1 is an implementation flowchart of an application program adaptation method provided by an embodiment of the present invention;

图2为在实际应用中用于实现上述方法的系统的总体架构图;Fig. 2 is the overall architecture diagram of the system for realizing above-mentioned method in practical application;

图3为预先存储的通用应用程序的生成过程示意图;Fig. 3 is a schematic diagram of the generation process of a pre-stored general application program;

图4为自动转换平台的转换过程示意图;Fig. 4 is the conversion process schematic diagram of automatic conversion platform;

图5为本发明实施例提供的一种应用程序的适配装置的结构示意图。FIG. 5 is a schematic structural diagram of an application program adaptation device provided by an embodiment of the present invention.

具体实施方式detailed description

为了解决现有技术中在开发和适配应用程序时,资源开销比较大以及效率比较低的问题,本发明实施例提出了一种应用程序的适配方案。该技术方案中,通过确定终端的参数信息,并根据终端的参数信息对预先存储的通用应用程序进行适应性修改,得到适配于所述终端的特定应用程序。与现有技术相比,只需一个通用应用程序和终端的参数信息,便可以自动进行应用程序的适配,得到适配于终端的特定应用程序,无需再由开发人员对不同版本的应用程序进行重复开发,从而大大降低了资源开销,提高了开发和适配效率。In order to solve the problems of relatively large resource overhead and relatively low efficiency when developing and adapting application programs in the prior art, an embodiment of the present invention proposes an application program adaptation solution. In this technical solution, the specific application program adapted to the terminal is obtained by determining the parameter information of the terminal and adaptively modifying the pre-stored general application program according to the parameter information of the terminal. Compared with the existing technology, only one general application program and terminal parameter information are needed to automatically adapt the application program to obtain a specific application program adapted to the terminal, eliminating the need for developers to modify different versions of the application program Repeated development greatly reduces resource overhead and improves development and adaptation efficiency.

以下结合说明书附图对本发明的实施例进行说明,应当理解,此处所描述的实施例仅用于说明和解释本发明,并不用于限制本发明。并且在不冲突的情况下,本发明中的实施例及实施例的特征可以互相结合。The embodiments of the present invention will be described below in conjunction with the accompanying drawings. It should be understood that the embodiments described here are only used to illustrate and explain the present invention, and are not intended to limit the present invention. And in the case of no conflict, the embodiments and the features of the embodiments in the present invention can be combined with each other.

本发明实施例中提供了一种应用程序的适配方法,如图1所示,为该方法的实现流程图,该方法具体包括下述步骤:An application program adaptation method is provided in an embodiment of the present invention, as shown in FIG. 1 , which is a flow chart of the implementation of the method. The method specifically includes the following steps:

步骤11,应用服务器确定终端的参数信息。Step 11, the application server determines the parameter information of the terminal.

可选的,在步骤11之前,该方法还可以包括:Optionally, before step 11, the method may also include:

接收终端发送的应用程序下载请求,该应用程序下载请求中携带终端的型号;receiving the application download request sent by the terminal, the application download request carrying the model of the terminal;

在这种情况下,步骤11可以但不限于包括:In this case, Step 11 may include, but is not limited to:

应用服务器从预先存储的各终端的型号与参数信息的对应关系中,确定与终端的型号对应的参数信息。The application server determines the parameter information corresponding to the model of the terminal from the pre-stored correspondence between the model of each terminal and the parameter information.

其中,该参数信息可以但不限于包括终端的硬件参数和/或软件参数。Wherein, the parameter information may include, but is not limited to, hardware parameters and/or software parameters of the terminal.

硬件参数,比如终端的操作系统;软件参数,比如终端的网络协议。Hardware parameters, such as the operating system of the terminal; software parameters, such as the network protocol of the terminal.

步骤12,应用服务器根据终端的参数信息,对预先存储的通用应用程序进行适应性修改,得到适配于该终端的特定应用程序。Step 12, the application server adapts the pre-stored general application program according to the parameter information of the terminal to obtain a specific application program adapted to the terminal.

具体的,应用服务器根据终端的参数信息,首先生成多媒体应用描述文件,即对多媒体应用的构成元素进行描述的文件,包括图片、声音、文字和插件等等;然后利用该多媒体应用描述文件对与预先存储的通用应用程序进行适应性修改,得到适配于该终端的特定应用程序。Specifically, the application server first generates a multimedia application description file according to the parameter information of the terminal, that is, a file describing the constituent elements of the multimedia application, including pictures, sounds, text, plug-ins, etc.; The pre-stored general application program is adaptively modified to obtain a specific application program adapted to the terminal.

而预先存储的通用应用程序可以但不限于按照如下方式生成:And the pre-stored universal application program can be but not limited to be generated as follows:

首先生成应用程序描述语言文件,该应用程序描述语言文件用于记录应用程序中出现的各应用对象、各应用对象的属性以及各应用对象的交互动作;First generate an application description language file, which is used to record each application object appearing in the application program, the attributes of each application object and the interaction actions of each application object;

其中,应用程序描述语言文件是用户可以看懂的需求描述文件,最贴近用户理解的格式。Among them, the application description language file is a requirement description file that users can understand, and is closest to the format that users understand.

然后对生成的应用程序描述语言文件进行解析,得到扩展描述语言文件;Then analyze the generated application description language file to obtain the extended description language file;

其中,扩展描述语言文件是对应用程序描述语言文件的编译和转换,整个过程就是把用户理解的业务需求转化成机器能理解的程序语言。Among them, the extended description language file is the compilation and conversion of the application description language file. The whole process is to convert the business requirements understood by the user into a programming language that the machine can understand.

最后,根据生成的扩展描述语言文件,对预先存储的模板文件中的模板内容进行修改,生成通用应用程序。Finally, according to the generated extended description language file, the template content in the pre-stored template file is modified to generate a general application program.

本发明实施例中,通过确定终端的参数信息,并根据终端的参数信息对预先存储的通用应用程序进行适应性修改,得到适配于所述终端的特定应用程序。与现有技术相比,只需一个通用应用程序和终端的参数信息,便可以自动进行应用程序的适配,得到适配于终端的特定应用程序,无需再由开发人员对不同版本的应用程序进行重复开发,从而大大降低了资源开销,提高了开发和适配效率。In the embodiment of the present invention, the specific application program adapted to the terminal is obtained by determining the parameter information of the terminal and adaptively modifying the pre-stored general application program according to the terminal parameter information. Compared with the existing technology, only one general application program and terminal parameter information are needed to automatically adapt the application program to obtain a specific application program adapted to the terminal, eliminating the need for developers to modify different versions of the application program Repeated development greatly reduces resource overhead and improves development and adaptation efficiency.

基于上述方法,申请人提出了一种在实际应用中用于实现上述方法的系统架构。如图2所示,为在实际应用中用于实现上述方法的适配系统的总体架构图。其中,该适配系统可以包括四部分:应用运营管理平台、自动转换平台、终端设备库、个性化信息库和自适应的应用内容库,其中:Based on the above method, the applicant proposes a system architecture for implementing the above method in practical applications. As shown in FIG. 2 , it is an overall architecture diagram of an adaptation system used to implement the above method in practical applications. Among them, the adaptation system can include four parts: application operation management platform, automatic conversion platform, terminal equipment library, personalized information library and self-adaptive application content library, among which:

应用运营管理平台,用于给终端用户的下载提供统一的平台支持,通过确定终端用户的参数信息,并把参数信息传递到自动转换平台;The application operation management platform is used to provide unified platform support for downloading by end users, by determining the parameter information of end users, and passing the parameter information to the automatic conversion platform;

自动转换平台,在接收了应用运营管理平台传递来的终端用户的参数信息后,开始启动核心的应用程序转换工作,将预先存储的通用应用程序转换成适配于终端用户的特定应用程序;The automatic conversion platform, after receiving the terminal user's parameter information from the application operation management platform, starts the core application program conversion work, and converts the pre-stored general application program into a specific application program adapted to the end user;

终端设备库,存储海量终端的参数信息,覆盖现在主流的终端,主要包括操作系统和网络协议等硬件参数信息和软件参数信息;Terminal equipment library, which stores massive terminal parameter information, covering current mainstream terminals, mainly including hardware parameter information and software parameter information such as operating system and network protocol;

个性化信息库,根据各个终端的个性化特点,存储各个终端与其特殊应用程序效果的映射关系;Personalized information base, according to the personalized characteristics of each terminal, stores the mapping relationship between each terminal and its special application effect;

自适应的应用内容库,用于对生成的特定应用程序进行分解,按照多媒体应用构成元素进行粒度分拆,包括图片、声音、文字和插件等等,并将分解得到的各个构成元素打包,以安装包的形式发送给终端。The self-adaptive application content library is used to decompose the generated specific application program, split it according to the granularity of multimedia application components, including pictures, sounds, texts and plug-ins, etc., and package the decomposed components to The installation package is sent to the terminal.

下面基于上述系统架构对本发明实施例中提供的应用程序的适配方法做详细介绍。The adaptation method of the application provided in the embodiment of the present invention will be described in detail below based on the above system architecture.

首先,应用运营管理平台接收终端发送的携带该终端的型号的应用程序下载请求,应用运营管理平台从预先存储的各终端的型号与参数信息的对应关系中,确定与该终端的型号对应的参数信息,将该参数信息发送给自动转换平台;First, the application operation management platform receives the application program download request carrying the model of the terminal sent by the terminal, and the application operation management platform determines the parameters corresponding to the terminal model from the pre-stored correspondence between each terminal model and parameter information Information, send the parameter information to the automatic conversion platform;

然后,自动转换平台根据收到的参数信息,结合终端设备库和个性化信息库中存储的内容,对预先存储的通用应用程序进行适应性修改,得到适配于上述终端的特定应用程序。Then, according to the received parameter information, combined with the content stored in the terminal equipment library and the personalized information library, the automatic conversion platform performs adaptive modification to the pre-stored general application program to obtain a specific application program adapted to the above-mentioned terminal.

其中,预先存储的通用应用程序的生成过程如图3所示。其过程如下:Wherein, the generation process of the pre-stored general application program is shown in FIG. 3 . The process is as follows:

首先将用户定义的应用程序生成应用程序描述语言(GameDefinitionLanguage,GDL)文件。First, the user-defined application is generated into an application description language (GameDefinitionLanguage, GDL) file.

具体的,用户定义的应用程序是指用户把他想做的游戏,音乐、交友等应用程序用规则语言定义和描述出来。其中,应用程序可以抽象为一组应用对象,每个应用对象都具有一定的属性和行为。同时,各个应用对象之间通过各种方式进行交互,比如发送和接收消息,并执行相应的指令。因此,GDL文件需要记录应用程序中出现的各种应用对象,描述它们的属性,还需要记录驱动应用程序运行的各种事件和事件发生时相关对象执行的动作,描述它们之间的各种交互。比如用户想做一个贪吃蛇游戏,则需要定义该应用类型为游戏,组件有蛇,围墙,规则:蛇吃遇到墙可以转向。而GDL文件根据上述内容生成。Specifically, the user-defined application program refers to that the user defines and describes the application programs such as games, music, and friends that he wants to make with a rule language. Among them, the application program can be abstracted into a group of application objects, and each application object has certain attributes and behaviors. At the same time, various application objects interact in various ways, such as sending and receiving messages, and executing corresponding instructions. Therefore, the GDL file needs to record various application objects that appear in the application, describe their attributes, and also need to record various events that drive the application to run and the actions performed by related objects when the event occurs, and describe various interactions between them . For example, if a user wants to make a snake game, he needs to define the application type as a game. The components include snakes and walls, and the rules: snakes can turn when they encounter walls. And the GDL file is generated according to the above content.

其中,GDL文件是用户可以看懂的需求描述文件,最贴近用户理解的格式。Among them, the GDL file is a requirement description file that users can understand, and is the closest to the format that users understand.

其次,通过转换器对这个GDL文件进行解析,最终生成扩展描述语言文件,比如J2ME文件。Secondly, the GDL file is parsed by a converter to finally generate an extended description language file, such as a J2ME file.

其中,扩展描述语言文件是对应用程序描述语言文件的编译和转换,整个过程就是把用户理解的业务需求转化成机器能理解的程序语言。Among them, the extended description language file is the compilation and conversion of the application description language file. The whole process is to convert the business requirements understood by the user into a programming language that the machine can understand.

再次,读取预先保存的模板文件,比如可扩展标记语言(eXtensibleMarkupLanguage,XML)文件,并根据生成的扩展描述语言文件对XML文件中的内容进行修改,最终生成通用应用程序的代码。Thirdly, read a pre-saved template file, such as an extensible markup language (eXtensibleMarkupLanguage, XML) file, and modify the content in the XML file according to the generated eXtensible Markup Language file, and finally generate the code of the general application program.

如图4所示,为自动转换平台的转换过程示意图。其过程如下:As shown in FIG. 4 , it is a schematic diagram of the conversion process of the automatic conversion platform. The process is as follows:

自动转换平台是基于终端设备的操作系统和软件平台上,它利用终端操作系统和软件平台所提供的功能和接口,封装并实现基础数据类型、输入输出、用户界面、移动应用、数据存储、网络连接、安全、插件等应用程序运行所需要的一系列程序集,从而实现应用程序与底层平台的交互。同时,该支撑引擎以事件——>对象——>动作的事件驱动方式,实现了事件的发出、同步和异步接收以及对象和对象直接的消息传输。The automatic conversion platform is based on the operating system and software platform of the terminal equipment. It uses the functions and interfaces provided by the terminal operating system and software platform to encapsulate and implement basic data types, input and output, user interface, mobile applications, data storage, network Connections, security, plug-ins, and a series of assemblies required for the operation of applications, so as to realize the interaction between applications and the underlying platform. At the same time, the support engine implements event sending, synchronous and asynchronous receiving, and object-to-object direct message transmission with the event->object->action event-driven approach.

具体的,首先接收终端的参数信息;然后根据参数信息,生成多媒体应用描述文件,再利用终端信息库和个性化信息库,根据多媒体应用描述文件对通用应用程序的代码进行修改,得到适配于终端的应用程序。Specifically, first receive the parameter information of the terminal; then generate a multimedia application description file according to the parameter information, and then use the terminal information database and the personalized information database to modify the code of the general application program according to the multimedia application description file to obtain the Terminal application.

基于上述方法,本发明实施例还提供了一种应用程序的适配装置,如图5所示,为该适配装置的结构示意图,该适配装置可以为网络侧的应用服务器,包括:Based on the above method, an embodiment of the present invention also provides an application program adaptation device, as shown in FIG. 5 , which is a schematic structural diagram of the adaptation device. The adaptation device may be an application server on the network side, including:

参数信息确定单元51,用于确定终端的参数信息;a parameter information determining unit 51, configured to determine the parameter information of the terminal;

适配单元52,用于根据参数信息确定单元51确定的参数信息,对预先存储的通用应用程序进行适应性修改,得到适配于所述终端的特定应用程序。The adapting unit 52 is configured to, according to the parameter information determined by the parameter information determining unit 51, perform adaptive modification on a pre-stored general application program to obtain a specific application program adapted to the terminal.

可选的,所述适配单元52,具体包括:Optionally, the adaptation unit 52 specifically includes:

多媒体应用描述文件生成模块521,用于根据参数信息确定单元51确定的参数信息,生成多媒体应用描述文件;A multimedia application description file generation module 521, configured to generate a multimedia application description file according to the parameter information determined by the parameter information determination unit 51;

适配模块522,用于利用多媒体应用描述文件生成模块521生成的多媒体应用描述文件对所述通用应用程序进行适应性修改,得到适配于所述终端的特定应用程序。The adaptation module 522 is configured to use the multimedia application description file generated by the multimedia application description file generation module 521 to perform adaptive modification on the general application program to obtain a specific application program adapted to the terminal.

可选的,所述装置还包括:Optionally, the device also includes:

通用应用程序生成单元53,用于生成应用程序描述语言文件,所述应用程序描述语言文件用于记录应用程序中出现的各应用对象、各应用对象的属性以及各应用对象的交互动作;对所述应用程序描述语言文件进行解析,得到扩展描述语言文件;根据所述扩展描述语言文件,对预先存储的模板文件中的模板内容进行修改,生成通用应用程序。The general application program generation unit 53 is used to generate an application program description language file, and the application program description language file is used to record each application object appearing in the application program, the attributes of each application object and the interaction actions of each application object; The application description language file is analyzed to obtain an extended description language file; according to the extended description language file, the template content in the pre-stored template file is modified to generate a general application program.

可选的,所述装置还包括:Optionally, the device also includes:

下载请求接收单元54,用于接收所述终端发送的应用程序下载请求;所述应用程序下载请求中携带所述终端的型号;The download request receiving unit 54 is configured to receive the application program download request sent by the terminal; the application program download request carries the model number of the terminal;

所述多媒体应用描述文件生成模块521,具体用于:The multimedia application description file generating module 521 is specifically used for:

从预先存储的各终端的型号与参数信息的对应关系中,确定与所述终端的型号对应的参数信息。The parameter information corresponding to the model of the terminal is determined from the pre-stored correspondence between the model of each terminal and the parameter information.

可选的,所述参数信息包括:Optionally, the parameter information includes:

所述终端的硬件参数和/或软件参数。Hardware parameters and/or software parameters of the terminal.

本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present invention may be provided as methods, systems, or computer program products. Accordingly, the present invention can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.

本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow chart or blocks of the flowchart and/or the block or blocks of the block diagrams.

尽管已描述了本发明的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明范围的所有变更和修改。While preferred embodiments of the invention have been described, additional changes and modifications to these embodiments can be made by those skilled in the art once the basic inventive concept is appreciated. Therefore, it is intended that the appended claims be construed to cover the preferred embodiment as well as all changes and modifications which fall within the scope of the invention.

显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and equivalent technologies thereof, the present invention also intends to include these modifications and variations.

Claims (10)

1.一种应用程序的适配方法,其特征在于,包括:1. An adaptation method for an application program, comprising: 应用服务器确定终端的参数信息;The application server determines the parameter information of the terminal; 所述应用服务器根据所述参数信息,对预先存储的通用应用程序进行适应性修改,得到适配于所述终端的特定应用程序。The application server adaptively modifies the pre-stored general application program according to the parameter information to obtain a specific application program adapted to the terminal. 2.如权利要求1所述的方法,其特征在于,所述应用服务器根据所述参数信息,对预先存储的通用应用程序进行适应性修改,得到适配于所述终端的特定应用程序,具体包括:2. The method according to claim 1, wherein the application server performs adaptive modification to the pre-stored general application program according to the parameter information to obtain a specific application program adapted to the terminal, specifically include: 所述应用服务器根据所述参数信息,生成多媒体应用描述文件;The application server generates a multimedia application description file according to the parameter information; 利用所述多媒体应用描述文件对所述通用应用程序进行适应性修改,得到适配于所述终端的特定应用程序。Adaptive modification is performed on the general application program by using the multimedia application description file to obtain a specific application program adapted to the terminal. 3.如权利要求1所述的方法,其特征在于,按照如下方式生成所述通用应用程序:3. The method according to claim 1, characterized in that, generating the general application as follows: 生成应用程序描述语言文件,所述应用程序描述语言文件用于记录应用程序中出现的各应用对象、各应用对象的属性以及各应用对象的交互动作;Generate an application description language file, and the application description language file is used to record each application object appearing in the application program, the attribute of each application object and the interaction action of each application object; 对所述应用程序描述语言文件进行解析,得到扩展描述语言文件;Analyzing the application description language file to obtain an extended description language file; 根据所述扩展描述语言文件,对预先存储的模板文件中的模板内容进行修改,生成通用应用程序。According to the extended description language file, the template content in the pre-stored template file is modified to generate a general application program. 4.如权利要求1所述的方法,其特征在于,应用服务器确定终端的参数信息之前,所述方法还包括:4. The method according to claim 1, wherein before the application server determines the parameter information of the terminal, the method further comprises: 所述应用服务器接收所述终端发送的应用程序下载请求;所述应用程序下载请求中携带所述终端的型号;则The application server receives the application download request sent by the terminal; the application download request carries the model of the terminal; then 应用服务器确定终端的参数信息,具体用于:The application server determines the parameter information of the terminal, specifically for: 所述应用服务器从预先存储的各终端的型号与参数信息的对应关系中,确定与所述终端的型号对应的参数信息。The application server determines the parameter information corresponding to the terminal model from the pre-stored correspondence between the terminal model and parameter information. 5.如权利要求1~4任一所述的方法,其特征在于,所述参数信息包括:5. The method according to any one of claims 1-4, wherein the parameter information includes: 所述终端的硬件参数和/或软件参数。Hardware parameters and/or software parameters of the terminal. 6.一种应用程序的适配装置,其特征在于,包括:6. An adaptation device for an application program, comprising: 参数信息确定单元,用于确定终端的参数信息;a parameter information determining unit, configured to determine parameter information of the terminal; 适配单元,用于根据参数信息确定单元确定的参数信息,对预先存储的通用应用程序进行适应性修改,得到适配于所述终端的特定应用程序。The adapting unit is configured to, according to the parameter information determined by the parameter information determining unit, perform adaptive modification on the pre-stored general application program to obtain a specific application program adapted to the terminal. 7.如权利要求6所述的装置,其特征在于,所述适配单元,具体包括:7. The device according to claim 6, wherein the adaptation unit specifically comprises: 多媒体应用描述文件生成模块,用于根据参数信息确定单元确定的参数信息,生成多媒体应用描述文件;A multimedia application description file generating module, configured to generate a multimedia application description file according to the parameter information determined by the parameter information determination unit; 适配模块,用于利用多媒体应用描述文件生成模块生成的多媒体应用描述文件对所述通用应用程序进行适应性修改,得到适配于所述终端的特定应用程序。The adaptation module is configured to use the multimedia application description file generated by the multimedia application description file generating module to perform adaptive modification on the general application program to obtain a specific application program adapted to the terminal. 8.如权利要求6所述的装置,其特征在于,所述装置还包括:8. The device of claim 6, further comprising: 通用应用程序生成单元,用于生成应用程序描述语言文件,所述应用程序描述语言文件用于记录应用程序中出现的各应用对象、各应用对象的属性以及各应用对象的交互动作;对所述应用程序描述语言文件进行解析,得到扩展描述语言文件;根据所述扩展描述语言文件,对预先存储的模板文件中的模板内容进行修改,生成通用应用程序。A general application generating unit, configured to generate an application description language file, the application description language file is used to record each application object that appears in the application program, the attributes of each application object, and the interaction of each application object; The application description language file is parsed to obtain an extended description language file; according to the extended description language file, template content in a pre-stored template file is modified to generate a general application program. 9.如权利要求6所述的装置,其特征在于,所述装置还包括:9. The device of claim 6, further comprising: 下载请求接收单元,用于接收所述终端发送的应用程序下载请求;所述应用程序下载请求中携带所述终端的型号;The download request receiving unit is configured to receive the application program download request sent by the terminal; the application program download request carries the model number of the terminal; 所述多媒体应用描述文件生成模块,具体用于:The multimedia application description file generating module is specifically used for: 从预先存储的各终端的型号与参数信息的对应关系中,确定与所述终端的型号对应的参数信息。The parameter information corresponding to the model of the terminal is determined from the pre-stored correspondence between the model of each terminal and the parameter information. 10.如权利要求6~9任一所述的装置,其特征在于,所述参数信息包括:10. The device according to any one of claims 6-9, wherein the parameter information includes: 所述终端的硬件参数和/或软件参数。Hardware parameters and/or software parameters of the terminal.
CN201410244159.8A 2014-06-04 2014-06-04 Adaptive method and related device of application program Pending CN105320499A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410244159.8A CN105320499A (en) 2014-06-04 2014-06-04 Adaptive method and related device of application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410244159.8A CN105320499A (en) 2014-06-04 2014-06-04 Adaptive method and related device of application program

Publications (1)

Publication Number Publication Date
CN105320499A true CN105320499A (en) 2016-02-10

Family

ID=55247935

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410244159.8A Pending CN105320499A (en) 2014-06-04 2014-06-04 Adaptive method and related device of application program

Country Status (1)

Country Link
CN (1) CN105320499A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111291254A (en) * 2018-12-07 2020-06-16 北京字节跳动网络技术有限公司 Information processing method and device
CN111858558A (en) * 2020-07-24 2020-10-30 胡磊 Application modification method, apparatus, readable storage medium, and computer device
WO2024021998A1 (en) * 2022-07-25 2024-02-01 华为云计算技术有限公司 Data packet transmission method and apparatus, and computer device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1658608A (en) * 2004-01-30 2005-08-24 捷讯研究有限公司 Systems and methods for providing modifiable universal application content
CN1798153A (en) * 2004-12-28 2006-07-05 国际商业机器公司 Runtime optimizing applications method and system for a target system from within a deployment server
CN101593100A (en) * 2008-05-30 2009-12-02 爱思开电讯投资(中国)有限公司 The method of running mini application program, the device of carrying out this method and machine readable media
CN102314364A (en) * 2011-08-08 2012-01-11 北京登合科技有限公司 Method for automatically adapting to mobile terminal
CN102779063A (en) * 2011-05-10 2012-11-14 北京磊友信息科技有限公司 Method for providing application invocation and server
CN103425469A (en) * 2012-05-17 2013-12-04 上海闻泰电子科技有限公司 Method for generating mobile game codes based on MDA technology

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1658608A (en) * 2004-01-30 2005-08-24 捷讯研究有限公司 Systems and methods for providing modifiable universal application content
CN1798153A (en) * 2004-12-28 2006-07-05 国际商业机器公司 Runtime optimizing applications method and system for a target system from within a deployment server
CN101593100A (en) * 2008-05-30 2009-12-02 爱思开电讯投资(中国)有限公司 The method of running mini application program, the device of carrying out this method and machine readable media
CN102779063A (en) * 2011-05-10 2012-11-14 北京磊友信息科技有限公司 Method for providing application invocation and server
CN102314364A (en) * 2011-08-08 2012-01-11 北京登合科技有限公司 Method for automatically adapting to mobile terminal
CN103425469A (en) * 2012-05-17 2013-12-04 上海闻泰电子科技有限公司 Method for generating mobile game codes based on MDA technology

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111291254A (en) * 2018-12-07 2020-06-16 北京字节跳动网络技术有限公司 Information processing method and device
CN111858558A (en) * 2020-07-24 2020-10-30 胡磊 Application modification method, apparatus, readable storage medium, and computer device
CN111858558B (en) * 2020-07-24 2024-07-23 胡磊 Application program modification method and device, readable storage medium and computer equipment
WO2024021998A1 (en) * 2022-07-25 2024-02-01 华为云计算技术有限公司 Data packet transmission method and apparatus, and computer device

Similar Documents

Publication Publication Date Title
CN111158818B (en) Page rendering method and device
TWI528288B (en) Method for transforming application codes in cross-platform and apparatus thereof
US11699073B2 (en) Network off-line model processing method, artificial intelligence processing device and related products
CN112612452B (en) API platform realization method, device, equipment and storage medium
CN101980152A (en) Mobile middleware system and implementation method thereof
CN106302103B (en) Information processing method and system and application server
CN111209001A (en) Method, system, equipment and medium for batch generation of APKs of android channels
CN102455931B (en) Method and system for developing Android platform engineering
CN113703734A (en) Applet generation method and device, electronic equipment and storage medium
CN110780874B (en) Method and device for generating information
CN112083926A (en) Web user interface generation method and device
CN105320499A (en) Adaptive method and related device of application program
CN117555622A (en) Method and device for generating universal development kit, and method and device for interfacing system
CN116755788A (en) On-line rule modification method, device, equipment and storage medium
CN113761419B (en) Topology information display method and device, electronic equipment and storage medium
CN112882698A (en) Development environment generation method and device, computer storage medium and electronic device
CN110825373B (en) A mobile terminal dynamic method and device
CN115202712B (en) Application management method, application subscription method and related equipment
JP2013137687A (en) Generation method of application which does not need compilation
CN116560716A (en) A kind of APP building method, device, equipment and storage medium
CN113254019B (en) Method and device for registering front-end data stream status file
CN100481078C (en) Integrated multimedia application platform
CN113448583A (en) Configuration development method and device based on Internet of things, terminal equipment and medium
WO2016110204A1 (en) Processing of process object, and method and device for generating plug-in
CN109800024B (en) Method and device for realizing physical hardware control program release and physical hardware control

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160210

RJ01 Rejection of invention patent application after publication