[go: up one dir, main page]

CN104809011A - Application program management method - Google Patents

Application program management method Download PDF

Info

Publication number
CN104809011A
CN104809011A CN201510172597.2A CN201510172597A CN104809011A CN 104809011 A CN104809011 A CN 104809011A CN 201510172597 A CN201510172597 A CN 201510172597A CN 104809011 A CN104809011 A CN 104809011A
Authority
CN
China
Prior art keywords
application program
described application
application
download
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.)
Granted
Application number
CN201510172597.2A
Other languages
Chinese (zh)
Other versions
CN104809011B (en
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.)
Zhengzhou Xinrand Network Technology Co ltd
Original Assignee
Institute of Acoustics CAS
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 Institute of Acoustics CAS filed Critical Institute of Acoustics CAS
Priority to CN201510172597.2A priority Critical patent/CN104809011B/en
Publication of CN104809011A publication Critical patent/CN104809011A/en
Application granted granted Critical
Publication of CN104809011B publication Critical patent/CN104809011B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

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

Abstract

本发明公开了一种应用程序的管理方法,该方法包括:通过浏览器组件载入应用商店的页面;当浏览器组件接收到应用程序的下载请求时,向应用商店发送应用程序的下载请求,以应用程序的下载路径;根据应用程序的下载路径,下载应用程序文件;对应用程序进行管理。本发明实现了应用程序在嵌入式设备中的安装、卸载、更新、启动、终止等操作,极大地提升了用户体验度。

The invention discloses a management method of an application program, the method comprising: loading a page of an application store through a browser component; when the browser component receives the download request of the application program, sending the download request of the application program to the application store, Use the download path of the application program; download the application program file according to the download path of the application program; manage the application program. The invention realizes operations such as installation, uninstallation, update, startup, and termination of application programs in embedded devices, and greatly improves user experience.

Description

一种应用程序的管理方法An application management method

技术领域technical field

本发明涉及Web应用领域,尤其涉及一种应用程序的管理方法。The invention relates to the field of Web applications, in particular to a method for managing application programs.

背景技术Background technique

随着HTML5的发展,Web的功能和性能获得了大幅度的提高。Web能够提供更加多样的功能选择,包括本地存储,多媒体等功能,同时,Web的性能越来越高,用户的体验越来越流畅,很多Web应用的流程度和本地应用不相上下。更为重要的是,Web应用具有跨平台特性,可以实现一次开发,各处运行,同时相比于native应用,Web应用的开发门槛低。Web应用的部署和更新相比于native应用也更加方便快捷。基于以上优点,对Web应用的支持是各平台的发展趋势。With the development of HTML5, the functions and performance of the Web have been greatly improved. The Web can provide a variety of functional options, including local storage, multimedia and other functions. At the same time, the performance of the Web is getting higher and higher, and the user experience is getting smoother. Many Web applications are as streamlined as local applications. More importantly, web applications are cross-platform, enabling one-time development and running everywhere. Compared with native applications, web applications have a lower development threshold. The deployment and update of web applications is also more convenient and faster than native applications. Based on the above advantages, support for Web applications is the development trend of each platform.

目前Web应用的发展现状是在PC端,各大浏览器的都提供Web应用的运行能力,可以满足用户的诸多需求,但是在嵌入式设备上,譬如手机,平板电脑,机顶盒等,对Web应用的支持程度还不够完善。At present, the development status of Web applications is on the PC side. All major browsers provide the ability to run Web applications, which can meet many needs of users. However, on embedded devices, such as mobile phones, tablets, and set-top boxes, Web applications cannot The level of support is not perfect.

目前的手机、平板电脑、机顶盒中,大多采用Android系统,Android系统中提供了WebView组件,该组件为轻量级的浏览器组件,可以用来解析渲染页面,但是不足以支持Web应用的使用。Most of the current mobile phones, tablet computers, and set-top boxes use the Android system. The Android system provides the WebView component. This component is a lightweight browser component that can be used to parse and render pages, but it is not enough to support the use of Web applications.

发明内容Contents of the invention

本发明的目的是为了解决现有技术存在的上述不足,提供一种通过浏览器组件,增量式地、以较小的代价完成对Web应用的支持,适合嵌入式设备中存储,系统资源受限等情况,实现可以在移动端支持Web应用的方法。The purpose of the present invention is to solve the above-mentioned deficiencies existing in the prior art, and to provide a browser component that incrementally completes support for Web applications at a relatively small cost, which is suitable for storage in embedded devices, and system resources are limited by In limited cases, implement a method that can support Web applications on the mobile terminal.

为实现上述目的,本发明提供了一种应用程序的管理方法,该方法包括:In order to achieve the above object, the present invention provides a method for managing application programs, the method comprising:

通过浏览器组件载入应用商店的页面;Load the page of the application store through the browser component;

当所述浏览器组件接收到应用程序的下载请求时,向所述应用商店发送所述应用程序的下载请求,以获取所述应用程序的下载路径;When the browser component receives the download request of the application program, send the download request of the application program to the application store, so as to obtain the download path of the application program;

根据所述应用程序的下载路径,下载所述应用程序文件;downloading the application program file according to the download path of the application program;

对所述应用程序进行管理。The application is managed.

优选地,所述根据所述应用程序的下载路径,下载所述应用程序文件的步骤包括:Preferably, the step of downloading the application program file according to the download path of the application program includes:

对所述应用程序的签名进行验证;verify the signature of said application;

当验证成功时,下载所述应用程序的安装包,并通过解压所述安装包,获得所述应用程序文件。When the verification is successful, download the installation package of the application program, and obtain the application program file by decompressing the installation package.

可选地,所述对所述应用程序进行管理的步骤包括:安装所述应用程序步骤,该步骤具体为:Optionally, the step of managing the application includes: installing the application, specifically:

解析所述应用程序的配置文件,获取所述应用程序信息;Analyzing the configuration file of the application program to obtain the application program information;

将所述应用程序信息进行注册。Register the application program information.

可选地,所述对所述应用程序进行管理的步骤包括:卸载所述应用程序步骤,该步骤具体为:Optionally, the step of managing the application includes: uninstalling the application, specifically:

判断所述应用程序是否安装,若所述应用程序已安装,则进一步判断所述应用程序是否正在运行,若所述应用程序正在运行,则停止所述应用程序;Judging whether the application is installed, if the application is installed, further judging whether the application is running, if the application is running, stopping the application;

删除所述应用程序文件;delete said application files;

删除所述应用程序的注册信息。Delete the registration information of the application in question.

可选地,所述对所述应用程序进行管理的步骤包括:更新所述应用程序步骤,该步骤具体为:Optionally, the step of managing the application program includes: a step of updating the application program, which step is specifically:

从所述应用商店获取所述应用程序的版本信息;Obtaining version information of the application program from the application store;

通过将本地应用程序的版本信息与所述应用程序在所述应用商店的版本信息进行比较,确定所述应用程序是否有可更新的版本;determining whether there is an updatable version of the application by comparing the version information of the local application with the version information of the application in the application store;

若所述应用程序有更新的版本,则下载新版本的应用程序,进行安装;If the application program has a newer version, then download the application program of the new version and install it;

安装完成,更新所述应用程序的注册信息。After the installation is complete, the registration information of the application program is updated.

优选地,所述对所述应用程序进行管理的步骤包括:管理所述应用程序的启动、暂停、恢复或终止操作。Preferably, the step of managing the application program includes: managing the operation of starting, suspending, resuming or terminating the application program.

优选地,所述应用程序包含应用的元信息,所述元信息为应用的ID、图标、名称、版本号、更新时间、应用简介以及安装包路径。Preferably, the application program includes meta information of the application, and the meta information is the application ID, icon, name, version number, update time, application profile and installation package path.

优选地,所述应用程序的安装包,包括应用的数据和资源。Preferably, the installation package of the application includes application data and resources.

优选地,所述浏览器组件包括:WebView组件。Preferably, the browser component includes: a WebView component.

优选地,所述应用程序包括:Web应用程序,所述Web应用程序采用HTML5开发。Preferably, the application program includes: a Web application program, and the Web application program is developed using HTML5.

本发明根据轻量级的浏览器组件WebView,以增量式地、以较小的代价完成对Web应用的支持,适合嵌入式设备中存储,系统资源受限等情况。实现了应用程序在嵌入式设备中的安装、卸载、更新、启动、终止等操作,极大地提升了用户体验度。According to the light-weight browser component WebView, the invention supports the Web application incrementally and at relatively low cost, and is suitable for storage in an embedded device, limited system resources and the like. Operations such as installation, uninstallation, update, startup, and termination of applications in embedded devices are realized, which greatly improves user experience.

附图说明Description of drawings

图1为本发明实施例提供的一种应用程序的管理方法流程图;FIG. 1 is a flow chart of an application management method provided by an embodiment of the present invention;

图2为本发明实施例提供的另一种应用程序的管理方法流程图;FIG. 2 is a flow chart of another application program management method provided by an embodiment of the present invention;

图3为本发明实施例提供的一种安装应用程序的方法流程图;FIG. 3 is a flow chart of a method for installing an application provided by an embodiment of the present invention;

图4为本发明实施例提供的一种卸载应用程序的方法流程图;FIG. 4 is a flow chart of a method for uninstalling an application provided by an embodiment of the present invention;

图5为本发明实施例提供的一种更新应用程序的方法流程图;FIG. 5 is a flow chart of a method for updating an application program provided by an embodiment of the present invention;

具体实施方式Detailed ways

为使本发明实施例的技术方案以及优点表达的更清楚,下面通过附图和实施例,对本发明的技术方案做进一步的详细描述。In order to express the technical solutions and advantages of the embodiments of the present invention more clearly, the technical solutions of the present invention will be further described in detail below with reference to the drawings and embodiments.

图1为本发明实施例提供的一种应用程序的管理方法流程图,如图1所示,该方法包括:Fig. 1 is a flow chart of a method for managing an application provided by an embodiment of the present invention. As shown in Fig. 1, the method includes:

s101通过浏览器组件载入应用商店的页面;s101 loads the application store page through the browser component;

