技术领域technical field
本发明涉及通信领域,尤其涉及一种应用调用方法及用户终端。The present invention relates to the communication field, in particular to an application calling method and a user terminal.
背景技术Background technique
Web应用是指使用浏览器支持的语言开发的、运行于各种浏览器和互联网络上的、可以完成至少一个特定功能的应用,如:在线网络游戏、网页QQ等。原生应用是指针对特定的操作系统的开发接口和该操作系统支持的开发语言开发的,需要下载到用户终端,并进行安装后才能够供用户使用的,运行于用户终端的应用。Web applications refer to applications that are developed using languages supported by browsers, run on various browsers and the Internet, and can perform at least one specific function, such as: online online games, web QQ, etc. A native application refers to an application developed for a specific operating system development interface and a development language supported by the operating system, which needs to be downloaded to the user terminal and installed before it can be used by the user, and runs on the user terminal.
为了实现不同应用的功能的集成,业界提出了Web Intents技术和AndroidIntents技术。Web Intents技术提供了一种Web应用集成机制,Android Intents技术提供了一种Android系统原生应用的集成机制。具体的,当应用A处理一个任务时,若应用A不具备该任务对应的服务类别(如分享、编辑、发送等)或者处理该任务对应的数据类型的功能时,则应用A可以调用应用B,以使应用B处理该任务,并从应用B获取处理结果。应用B为具备该任务对应的服务类别或者处理该任务对应的数据类型的功能的应用。其中,应用A为Web应用,应用B为Web应用;或者应用A为原生应用,应用B为原生应用。In order to realize the integration of functions of different applications, the industry proposes Web Intents technology and Android Intents technology. Web Intents technology provides an integration mechanism for Web applications, and Android Intents technology provides an integration mechanism for native applications in the Android system. Specifically, when application A processes a task, if application A does not have the service category corresponding to the task (such as sharing, editing, sending, etc.) or the function of processing the data type corresponding to the task, application A can call application B , so that application B processes the task and obtains the processing result from application B. Application B is an application that has the service category corresponding to the task or the function of processing the data type corresponding to the task. Wherein, application A is a web application, and application B is a web application; or application A is a native application, and application B is a native application.
现有技术中,由于Web Intents技术提供的集成机制为Web应用之间的集成的机制,Android Intents技术提供的集成机制为Android系统原生应用之间的集成机制。因此,用户在使用Web应用的过程中,Web应用可以通过Web应用调用其他Web应用的方式实现对Web应用功能的集成,无法通过调用原生应用的方式实现对原生应用功能的集成。In the prior art, since the integration mechanism provided by the Web Intents technology is an integration mechanism between Web applications, the integration mechanism provided by the Android Intents technology is an integration mechanism between native applications of the Android system. Therefore, when a user uses a web application, the web application can integrate the functions of the web application by calling other web applications, but cannot integrate the functions of the native application by calling the native application.
发明内容Contents of the invention
本发明的实施例提供一种应用调用方法及用户终端,可以实现Web应用对原生应用的调用。Embodiments of the present invention provide an application invocation method and a user terminal, which can realize invocation of a native application by a Web application.
本发明实施例的第一方面,提供一种应用调用方法,包括:According to the first aspect of the embodiments of the present invention, an application invocation method is provided, including:
获取第一Web应用生成的第二Web应用的调用信息,所述第二Web应用的调用信息包括所要调用的第二Web应用的服务类型和/或待处理数据类型;根据所述第二Web应用的调用信息,采用预设调用策略调用原生应用处理待处理数据;获取所述原生应用处理后的数据结果,并将所述处理后的数据发送给所述第一Web应用。Obtaining invocation information of a second Web application generated by the first Web application, where the invocation information of the second Web application includes the service type and/or data type to be invoked of the second Web application; according to the second Web application call information, using a preset calling strategy to call the native application to process the data to be processed; obtain the data result processed by the native application, and send the processed data to the first web application.
在结合第一方面的第一种可能的实现方式中,所述根据所述第二Web应用的调用信息,采用预设调用策略调用原生应用处理待处理数据,具体为:In a first possible implementation in combination with the first aspect, according to the invocation information of the second Web application, the preset invocation policy is used to invoke the native application to process the data to be processed, specifically:
根据所述第二Web应用的调用信息生成原生应用的调用信息,所述原生应用的调用信息中包含所要调用的原生应用的服务类型和/或待处理数据类型;浏览器根据所述服务类型和/或待处理数据类型在预配置的原生应用中查找与所述原生应用调用信息对应的原生应用;并在查找到与所述原生应用的调用信息对应的原生应用后,将获取到的来自第一Web应用的待处理数据转发给所述查找到的原生应用,以便所述查找到的原生应用完成对所述待处理数据的处理。Generate native application calling information according to the calling information of the second Web application, the calling information of the native application includes the service type and/or data type to be called of the native application; the browser according to the service type and /or the type of data to be processed is searched for the native application corresponding to the calling information of the native application in the pre-configured native application; and after finding the native application corresponding to the calling information of the native application, the acquired data from the first The data to be processed of a web application is forwarded to the found native application, so that the found native application completes the processing of the data to be processed.
在结合第一方面的第一种可能基础上的第二种可能的实现方式中,所述预设调用策略还包括,在所述根据所述第二Web应用的调用信息生成原生应用调用信息之前,还包括下述判断条件中的任一项:In a second possible implementation manner based on the first possibility in combination with the first aspect, the preset invocation strategy further includes, before generating native application invocation information according to the invocation information of the second Web application , including any of the following judgment conditions:
判断是否能够访问对应于所述第二Web应用的调用信息的第二Web应用,并在判断结果为无法访问对应于所述第二Web应用的调用信息的第二Web应用时,根据所述第二Web应用的调用信息生成原生应用调用信息;或者,judging whether it is possible to access the second web application corresponding to the calling information of the second web application, and when the judgment result is that the second web application corresponding to the calling information of the second web application cannot be accessed, according to the first 2. The invocation information of the Web application generates the invocation information of the native application; or,
获取到第二Web应用的调用信息所对应的第二Web应用的反馈信息,所述反馈信息表明第二Web应用的功能不足以处理待处理数据时;则根据所述第二Web应用的调用信息生成原生应用调用信息;或者,When the feedback information of the second Web application corresponding to the call information of the second Web application is obtained, the feedback information indicates that the function of the second Web application is not enough to process the data to be processed; then according to the call information of the second Web application Generate native application call information; or,
根据第二Web应用的调用信息找到了对应的第二Web应用,并根据预设调用策略,根据所述第二Web应用的调用信息生成原生应用调用信息。The corresponding second Web application is found according to the calling information of the second Web application, and the native application calling information is generated according to the calling information of the second Web application according to the preset calling policy.
在结合第一方面的第一种可能或者结合第一方面的第二种可能基础上的第三种可能的实现方式中,所述在预配置的原生应用中查找与所述原生应用调用信息对应的原生应用,还包括:In a third possible implementation based on the first possibility combined with the first aspect or the second possibility combined with the first aspect, the search in the preconfigured native application corresponds to the native application calling information. native apps, including:
统计所述查找到的原生应用的数量;若所述数量大于1,则生成原生应用列表,所述原生应用列表包括所有根据所述服务类型和/或待处理数据类型查找到的原生应用;向用户显示所述原生应用列表;响应于所述用户在原生应用列表中的选择操作,调用被选择的原生应用处理所述待处理数据。Count the number of native applications found; if the number is greater than 1, generate a list of native applications, the list of native applications includes all native applications found according to the service type and/or data type to be processed; The user displays the native application list; in response to the user's selection operation in the native application list, the selected native application is invoked to process the data to be processed.
在结合第一方面的第三种可能基础上的第四种可能实现方式,其特征在于,所述原生应用列表中包括原生应用的描述信息,所述原生应用的描述信息中包含所述满足所述预设调用策略的原生应用的应用名称、应用标识、应用图标中的至少一项。In the fourth possible implementation based on the third possibility in combination with the first aspect, it is characterized in that the native application list includes description information of the native application, and the description information of the native application includes the At least one of the application name, application identification, and application icon of the native application of the preset invocation strategy.
在上述第一方面的上述几种可能的实现方式中任一一种基础上的第五种可能的实现方式,其特征在于,若统计所述查找到的原生应用的数量等于1,则直接调用所述满足所述预设调用策略的原生应用处理所述待处理数据。A fifth possible implementation based on any one of the above-mentioned possible implementations of the first aspect above, is characterized in that if the number of native applications found in the statistics is equal to 1, then directly call The native application that satisfies the preset call policy processes the data to be processed.
在结合第一方面或者上述第一方面的上述几种可能的实现方式中任一一种基础上的第六种可能的实现方式中,其特征在于,调用所述原生应用处理所述待处理数据,获取处理后的数据,具体包括:In a sixth possible implementation based on the first aspect or any one of the above-mentioned possible implementations of the first aspect, it is characterized in that calling the native application to process the data to be processed , to obtain the processed data, including:
通过请求对象发送接口向原生应用所在系统发送原生应用调用请求,并通过回调接口等待接收所述原生应用处理结果。Send a native application call request to the system where the native application is located through the request object sending interface, and wait to receive the processing result of the native application through the callback interface.
在结合上述第一方面的上述几种可能的实现方式中任一一种基础上的第七种可能的实现方式中,在所述根据所述第二Web应用的调用信息生成原生应用调用信息之前,所述方法还包括:In a seventh possible implementation based on any one of the above-mentioned possible implementations in combination with the above-mentioned first aspect, before generating the native application invocation information according to the invocation information of the second Web application , the method also includes:
查询所述第二Web应用所在终端是否已授权所述原生应用的调用权限;所述根据所述第二Web应用的调用信息生成原生应用调用信息具体为:若已授权所述调用权限,则根据所述第二Web应用的调用信息生成所述原生应用调用信息。Querying whether the terminal where the second Web application is located has authorized the invocation authority of the native application; the generating of the invocation information of the native application according to the invocation information of the second Web application is specifically: if the invocation authority has been authorized, then according to The calling information of the second Web application generates the calling information of the native application.
本发明实施例的第二方面,还提供一种应用调用装置,包括:According to the second aspect of the embodiments of the present invention, there is also provided an application calling device, including:
获取单元,用于获取Web应用生成的第二Web应用的调用信息,所述第二Web应用的调用信息中包括Web应用的服务类型和/或待处理数据类型;处理单元,用于根据所述获取单元获取的所述第二Web应用的调用信息,采用预设调用策略调用原生应用处理所述待处理数据;返回单元,用于获取处理单元处理后的数据结果,并将所述处理后的数据结果返回至所述Web应用。The obtaining unit is configured to obtain the invocation information of the second Web application generated by the Web application, the invocation information of the second Web application includes the service type and/or the data type to be processed of the Web application; the processing unit is configured to The calling information of the second Web application obtained by the obtaining unit uses a preset calling strategy to call the native application to process the data to be processed; the returning unit is used to obtain the data result processed by the processing unit, and transfer the processed data Data results are returned to the web application.
在结合第二方面的第一种可能的实现方式中,所述处理单元,还包括:In a first possible implementation manner in combination with the second aspect, the processing unit further includes:
提取子单元,用于从所述第二Web应用的调用信息中除了提取服务类型和/或待处理数据类型外,还提取待处理的数据;第一生成子单元,用于根据所述第二Web应用的调用信息生成原生应用调用信息,所述原生应用调用信息中包含所要调用的原生应用的服务类型和/或待处理数据类型;查找子单元,用于根据所述第一生成子单元生成的所述原生应用调用信息在预配置的原生应用中查找与所述原生应用调用信息对应的原生应用;第一调用子单元,用于调用所述查找到的原生应用处理所述待处理数据。The extraction subunit is used to extract the data to be processed in addition to the service type and/or the data type to be processed from the invocation information of the second Web application; the first generation subunit is used to extract the data to be processed according to the second Web application The calling information of the Web application generates the native application calling information, and the native application calling information includes the service type and/or the data type to be processed of the native application to be called; the search subunit is used to generate according to the first generating subunit According to the native application calling information, search for a native application corresponding to the native application calling information in the pre-configured native applications; the first calling subunit is used to call the found native application to process the data to be processed.
在结合第二方面的第一种可能的实现方式基础上的第二种可能的实现方式,所述第一调用子单元,包括:In a second possible implementation manner based on the first possible implementation manner of the second aspect, the first calling subunit includes:
发送子单元,用于通过请求对象发送接口向原生应用所在的系统发送原生应用调用请求;接收子单元,用于通过回调接口等待所述原生应用的处理结果。The sending subunit is used to send the native application call request to the system where the native application is located through the request object sending interface; the receiving subunit is used to wait for the processing result of the native application through the callback interface.
在结合第二方面的第一种可能或第二种可能的实现方式基础上的第三种可能的实现方式,所述处理单元,还包括:In a third possible implementation manner based on the combination of the first possible implementation manner or the second possible implementation manner of the second aspect, the processing unit further includes:
第二生成子单元,用于根据所述查找子单元查找到的一个或多个原生应用生成原生应用列表,所述原生应用列表中包括原生应用的描述信息,所述原生应用的描述信息中包含所述满足所述预设调用策略的原生应用的应用名称、应用标识、应用图标中的至少一项。The second generating subunit is configured to generate a native application list according to one or more native applications found by the searching subunit, the native application list includes the description information of the native application, and the description information of the native application includes At least one of an application name, an application identifier, and an application icon of the native application satisfying the preset calling strategy.
在结合第二方面的上述几种可能的实现方式基础上的第四种可能的实现方式,所述处理单元,还包括:In a fourth possible implementation manner based on the combination of the foregoing several possible implementation manners of the second aspect, the processing unit further includes:
查询单元,用于在所述第一生成子单元根据所述第二Web应用的调用信息生成所述原生应用调用信息之前,查询用户是否已授权所述原生应用的调用权限;A query unit, configured to query whether the user has authorized the calling authority of the native application before the first generating subunit generates the calling information of the native application according to the calling information of the second Web application;
所述第一生成子单元,还用于若已授权所述调用权限,则根据所述第二Web应用的调用信息生成所述原生应用调用信息。The first generation subunit is further configured to generate the native application invocation information according to the invocation information of the second Web application if the invocation authority has been authorized.
本发明实施例提供的应用调用方法及用户终端,响应于用户的触发,获取第二Web应用调用信息,第二Web应用调用信息包括第二Web应用的服务类型和/或待处理数据类型,然后根据第二Web应用的调用信息采用预设调用策略调用原生应用处理待处理数据,获取处理后的数据,并将处理后的数据返回至第一Web应用。与现有技术中,Web应用仅可以调用其他Web应用处理待处理数据相比,本发明可以实现Web应用对原生应用的调用。The application invocation method and the user terminal provided by the embodiments of the present invention acquire the second Web application invocation information in response to the user's trigger, the second Web application invocation information includes the service type and/or the data type to be processed of the second Web application, and then According to the calling information of the second web application, the preset calling strategy is used to call the native application to process the data to be processed, obtain the processed data, and return the processed data to the first web application. Compared with the prior art, where a Web application can only call other Web applications to process data to be processed, the present invention can realize calling a native application from a Web application.
附图说明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. For those skilled in the art, other drawings can also be obtained according to these drawings without any creative effort.
图1为本发明实施例1中的应用调用方法流程图;FIG. 1 is a flowchart of an application calling method in Embodiment 1 of the present invention;
图2为本发明实施例2中的应用调用方法流程图;FIG. 2 is a flow chart of the application calling method in Embodiment 2 of the present invention;
图3为本发明实施例3中的一种用户终端的组成示意图;FIG. 3 is a schematic diagram of the composition of a user terminal in Embodiment 3 of the present invention;
图4为本发明实施例3中的另一种用户终端的组成示意图;FIG. 4 is a schematic composition diagram of another user terminal in Embodiment 3 of the present invention;
图5为本发明实施例3中的另一种用户终端的组成示意图;FIG. 5 is a schematic composition diagram of another user terminal in Embodiment 3 of the present invention;
图6为本发明实施例4中的一种用户终端的组成示意图。FIG. 6 is a schematic diagram of the composition of a user terminal in Embodiment 4 of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。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.
实施例1Example 1
本发明实施例提供一种应用调用方法,如图1所示,包括:An embodiment of the present invention provides an application calling method, as shown in FIG. 1 , including:
101、获取第一Web应用生成的第二Web应用的调用信息,所述第二Web应用的调用信息包括所要调用的第二Web应用的服务类型和/或待处理数据类型。101. Acquire invocation information of a second Web application generated by a first Web application, where the invocation information of the second Web application includes a service type and/or a data type to be invoked of the second Web application to be invoked.
具体的,第一Web应用和第二Web应用都属于Web应用,而Web应用是指使用浏览器支持的语言开发的、运行于各种浏览器和互联网络上的、可以完成至少一个特定功能的应用;原生应用是指针对特定的操作系统的开发接口和该操作系统支持的开发语言开发的,需要下载到用户终端,并进行安装,运行于用户终端的应用。Specifically, both the first web application and the second web application belong to web applications, and a web application refers to a web application that is developed using a language supported by the browser, runs on various browsers and the Internet, and can complete at least one specific function Application; native application refers to an application developed for a specific operating system development interface and a development language supported by the operating system, which needs to be downloaded to the user terminal, installed, and run on the user terminal.
与原生应用相比,Web应用有如下优点:Web应用具有跨平台、跨终端特性,技术人员进行一次编码,开发出一个Web应用后,该Web应用就可以在各个平台或终端上运行,很大程度上降低了开发成本;Web应用运行于浏览器和互联网络上,不需要为具体的用户终端定制版本,因此Web应用有更为方便的功能升级特性;Web应用的数据保存在网络侧服务器上,数据安全性和可靠性相比原生应用的更高。Compared with native applications, Web applications have the following advantages: Web applications have cross-platform and cross-terminal characteristics. After a technician codes once and develops a Web application, the Web application can run on various platforms or terminals. Reduce the development cost to a certain extent; Web applications run on browsers and the Internet, and do not need to customize versions for specific user terminals, so Web applications have more convenient function upgrade features; Web application data is stored on the network side server , data security and reliability are higher than those of native applications.
但是,Web应用也存在一些问题,例如,由于Web应用受限于现有的开发语言,Web应用的性能和用户体验有待提升;由于Web应用运行于浏览器和互联网络上,因此,Web应用不能支持离线功能,即当网络中断服务时Web应用状态对于用户来说是不可用的;由于Web应用运行于浏览器和互联网络上,不需要为具体的用户终端定制版本,但是也因为这个原因造成了Web应用对用户终端的硬件资源的调用能力不足,与用户终端的硬件资源相关的应用功能会受到限制。However, there are also some problems in web applications. For example, because web applications are limited by the existing development languages, the performance and user experience of web applications need to be improved; because web applications run on browsers and the Internet, web applications cannot Support offline function, that is, when the network service is interrupted, the status of the web application is unavailable to the user; since the web application runs on the browser and the Internet, there is no need to customize the version for the specific user terminal, but it is also caused by this reason Insufficient ability of the web application to call the hardware resources of the user terminal will limit the application functions related to the hardware resources of the user terminal.
原生应用依附于用户终端的操作系统,可以调用用户终端硬件资源,可以支持在线和离线功能。例如,当网络中断服务时,用户仍可以使用安装在用户终端上的图像处理应用软件对待处理图像进行处理。但是,原生应用也存在一些不足,例如,各个操作系统都有各自的开发标准和接口,同样功能的原生应用需要针对不同的操作系统开发符合相应标准的版本;由此带来的同时维护多个操作系统的成本也会比较高;原生应用功能的升级需要频繁的下载和安装等。The native application is attached to the operating system of the user terminal, can call the hardware resources of the user terminal, and can support online and offline functions. For example, when the network service is interrupted, the user can still use the image processing application software installed on the user terminal to process the image to be processed. However, native applications also have some shortcomings. For example, each operating system has its own development standards and interfaces, and native applications with the same function need to develop versions that meet the corresponding standards for different operating systems; The cost of the operating system will also be relatively high; the upgrade of native application functions requires frequent downloads and installations.
例如,用户使用一个新闻阅读类应用(第一Web应用),当用户在使用该新闻阅读类应用阅读新闻快报时,若希望将某条新闻分享给好友,则可以通过点击该Web应用网页上的分享按钮,用户终端响应于用户的点击操作,获取到第二Web应用的调用信息(具体方式可以是浏览器截获向该Web应用网页的HTML信息获取),该第二Web应用的调用信息中包括的第二Web应用服务类型为分享,待处理数据类型为普通文本;该Web应用调用信息中还包括用户希望分享的新闻的统一资源定位器(Uniform Resource Locator,URL)地址(网页地址)。第二Web应用的调用信息也可以是用户终端在响应于用户的操作,打开一个Web网页后,即触发第一Web应用产生对第二Web应用的调用信息;因此,产生第二Web应用的调用信息的触发方式并不局限于上述已经公开的方式,还可以是本领域技术人员所熟知的如:在编辑栏输入完文字后的回车操作、在Web网页上相应具有操作链接图片上的点击操作或者是完成某种用于作为第二Web应用的输入对象的内容的完成等等。For example, a user uses a news reading application (the first Web application). When the user uses the news reading application to read news bulletins, if he wishes to share a piece of news with his friends, he can click on the share button, the user terminal responds to the user's click operation, and obtains the call information of the second Web application (the specific method may be that the browser intercepts the HTML information acquisition to the Web application web page), and the call information of the second Web application includes The service type of the second Web application is sharing, and the type of data to be processed is ordinary text; the calling information of the Web application also includes a Uniform Resource Locator (Uniform Resource Locator, URL) address (web page address) of the news that the user wants to share. The calling information of the second Web application may also be that after the user terminal opens a Web page in response to the user's operation, it triggers the first Web application to generate calling information for the second Web application; therefore, the calling information of the second Web application is generated. The information triggering method is not limited to the above-mentioned disclosed method, and can also be known to those skilled in the art, such as: the carriage return operation after entering the text in the edit column, and the click on the picture corresponding to the operation link on the Web page. The operation or the completion of some kind of content for the input object of the second Web application, etc.
本发明的应用场景不也不局限于所述用户终端访问Web应用;还可以是其它智能终端,如智能家居通过互联网访问服务器中的第一Web应用,获取天气信息,进一步调用第二Web应用将所述信息发送给用户终端等。The application scenario of the present invention is not limited to the user terminal accessing the Web application; it can also be other intelligent terminals, such as a smart home accessing the first Web application in the server through the Internet, obtaining weather information, and further calling the second Web application to The information is sent to the user terminal or the like.
102、根据所述第二Web应用的调用信息,采用预设调用策略调用原生应用处理待处理数据;102. According to the call information of the second Web application, use a preset call strategy to call the native application to process the data to be processed;
可选的,所述根据所述第二Web应用的调用信息,采用预设调用策略调用原生应用处理所述待处理数据,具体为:Optionally, according to the calling information of the second web application, using a preset calling strategy to call the native application to process the data to be processed, specifically:
浏览器根据所述第二Web应用的调用信息生成原生应用的调用信息,所述原生应用的调用信息中包含所要调用的原生应用的服务类型和/或待处理数据类型;The browser generates call information of the native application according to the call information of the second Web application, and the call information of the native application includes the service type and/or data type of the native application to be called;
浏览器根据所述服务类型和/或待处理数据类型在预配置的原生应用中查找与所述原生应用调用信息对应的原生应用;The browser searches the preconfigured native applications for a native application corresponding to the calling information of the native application according to the service type and/or the data type to be processed;
并在查找到与所述原生应用的调用信息对应的原生应用后,将获取到的来自第一Web应用的待处理数据转发给所述查找到的原生应用,以便所述查找到的原生应用完成对所述待处理数据的处理。And after finding the native application corresponding to the calling information of the native application, forwarding the acquired data to be processed from the first Web application to the found native application, so that the found native application completes Processing of the data to be processed.
可选的,其中将获取到的来自第一Web应用的待处理数据,具体是在查找到与所述原生应用的调用信息对应的原生应用后,向第一Web应用反馈查找到所需的原生应用的响应消息,其中,所述原生应用够提供第二Web应用的调用信息中包含的服务类型和/或待处理数据类型所要求的功能;接收所述第一Web应用传递来的待处理数据,并完成后续的将所述待处理数据转发给所述查找到的原生应用,以便所述查找到的原生应用完成对所述待处理数据的处理。Optionally, the acquired data to be processed from the first web application is specifically after finding the native application corresponding to the call information of the native application, feeding back to the first web application that the required native application has been found. A response message from an application, wherein the native application can provide the functions required by the service type and/or data type to be processed included in the calling information of the second Web application; receive the data to be processed delivered by the first Web application , and complete the subsequent forwarding of the data to be processed to the found native application, so that the found native application completes the processing of the data to be processed.
可选的,所述第二Web应用的调用信息中还包括待处理数据,则其中将获取到的来自第一Web应用的待处理数据,具体是:Optionally, the calling information of the second Web application also includes data to be processed, and the data to be processed from the first Web application to be obtained is specifically:
浏览器从所述Web应用调用信息中抽取服务类型和/或待处理数据类型;根据原生应用调用规则将提取出服务类型和/或待处理数据类型生成原生应用调用信息;浏览器根据所述原生应用的服务类型和/或待处理数据类型在预配置的原生应用中查找与所述原生应用调用信息对应的原生应用;并将所述待处理数据转发给上述查找到的原生应用,以便所述查找到的原生应用完成对所述待处理数据的处理。其中,所述待处理数据还可以是在生成的原生应用的调用信息时,就携带在所述原生应用的调用信息中,从而在查询到相应的原生应用同时,可以直接启动该原生应用对待处理数据的处理。The browser extracts the service type and/or the data type to be processed from the Web application call information; generates the native application call information by extracting the service type and/or the data type to be processed according to the native application call rules; The service type of the application and/or the data type to be processed is searched in the pre-configured native application for the native application corresponding to the calling information of the native application; and the data to be processed is forwarded to the native application found above, so that the The found native application finishes processing the data to be processed. Wherein, the data to be processed may also be carried in the calling information of the native application when the calling information of the native application is generated, so that when the corresponding native application is queried, the native application to be processed can be directly started processing of data.
其中,预配置的原生应用可以是通用的拥有记录功能的配置文件,如注册表、xml文档、文本文档等等。Wherein, the pre-configured native application may be a common configuration file with recording function, such as registry, xml document, text document and so on.
所述采用预设调用策略调用原生应用处理待处理数据还包括,在所述浏览器根据所述第二Web应用的调用信息生成原生应用调用信息之前,还包括执行下述操作中的任一项:Said adopting the preset calling strategy to call the native application to process the data to be processed also includes performing any one of the following operations before the browser generates the calling information of the native application according to the calling information of the second Web application :
1)、浏览器判断是否能够访问对应于所述第二Web应用的调用信息的第二Web应用,并在判断结果为浏览器无法访问所述第二Web应用时,浏览器根据所述第二Web应用的调用信息生成原生应用调用信息;1), the browser judges whether the second Web application corresponding to the call information of the second Web application can be accessed, and when the judgment result is that the browser cannot access the second Web application, the browser, according to the second The call information of the web application generates the call information of the native application;
具体的,本判断条件可能出现在如:浏览器中某个网站(第一Web应用)内容提供了网页QQ的联络方式链接,而在点击该链接时由于网站的问题而无法正常打开网页QQ(第二Web应用)联络方式;此时,浏览器便可以根据点击连接操作和反馈的失败信息,重新生成原生应用调用信息。例如:生成调用用户终端上安装了的QQ应用(原生应用)的调用信息。其中,浏览器无法访问所述第二Web应用还包括:第二Web应用连接不到其对应服务器、第二Web应用关联库出现问题无法启动等原因Specifically, this judgment condition may appear when, for example, a certain website (the first web application) in the browser provides a link to the contact method of the webpage QQ, but when the link is clicked, the webpage QQ cannot be opened normally due to a problem with the website ( The second Web application) contact method; at this time, the browser can regenerate the original application call information according to the failure information of the click connection operation and the feedback. For example: generating call information for calling a QQ application (native application) installed on the user terminal. Wherein, the reason that the browser cannot access the second web application also includes: the second web application cannot connect to its corresponding server, the second web application associated library has a problem and cannot be started, etc.
2)浏览器获取到第二Web应用的调用信息所对应的第二Web应用的反馈信息,所述反馈信息表明第二Web应用的功能不足以处理待处理数据时;则所述浏览器根据所述第二Web应用的调用信息生成原生应用调用信息;2) When the browser obtains the feedback information of the second Web application corresponding to the call information of the second Web application, and the feedback information indicates that the function of the second Web application is not enough to process the data to be processed; Generate native application call information from the call information of the second Web application;
具体的,针对上述Web应用和原生应用的优缺点,当第二Web应用的功能不足以处理待处理数据时,或者该第二Web应用不具备处理待处理数据的功能;该第二Web应用可以向用户终端反馈该第二Web应用不具备处理待处理数据的功能的反馈信息,根据第二Web应用的调用信息生成原生应用的调用信息,并调用用户终端中的具备处理待处理数据的能力的原生应用。其中,第二Web应用不具备处理该待处理数据的能力,还可以是第二Web应用版本过低不支持处理的数据。Specifically, for the advantages and disadvantages of the above-mentioned web application and native application, when the function of the second web application is not enough to process the data to be processed, or the second web application does not have the function of processing the data to be processed; the second web application can Feedback to the user terminal the feedback information that the second Web application does not have the function of processing the data to be processed, generate the calling information of the native application according to the calling information of the second Web application, and call the user terminal that has the ability to process the data to be processed Native application. Wherein, the second web application does not have the ability to process the data to be processed, or the second web application version is too low to support the data to be processed.
在本发明中,根据所述第二Web应用的调用信息生成原生应用调用信息的对象不局限于浏览器,具体的还可以是所述第一Web应用在用户终端上运行的应用模块(例如:Andriod手机中的新浪APP),而该应用模块内部调用实现是基于Web设计和开发的(如:新浪APP获取网上的微博信息等),或者是其他独立的应用模块(例如:包含了浏览器功能的类似应用)。后续的实施例将集中通过浏览器来描述其实现,而本领域的技术人员可以通过揭示的技术特征容易的扩展到上述其他的应用模块中去。In the present invention, the object that generates the native application calling information according to the calling information of the second Web application is not limited to the browser, specifically, it may also be an application module (such as: Sina APP in the Andriod mobile phone), and the internal call implementation of the application module is based on Web design and development (such as: Sina APP obtains Weibo information on the Internet, etc.), or other independent application modules (such as: including the browser similar application of the function). Subsequent embodiments will focus on describing its implementation through a browser, and those skilled in the art can easily extend the disclosed technical features to other above-mentioned application modules.
3)浏览器根据第二Web应用的调用信息找到了对应的第二Web应用,并根据性能比较策略,根据所述第二Web应用的调用信息生成原生应用调用信息。3) The browser finds the corresponding second Web application according to the calling information of the second Web application, and generates native application calling information according to the calling information of the second Web application according to the performance comparison policy.
具体的,情况3)中的预设调用策略可以包括:I浏览器向用户终端反馈预计流量的方式,于是,便会在根据第二Web应用调用信息找到了对应的第二Web应用之后,再生成原生应用调用信息,以便于在有可能找到替代第二Web应用的原生应用的情况下,使用更为节约流量的原生应用来执行第一Web应用的功能需求;II浏览器向用户终端反馈所有可以满足第一Web应用的功能需求的第二Web应用和原生应用,并最后通过用户的选择来决定是采用哪一个原生应用或者第二Web应用来完成第一Web应用的功能需求。其中,所述功能需求可以是本发明中实现对待处理数据的处理。Specifically, the preset invocation strategy in case 3) may include: the manner in which the I browser feeds back the expected traffic to the user terminal, and then, after finding the corresponding second Web application according to the invocation information of the second Web application, regenerate Generating native application call information so that when it is possible to find a native application that replaces the second Web application, use a more traffic-saving native application to implement the functional requirements of the first Web application; the II browser feeds back all information to the user terminal The second web application and the native application that can meet the functional requirements of the first web application, and finally decide which native application or second web application to use to fulfill the functional requirements of the first web application through the user's choice. Wherein, the functional requirement may be to realize the processing of the data to be processed in the present invention.
可选的,所述在预配置的原生应用中查找与所述原生应用调用信息对应的原生应用,还包括:Optionally, the searching for the native application corresponding to the calling information of the native application in the preconfigured native applications further includes:
统计所述查找到的原生应用的数量;若所述数量大于1,则生成原生应用列表,所述原生应用列表包括所有根据所述服务类型和/或待处理数据类型查找到的原生应用;向用户显示所述原生应用列表;响应于所述用户在原生应用列表中的选择操作,调用被选择的原生应用处理所述待处理数据。Count the number of native applications found; if the number is greater than 1, generate a list of native applications, the list of native applications includes all native applications found according to the service type and/or data type to be processed; The user displays the native application list; in response to the user's selection operation in the native application list, the selected native application is invoked to process the data to be processed.
优选的,若统计所述查找到的原生应用的数量等于1,则直接调用所述满足所述预设调用策略的原生应用处理所述待处理数据。Preferably, if the count of the found native applications is equal to 1, the native applications satisfying the preset calling strategy are directly invoked to process the data to be processed.
可选的,所述原生应用列表中包括原生应用的描述信息,所述原生应用的描述信息中包含所述满足所述预设调用策略的原生应用的应用名称、应用标识、应用图标中的至少一项。Optionally, the native application list includes description information of the native application, and the description information of the native application includes at least one of the application name, application identifier, and application icon of the native application satisfying the preset invocation policy. one item.
103、获取所述原生应用处理后的数据结果,并将所述处理后的数据发送给所述第一Web应用。103. Acquire a data result processed by the native application, and send the processed data to the first Web application.
优选的,调用所述原生应用处理所述待处理数据,获取处理后的数据,具体包括:Preferably, calling the native application to process the data to be processed, and obtaining the processed data specifically includes:
浏览器通过请求对象发送接口,向原生应用所在系统发送原生应用调用请求,并通过回调接口等待接收所述原生应用处理结果。The browser sends the native application call request to the system where the native application is located through the request object sending interface, and waits to receive the processing result of the native application through the callback interface.
在优选的方案中,请求对象发送接口可以是”startActivityForResult()”函数,而回调接口可以是”onActivityResult()”。In a preferred solution, the request object sending interface may be the "startActivityForResult()" function, and the callback interface may be "onActivityResult()".
被调用原生应用将处理结果通过结果返回接口”setResult()”写入处理结果对象,上述回调接口接收所述原生应用所在系统发送的处理结果对象”intent”。The called native application writes the processing result into the processing result object through the result return interface "setResult()", and the above callback interface receives the processing result object "intent" sent by the system where the native application is located.
本发明实施例提供的应用调用方法,获取第一Web应用生成的第二Web应用的调用信息,第二Web应用的调用信息中包括第二Web应用的服务类型和/或待处理数据类型,然后根据第二Web应用的调用信息采用预设调用策略调用原生应用处理待处理数据,获取处理后的数据,并将处理后的数据返回至第一Web应用。与现有技术中,Web应用仅可以调用其他Web应用处理待处理数据相比,实现Web应用对原生应用的调用,丰富了调用环境。The application calling method provided by the embodiment of the present invention obtains the calling information of the second Web application generated by the first Web application, and the calling information of the second Web application includes the service type and/or the data type to be processed of the second Web application, and then According to the calling information of the second web application, the preset calling strategy is used to call the native application to process the data to be processed, obtain the processed data, and return the processed data to the first web application. Compared with the prior art, where a Web application can only call other Web applications to process data to be processed, the implementation of calling a native application from a Web application enriches the calling environment.
实施例2Example 2
本发明提供一种应用调用方法实施例,其中用于完成Web应用调用信息转换为原生应用调用信息的是用户终端,而本领域技术人员容易想到其他用于Web技术实现的浏览器、模块或者服务器均能应用本实施例的方法。相比实施例1,本实施例中Web应用调用信息中包含的内容里增加了待处理数据或者待处理数据的存储标识的;其中预设调用策略包括根据所述服务类型和/或待处理数据类型在预配置的原生应用中查找与所述原生应用调用信息对应的原生应用,具体实现如图2所示,包括:The present invention provides an embodiment of an application calling method, in which the user terminal is used to complete the conversion of Web application calling information into native application calling information, and those skilled in the art can easily think of other browsers, modules or servers for Web technology implementation The method of this embodiment can be applied to all. Compared with Embodiment 1, the content contained in the Web application call information in this embodiment adds the data to be processed or the storage identifier of the data to be processed; wherein the preset call strategy includes Type Find the native application corresponding to the native application call information in the pre-configured native application. The specific implementation is shown in Figure 2, including:
201、用户终端获取第一Web应用生成的第二Web应用的调用信息,所述第二Web应用的调用信息不仅包括Web应用的服务类型和/或待处理数据类型,还包括待处理数据或者待处理数据的存储标识。201. The user terminal acquires the invocation information of the second Web application generated by the first Web application, and the invocation information of the second Web application includes not only the service type and/or the data type to be processed of the Web application, but also the data to be processed or the data to be processed. Store ID for processing data.
其中,当所述第二Web应用不具备处理待处理数据的功能时,该第二Web应用可以向其当前所在的用户终端反馈该Web应用不具备处理待处理数据的功能的信息,该用户终端则可以根据反馈信息获取第二Web应用调用信息。Wherein, when the second Web application does not have the function of processing the data to be processed, the second Web application may feed back information that the Web application does not have the function of processing the data to be processed to the user terminal where it is currently located, and the user terminal Then, the invocation information of the second Web application may be acquired according to the feedback information.
示例性的,Web应用的服务类型可以是用户终端所要调用的Web应用或者原生应用能够提供的功能,如:编辑、发送、拨号、分享、查看等。待处理数据类型可以是网络侧服务器所要调用的Web应用或者原生应用能够处理的数据类型,如JPEG(一种图像格式)、DOC(文本格式)等。Exemplarily, the service type of the web application may be a function that can be provided by the web application or the native application to be invoked by the user terminal, such as editing, sending, dialing, sharing, viewing and so on. The data type to be processed may be a data type that can be processed by a web application to be invoked by the server on the network side or a native application, such as JPEG (an image format), DOC (text format), and the like.
202、用户终端根据所述第二Web应用的调用信息,调用能够提供该调用信息中包含的服务类型和待处理数据类型所对应的原生应用。202. According to the invocation information of the second Web application, the user terminal invokes a native application that can provide the service type and data type to be processed contained in the invocation information.
上述服务类型和待处理数据类型可以单独作为查询原生应用的条件,也可以组合起来更精确的查找到能够用于后续待处理数据处理的原生应用。The above service types and data types to be processed can be used alone as conditions for querying native applications, or can be combined to more accurately find native applications that can be used for subsequent processing of data to be processed.
可选的,在本发明实施例的一种应用场景中,在步骤202之前,本实施例的方法还可以包括:Optionally, in an application scenario of this embodiment of the present invention, before step 202, the method of this embodiment may further include:
用户终端查询原生应用授权信息,原生应用授权信息指示该第一Web应用是否有权通过用户终端调用查找到的原生应用;若原生应用授权信息为允许用户终端为所述第一Web应用调用查找到的原生应用,则执行步骤202a-202c和后续流程;否则在执行完步骤202a或者在执行完步骤202b或者在执行完步骤202c后向第一Web应用返回调用失败响应。The user terminal queries the native application authorization information, and the native application authorization information indicates whether the first Web application has the right to call the native application found by the user terminal; if the native application authorization information is to allow the user terminal to call the found native application for the first Web application If it is a native application, execute steps 202a-202c and subsequent processes; otherwise, return a call failure response to the first Web application after step 202a or step 202b or step 202c is executed.
其中,通过查询用户授权的方式可以限制用户终端对原生应用的调用,以避免对原生应用的随意调用,进而可以保护用户终端的数据安全。Among them, calling the native application by the user terminal can be restricted by querying the user authorization, so as to avoid random calling of the native application, thereby protecting the data security of the user terminal.
202a、用户终端根据第二Web应用的调用信息生成原生应用调用信息,原生应用调用信息中包含所要调用的原生应用的服务类型和待处理数据类型。202a. The user terminal generates native application calling information according to the calling information of the second Web application, and the native application calling information includes the service type and the data type to be processed of the native application to be called.
为了具体描述如何根据第二Web应用的调用信息生成原生应用的调用信息,下面将结合Web Intent和原生Intent来具体阐述。In order to specifically describe how to generate the calling information of the native application according to the calling information of the second Web application, the following will describe in detail combining the Web Intent and the native Intent.
用户终端从第二Web应用的调用信息中的Intent中提取出服务类型和/或待处理数据类型信息。如:第一Web应用触发生成的第二Web应用的调用信息中包含的:Intent(http://webintents.org/edit,”image/jpeg”,”http://mywebsite.com/images/portrait.jpeg”)The user terminal extracts the service type and/or data type information to be processed from the Intent in the calling information of the second Web application. For example: Intent(http://webintents.org/edit,"image/jpeg","http://mywebsite.com/images/portrait .jpeg")
其中”edit”便是提取出来的服务类型,”jpeg”便是提取出来的待处理数据类型。然后根据生成原生Intent参数规则(即S102中的原生应用调用规则的一种实现方式)生成原生应用的调用信息,如下:Intent(“android.intent.action.EDIT”,Uri.parse("http://mywebsite.com/images/portrait.jpeg"))Among them, "edit" is the extracted service type, and "jpeg" is the extracted data type to be processed. Then generate native application call information according to the original Intent parameter generation rule (that is, an implementation of the native application call rule in S102), as follows: Intent("android.intent.action.EDIT", Uri.parse("http: //mywebsite.com/images/portrait.jpeg"))
其中“android.intent.action.edit”便是根据第二Web应用的调用信息中的服务类型edit按照原生Intent参数规则转化而来。Among them, "android.intent.action.edit" is transformed according to the service type edit in the invocation information of the second web application according to the original Intent parameter rules.
202b、用户终端根据原生应用调用信息在预配置的原生应用中查找与原生应用调用信息对应的原生应用。202b. The user terminal searches the preconfigured native applications for a native application corresponding to the native application calling information according to the native application calling information.
需要说明的是,预配置的原生应用可以是用户使用用户终端从互联网上的任一网站或者原生应用商店下载、并安装至用户终端的操作系统中的原生应用。其中,在原生应用的安装过程中,原生应用的描述信息也会注册到用户终端的操作系统中。该描述信息可以包括该信息可以包括所要注册的原生应用的应用名称、应用地址(如URL地址)、原生应用服务类别、处理数据类型、应用标识、应用图标等。It should be noted that the pre-configured native application may be a native application downloaded by the user from any website or native application store on the Internet using the user terminal and installed in the operating system of the user terminal. Wherein, during the installation process of the native application, the description information of the native application will also be registered in the operating system of the user terminal. The descriptive information may include the application name of the native application to be registered, the application address (such as a URL address), the service category of the native application, the processing data type, the application identifier, the application icon, and the like.
其中,用户终端根据原生应用调用信息在预配置的原生应用中查找与原生应用调用信息对应的原生应用的具体方法可以是:用户终端采用原生应用的服务类型和/或待处理数据类型对比预配置的原生应用的原生应用的服务类型和/或待处理数据类型;选择预配置的原生应用的原生应用的服务类型和/或待处理数据类型与原生应用调用信息中的原生应用的服务类型和/或待处理数据类型相同的原生应用,即为满足预设调用策略的原生应用。Wherein, the specific method for the user terminal to search for the native application corresponding to the native application calling information in the pre-configured native applications according to the native application calling information may be: the user terminal uses the service type and/or the data type to be processed of the native application to compare the pre-configured The service type and/or data type of the native application of the native application; the service type of the native application of the preconfigured native application and/or the data type of the native application and the service type of the native application and/or the data type of the native application in the call information of the native application Or native applications with the same type of data to be processed are native applications that meet the preset calling strategy.
示例性的,当第二Web应用的调用信息中仅包含第二Web应用的服务类型时,则原生应用调用信息中仅包含原生应用的服务类型;当第二Web应用的调用信息中仅包含待处理数据类型时,则原生应用调用信息中仅包含待处理数据类型。Exemplarily, when the calling information of the second Web application only includes the service type of the second Web application, the calling information of the native application only includes the service type of the native application; When processing data types, only the data types to be processed are included in the native application call information.
优选的,当第二Web应用的调用信息中包含第二Web应用的服务类型和待处理数据类型时,则原生应用调用信息中原生应用的服务类型和待处理数据类型。其中,原生应用调用信息中原生应用的服务类型和待处理数据类型与原生应用调用信息中仅包含原生应用的服务类型或待处理数据类型相比,可以提高原生应用的查找精度,有效减少查找结果中的应用数量。Preferably, when the invocation information of the second Web application includes the service type and the data type to be processed of the second Web application, the service type and the data type of the native application in the invocation information of the native application. Among them, the service type and data type to be processed of the native application in the native application call information can improve the search accuracy of the native application and effectively reduce the search results compared with the service type or data type to be processed in the native application call information The number of applications in .
202c、用户终端根据查找到的原生应用生成原生应用列表,原生应用列表中包括原生应用的描述信息,原生应用的描述信息中包含满足预设调用策略条件的原生应用的应用名称、应用标识、应用图标中的至少一项。202c. The user terminal generates a native application list according to the found native applications. The native application list includes the description information of the native application, and the description information of the native application includes the application name, application identification, application At least one of the icons.
具体的,原生应用的描述信息为满足预设调用策略的预配置的原生应用被下载并安装至用户终端时,存储于用户终端的操作系统上的该原生应用的应用名称、应用标识、应用图标中的至少一项。Specifically, the description information of the native application is the application name, application identifier, and application icon of the native application stored on the operating system of the user terminal when the pre-configured native application meeting the preset invocation strategy is downloaded and installed on the user terminal. At least one of the .
优选的,当原生应用的描述信息中包含满足预设调用策略的原生应用的应用名称、应用标识和应用图标时,用户终端则可以通过列表显示给用户更加全面的原生应用信息,以便于用户进行对比选择。Preferably, when the description information of the native application includes the application name, application identifier and application icon of the native application satisfying the preset calling strategy, the user terminal can display more comprehensive information of the native application to the user through a list, so that the user can carry out Compare options.
203、用户终端统计满足预设调用策略的原生应用的数量。203. The user terminal counts the number of native applications satisfying the preset call policy.
204、用户终端判断用户终端统计的数量的大小,若统计的数量大于1,则执行步骤205;若统计的数量等于1,则执行步骤208。204. The user terminal judges the size of the statistics counted by the user terminal, and if the counted count is greater than 1, execute step 205; if the counted count is equal to 1, execute step 208.
205、用户终端生成原生应用列表,原生应用列表包括满足预设调用策略的原生应用的描述信息。205. The user terminal generates a native application list, where the native application list includes description information of native applications satisfying a preset calling policy.
原生应用的描述信息中包含所述满足所述预设调用策略的原生应用的应用名称、应用标识、应用图标中的至少一项。The description information of the native application includes at least one of the application name, application identifier and application icon of the native application satisfying the preset call policy.
206、用户终端向用户显示原生应用列表。206. The user terminal displays the native application list to the user.
对应的,步骤206可以替换为用户终端向用户显示原生应用列表。Correspondingly, step 206 may be replaced by the user terminal displaying the native application list to the user.
207、用户终端响应于用户的操作,调用被选中的原生应用处理待处理数据。207. In response to the user's operation, the user terminal calls the selected native application to process the data to be processed.
其中,被选中的原生应用为用户终端显示的原生应用列表中的一个原生应用的应用名称和/或应用标识和/或应用图标对应的原生应用。Wherein, the selected native application is a native application corresponding to the application name and/or application identifier and/or application icon of a native application in the native application list displayed on the user terminal.
具体的,用用户终端向用户显示原生应列表,以供用户选择,若用户选择原生应用列表中的第一原生应用(即所需的原生应用),用户终端则可以调用第一原生应用处理待处理数据。Specifically, the user terminal is used to display a list of native applications to the user for selection by the user. If the user selects the first native application in the native application list (that is, the required native application), the user terminal can call the first native application to process the pending application. Data processing.
示例性的,用户终端调用第一原生应用具体包括:用户终端发送待处理数据或者待处理数据的存储标识至第一原生应用,以调用第一原生应用处理待处理数据。Exemplarily, the calling the first native application by the user terminal specifically includes: the user terminal sends the data to be processed or the storage identifier of the data to be processed to the first native application, so as to call the first native application to process the data to be processed.
208、用户终端直接调用满足预设调用策略的原生应用处理待处理数据。208. The user terminal directly invokes a native application that satisfies a preset invocation policy to process the data to be processed.
具体的,若用户终端统计的数量等于1,则表明用户终端在预配置的原生应用中查找到的满足预设调用策略的原生应用和在已注册的Web应用中查找到的满足预设调用策略的Web应用的总数为1,即用户终端仅查找到一个满足预设调用策略的原生应用。Specifically, if the number of statistics of the user terminal is equal to 1, it indicates that the user terminal finds in the pre-configured native applications the native applications satisfying the preset invocation strategy and in the registered web applications that satisfy the preset invocation strategy The total number of web applications is 1, that is, the user terminal finds only one native application that satisfies the preset invocation policy.
当用户终端仅查找到一个满足预设调用策略的原生应用时,用户终端则可以直接发送待处理数据或者待处理数据的存储标识至满足预设调用策略的原生应用。When the user terminal finds only one native application satisfying the preset calling strategy, the user terminal may directly send the data to be processed or the storage identifier of the data to be processed to the native application meeting the preset calling strategy.
209、用户终端获取处理后的数据,并将处理后的数据返回至第一Web应用。209. The user terminal acquires the processed data, and returns the processed data to the first Web application.
为了便于本领域技术人员理解本发明的技术方案,以下通过具体的实施场景为例,对本发明的方案加以说明。In order to facilitate those skilled in the art to understand the technical solution of the present invention, the solution of the present invention will be described below by taking a specific implementation scenario as an example.
调用方第一Web应用通过startActivity()方法将Web Intent对象通过浏览器传递给原生应用,原生应用可以通过调用对象的postResult()和postFailure()方法写入处理结果,调用方第一Web应用则可通过onSuccess()和onFailure()回调函数获取原生应用的响应。The caller's first web application passes the Web Intent object to the native application through the browser through the startActivity() method. The native application can write the processing result by calling the object's postResult() and postFailure() methods, and the caller's first web application then The response of the native application can be obtained through the onSuccess() and onFailure() callback functions.
以下以安装有安卓Android系统和Android系统自带的浏览器的用户终端为例,对本发明的方案加以说明。The solution of the present invention will be described below by taking a user terminal installed with an Android system and a browser that comes with the Android system as an example.
用户终端获取、调用原生应用的过程可以通过如下方式实现:用户终端响应于用户的触发,通过浏览器打开的第一Web应用的网页中,包括如下脚本代码:var intent=newIntent(http://webintents.org/edit,“image/jpeg”,“http://mywebsite.com/images/portrait.jpeg”);The process of the user terminal acquiring and calling the native application can be realized in the following way: the user terminal responds to the trigger of the user, and includes the following script code in the webpage of the first Web application opened by the browser: var intent=newIntent(http:// webintents.org/edit, "image/jpeg", "http://mywebsite.com/images/portrait.jpeg");
window.navigator.start Activity(intent);window.navigator.startActivity(intent);
通过上述脚本,第一Web应用可以向浏览器获取单元发送一个Web Intent对象,该对象中携带的参数包括:第一Web应用需要调用的服务类型为编辑类服务的应用,待处理的数据类型是JPEG格式图像,此外Web Intent对象中还包含需要编辑的JPEG图像的URL地址。Through the above script, the first Web application can send a Web Intent object to the browser acquisition unit, and the parameters carried in the object include: the service type that the first Web application needs to call is an application of editing service, and the type of data to be processed is JPEG format image, in addition, the URL address of the JPEG image to be edited is also included in the Web Intent object.
浏览器获取单元在接收到上述Web Intent对象后,传递给处理单元中的提取子单元,所述提取子单元将Web Intent中包含的服务类型、待数据类型和待处理的数据提取出来,并由第一生成子单元转化成如下形式的Android Intent对象(原生应用调用信息)发送给查找子单元,其Android Intent对象格式如下:After the browser acquisition unit receives the above-mentioned Web Intent object, it passes it to the extraction subunit in the processing unit, and the extraction subunit extracts the service type, data type to be processed and data to be processed contained in the Web Intent, and is processed by The first generating subunit converts the Android Intent object (native application calling information) into the following form and sends it to the searching subunit, and the format of the Android Intent object is as follows:
Intent intent=new Intent(“android.intent.action.EDIT”,Intent intent=new Intent("android.intent.action.EDIT",
Uri.parse("http://mywebsite.com/images/portrait.jpeg"));Uri.parse("http://mywebsite.com/images/portrait.jpeg"));
startActivityForResult(intent,RequestCode);startActivityForResult(intent, RequestCode);
查找子单元在接收到上述Android Intent对象后(假设此时获取到的原生应用只有一个,在优选的方案中不必再生成原生应用列表,而直接将待处理数据传递给查找到的原生应用),第一调用子单元将查找满足要求的原生应用对上述请求进行处理,被调用的原生应用在对图像进行处理前,可以根据对象中URL地址下载对应的JPEG图像,处理完成后可以通过Activity的setResult()方法返回处理结果,所述处理结果经由接收子单元返回给第一调用子单元。After the search subunit receives the above Android Intent object (assuming that there is only one native application obtained at this time, in the preferred solution, it is not necessary to generate a list of native applications, but directly transfer the data to be processed to the found native application), The first calling subunit will search for a native application that meets the requirements to process the above request. Before processing the image, the called native application can download the corresponding JPEG image according to the URL address in the object. After the processing is completed, it can pass the setResult of the Activity The () method returns a processing result, and the processing result is returned to the first calling subunit via the receiving subunit.
浏览器返回单元通过onActivityResult()回调方法接收处理结果,浏览器可以将处理后的图像保存到本地数据库或文件中,并将图像的存储标识或存储路径通过上述WebIntent对象的postResult()和postFailure()方法写入处理结果,第一Web应用的网页则可通过onSuccess()和onFailure()回调函数获取上述图像的存储标识或存储路径,并通过应用程序编程接口(Application Programming Interface,API)接口获取图像数据,从而完成第一Web应用对原生应用的调用。The browser returns the unit to receive the processing result through the onActivityResult() callback method, and the browser can save the processed image to a local database or file, and pass the image storage ID or storage path through the postResult() and postFailure( ) method to write the processing result, the webpage of the first Web application can obtain the storage identifier or storage path of the above-mentioned image through the onSuccess() and onFailure() callback functions, and obtain it through the application programming interface (Application Programming Interface, API) interface Image data, so as to complete the calling of the native application by the first web application.
可以知道,本实施例步骤203-步骤208都是可选的,在可替换的实施例中,选择对应原生应用调用信息的所需的原生应用,可以由浏览器或者系统智能完成,而不需要用户的接入。It can be known that steps 203 to 208 in this embodiment are optional. In an alternative embodiment, the selection of the required native application corresponding to the calling information of the native application can be completed by the browser or the system intelligence without the need for user access.
本发明实施例提供的应用调用方法,获取第一Web应用生成的Web应用调用信息(即第二Web应用的调用信息),Web应用调用信息中包括Web应用的服务类型和待处理数据类型,以及待处理数据,然后根据Web应用调用信息采用预设调用策略调用第一原生应用或第二Web应用处理待处理数据,获取处理后的数据,并将处理后的数据返回至第一Web应用。与现有技术中,Web应用仅可以调用其他Web应用处理待处理数据相比,还可以实现Web应用对原生应用的调用。The application calling method provided by the embodiment of the present invention obtains the Web application calling information generated by the first Web application (that is, the calling information of the second Web application), and the Web application calling information includes the service type and the data type to be processed of the Web application, and For the data to be processed, the first native application or the second Web application is called to process the data to be processed according to the call information of the Web application using a preset call strategy, the processed data is obtained, and the processed data is returned to the first Web application. Compared with the prior art, where the web application can only call other web applications to process the data to be processed, it is also possible to implement the calling of the native application by the web application.
实施例3Example 3
本发明实施例提供一种用户终端,如图3所示,包括:获取单元31、处理单元32、返回单元33。An embodiment of the present invention provides a user terminal, as shown in FIG. 3 , including: an acquisition unit 31 , a processing unit 32 , and a return unit 33 .
获取单元31,用于获取第一Web应用生成的第二Web应用的调用信息,所述第二Web应用的调用信息中包括Web应用的服务类型和/或待处理数据类型。The obtaining unit 31 is configured to obtain invocation information of a second Web application generated by the first Web application, where the invocation information of the second Web application includes a service type and/or a data type to be processed of the Web application.
处理单元32,用于根据所述获取单元获取的所述第二Web应用的调用信息,采用预设调用策略调用原生应用处理所述待处理数据;A processing unit 32, configured to call a native application to process the data to be processed by using a preset calling strategy according to the calling information of the second Web application acquired by the acquiring unit;
返回单元33,用于获取处理单元处理后的数据结果,并将所述处理后的数据结果返回至所述Web应用。The returning unit 33 is configured to acquire the data result processed by the processing unit, and return the processed data result to the Web application.
进一步的,在本实施例的一种应用场景中,如图4所示,所述处理单元32,可以包括:提取子单元321、第一生成子单元322、查找子单元323、第一调用子单元324。Further, in an application scenario of this embodiment, as shown in FIG. 4, the processing unit 32 may include: an extraction subunit 321, a first generation subunit 322, a search subunit 323, a first call subunit Unit 324.
提取子单元321,用于从所述第二Web应用的调用信息中除了提取服务类型和/或待处理数据类型外,还提取待处理的数据。The extracting subunit 321 is configured to extract data to be processed from the call information of the second Web application in addition to extracting the service type and/or the data type to be processed.
第一生成子单元322,用于根据所述第二Web应用的调用信息生成原生应用调用信息,所述原生应用调用信息中包含所要调用的原生应用的服务类型和/或待处理数据类型。The first generating subunit 322 is configured to generate native application calling information according to the calling information of the second Web application, and the native application calling information includes the service type and/or the data type to be called of the native application to be called.
查找子单元323,用于根据所述第一生成子单元生成的所述原生应用调用信息在预配置的原生应用中查找与所述原生应用调用信息对应的原生应用。The searching subunit 323 is configured to search for a native application corresponding to the native application calling information among preconfigured native applications according to the native application calling information generated by the first generating subunit.
第一调用子单元324,用于调用所述查找到的原生应用处理待处理数据。The first calling subunit 324 is configured to call the found native application to process the data to be processed.
进一步的,如图5所示,在本实施例的一种应用场景中,所述第一调用子单元324,可以包括:发送子单元324a和接收子单元324b。Further, as shown in FIG. 5, in an application scenario of this embodiment, the first calling subunit 324 may include: a sending subunit 324a and a receiving subunit 324b.
发送子单元324a,用于通过请求对象发送接口向原生应用所在的系统发送原生应用调用请求;The sending subunit 324a is configured to send a native application call request to the system where the native application is located through the request object sending interface;
接收子单元324b,用于通过回调接口等待所述原生应用的处理结果。The receiving subunit 324b is configured to wait for the processing result of the native application through the callback interface.
进一步的,在本实施例的另一种应用场景中,所述处理单元32,可以包括:第二生成子单元325。Further, in another application scenario of this embodiment, the processing unit 32 may include: a second generating subunit 325 .
第二生成子单元325,用于根据所述查找子单元查找到的一个或多个原生应用生成原生应用列表,所述原生应用列表中包括原生应用的描述信息,所述原生应用的描述信息中包含所述满足所述预设调用策略的原生应用的应用名称、应用标识、应用图标中的至少一项。The second generating subunit 325 is configured to generate a native application list according to the one or more native applications found by the searching subunit, the native application list includes the description information of the native application, and the description information of the native application Contains at least one of the application name, application identifier and application icon of the native application satisfying the preset invocation policy.
进一步的,在本实施例的一种应用场景中,所述处理单元32还包括鉴权子单元326,所述鉴权子单元326可以设置在所述第二生成子单元325之前,也可以布局在所述第二生成子单元325之后,下面就以布局在所述第二生成子单元325之前为背景做具体描述:Further, in an application scenario of this embodiment, the processing unit 32 further includes an authentication subunit 326, and the authentication subunit 326 can be arranged before the second generation subunit 325, or can be arranged After the second generation subunit 325, the following is a specific description under the background that the layout is before the second generation subunit 325:
所述鉴权子单元326,用于在所述第一生成子单元322根据所述第二Web应用的调用信息生成所述原生应用调用信息之前,查询用户是否已授权所述原生应用的调用权限;所述第一生成子单元322,还用于若已授权所述调用权限,则根据所述第二Web应用的调用信息生成所述原生应用调用信息。The authentication subunit 326 is configured to inquire whether the user has authorized the calling authority of the native application before the first generating subunit 322 generates the calling information of the native application according to the calling information of the second Web application ; The first generating subunit 322 is further configured to generate the native application invocation information according to the invocation information of the second Web application if the invocation authority has been authorized.
需要说明的是,本发明实施例提供的用户终端中部分功能模块的具体描述可以参考方法实施例中的对应内容,本实施例这里不再详细赘述。It should be noted that, for the specific description of some functional modules in the user terminal provided in the embodiment of the present invention, reference may be made to the corresponding content in the method embodiment, and details will not be described in detail here in this embodiment.
本发明实施例提供的用户终端,可以获取第一Web应用生成的第二Web应用的调用信息,第二Web应用的调用信息中包括第二Web应用的服务类型和/或待处理数据类型,然后根据Web应用调用信息采用预设调用策略调用原生应用,获取处理后的数据,并将处理后的数据返回至第一Web应用。与现有技术中,Web应用仅可以调用其他Web应用处理待处理数据相比,实现Web应用对原生的调用。The user terminal provided by the embodiment of the present invention can obtain the call information of the second Web application generated by the first Web application, the call information of the second Web application includes the service type and/or the data type to be processed of the second Web application, and then The native application is invoked by using a preset invocation strategy according to the invocation information of the web application, the processed data is obtained, and the processed data is returned to the first web application. Compared with the prior art, where the web application can only call other web applications to process the data to be processed, the web application calls the native.
实施例4Example 4
本发明实施例提供一种用户终端,如图6所示,包括:An embodiment of the present invention provides a user terminal, as shown in FIG. 6 , including:
接收器41,用于接收用户的触发指示。The receiver 41 is configured to receive a user's trigger instruction.
处理器42,用于获取第一Web应用生成的第二Web应用的调用信息,所述第二Web应用的调用信息包括所要调用的第二Web应用的服务类型和/或待处理数据类型;根据所述第二Web应用的调用信息,采用预设调用策略调用原生应用处理待处理数据;获取所述原生应用处理后的数据结果,并将所述处理后的数据发送给所述第一Web应用。The processor 42 is configured to acquire the invocation information of the second Web application generated by the first Web application, where the invocation information of the second Web application includes the service type and/or the data type to be processed of the second Web application to be invoked; according to The invocation information of the second Web application uses a preset invocation strategy to invoke the native application to process the data to be processed; obtains the processed data result of the native application, and sends the processed data to the first Web application .
进一步的,所述处理器42,还用于根据所述第二Web应用的调用信息生成原生应用的调用信息,所述原生应用的调用信息中包含所要调用的原生应用的服务类型和/或待处理数据类型;浏览器根据所述服务类型和/或待处理数据类型在预配置的原生应用中查找与所述原生应用调用信息对应的原生应用;并在查找到与所述原生应用的调用信息对应的原生应用后,将获取到的来自第一Web应用的待处理数据转发给所述查找到的原生应用,以便所述查找到的原生应用完成对所述待处理数据的处理。Further, the processor 42 is further configured to generate native application invocation information according to the invocation information of the second Web application, and the invocation information of the native application includes the service type of the native application to be invoked and/or the processing the data type; the browser searches the preconfigured native applications for the native application corresponding to the native application call information according to the service type and/or the data type to be processed; and finds the call information corresponding to the native application After the corresponding native application, forward the obtained data to be processed from the first Web application to the found native application, so that the found native application can complete the processing of the data to be processed.
进一步的,所述处理器42,还用于判断是否能够访问对应于所述第二Web应用的调用信息的第二Web应用,并在判断结果为浏览器无法访问对应于所述第二Web应用的调用信息的第二Web应用时,浏览器根据所述第二Web应用的调用信息生成原生应用调用信息;或者,Further, the processor 42 is also configured to judge whether the second Web application corresponding to the call information of the second Web application can be accessed, and if the judgment result is that the browser cannot access the second Web application corresponding to the second Web application. When calling the second Web application with the calling information, the browser generates native application calling information according to the calling information of the second Web application; or,
浏览器获取到第二Web应用的调用信息所对应的第二Web应用的反馈信息,所述反馈信息表明第二Web应用的功能不足以处理待处理数据时;则所述浏览器根据所述第二Web应用的调用信息生成原生应用调用信息;或者,When the browser obtains the feedback information of the second Web application corresponding to the calling information of the second Web application, and the feedback information indicates that the function of the second Web application is not enough to process the data to be processed; 2. The invocation information of the Web application generates the invocation information of the native application; or,
浏览器根据第二Web应用的调用信息找到了对应的第二Web应用,并根据预设调用策略,根据所述第二Web应用的调用信息生成原生应用调用信息。The browser finds the corresponding second Web application according to the calling information of the second Web application, and generates native application calling information according to the calling information of the second Web application according to a preset calling policy.
需要说明的是,本发明实施例提供的用户终端中部分功能模块的具体描述可以参考方法实施例中的对应内容,本实施例这里不再详细赘述。It should be noted that, for the specific description of some functional modules in the user terminal provided in the embodiment of the present invention, reference may be made to the corresponding content in the method embodiment, and details will not be described in detail here in this embodiment.
本发明实施例提供的用户终端,可以获取第一Web应用生成的第二Web应用的调用信息,第二Web应用的调用信息中包括所需的第二Web应用的服务类型和/或待处理数据类型,然后根据Web应用调用信息采用预设调用策略调用第一原生应用,获取处理后的数据,并将处理后的数据返回至第一Web应用。与现有技术中,Web应用仅可以调用其他Web应用处理待处理数据相比,实现了Web应用对原生的调用。The user terminal provided by the embodiment of the present invention can obtain the call information of the second Web application generated by the first Web application, and the call information of the second Web application includes the required service type and/or data to be processed of the second Web application type, and then call the first native application using a preset calling strategy according to the calling information of the web application, obtain the processed data, and return the processed data to the first web application. Compared with the prior art, where the web application can only call other web applications to process the data to be processed, the web application calls natively.
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到本发明可借助软件加必需的通用硬件的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在可读取的存储介质中,如计算机的软盘,硬盘或光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the present invention can be realized by means of software plus necessary general-purpose hardware, and of course also by hardware, but in many cases the former is a better embodiment . Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product is stored in a readable storage medium, such as a floppy disk of a computer , a hard disk or an optical disk, etc., including several instructions for enabling a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in various embodiments of the present invention.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以所述权利要求的保护范围为准。The above is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Anyone skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present invention. All should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be determined by the protection scope of the claims.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201310117666.0ACN104102537B (en) | 2013-04-07 | 2013-04-07 | A kind of application call method and user terminal |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201310117666.0ACN104102537B (en) | 2013-04-07 | 2013-04-07 | A kind of application call method and user terminal |
| Publication Number | Publication Date |
|---|---|
| CN104102537A CN104102537A (en) | 2014-10-15 |
| CN104102537Btrue CN104102537B (en) | 2017-09-29 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201310117666.0AActiveCN104102537B (en) | 2013-04-07 | 2013-04-07 | A kind of application call method and user terminal |
| Country | Link |
|---|---|
| CN (1) | CN104102537B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105607895B (en)* | 2014-11-21 | 2021-03-02 | 阿里巴巴集团控股有限公司 | Application program operation method and device based on application program programming interface |
| CN104572278B (en)* | 2014-12-22 | 2018-11-23 | 百度在线网络技术(北京)有限公司 | The method, device and equipment of light application calling local side ability |
| CN105812401A (en)* | 2014-12-29 | 2016-07-27 | 大唐软件技术股份有限公司 | Method and device for realizing cross-system service call |
| US9465734B1 (en)* | 2015-04-08 | 2016-10-11 | Apple Inc. | Coalition based memory management |
| CN104915224B (en)* | 2015-04-24 | 2019-01-04 | 青岛海信电器股份有限公司 | A kind of processing method and processing device of affiliate application |
| CN106357591A (en)* | 2015-07-16 | 2017-01-25 | 中兴通讯股份有限公司 | Inter-application data access method and device |
| CN106775790B (en)* | 2015-11-19 | 2020-10-09 | 腾讯科技(深圳)有限公司 | Control calling method and device |
| CN105653433B (en)* | 2015-12-24 | 2018-04-13 | 广州市动景计算机科技有限公司 | The method for tracing and device of a kind of application program |
| CN105446811B (en)* | 2015-12-30 | 2019-05-03 | Oppo广东移动通信有限公司 | Application process associated startup method and associated startup device |
| CN105718512A (en)* | 2016-01-13 | 2016-06-29 | 北京齐尔布莱特科技有限公司 | Method for calling native language by using JS language in Ios system |
| CN107368042B (en)* | 2016-05-13 | 2019-07-30 | 上海澜腾智能科技有限公司 | Intelligent home control system and its control device and control method |
| CN106027779B (en)* | 2016-05-13 | 2020-01-07 | 青岛海信移动通信技术股份有限公司 | An information processing method and terminal |
| CN107643952B (en)* | 2016-07-20 | 2020-03-17 | 平安科技(深圳)有限公司 | Local class library calling method and device |
| CN106873961B (en)* | 2016-07-27 | 2021-09-28 | 创新先进技术有限公司 | Method and device for awakening APP through mobile browser |
| CN108694040B (en)* | 2017-02-15 | 2022-01-28 | 百度在线网络技术(北京)有限公司 | Call processing method and device and communication system |
| CN107193666B (en)* | 2017-04-20 | 2021-07-20 | 北京安云世纪科技有限公司 | Control method and device for calling between application programs |
| CN107679373B (en)* | 2017-10-09 | 2019-09-10 | 武汉斗鱼网络科技有限公司 | Method for acquiring authorized information, device and electronic equipment |
| CN107861771B (en)* | 2017-11-02 | 2022-05-06 | 深圳市雷鸟网络传媒有限公司 | Method, apparatus and computer-readable storage medium for loading pop-up page data |
| CN110321228B (en)* | 2018-03-28 | 2023-09-22 | 腾讯科技(深圳)有限公司 | Calling method, device and equipment of native method and computer readable storage medium |
| CN109032612B (en)* | 2018-07-02 | 2022-01-28 | 平安科技(深圳)有限公司 | Interface calling method and device of hybrid application and computer readable storage medium |
| CN110955430A (en)* | 2018-09-26 | 2020-04-03 | 北京字节跳动网络技术有限公司 | Application program native capability calling method and device and electronic equipment |
| CN112202701B (en)* | 2019-07-08 | 2022-08-30 | 腾讯科技(深圳)有限公司 | Data processing method, device, server, terminal, system and storage medium |
| CN110427535A (en)* | 2019-08-07 | 2019-11-08 | 中国联合网络通信集团有限公司 | A kind of data processing method and system |
| CN110515678B (en)* | 2019-08-23 | 2021-03-19 | 上海连尚网络科技有限公司 | Information processing method, equipment and computer storage medium |
| CN112835632B (en)* | 2019-11-06 | 2022-05-27 | 上海连尚网络科技有限公司 | A terminal capability calling method, device and computer storage medium |
| CN114721841B (en)* | 2021-01-04 | 2025-08-01 | 腾讯科技(深圳)有限公司 | Data processing method and device, electronic equipment and storage medium |
| CN113949684B (en)* | 2021-10-11 | 2024-06-28 | 杭州网易智企科技有限公司 | Video transmission method, device, medium and computing equipment |
| CN114461421A (en)* | 2022-01-24 | 2022-05-10 | 北京金山云网络技术有限公司 | Method and device for calling client, electronic equipment and storage medium |
| CN114968042B (en)* | 2022-05-26 | 2023-05-05 | 重庆长安汽车股份有限公司 | Image editing system and method based on android system |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101106576A (en)* | 2007-08-10 | 2008-01-16 | 腾讯科技(深圳)有限公司 | A wireless application system and method for mobile terminal |
| CN101488143A (en)* | 2008-01-16 | 2009-07-22 | 重庆安软信息科技有限公司 | Novel web application and local application interaction mode |
| CN102118504A (en)* | 2011-02-28 | 2011-07-06 | 中兴通讯股份有限公司 | Methods and devices for calling local applications by means of mobile terminal browser |
| KR101072349B1 (en)* | 2009-11-19 | 2011-10-12 | 주식회사 엘지유플러스 | Web application platform and mobile terminal for executing the same |
| EP2400452A1 (en)* | 2010-06-25 | 2011-12-28 | France Telecom | Data display method, corresponding device and computer program product |
| CN102929638A (en)* | 2012-11-07 | 2013-02-13 | 广州市动景计算机科技有限公司 | Method and system for expanding Web application (App) functions |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101106576A (en)* | 2007-08-10 | 2008-01-16 | 腾讯科技(深圳)有限公司 | A wireless application system and method for mobile terminal |
| CN101488143A (en)* | 2008-01-16 | 2009-07-22 | 重庆安软信息科技有限公司 | Novel web application and local application interaction mode |
| KR101072349B1 (en)* | 2009-11-19 | 2011-10-12 | 주식회사 엘지유플러스 | Web application platform and mobile terminal for executing the same |
| EP2400452A1 (en)* | 2010-06-25 | 2011-12-28 | France Telecom | Data display method, corresponding device and computer program product |
| CN102118504A (en)* | 2011-02-28 | 2011-07-06 | 中兴通讯股份有限公司 | Methods and devices for calling local applications by means of mobile terminal browser |
| CN102929638A (en)* | 2012-11-07 | 2013-02-13 | 广州市动景计算机科技有限公司 | Method and system for expanding Web application (App) functions |
| Publication number | Publication date |
|---|---|
| CN104102537A (en) | 2014-10-15 |
| Publication | Publication Date | Title |
|---|---|---|
| CN104102537B (en) | A kind of application call method and user terminal | |
| US12386492B2 (en) | Information processing terminal and control method | |
| EP2129148B1 (en) | Content distribution system | |
| JP6414855B2 (en) | Page operation processing method and apparatus, and terminal | |
| CN101431713B (en) | Resource access method and device | |
| CN105045887B (en) | The system and method for mixed mode cross-domain data interaction | |
| US20150281138A1 (en) | Keyword based automatic reply generation in a messaging application | |
| CN106528657A (en) | Control method and device for jumping from browser to application program | |
| CN115396826B (en) | Message processing method, device, equipment and storage medium | |
| CN109240697B (en) | Call processing method and device and storage medium | |
| CN103970760B (en) | A kind of web-page requests processing method and processing device | |
| CN103873918A (en) | Picture processing method, device and terminal | |
| US20140258891A1 (en) | Electronic device, storage medium and method for processing information | |
| US20190243627A1 (en) | Systems and methods for mobile application installation | |
| CN105515887B (en) | application testing method, server and system | |
| CN114385382B (en) | Light application access method, device, computer equipment and storage medium | |
| CN102831179A (en) | Webpage processing method and device | |
| CN103532941B (en) | The method and device that the graphical page is presented under a kind of CGS patterns | |
| CN107222559B (en) | Information calling method | |
| US20150058395A1 (en) | Information processing terminal and control method | |
| WO2009062396A1 (en) | Resource access method and resource access system | |
| JP2013229021A (en) | Mobile broadband device, and mobile broadband service processing method for mobile broadband device | |
| US20080176587A1 (en) | System and a method for sending digital content to a mobile device | |
| CN111756916A (en) | Application processing method and device, electronic equipment and computer storage medium | |
| CN104346228A (en) | Application program sharing method and terminal |
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |