CN108647032A - Using loading method and device, computer installation and computer readable storage medium - Google Patents
Using loading method and device, computer installation and computer readable storage medium Download PDFInfo
- Publication number
- CN108647032A CN108647032A CN201810271298.8A CN201810271298A CN108647032A CN 108647032 A CN108647032 A CN 108647032A CN 201810271298 A CN201810271298 A CN 201810271298A CN 108647032 A CN108647032 A CN 108647032A
- Authority
- CN
- China
- Prior art keywords
- application
- sub
- files
- resource
- installation
- 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.)
- Granted
Links
- 238000009434 installation Methods 0.000 title claims abstract description 118
- 238000011068 loading method Methods 0.000 title claims abstract description 50
- 238000001514 detection method Methods 0.000 claims description 14
- 238000004590 computer program Methods 0.000 claims description 9
- 238000000034 method Methods 0.000 description 5
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 238000013459 approach Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000004806 packaging method and process Methods 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/40—Transformation of program code
- G06F8/41—Compilation
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
本发明实施例公开了一种应用加载方法,其包括:当确定需要展示根据目标应用的安装包所生成的目标应用中的任一应用页面时,获取所述应用页面的资源包中的N个子资源文件的标识,所述资源包为用于展示所述应用页面时所需的资源包;其中,所述目标应用为未安装的应用,所述目标应用的安装包包括多个子安装文件;多个子安装文件共同用于实现所述应用页面;所述N大于或等于1且小于或等于所述多个子安装文件的总数目;根据N个子资源文件的标识,获取N个子资源文件;运行所述多个子安装文件,以对N个子资源文件进行渲染或者绘制,从而生成所述应用页面并展示所述应用页面。如此应用程序包所占用的存储空间可以大大的减小,优化下载效率和打开效率。
The embodiment of the present invention discloses an application loading method, which includes: when it is determined that any application page in the target application generated according to the installation package of the target application needs to be displayed, acquiring N subtitles in the resource package of the application page An identification of a resource file, the resource package is a resource package required for displaying the application page; wherein, the target application is an uninstalled application, and the installation package of the target application includes multiple sub-installation files; The sub-installation files are jointly used to implement the application page; the N is greater than or equal to 1 and less than or equal to the total number of the plurality of sub-installation files; according to the identification of the N sub-resource files, N sub-resource files are obtained; run the Multiple sub-installation files are used to render or draw N sub-resource files, so as to generate the application page and display the application page. In this way, the storage space occupied by the application package can be greatly reduced, and the download efficiency and opening efficiency can be optimized.
Description
技术领域technical field
本发明涉及终端技术领域,特别涉及一种应用加载方法及装置、计算机装置和计算机可读存储介质。The present invention relates to the technical field of terminals, in particular to an application loading method and device, a computer device and a computer-readable storage medium.
背景技术Background technique
随着电子科技的进步以及智能终端的配置日益提高,在终端上可以安装多种多样的应用,展示各种应用的页面,供用户使用。然而,随着应用的功能逐渐完善,所占用的存储空间也逐渐增大,很可能会影响操作系统的正常运行。With the advancement of electronic technology and the increasing configuration of smart terminals, various applications can be installed on the terminal, and pages of various applications can be displayed for users to use. However, as the functions of the application are gradually improved, the occupied storage space is also gradually increased, which may affect the normal operation of the operating system.
现在rpk文件运行安装时,会把整个rpk文件下载到终端设备,并解压存储,页面加载资源文件直接从本地存储中获取显示,这样做的不好;没有使用的模块界面资源一起被安装到本地,占用空间,用户下载和打开rpk文件因rpk文件体积大而下降。Now when the rpk file is running and installed, the entire rpk file will be downloaded to the terminal device, and decompressed and stored. The page load resource file is directly obtained from the local storage for display, which is not good; the unused module interface resources are installed locally together. , Occupying space, the user downloads and opens the rpk file due to the large size of the rpk file.
另外,快应用现在的打包编译时,会把资源文件和源代码一起打包进rpk文件中,例如A.rpk文件中,包含了资源文件和编译后的源代码和一些应用配置信息,一般资源文件会占到整个rpk文件绝大部分体积,体积大小决定了用户打开和使用快应用的速度和体验。In addition, when the quick app is currently packaged and compiled, resource files and source codes will be packaged together into the rpk file. For example, the A.rpk file contains resource files, compiled source code, and some application configuration information. General resource files It will occupy most of the volume of the entire rpk file, and the volume determines the speed and experience of users opening and using quick apps.
发明内容Contents of the invention
本发明实施例第一方面公开了一种应用加载方法,其包括:The first aspect of the embodiment of the present invention discloses an application loading method, which includes:
当确定需要展示根据目标应用的安装包所生成的目标应用中的任一应用页面时,获取所述应用页面的资源包中的N个子资源文件的标识,所述资源包为用于展示所述应用页面时所需的资源包;When it is determined that any application page in the target application generated according to the installation package of the target application needs to be displayed, obtain the identifiers of N sub-resource files in the resource package of the application page, and the resource package is used to display the The resource bundle required when applying the page;
其中,所述目标应用为未安装的应用,所述目标应用的安装包包括多个子安装文件;多个子安装文件共同用于实现所述应用页面;所述N大于或等于1且小于或等于所述多个子安装文件的总数目;Wherein, the target application is an uninstalled application, and the installation package of the target application includes multiple sub-installation files; the multiple sub-installation files are jointly used to implement the application page; the N is greater than or equal to 1 and less than or equal to the The total number of multiple sub-installation files mentioned above;
根据N个子资源文件的标识,获取N个子资源文件;Obtain N sub-resource files according to the identifiers of the N sub-resource files;
运行所述多个子安装文件,以对N个子资源文件进行渲染或者绘制,从而生成所述应用页面并展示所述应用页面。Running the plurality of sub-installation files to render or draw the N sub-resource files, so as to generate the application page and display the application page.
作为一种可能的实施方式,在所述应用加载方法中,所述确定需要展示根据目标应用的安装包所生成的目标应用中的任一应用页面包括:As a possible implementation manner, in the application loading method, the determining that any application page in the target application generated according to the installation package of the target application needs to be displayed includes:
若接收到针对所述应用页面的标识的触控指令,则确定需要展示根据目标应用的安装包所生成的目标应用中的任一应用页面;或者If a touch instruction for the identification of the application page is received, it is determined that any application page in the target application generated according to the installation package of the target application needs to be displayed; or
若接收到针对所述应用页面的语音指令,则确定需要展示根据目标应用的安装包所生成的目标应用中的任一应用页面。If the voice instruction for the application page is received, it is determined that any application page in the target application generated according to the installation package of the target application needs to be displayed.
作为一种可能的实施方式,在所述应用加载方法中,每个子安装文件包括代码文件和配置文件;所述运行所述多个子安装文件,以对N个子资源文件进行渲染或者绘制,从而生成所述应用页面并展示所述应用页面包括:As a possible implementation, in the application loading method, each sub-installation file includes a code file and a configuration file; the running of the multiple sub-installation files renders or draws N sub-resource files, thereby generating The application page and displaying the application page include:
运行所述多个子安装文件中的多个配置文件,以对N个子资源文件进行渲染或者绘制,从而生成所述应用页面并展示所述应用页面。Running multiple configuration files in the multiple sub-installation files to render or draw the N sub-resource files, so as to generate the application page and display the application page.
作为一种可能的实施方式,在所述应用加载方法中,所述运行所述多个子安装文件中的多个配置文件,以对N个子资源文件进行渲染或者绘制,从而生成所述应用页面包括:As a possible implementation manner, in the application loading method, the running the multiple configuration files in the multiple sub-installation files to render or draw the N sub-resource files, so as to generate the application page includes :
基于所述多个子安装文件中的多个配置文件调用内置于操作系统中的框架文件;calling a framework file built into the operating system based on multiple configuration files in the multiple sub-installation files;
通过框架文件解析所述N个子资源文件,以生成所述应用页面。The N sub-resource files are parsed through the framework file to generate the application page.
本发明实施例第二方面公开了一种应用加载方法,其包括:The second aspect of the embodiment of the present invention discloses an application loading method, which includes:
当确定需要展示运行目标应用的多个安装包所生成的目标应用中的任一应用页面时,获取所述应用页面的多个资源包中每个资源包所包括的N个子资源文件的标识,多个资源包为用于展示所述应用页面时所需的资源包;When it is determined that any application page in the target application generated by running multiple installation packages of the target application needs to be displayed, obtain the identifiers of N sub-resource files included in each resource package of the multiple resource packages of the application page, The multiple resource packages are resource packages required for displaying the application page;
其中,所述目标应用为未安装的应用,所述目标应用的每个安装包包括多个子安装文件;多个子安装文件共同用于实现应用页面的对应部分;所述N大于或等于1且小于或等于所述多个子安装文件的总数目;Wherein, the target application is an uninstalled application, and each installation package of the target application includes multiple sub-installation files; the multiple sub-installation files are jointly used to realize the corresponding part of the application page; the N is greater than or equal to 1 and less than or equal to the total number of the plurality of sub-installation files;
根据每个资源包所包括的N个子资源文件的标识,获取N个子资源文件;Obtain N sub-resource files according to the identifiers of N sub-resource files included in each resource package;
运行所述多个子安装文件,以对对应的N个子资源文件进行渲染或者绘制,从而生成所述应用页面的对应部分并展示所述应用页面的对应部分。Running the plurality of sub-installation files to render or draw the corresponding N sub-resource files, so as to generate corresponding parts of the application page and display the corresponding parts of the application page.
本发明实施例第三方面公开了一种应用加载装置,其包括:The third aspect of the embodiment of the present invention discloses an application loading device, which includes:
检测模块,用于当确定需要展示根据目标应用的安装包所生成的目标应用中的任一应用页面时,获取所述应用页面的资源包中的N个子资源文件的标识,所述资源包为用于展示所述应用页面时所需的资源包;The detection module is configured to obtain the identifiers of N sub-resource files in the resource package of the application page when it is determined that any application page in the target application generated according to the installation package of the target application needs to be displayed, and the resource package is A resource package required for displaying the application page;
其中,所述目标应用为未安装的应用,所述目标应用的安装包包括多个子安装文件;多个子安装文件共同用于实现所述应用页面;所述N大于或等于1且小于或等于所述多个子安装文件的总数目;Wherein, the target application is an uninstalled application, and the installation package of the target application includes multiple sub-installation files; the multiple sub-installation files are jointly used to implement the application page; the N is greater than or equal to 1 and less than or equal to the The total number of multiple sub-installation files mentioned above;
获取模块,用于根据N个子资源文件的标识,获取N个子资源文件;An acquisition module, configured to acquire N sub-resource files according to the identifiers of the N sub-resource files;
执行模块,用于运行所述多个子安装文件,以对N个子资源文件进行渲染或者绘制,从而生成所述应用页面并展示所述应用页面。The execution module is configured to run the multiple sub-installation files to render or draw the N sub-resource files, so as to generate the application page and display the application page.
作为一种可能的实施方式,在所述应用加载装置中,所述检测模块还用于若接收到针对所述应用页面的标识的触控指令,则确定需要展示根据目标应用的安装包所生成的目标应用中的任一应用页面;或者As a possible implementation manner, in the application loading device, the detection module is further configured to determine that it is necessary to display the information generated according to the installation package of the target application if a touch command for the identification of the application page is received. any app page in the target app for ; or
所述检测模块还用于若接收到针对所述应用页面的语音指令,则确定需要展示根据目标应用的安装包所生成的目标应用中的任一应用页面。The detection module is further configured to determine that any application page in the target application generated according to the installation package of the target application needs to be displayed if the voice instruction for the application page is received.
本发明实施例第四方面公开了一种应用加载装置,其包括:The fourth aspect of the embodiment of the present invention discloses an application loading device, which includes:
检测模块,用于当确定需要展示运行目标应用的多个安装包所生成的目标应用中的任一应用页面时,获取所述应用页面的多个资源包中每个资源包所包括的N个子资源文件的标识,多个资源包为用于展示所述应用页面时所需的资源包;A detection module, configured to obtain the N subtitles included in each of the multiple resource packages of the application page when it is determined that any application page in the target application generated by running the multiple installation packages of the target application needs to be displayed. An identifier of a resource file, where multiple resource packages are resource packages required for displaying the application page;
其中,所述目标应用为未安装的应用,所述目标应用的每个安装包包括多个子安装文件;多个子安装文件共同用于实现应用页面的对应部分;所述N大于或等于1且小于或等于所述多个子安装文件的总数目;Wherein, the target application is an uninstalled application, and each installation package of the target application includes multiple sub-installation files; the multiple sub-installation files are jointly used to realize the corresponding part of the application page; the N is greater than or equal to 1 and less than or equal to the total number of the plurality of sub-installation files;
获取模块,用于根据每个资源包所包括的N个子资源文件的标识,获取N个子资源文件;An acquisition module, configured to acquire N sub-resource files according to the identifiers of the N sub-resource files included in each resource package;
执行模块,用于运行所述多个子安装文件,以对对应的N个子资源文件进行渲染或者绘制,从而生成所述应用页面的对应部分并展示所述应用页面的对应部分。An execution module, configured to run the multiple sub-installation files to render or draw the corresponding N sub-resource files, so as to generate and display corresponding parts of the application page.
本发明实施例第五方面公开了一种计算机装置,所述计算机装置包括处理器,所述处理器用于执行存储器中存储的计算机程序时实现上述应用加载方法的步骤。The fifth aspect of the embodiment of the present invention discloses a computer device, the computer device includes a processor, and the processor is configured to implement the steps of the above application loading method when executing a computer program stored in a memory.
本发明实施例第六方面公开了一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述应用加载方法的步骤。The sixth aspect of the embodiments of the present invention discloses a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above-mentioned application loading method are implemented.
从以上技术方案可以看出,本发明实施例具有以下优点:It can be seen from the above technical solutions that the embodiments of the present invention have the following advantages:
本发明实施例公开了上述应用加载方法及装置、计算机装置和计算机可读存储介质,可以实现应用程序包所占用的存储空间大大的减小,优化下载效率和打开效率。The embodiment of the present invention discloses the above-mentioned application loading method and device, a computer device and a computer-readable storage medium, which can greatly reduce the storage space occupied by the application package, and optimize the download efficiency and opening efficiency.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work.
图1为本发明一种实施例的应用加载方法的流程图。Fig. 1 is a flowchart of an application loading method according to an embodiment of the present invention.
图2为本发明一种实施例的应用加载装置的程序模块图。Fig. 2 is a program module diagram of an application loading device according to an embodiment of the present invention.
具体实施方式Detailed ways
为了解决以上问题,本发明实施例公开了一种应用加载方法及装置、计算机装置和计算机可读存储介质。In order to solve the above problems, the embodiment of the present invention discloses an application loading method and device, a computer device, and a computer-readable storage medium.
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.
以下将描述本发明实施例的实施环境,该实施环境包括终端和服务器,终端可以为手机、计算机、平板电脑等多种类型的设备,终端的操作系统可以是安卓系统、苹果的ios系统等。终端和服务器之间通过网络连接,服务器用于通过网络连接向终端分发应用,终端用于运行应用。The implementation environment of the embodiment of the present invention will be described below. The implementation environment includes a terminal and a server. The terminal can be various types of equipment such as mobile phones, computers, and tablet computers. The operating system of the terminal can be Android system, Apple's ios system, etc. The terminal and the server are connected through a network, the server is used to distribute the application to the terminal through the network connection, and the terminal is used to run the application.
服务器中存储有应用的配置文件,该配置文件包括运行应用所需的数据和运行逻辑,终端可以从服务器获取应用的配置文件,根据该配置文件生成应用的原生页面并展示,从而实现应用的运行。并且,在终端运行应用的过程中,无需进行安装,应用运行所需的数据可以从服务器获取。The configuration file of the application is stored in the server, which includes the data and operation logic required to run the application. The terminal can obtain the configuration file of the application from the server, generate and display the native page of the application according to the configuration file, so as to realize the operation of the application . Moreover, in the process of running the application on the terminal, there is no need to install it, and the data required for running the application can be obtained from the server.
服务器还可以对应用的配置文件进行更新,以便为终端提供更新后的配置文件,由终端运行更新后的应用。The server may also update the configuration file of the application, so as to provide the terminal with the updated configuration file, and the terminal runs the updated application.
另外,服务器也可以存储应用的安装文件,终端可以从服务器获取应用的安装文件,根据该安装文件安装应用后再运行应用。当然,服务器也可以对应用的安装文件进行更新,以便为终端提供更新后的安装文件,由终端根据更新后的安装文件安装更新后的应用。In addition, the server may also store the installation file of the application, and the terminal may obtain the installation file of the application from the server, install the application according to the installation file, and then run the application. Certainly, the server may also update the installation file of the application, so as to provide the terminal with the updated installation file, and the terminal installs the updated application according to the updated installation file.
图1为本发明所提供的一种实施例的应用加载方法100的流程图,应用加载方法100应用于终端。应用加载方法100包括步骤S102、步骤S104和步骤S106。FIG. 1 is a flowchart of an application loading method 100 according to an embodiment of the present invention, and the application loading method 100 is applied to a terminal. The application loading method 100 includes step S102, step S104 and step S106.
步骤S102:当确定需要展示根据目标应用的安装包所生成的目标应用中的任一应用页面时,获取所述应用页面的资源包中的N个子资源文件的标识,所述资源包为用于展示所述应用页面时所需的资源包。Step S102: When it is determined that any application page in the target application generated according to the installation package of the target application needs to be displayed, obtain the identifiers of N sub-resource files in the resource package of the application page, and the resource package is used for A resource package required for displaying the application page.
其中,所述目标应用为未安装的应用,所述目标应用的安装包包括多个子安装文件;多个子安装文件共同用于实现所述应用页面;所述N为自然数,所述N大于或等于1且小于或等于所述多个子安装文件的总数目。在一种可能的实施方式中,所述子安装文件的格式是.rpk(也即所述子安装文件的后缀名是rpk)。Wherein, the target application is an uninstalled application, and the installation package of the target application includes a plurality of sub-installation files; the plurality of sub-installation files are jointly used to implement the application page; the N is a natural number, and the N is greater than or equal to 1 and less than or equal to the total number of the multiple sub-installation files. In a possible implementation manner, the format of the sub-installation file is .rpk (that is, the suffix of the sub-installation file is rpk).
步骤S104:根据N个子资源文件的标识,获取N个子资源文件。在一种可能的实施方式中,所述子资源文件的格式是.rpk(也即所述子资源文件的后缀名是rpk)。Step S104: Obtain N sub-resource files according to the identifiers of the N sub-resource files. In a possible implementation manner, the format of the sub-resource file is .rpk (that is, the suffix of the sub-resource file is rpk).
步骤S106:运行所述多个子安装文件,以对N个子资源文件进行渲染或者绘制,从而生成所述应用页面并展示所述应用页面。Step S106: Run the plurality of sub-installation files to render or draw N sub-resource files, so as to generate the application page and display the application page.
在本发明的一个实施方式中,步骤S102所述确定需要展示根据目标应用的安装包所生成的目标应用中的任一应用页面包括:若接收到针对所述应用页面的标识的触控指令,则确定需要展示根据目标应用的安装包所生成的目标应用中的任一应用页面。In one embodiment of the present invention, determining in step S102 that any application page in the target application generated according to the installation package of the target application needs to be displayed includes: if a touch instruction for the identification of the application page is received, Then it is determined that any application page in the target application generated according to the installation package of the target application needs to be displayed.
可选地,在本发明的另一个实施方式中,步骤S102所述确定需要展示根据目标应用的安装包所生成的目标应用中的任一应用页面包括:若接收到针对所述应用页面的语音指令,则确定需要展示根据目标应用的安装包所生成的目标应用中的任一应用页面。Optionally, in another embodiment of the present invention, the determination in step S102 that it is necessary to display any application page in the target application generated according to the installation package of the target application includes: if the voice for the application page is received instruction, it is determined that any application page in the target application generated according to the installation package of the target application needs to be displayed.
在本发明的一个实施方式中,每个子安装文件包括代码文件和配置文件(所述代码文件和配置文件的格式都是.rpk,也即所述代码文件和配置文件的后缀名都是rpk);步骤S106所述运行所述多个子安装文件,以对N个子资源文件进行渲染或者绘制,从而生成所述应用页面并展示所述应用页面包括:运行所述多个子安装文件中的多个配置文件,以对N个子资源文件进行渲染或者绘制,从而生成所述应用页面并展示所述应用页面。具体地,所述运行所述多个子安装文件中的多个配置文件,以对N个子资源文件进行渲染或者绘制,从而生成所述应用页面包括:基于所述多个子安装文件中的多个配置文件调用内置于操作系统中的框架文件;通过框架文件解析所述N个子资源文件,以生成所述应用页面。In one embodiment of the present invention, each sub-installation file includes a code file and a configuration file (the format of the code file and the configuration file is .rpk, that is, the suffix name of the code file and the configuration file is rpk) The step S106 of running the multiple sub-installation files to render or draw N sub-resource files, so as to generate the application page and display the application page includes: running multiple configurations in the multiple sub-installation files files, to render or draw the N sub-resource files, so as to generate the application page and display the application page. Specifically, the running multiple configuration files in the multiple sub-installation files to render or draw N sub-resource files, so as to generate the application page includes: based on multiple configurations in the multiple sub-installation files The file calls a framework file built in the operating system; the N sub-resource files are parsed through the framework file to generate the application page.
本发明还提供了另一种实施例的应用加载方法,该应用加载方法包括:当确定需要展示运行目标应用的多个安装包所生成的目标应用中的任一应用页面时,获取所述应用页面的多个资源包中每个资源包所包括的N个子资源文件的标识,多个资源包为用于展示所述应用页面时所需的资源包。The present invention also provides an application loading method in another embodiment, the application loading method includes: when it is determined that any application page in the target application generated by running multiple installation packages of the target application needs to be displayed, acquiring the application The identifiers of the N sub-resource files included in each of the multiple resource packages of the page, where the multiple resource packages are resource packages required for displaying the application page.
其中,所述目标应用为未安装的应用,所述目标应用的每个安装包包括多个子安装文件;多个子安装文件共同用于实现应用页面的对应部分;所述N大于或等于1且小于或等于所述多个子安装文件的总数目。Wherein, the target application is an uninstalled application, and each installation package of the target application includes multiple sub-installation files; the multiple sub-installation files are jointly used to realize the corresponding part of the application page; the N is greater than or equal to 1 and less than or equal to the total number of the plurality of sub-installation files.
根据每个资源包所包括的N个子资源文件的标识,获取N个子资源文件。According to the identifiers of the N sub-resource files included in each resource package, N sub-resource files are obtained.
运行所述多个子安装文件,以对对应的N个子资源文件进行渲染或者绘制,从而生成所述应用页面的对应部分并展示所述应用页面的对应部分。Running the plurality of sub-installation files to render or draw the corresponding N sub-resource files, so as to generate corresponding parts of the application page and display the corresponding parts of the application page.
图2为本发明所提供的一种实施例的应用加载装置200的程序模块图,应用加载装置200应用于终端。应用加载装置200与应用加载方法100对应,也可以说应用加载方法100执行于应用加载装置200中。应用加载装置200包括:检测模块202、获取模块204和执行模块206。FIG. 2 is a program module diagram of an application loading device 200 according to an embodiment of the present invention, and the application loading device 200 is applied to a terminal. The application loading device 200 corresponds to the application loading method 100 , and it can also be said that the application loading method 100 is executed in the application loading device 200 . The application loading device 200 includes: a detection module 202 , an acquisition module 204 and an execution module 206 .
检测模块202,用于当确定需要展示根据目标应用的安装包所生成的目标应用中的任一应用页面时,获取所述应用页面的资源包中的N个子资源文件的标识,所述资源包为用于展示所述应用页面时所需的资源包。The detection module 202 is configured to obtain the identifiers of N sub-resource files in the resource package of the application page when it is determined that any application page in the target application generated according to the installation package of the target application needs to be displayed, and the resource package It is a resource package required for displaying the application page.
其中,所述目标应用为未安装的应用,所述目标应用的安装包包括多个子安装文件;多个子安装文件共同用于实现所述应用页面;所述N为自然数,所述N大于或等于1且小于或等于所述多个子安装文件的总数目。Wherein, the target application is an uninstalled application, and the installation package of the target application includes a plurality of sub-installation files; the plurality of sub-installation files are jointly used to implement the application page; the N is a natural number, and the N is greater than or equal to 1 and less than or equal to the total number of the multiple sub-installation files.
获取模块204,用于根据N个子资源文件的标识,获取N个子资源文件。The obtaining module 204 is configured to obtain N sub-resource files according to the identifiers of the N sub-resource files.
执行模块206,用于运行所述多个子安装文件,以对N个子资源文件进行渲染或者绘制,从而生成所述应用页面并展示所述应用页面。The executing module 206 is configured to run the multiple sub-installation files to render or draw the N sub-resource files, so as to generate the application page and display the application page.
在本发明的一种实施方式中,所述检测模块202还用于若接收到针对所述应用页面的标识的触控指令,则确定需要展示根据目标应用的安装包所生成的目标应用中的任一应用页面。In one embodiment of the present invention, the detection module 202 is further configured to determine that the target application generated according to the installation package of the target application needs to be displayed if a touch instruction for the identification of the application page is received. Any application page.
可选地,在本发明的另一种实施方式中,所述检测模块202还用于若接收到针对所述应用页面的语音指令,则确定需要展示根据目标应用的安装包所生成的目标应用中的任一应用页面。Optionally, in another embodiment of the present invention, the detection module 202 is further configured to determine that the target application generated according to the installation package of the target application needs to be displayed if a voice instruction for the application page is received Any app page in .
本发明还提供了另一种实施例的应用加载装置,所述应用加载装置包括:检测模块、获取模块和执行模块。The present invention also provides an application loading device in another embodiment, and the application loading device includes: a detection module, an acquisition module and an execution module.
检测模块,用于当确定需要展示运行目标应用的多个安装包所生成的目标应用中的任一应用页面时,获取所述应用页面的多个资源包中每个资源包所包括的N个子资源文件的标识,多个资源包为用于展示所述应用页面时所需的资源包。A detection module, configured to obtain the N subtitles included in each of the multiple resource packages of the application page when it is determined that any application page in the target application generated by running the multiple installation packages of the target application needs to be displayed. An identifier of a resource file, and the multiple resource packages are resource packages required for displaying the application page.
其中,所述目标应用为未安装的应用,所述目标应用的每个安装包包括多个子安装文件;多个子安装文件共同用于实现应用页面的对应部分;所述N大于或等于1且小于或等于所述多个子安装文件的总数目。Wherein, the target application is an uninstalled application, and each installation package of the target application includes multiple sub-installation files; the multiple sub-installation files are jointly used to realize the corresponding part of the application page; the N is greater than or equal to 1 and less than or equal to the total number of the plurality of sub-installation files.
获取模块,用于根据每个资源包所包括的N个子资源文件的标识,获取N个子资源文件。The acquiring module is configured to acquire N sub-resource files according to the identifiers of the N sub-resource files included in each resource package.
执行模块,用于运行所述多个子安装文件,以对对应的N个子资源文件进行渲染或者绘制,从而生成所述应用页面的对应部分并展示所述应用页面的对应部分。An execution module, configured to run the multiple sub-installation files to render or draw the corresponding N sub-resource files, so as to generate and display corresponding parts of the application page.
本发明实施例还公开了一种计算机装置,所述计算机装置包括处理器,所述处理器用于执行存储器中存储的计算机程序时实现上述应用加载方法100的步骤。The embodiment of the present invention also discloses a computer device, the computer device includes a processor, and the processor is configured to implement the steps of the above-mentioned application loading method 100 when executing a computer program stored in a memory.
另外,本发明实施例还公开了一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述应用加载方法100的步骤。In addition, the embodiment of the present invention also discloses a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above-mentioned application loading method 100 are realized.
本发明实施例公开的应用加载方法100、应用加载装置200、计算机装置和计算机可读存储介质,rpk文件拆分为源代码文件包A-code.rpk和资源文件包A-res.rpk后,用户点击打开A应用时只需把A-code.rpk下载到本地,即可快速打开显示;在显示的过程中,如需使用到对应页面的资源文件,即可下载A-res.rpk中对应页面的资源文件到本地A应用资源目录,并加载使用即可。这样的好处是程序包体积可以大大减小,优化下载速度和打开效率,资源按需获取,不浪费,不占用空间,并独立下载,不影响主程序包加载效率。In the application loading method 100, application loading device 200, computer device, and computer-readable storage medium disclosed in the embodiment of the present invention, after the rpk file is split into source code file package A-code.rpk and resource file package A-res.rpk, When the user clicks to open the A application, he only needs to download the A-code.rpk to the local, and the display can be quickly opened; during the display process, if the resource file of the corresponding page needs to be used, the corresponding A-res.rpk can be downloaded. Page resource files to the local A application resource directory, and loaded to use. The advantage of this is that the size of the program package can be greatly reduced, the download speed and opening efficiency are optimized, resources are obtained on demand, no waste, no space is occupied, and the independent download does not affect the loading efficiency of the main program package.
相对应的,更换快应用的打包编译方式,在不改变原开发模式的前提下,进行rpk文件打包编译时,把资源文件统一打包到另一包A-res.rpk,源码文件和应用配置信息打包到一包A-code.rpk中。这样的做法可以保证运行程序包体积大幅减小,有利于提高用户的下载使用速度和体验。Correspondingly, replace the packaging and compiling method of the quick app. Without changing the original development mode, when compiling the rpk file, package the resource files into another package A-res.rpk, source code files and application configuration information Packaged into a package A-code.rpk. This approach can ensure that the size of the running program package is greatly reduced, which is conducive to improving the user's download speed and experience.
在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。Each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may physically exist separately, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-OnlyMemory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk, and other media that can store program codes.
显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的精神和范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the application without departing from the spirit and scope of the application. In this way, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalent technologies, the present application is also intended to include these modifications and variations.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810271298.8A CN108647032B (en) | 2018-03-29 | 2018-03-29 | Application loading method and apparatus, computer apparatus and computer-readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810271298.8A CN108647032B (en) | 2018-03-29 | 2018-03-29 | Application loading method and apparatus, computer apparatus and computer-readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108647032A true CN108647032A (en) | 2018-10-12 |
CN108647032B CN108647032B (en) | 2022-03-01 |
Family
ID=63744796
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810271298.8A Active CN108647032B (en) | 2018-03-29 | 2018-03-29 | Application loading method and apparatus, computer apparatus and computer-readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108647032B (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109840116A (en) * | 2017-11-27 | 2019-06-04 | 北京京东尚科信息技术有限公司 | A kind of method and apparatus loading resource file |
CN111309391A (en) * | 2020-01-20 | 2020-06-19 | 北京无限光场科技有限公司 | Application program starting method, device, equipment and medium |
CN111359217A (en) * | 2020-02-28 | 2020-07-03 | 深圳市腾讯信息技术有限公司 | Application content generation method and device |
CN112231008A (en) * | 2019-06-26 | 2021-01-15 | 北京京东尚科信息技术有限公司 | Application module management method, device, storage medium and electronic device |
CN113468454A (en) * | 2020-03-31 | 2021-10-01 | 北京沃东天骏信息技术有限公司 | Method and device for rendering HTML pages |
CN114518912A (en) * | 2022-02-21 | 2022-05-20 | 度小满科技(北京)有限公司 | Page loading method, device and equipment and readable storage medium |
WO2022205013A1 (en) * | 2021-03-30 | 2022-10-06 | 京东方科技集团股份有限公司 | Method and apparatus for generating program data packet, and storage medium |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103870470A (en) * | 2012-12-11 | 2014-06-18 | 腾讯科技(深圳)有限公司 | Method for loading resource files of application and loading device |
CN104123150A (en) * | 2013-04-28 | 2014-10-29 | 百度在线网络技术(北京)有限公司 | Language resource management method and device for application program |
WO2014193448A1 (en) * | 2013-05-30 | 2014-12-04 | Microsoft Corporation | Resource package indexing |
US20150339111A1 (en) * | 2014-05-21 | 2015-11-26 | Google Inc. | Automatic discovery and installation of applications via the internet in response to coupling of hardware device to computing device |
CN105335206A (en) * | 2015-10-16 | 2016-02-17 | Tcl集团股份有限公司 | Customized system widget expansion method and system |
CN106133748A (en) * | 2012-05-18 | 2016-11-16 | 苹果公司 | For handling the equipment of user interface, method and graphic user interface based on fingerprint sensor input |
US20160357544A1 (en) * | 2015-06-05 | 2016-12-08 | Apple Inc. | On demand resources |
CN107168719A (en) * | 2017-06-02 | 2017-09-15 | 广州视源电子科技股份有限公司 | Application program running method and device, terminal and computer readable storage medium |
CN107220059A (en) * | 2017-06-14 | 2017-09-29 | 北京小米移动软件有限公司 | The display methods and device of application interface |
CN107329743A (en) * | 2017-06-14 | 2017-11-07 | 北京小米移动软件有限公司 | Methods of exhibiting, device and the storage medium of five application page |
-
2018
- 2018-03-29 CN CN201810271298.8A patent/CN108647032B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106133748A (en) * | 2012-05-18 | 2016-11-16 | 苹果公司 | For handling the equipment of user interface, method and graphic user interface based on fingerprint sensor input |
CN103870470A (en) * | 2012-12-11 | 2014-06-18 | 腾讯科技(深圳)有限公司 | Method for loading resource files of application and loading device |
CN104123150A (en) * | 2013-04-28 | 2014-10-29 | 百度在线网络技术(北京)有限公司 | Language resource management method and device for application program |
WO2014193448A1 (en) * | 2013-05-30 | 2014-12-04 | Microsoft Corporation | Resource package indexing |
US20150339111A1 (en) * | 2014-05-21 | 2015-11-26 | Google Inc. | Automatic discovery and installation of applications via the internet in response to coupling of hardware device to computing device |
US20160357544A1 (en) * | 2015-06-05 | 2016-12-08 | Apple Inc. | On demand resources |
CN105335206A (en) * | 2015-10-16 | 2016-02-17 | Tcl集团股份有限公司 | Customized system widget expansion method and system |
CN107168719A (en) * | 2017-06-02 | 2017-09-15 | 广州视源电子科技股份有限公司 | Application program running method and device, terminal and computer readable storage medium |
CN107220059A (en) * | 2017-06-14 | 2017-09-29 | 北京小米移动软件有限公司 | The display methods and device of application interface |
CN107329743A (en) * | 2017-06-14 | 2017-11-07 | 北京小米移动软件有限公司 | Methods of exhibiting, device and the storage medium of five application page |
Non-Patent Citations (2)
Title |
---|
HYMWRJ1: "java项目打包时怎么和jar包分开?", 《HTTPS://BBS.CSDN.NET/TOPICS/391055438》 * |
闫梅: "Android应用程序权限检测机制的研究", 《中国优秀硕士学位论文全文数据库 信息科技辑》 * |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109840116A (en) * | 2017-11-27 | 2019-06-04 | 北京京东尚科信息技术有限公司 | A kind of method and apparatus loading resource file |
CN112231008A (en) * | 2019-06-26 | 2021-01-15 | 北京京东尚科信息技术有限公司 | Application module management method, device, storage medium and electronic device |
CN111309391A (en) * | 2020-01-20 | 2020-06-19 | 北京无限光场科技有限公司 | Application program starting method, device, equipment and medium |
CN111359217A (en) * | 2020-02-28 | 2020-07-03 | 深圳市腾讯信息技术有限公司 | Application content generation method and device |
CN113468454A (en) * | 2020-03-31 | 2021-10-01 | 北京沃东天骏信息技术有限公司 | Method and device for rendering HTML pages |
WO2022205013A1 (en) * | 2021-03-30 | 2022-10-06 | 京东方科技集团股份有限公司 | Method and apparatus for generating program data packet, and storage medium |
CN114518912A (en) * | 2022-02-21 | 2022-05-20 | 度小满科技(北京)有限公司 | Page loading method, device and equipment and readable storage medium |
CN114518912B (en) * | 2022-02-21 | 2023-04-25 | 度小满科技(北京)有限公司 | Page loading method, device, equipment and readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN108647032B (en) | 2022-03-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108647032A (en) | Using loading method and device, computer installation and computer readable storage medium | |
CN107832099B (en) | A client version compatible method, device and storage medium | |
CN106371826B (en) | The method and apparatus of application program cross-system operation | |
CN103970563B (en) | The method of dynamic load Android class | |
CN106547580B (en) | Method and device for hooking function, mobile terminal and storage medium | |
CN105677335A (en) | Method and device for increasing first starting speed of mobile terminal | |
CN110442327B (en) | Application program construction method, device and server | |
CN105718313A (en) | Application operation method and device | |
CN110113391B (en) | Client online method and device and client operation method and device | |
CN111427782B (en) | Running method, device, device and storage medium of Android dynamic link library | |
CN107479868B (en) | Interface loading method, device and equipment | |
CN111767056A (en) | A source code compilation method, an executable file running method, and a terminal device | |
CN107861742A (en) | The operation method and terminal device of a kind of program | |
CN108733370B (en) | Stylized display method, device, terminal and storage medium of native APP | |
CN112214250A (en) | Application program assembly loading method and device | |
CN113377376A (en) | Data packet generation method, data packet generation device, electronic device, and storage medium | |
CN110489162B (en) | Method, device, medium and equipment for simplifying installation package SO (storage and retrieval) file | |
CN113268221B (en) | File matching method, device, storage medium and computer equipment | |
CN108549557A (en) | Using storing method, terminal and storage medium | |
CN110262841B (en) | Method and device for enhancing byte codes | |
CN109739548B (en) | Program packaging method, program packaging device, and computer-readable storage medium | |
CN112612531A (en) | Application program starting method and device, electronic equipment and storage medium | |
CN109299960B (en) | Methods, devices, computer-readable storage media, and terminal equipment for monitoring advertising | |
CN106775608A (en) | The implementation method and device of autonomous system process | |
CN107092601B (en) | Resource file construction method, resource file application method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20240527 Address after: B1345, Chuanggu Initiation Zone, Taizihu Cultural Digital Creative Industry Park, No. 18 Shenlong Avenue, Wuhan Economic and Technological Development Zone, Wuhan, Hubei Province, 430058 Patentee after: Hubei Xingji Meizu Group Co.,Ltd. Country or region after: China Address before: 519000 technology innovation coastal Meizu science and technology building, Zhuhai, Guangdong Patentee before: MEIZU TECHNOLOGY Co.,Ltd. Country or region before: China |