s102当浏览器组件接收到应用程序的下载请求时,向应用商店发送应用程序的下载请求,以获取应用程序的下载路径;s102 When the browser component receives the download request of the application program, it sends the download request of the application program to the application store to obtain the download path of the application program;

s103根据应用程序的下载路径,下载应用程序文件;s103 downloading the application program file according to the download path of the application program;

s104对应用程序进行管理。s104 manages the application program.

具体地,应用程序包含应用的元信息,元信息为应用的ID、图标、名称、版本号、更新时间、应用简介以及安装包路径。Specifically, the application program includes meta information of the application, and the meta information includes the application ID, icon, name, version number, update time, application introduction and installation package path.

具体地,应用程序的安装包,包括应用的数据和资源。Specifically, the application installation package includes application data and resources.

具体地,浏览器组件包括:WebView组件。Specifically, the browser component includes: a WebView component.

具体地,应用程序包括:Web应用程序,Web应用程序采用HTML5开发。Specifically, the application program includes: a web application program, and the web application program is developed using HTML5.

需要说明的是,本实施例选取在搭载Android系统的机顶盒作为具体平台。在Android系统中,可以选用系统提供的开发框架的WebView作为浏览器组件,提供解析显示页面的能力。Web应用采用HTML5开发,主要的脚本为HTML/JavaScript/CSS。It should be noted that, in this embodiment, a set-top box equipped with an Android system is selected as a specific platform. In the Android system, the WebView of the development framework provided by the system can be selected as a browser component to provide the ability to analyze and display pages. Web applications are developed using HTML5, and the main scripts are HTML/JavaScript/CSS.

本发明根据轻量级的浏览器组件WebView,以增量式地、以较小的代价完成对Web应用的支持,适合嵌入式设备中存储,系统资源受限等情况。实现了应用程序在嵌入式设备中的安装、卸载、更新、启动、终止等操作,极大地提升了用户体验度。According to the light-weight browser component WebView, the invention supports the Web application incrementally and at relatively low cost, and is suitable for storage in an embedded device, limited system resources and the like. Operations such as installation, uninstallation, update, startup, and termination of applications in embedded devices are realized, which greatly improves user experience.

图2为本发明实施例提供的另一种应用程序的管理方法流程图,如图2所示,该方法包括:Fig. 2 is a flow chart of another application program management method provided by an embodiment of the present invention. As shown in Fig. 2, the method includes:

根据应用程序的下载路径,下载应用程序文件的步骤包括:Depending on the download path of the application, the steps to download the application file include:

s201对应用程序的签名进行验证;s201 verifies the signature of the application;

s202当验证成功时,下载应用程序的安装包;s202 When the verification is successful, download the installation package of the application program;

在下载操作中,通过应用商店提供的下载路径来,下载应用程序的安装包,下载到本地的下载路径中。当系统中有SD Card时,优先选择系统的SD Card存储,否则下载到系统的flash中。In the download operation, the installation package of the application program is downloaded through the download path provided by the application store, and downloaded to the local download path. When there is an SD Card in the system, the SD Card of the system is preferred for storage, otherwise it is downloaded to the flash of the system.

s203通过解压安装包,获得应用程序文件。s203 obtains the application program file by decompressing the installation package.

当应用程序的安装包下载完之后,执行解压操作。将应用的配置文件,HTML/JavaScript/CSS脚本以及图片等资源文件解压。After the installation package of the application is downloaded, perform the decompression operation. Decompress resource files such as application configuration files, HTML/JavaScript/CSS scripts, and images.

需要说明的是,当验证不成功时,提示验证错误,不允许安装该应用程序,结束触发下载操作。It should be noted that when the verification is unsuccessful, a verification error is displayed, the application is not allowed to be installed, and the trigger download operation ends.

s101通过浏览器组件载入应用商店的页面;s101 loads the application store page through the browser component;

s102当浏览器组件接收到应用程序的下载请求时,向应用商店发送应用程序的下载请求,以获取应用程序的下载路径;s102 When the browser component receives the download request of the application program, it sends the download request of the application program to the application store to obtain the download path of the application program;

s103根据应用程序的下载路径,下载应用程序文件;s103 downloading the application program file according to the download path of the application program;

s104对应用程序进行管理。s104 manages the application program.

具体地,应用程序包含应用的元信息,元信息为应用的ID、图标、名称、版本号、更新时间、应用简介以及安装包路径。Specifically, the application program includes meta information of the application, and the meta information includes the application ID, icon, name, version number, update time, application introduction and installation package path.

具体地,应用程序的安装包,包括应用的数据和资源。Specifically, the application installation package includes application data and resources.

具体地,浏览器组件包括:WebView组件。Specifically, the browser component includes: a WebView component.

具体地,应用程序包括:Web应用程序,Web应用程序采用HTML5开发。Specifically, the application program includes: a web application program, and the web application program is developed using HTML5.

需要说明的是,本实施例选取在搭载Android系统的机顶盒作为具体平台。在Android系统中,可以选用系统提供的开发框架的WebView作为浏览器组件,提供解析显示页面的能力。Web应用采用HTML5开发,主要的脚本为HTML/JavaScript/CSS。It should be noted that, in this embodiment, a set-top box equipped with an Android system is selected as a specific platform. In the Android system, the WebView of the development framework provided by the system can be selected as a browser component to provide the ability to analyze and display pages. Web applications are developed using HTML5, and the main scripts are HTML/JavaScript/CSS.

图3为本发明实施例提供的一种安装应用程序的方法流程图,如图3所示,该方法包括:FIG. 3 is a flow chart of a method for installing an application provided by an embodiment of the present invention. As shown in FIG. 3, the method includes:

对应用程序进行管理的步骤包括:安装应用程序步骤,该步骤具体为:The steps for managing the application include: installing the application, specifically:

s301解析应用程序的配置文件,获取应用程序信息;s301 parses the configuration file of the application to obtain application information;

s302将应用程序信息进行注册。s302 registers the application program information.

解析应用的配置文件,配置文件可以为xml格式或者json格式。在本实施例中,配置文件为json格式。Parse the configuration file of the application. The configuration file can be in xml format or json format. In this embodiment, the configuration file is in json format.

需要说明的是,配置文件包括:应用名称name,应用描述description,版本号version,链接url,启动页面launch,图标icon,权限permission。例如,一个配置文件可以为manifest.json,其内容为:It should be noted that the configuration file includes: application name name, application description description, version number version, link url, startup page launch, icon icon, permission. For example, a configuration file could be manifest.json with the content:

             

s101通过浏览器组件载入应用商店的页面;s101 loads the application store page through the browser component;

s102当浏览器组件接收到应用程序的下载请求时,向应用商店发送应用程序的下载请求,以获取应用程序的下载路径;s102 When the browser component receives the download request of the application program, it sends the download request of the application program to the application store to obtain the download path of the application program;

s103根据应用程序的下载路径,下载应用程序文件;s103 downloading the application program file according to the download path of the application program;

s104对应用程序进行管理。s104 manages the application program.

具体地,应用程序包含应用的元信息,元信息为应用的ID、图标、名称、版本号、更新时间、应用简介以及安装包路径。Specifically, the application program includes meta information of the application, and the meta information includes the application ID, icon, name, version number, update time, application introduction and installation package path.

具体地,应用程序的安装包,包括应用的数据和资源。Specifically, the application installation package includes application data and resources.

具体地,浏览器组件包括:WebView组件。Specifically, the browser component includes: a WebView component.

具体地,应用程序包括:Web应用程序,Web应用程序采用HTML5开发。Specifically, the application program includes: a web application program, and the web application program is developed using HTML5.

需要说明的是,本实施例选取在搭载Android系统的机顶盒作为具体平台。在Android系统中,可以选用系统提供的开发框架的WebView作为浏览器组件,提供解析显示页面的能力。Web应用采用HTML5开发,主要的脚本为HTML/JavaScript/CSS。It should be noted that, in this embodiment, a set-top box equipped with an Android system is selected as a specific platform. In the Android system, the WebView of the development framework provided by the system can be selected as a browser component to provide the ability to analyze and display pages. Web applications are developed using HTML5, and the main scripts are HTML/JavaScript/CSS.

具体地,根据应用程序的下载路径,下载应用程序文件的步骤包括:Specifically, according to the download path of the application program, the steps of downloading the application program file include:

s201对应用程序的签名进行验证;s201 verifies the signature of the application;

s202当验证成功时,下载应用程序的安装包;s202 When the verification is successful, download the installation package of the application program;

在下载操作中,通过应用商店提供的下载路径来,下载应用程序的安装包,下载到本地的下载路径中。当系统中有SD Card时,优先选择系统的SD Card存储,否则下载到系统的flash中。In the download operation, the installation package of the application program is downloaded through the download path provided by the application store, and downloaded to the local download path. When there is an SD Card in the system, the SD Card of the system is preferred for storage, otherwise it is downloaded to the flash of the system.

s203通过解压安装包,获得应用程序文件。s203 obtains the application program file by decompressing the installation package.

当应用程序安装包下载完之后,执行解压操作。将应用的配置文件,HTML/JavaScript/CSS脚本以及图片等资源文件解压。After the application installation package is downloaded, perform the decompression operation. Decompress resource files such as application configuration files, HTML/JavaScript/CSS scripts, and images.

需要说明的是,当验证不成功时,提示验证错误,不允许安装该应用程序,结束触发下载操作。It should be noted that when the verification is unsuccessful, a verification error is displayed, the application is not allowed to be installed, and the trigger download operation ends.

至此,完成了一个Web应用的下载安装过程,可以将该应用程序显示在用户界面上,用户能够使用刚刚安装的Web应用。当用户点击已经安装好的Web应用时,由WebView来渲染执行Web应用。So far, the download and installation process of a web application is completed, the application program can be displayed on the user interface, and the user can use the newly installed web application. When the user clicks on the installed web application, the web application is rendered and executed by the WebView.

图4为本发明实施例提供的一种卸载应用程序的方法流程图,如图4所示,该方法包括:FIG. 4 is a flow chart of a method for uninstalling an application provided by an embodiment of the present invention. As shown in FIG. 4, the method includes:

对应用程序进行管理的步骤包括:卸载应用程序步骤,该步骤具体为:The steps for managing the application program include: uninstalling the application program step, which specifically includes:

s401判断应用程序是否安装;s401 judges whether the application program is installed;

如果应用程序未安装,进入结束状态。If the application is not installed, enter the end state.

s402若应用程序已安装,则进一步判断应用程序是否正在运行;s402 If the application program has been installed, further determine whether the application program is running;

如果应用程序已安装,则进一步判断应用程序是否正在运行,如果正在运行,停止该应用,如果不在运行,直接进入步骤s404。If the application program has been installed, it is further judged whether the application program is running, if it is running, stop the application, if it is not running, directly go to step s404.

s403若应用程序正在运行,则停止应用程序;s403 If the application program is running, stop the application program;

s404删除应用程序文件;s404 delete application files;

需要说明的是,在找到应用的安装路径,准备删除应用的安装文件时,提醒用户是否需要保留用户数据或资源,根据用户的选择,来删除部分或所有应用数据。It should be noted that when the installation path of the application is found and the installation file of the application is ready to be deleted, the user is reminded whether to keep user data or resources, and some or all of the application data is deleted according to the user's choice.

s405删除应用程序的注册信息。s405 deletes the registration information of the application program.

s101通过浏览器组件载入应用商店的页面;s101 loads the application store page through the browser component;

s102当浏览器组件接收到应用程序的下载请求时,向应用商店发送应用程序的下载请求,以获取应用程序的下载路径;s102 When the browser component receives the download request of the application program, it sends the download request of the application program to the application store to obtain the download path of the application program;

s103根据应用程序的下载路径,下载应用程序文件;s103 downloading the application program file according to the download path of the application program;

s104对应用程序进行管理。s104 manages the application program.

具体地,应用程序包含应用的元信息,元信息为应用的ID、图标、名称、版本号、更新时间、应用简介以及安装包路径。Specifically, the application program includes meta information of the application, and the meta information includes the application ID, icon, name, version number, update time, application introduction and installation package path.

具体地,应用程序的安装包,包括应用的数据和资源。Specifically, the application installation package includes application data and resources.

具体地,浏览器组件包括:WebView组件。Specifically, the browser component includes: a WebView component.

具体地,应用程序包括:Web应用程序,Web应用程序采用HTML5开发。Specifically, the application program includes: a web application program, and the web application program is developed using HTML5.

需要说明的是,本实施例选取在搭载Android系统的机顶盒作为具体平台。在Android系统中,可以选用系统提供的开发框架的WebView作为浏览器组件,提供解析显示页面的能力。Web应用采用HTML5开发,主要的脚本为HTML/JavaScript/CSS。It should be noted that, in this embodiment, a set-top box equipped with an Android system is selected as a specific platform. In the Android system, the WebView of the development framework provided by the system can be selected as a browser component to provide the ability to analyze and display pages. Web applications are developed using HTML5, and the main scripts are HTML/JavaScript/CSS.

具体地,根据应用程序的下载路径,下载应用程序文件的步骤包括:Specifically, according to the download path of the application program, the steps of downloading the application program file include:

s201对应用程序的签名进行验证;s201 verifies the signature of the application;

s202当验证成功时,下载应用程序的安装包;s202 When the verification is successful, download the installation package of the application program;

在下载操作中,通过应用商店提供的下载路径来,下载应用程序的安装包,下载到本地的下载路径中。当系统中有SD Card时,优先选择系统的SD Card存储,否则下载到系统的flash中。In the download operation, the installation package of the application program is downloaded through the download path provided by the application store, and downloaded to the local download path. When there is an SD Card in the system, the SD Card of the system is preferred for storage, otherwise it is downloaded to the flash of the system.

s203通过解压安装包,获得应用程序文件。s203 obtains the application program file by decompressing the installation package.

当应用程序安装包下载完之后,执行解压操作。将应用的配置文件,HTML/JavaScript/CSS脚本以及图片等资源文件解压。After the application installation package is downloaded, perform the decompression operation. Decompress resource files such as application configuration files, HTML/JavaScript/CSS scripts, and images.

需要说明的是,当验证不成功时,提示验证错误,不允许安装该应用程序,结束触发下载操作。It should be noted that when the verification is unsuccessful, a verification error is displayed, the application is not allowed to be installed, and the trigger download operation ends.

可选地,对应用程序进行管理的步骤包括:安装应用程序步骤,该步骤具体为:Optionally, the step of managing the application program includes: a step of installing the application program, specifically, the step is:

s301解析应用程序的配置文件,获取应用程序信息;s301 parses the configuration file of the application to obtain application information;

s302将应用程序信息进行注册。s302 registers the application program information.

解析应用的配置文件,配置文件可以为xml格式或者json格式。在本实施例中,配置文件为json格式。Parse the configuration file of the application. The configuration file can be in xml format or json format. In this embodiment, the configuration file is in json format.

需要说明的是,配置文件包括:应用名称name,应用描述description,版本号version,链接url,启动页面launch,图标icon,权限permission。例如,一个配置文件可以为manifest.json,其内容为:It should be noted that the configuration file includes: application name name, application description description, version number version, link url, startup page launch, icon icon, permission. For example, a configuration file could be manifest.json with the content:

             

             

图5为本发明实施例提供的一种更新应用程序的方法流程图,如图5所示,该方法包括:FIG. 5 is a flow chart of a method for updating an application program provided by an embodiment of the present invention. As shown in FIG. 5, the method includes:

对应用程序进行管理的步骤包括:更新应用程序步骤,该步骤具体为:The steps for managing the application include: updating the application, specifically:

s501从应用商店获取应用程序的版本信息;s501 obtains the version information of the application program from the application store;

版本信息可以用xml或者json形式发布。在本实施例中,将版本信息存放于app_list.json中,存放Web应用的ID和对应版本号,app_list.json脚本文件示例如下:Version information can be published in xml or json format. In this embodiment, the version information is stored in app_list.json, and the ID and corresponding version number of the web application are stored. An example of the app_list.json script file is as follows:

             

             

s502通过将本地应用程序的版本信息与应用程序在应用商店的版本信息进行比较,确定应用程序是否有可更新的版本;s502, by comparing the version information of the local application program with the version information of the application program in the application store, determine whether the application program has an updatable version;

s503若应用程序有更新的版本,则下载新版本的应用程序,进行安装;s503 If the application program has a newer version, download the new version of the application program and install it;

s504安装完成,更新应用程序的注册信息,并刷新页面中的应用信息。s504 After the installation is completed, the registration information of the application program is updated, and the application information on the page is refreshed.

需要说明的是,在本发明实施例中,用户除可以进行手动更新外,还可进行自动更新操作。It should be noted that, in the embodiment of the present invention, in addition to manual updating, the user can also perform automatic updating operations.

s101通过浏览器组件载入应用商店的页面;s101 loads the application store page through the browser component;

s102当浏览器组件接收到应用程序的下载请求时,向应用商店发送应用程序的下载请求,以获取应用程序的下载路径;s102 When the browser component receives the download request of the application program, it sends the download request of the application program to the application store to obtain the download path of the application program;

s103根据应用程序的下载路径,下载应用程序文件;s103 downloading the application program file according to the download path of the application program;

s104对应用程序进行管理。s104 manages the application program.

具体地,应用程序包含应用的元信息,元信息为应用的ID、图标、名称、版本号、更新时间、应用简介以及安装包路径。Specifically, the application program includes meta information of the application, and the meta information includes the application ID, icon, name, version number, update time, application introduction and installation package path.

具体地,应用程序的安装包,包括应用的数据和资源。Specifically, the application installation package includes application data and resources.

具体地,浏览器组件包括:WebView组件。Specifically, the browser component includes: a WebView component.

具体地,应用程序包括:Web应用程序,Web应用程序采用HTML5开发。Specifically, the application program includes: a web application program, and the web application program is developed using HTML5.

需要说明的是,本实施例选取在搭载Android系统的机顶盒作为具体平台。在Android系统中,可以选用系统提供的开发框架的WebView作为浏览器组件,提供解析显示页面的能力。Web应用采用HTML5开发,主要的脚本为HTML/JavaScript/CSS。It should be noted that, in this embodiment, a set-top box equipped with an Android system is selected as a specific platform. In the Android system, the WebView of the development framework provided by the system can be selected as a browser component to provide the ability to analyze and display pages. Web applications are developed using HTML5, and the main scripts are HTML/JavaScript/CSS.

具体地,根据应用程序的下载路径,下载应用程序文件的步骤包括:Specifically, according to the download path of the application program, the steps of downloading the application program file include:

s201对应用程序的签名进行验证;s201 verifies the signature of the application;

s202当验证成功时,下载应用程序的安装包;s202 When the verification is successful, download the installation package of the application program;

在下载操作中,通过应用商店提供的下载路径来,下载应用程序的安装包,下载到本地的下载路径中。当系统中有SD Card时,优先选择系统的SD Card存储,否则下载到系统的flash中。In the download operation, the installation package of the application program is downloaded through the download path provided by the application store, and downloaded to the local download path. When there is an SD Card in the system, the SD Card of the system is preferred for storage, otherwise it is downloaded to the flash of the system.

s203通过解压安装包,获得应用程序文件。s203 obtains the application program file by decompressing the installation package.

当应用程序安装包下载完之后,执行解压操作。将应用的配置文件,HTML/JavaScript/CSS脚本以及图片等资源文件解压。After the application installation package is downloaded, perform the decompression operation. Decompress resource files such as application configuration files, HTML/JavaScript/CSS scripts, and images.

需要说明的是,当验证不成功时,提示验证错误,不允许安装该应用程序,结束触发下载操作。It should be noted that, when the verification is unsuccessful, a verification error is displayed, the application is not allowed to be installed, and the trigger download operation ends.

可选地,对应用程序进行管理的步骤包括:安装应用程序步骤,该步骤具体为:Optionally, the step of managing the application program includes: a step of installing the application program, specifically, the step is:

s301解析应用程序的配置文件,获取应用程序信息;s301 parses the configuration file of the application to obtain application information;

s302将应用程序信息进行注册。s302 registers the application program information.

解析应用的配置文件,配置文件可以为xml格式或者json格式。在本实施例中,配置文件为json格式。Parse the configuration file of the application. The configuration file can be in xml format or json format. In this embodiment, the configuration file is in json format.

需要说明的是,配置文件包括:应用名称name,应用描述description,版本号version,链接url,启动页面launch,图标icon,权限permission。例如,一个配置文件可以为manifest.json,其内容为:It should be noted that the configuration file includes: application name name, application description description, version number version, link url, startup page launch, icon icon, permission. For example, a configuration file could be manifest.json with the content:

             

             

可选地,对应用程序进行管理的步骤包括:卸载应用程序步骤,该步骤具体为:Optionally, the step of managing the application program includes: a step of uninstalling the application program, specifically, the step is:

s401判断应用程序是否安装;s401 judges whether the application program is installed;

如果应用程序未安装,进入结束状态。If the application is not installed, enter the end state.

s402若应用程序已安装,则进一步判断应用程序是否正在运行;s402 If the application program has been installed, further determine whether the application program is running;

如果应用程序已安装,则进一步判断应用程序是否正在运行,如果正在运行,停止该应用,如果不在运行,直接进入步骤s404。If the application program has been installed, it is further judged whether the application program is running, if it is running, stop the application, if it is not running, directly go to step s404.

s403若应用程序正在运行,则停止应用程序;s403 If the application program is running, stop the application program;

s404删除应用程序文件;s404 delete application files;

需要说明的是,在找到应用的安装路径,准备删除应用的安装文件时,提醒用户是否需要保留用户数据或资源,根据用户的选择,来删除部分或所有应用数据。It should be noted that when the installation path of the application is found and the installation file of the application is ready to be deleted, the user is reminded whether to keep user data or resources, and some or all of the application data is deleted according to the user's choice.

s405删除应用程序的注册信息。s405 deletes the registration information of the application program.

本发明根据轻量级的浏览器组件WebView,以增量式地、以较小的代价完成对Web应用的支持,适合嵌入式设备中存储,系统资源受限等情况。实现了应用程序在嵌入式设备中的安装、卸载、更新、启动、终止等操作,极大地提升了用户体验度。According to the light-weight browser component WebView, the invention supports the Web application incrementally and at relatively low cost, and is suitable for storage in an embedded device, limited system resources and the like. Operations such as installation, uninstallation, update, startup, and termination of applications in embedded devices are realized, which greatly improves user experience.

以上所述的具体实施方式,对本发明的目的、技术方案和有益效果进行了进一步详细说明,所应理解的是,以上所述仅为本发明的具体实施方式而已,并不用于限定本发明的保护范围,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The specific embodiments described above have further described the purpose, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above descriptions are only specific embodiments of the present invention and are not intended to limit the scope of the present invention. Protection scope, within the spirit and principles of the present invention, any modification, equivalent replacement, improvement, etc., shall be included in the protection scope of the present invention.

Claims (10)

1. a management method for application program, is characterized in that, the method comprises:
The page in application shop is loaded into by browser component;
When described browser component receives the download request of application program, send the download request of described application program to described application shop, to obtain the download path of described application program;
According to the download path of described application program, download described application file;
Described application program is managed.
2. method according to claim 1, is characterized in that, the described download path according to described application program, and the step downloading described application file comprises:
The signature of described application program is verified;
When the authentication succeeds, download the installation kit of described application program, and by installation kit described in decompress(ion), obtain described application file.
3. method according to claim 1 and 2, is characterized in that, describedly comprises the step that described application program manages: install described application program step, this step is specially:
Resolve the configuration file of described application program, obtain described application information;
Described application information is registered.
4. the method according to claim 1,2 or 3, is characterized in that, describedly comprises the step that described application program manages: unload described application program step, this step is specially:
Judge whether described application program installs, if described application program is installed, then judge whether described application program is run further, if described application program is run, then stop described application program;
Delete described application file;
Delete the log-on message of described application program.
5. method according to claim 1 and 2, is characterized in that, describedly comprises the step that described application program manages: upgrade described application program step, this step is specially:
The version information of described application program is obtained from described application shop;
By the version information of local application and described application program being compared at the version information in described application shop, determine whether described application program has renewable version;
If described application program has the version of renewal, then download the application program of redaction, install;
Installation, upgrades the log-on message of described application program.
6. method according to claim 1 and 2, is characterized in that, describedly comprises the step that described application program manages: manage the startup of described application program, time-out, recovery or terminating operation.
7. method according to claim 1 and 2, is characterized in that, described application program comprises the metamessage of application, and described metamessage is the ID of application, icon, title, version number, update time, application brief introduction and installation kit path.
8. method according to claim 2, is characterized in that, the installation kit of described application program, comprises data and the resource of application.
9. method according to claim 1, is characterized in that, described browser component comprises: WebView assembly.
10. method according to claim 1, is characterized in that, described application program comprises: web application, and described web application adopts HTML5 exploitation.
CN201510172597.2A 2015-04-13 2015-04-13 A kind of management method of application program Active CN104809011B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510172597.2A CN104809011B (en) 2015-04-13 2015-04-13 A kind of management method of application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510172597.2A CN104809011B (en) 2015-04-13 2015-04-13 A kind of management method of application program

Publications (2)

Publication Number Publication Date
CN104809011A true CN104809011A (en) 2015-07-29
CN104809011B CN104809011B (en) 2018-04-27

Family

ID=53693862

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510172597.2A Active CN104809011B (en) 2015-04-13 2015-04-13 A kind of management method of application program

Country Status (1)

Country Link
CN (1) CN104809011B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106257418A (en) * 2015-06-22 2016-12-28 奥多比公司 For by using assistance application to evaluate the technology of application
CN106713460A (en) * 2016-12-26 2017-05-24 武汉斗鱼网络科技有限公司 Version control method and system for flash application
CN106959968A (en) * 2016-01-12 2017-07-18 广州市动景计算机科技有限公司 Website icon promotion method and device
CN107809470A (en) * 2017-10-12 2018-03-16 北京京东尚科信息技术有限公司 The method and apparatus of application program automatically dispose
CN110502245A (en) * 2018-05-16 2019-11-26 华为技术有限公司 Data processing method, terminal, server and application and development equipment
CN112153064A (en) * 2020-09-28 2020-12-29 上海缓存命中科技有限公司 Application store and method of use thereof

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102638572A (en) * 2012-03-19 2012-08-15 北京邮电大学 Short-message sending service system based on Web Element mechanism and operating method thereof
US20130332318A1 (en) * 2012-06-10 2013-12-12 Apple Inc. User Interface for In-Browser Product Viewing and Purchasing
CN104158896A (en) * 2014-08-22 2014-11-19 百度在线网络技术(北京)有限公司 Application recommendation method and system as well as application store server

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102638572A (en) * 2012-03-19 2012-08-15 北京邮电大学 Short-message sending service system based on Web Element mechanism and operating method thereof
US20130332318A1 (en) * 2012-06-10 2013-12-12 Apple Inc. User Interface for In-Browser Product Viewing and Purchasing
CN104158896A (en) * 2014-08-22 2014-11-19 百度在线网络技术(北京)有限公司 Application recommendation method and system as well as application store server

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106257418A (en) * 2015-06-22 2016-12-28 奥多比公司 For by using assistance application to evaluate the technology of application
CN106257418B (en) * 2015-06-22 2021-01-22 奥多比公司 Techniques for evaluating an application by using an auxiliary application
CN106959968A (en) * 2016-01-12 2017-07-18 广州市动景计算机科技有限公司 Website icon promotion method and device
CN106713460A (en) * 2016-12-26 2017-05-24 武汉斗鱼网络科技有限公司 Version control method and system for flash application
CN106713460B (en) * 2016-12-26 2019-12-10 武汉斗鱼网络科技有限公司 Version control method and system for flash application
CN107809470A (en) * 2017-10-12 2018-03-16 北京京东尚科信息技术有限公司 The method and apparatus of application program automatically dispose
CN110502245A (en) * 2018-05-16 2019-11-26 华为技术有限公司 Data processing method, terminal, server and application and development equipment
CN112153064A (en) * 2020-09-28 2020-12-29 上海缓存命中科技有限公司 Application store and method of use thereof

Also Published As

Publication number Publication date
CN104809011B (en) 2018-04-27

Similar Documents

Publication Publication Date Title
CN104809011B (en) A kind of management method of application program
US9032383B2 (en) Automatically updating applications on a client's device without interrupting the user's experience
EP2806357A1 (en) Method and communication device for updating a web application
CN102622241B (en) A kind of method for upgrading software and device
CN106445583A (en) Page display method, equipment and system
CN107256161B (en) Client upgrading method based on electron technology
WO2017071207A1 (en) Application installation method, corresponding apparatus, and application installation system
KR101541112B1 (en) FOTA system and the method
CN102945182B (en) Application program update method and apparatus
CN105786538A (en) Software upgrading method and device based on Android system
CN103095838A (en) Method for upgrading Android smartphone software through downloading incremental upgrade package
KR20190005152A (en) Mobile terminal application update method and apparatus
US20160170735A1 (en) Operating system updating method by using a checklist
WO2011088714A1 (en) Method, device and system for running application
CN106686200B (en) Mobile application program updating method, mobile terminal and updating system
CN105808282A (en) Method and device for updating webpage contents of application program
CN107015870A (en) Realize method, device and the electronic equipment of web page and locally applied communication
CN104216719A (en) Method and device for updating android system
CN105530130A (en) Method and device for upgrading Over-The-Air downloading technology
CN105740027A (en) Application program updating method and device
CN101980503B (en) Method, device and system for managing widget application
CN105786636B (en) System repair method and device
KR101198583B1 (en) Apparatus of multimedia middle ware using metadata and management method and storing medium thereof
CN106293790B (en) application program upgrading method and device based on Firefox operating system
CN106033364B (en) A method and system for upgrading a web application

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate 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: 20210804

Address after: Room 1601, 16th floor, East Tower, Ximei building, No. 6, Changchun Road, high tech Industrial Development Zone, Zhengzhou, Henan 450001

Patentee after: Zhengzhou xinrand Network Technology Co.,Ltd.

Address before: 100190, No. 21 West Fourth Ring Road, Beijing, Haidian District

Patentee before: INSTITUTE OF ACOUSTICS, CHINESE ACADEMY OF SCIENCES