CN116700552B - Application connection method and terminal device - Google Patents
Application connection method and terminal device Download PDFInfo
- Publication number
- CN116700552B CN116700552B CN202211192913.9A CN202211192913A CN116700552B CN 116700552 B CN116700552 B CN 116700552B CN 202211192913 A CN202211192913 A CN 202211192913A CN 116700552 B CN116700552 B CN 116700552B
- Authority
- CN
- China
- Prior art keywords
- connection
- application
- terminal device
- continuation
- cloud server
- 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.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/04817—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/10—Protecting distributed programs or content, e.g. vending or licensing of copyrighted material ; Digital rights management [DRM]
- G06F21/105—Arrangements for software license management or administration, e.g. for managing licenses at corporate level
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/546—Message passing systems or structures, e.g. queues
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Human Computer Interaction (AREA)
- Multimedia (AREA)
- Technology Law (AREA)
- Computer Hardware Design (AREA)
- Stored Programmes (AREA)
- Telephone Function (AREA)
Abstract
本申请实施例提供了一种应用接续方法和终端设备,能够实现对端设备上未安装应用的接续,从而提高用户体验。该方法应用于包括第一终端设备和第二终端设备的系统,包括:第一终端设备向第二终端设备发送广播接续通知;第二终端设备基于该广播接续通知,获取第二接续应用的图标,并以第二接续应用的图标的形式显示触点按钮;第二终端设备响应于用户对触点按钮的点击操作,显示第二接续应用的引导安装弹窗,并向第一终端设备发送接续请求消息,第一终端设备基于接续请求消息,向第二终端设备发送接续数据和安装包;第二终端设备接收接续数据和安装包;第二终端设备响应于用户对引导安装弹窗的操作,安装第二接续应用,并显示接续数据。
The embodiment of the present application provides an application continuation method and a terminal device, which can realize the continuation of an application not installed on the opposite terminal device, thereby improving the user experience. The method is applied to a system including a first terminal device and a second terminal device, and includes: the first terminal device sends a broadcast continuation notification to the second terminal device; the second terminal device obtains the icon of the second continuation application based on the broadcast continuation notification, and displays a contact button in the form of the icon of the second continuation application; the second terminal device responds to the user's click operation on the contact button, displays a guide installation pop-up window of the second continuation application, and sends a continuation request message to the first terminal device, and the first terminal device sends continuation data and an installation package to the second terminal device based on the continuation request message; the second terminal device receives the continuation data and the installation package; the second terminal device responds to the user's operation on the guide installation pop-up window, installs the second continuation application, and displays the continuation data.
Description
技术领域Technical Field
本申请涉及终端技术领域,尤其涉及一种应用接续方法和终端设备。The present application relates to the field of terminal technology, and in particular to an application connection method and a terminal device.
背景技术Background technique
在多设备场景中,终端设备被划分为源端设备和对端设备,源端设备是发送端设备,对端设备是接收端设备。当源端设备和对端设备登陆了相同的账号,并且源端设备和对端设备处于同一局域网的情况下,通过用户触发接续条件,源端设备和对端设备上的应用可实现接续。例如,源端设备为电脑,对端设备为手机,用户在电脑和手机登陆了相同的账号,且电脑和手机处于同一局域网,若用户在电脑上的视频播放软件播放视频,用户的手机上的视频播放软件能同步播放该视频,若用户在电脑上正在编辑文本,用户的手机上可以同步显示正在编辑的文本。In a multi-device scenario, terminal devices are divided into source devices and peer devices. The source device is the sending device, and the peer device is the receiving device. When the source device and the peer device are logged in to the same account, and the source device and the peer device are in the same local area network, the applications on the source device and the peer device can be connected by the user triggering the connection conditions. For example, the source device is a computer, and the peer device is a mobile phone. The user logs in to the same account on the computer and the mobile phone, and the computer and the mobile phone are in the same local area network. If the user plays a video on the video player software on the computer, the video player software on the user's mobile phone can play the video synchronously. If the user is editing text on the computer, the text being edited can be displayed synchronously on the user's mobile phone.
对于某一应用而言,应用接续需要源端设备和对端设备均安装有该应用。当对端设备未安装(或者卸载了)该应用时,源端设备发送该应用的应用接续请求,对端设备无法进行该应用的接续,影响用户体验。For a certain application, application continuation requires that both the source device and the peer device have the application installed. When the peer device does not have (or has uninstalled) the application, the source device sends an application continuation request for the application, and the peer device cannot continue the application, affecting the user experience.
发明内容Summary of the invention
本申请提供了一种应用接续方法和终端设备,能够实现对端设备上未安装应用的接续,从而提高用户体验。The present application provides an application continuation method and a terminal device, which can realize the continuation of applications that are not installed on the opposite device, thereby improving the user experience.
第一方面,提供了一种应用接续方法,应用于包括第一终端设备和第二终端设备的系统,用户在第一终端设备和第二终端设备上登陆了相同的账号,并且第一终端设备和第二终端设备处于同一局域网,该方法包括:第一终端设备向第二终端设备发送广播接续通知,该广播接续通知用于请求将第一终端设备的第一接续应用接续至第二终端设备;第二终端设备接收上述广播接续通知,基于该广播接续通知,获取第二接续应用的图标,并以第二接续应用的图标的形式显示触点按钮;第二终端设备响应于用户对上述触点按钮的点击操作,显示第二接续应用的引导安装弹窗,并向第一终端设备发送接续请求消息,该接续请求消息用于请求第一接续应用的接续数据和第一接续应用的安装包;第一终端设备基于上述接续请求消息,向第二终端设备发送接续数据和安装包;第二终端设备接收上述接续数据和上述安装包;第二终端设备响应于用户对上述引导安装弹窗的操作,安装第二接续应用,并显示接续数据。In a first aspect, an application continuation method is provided, which is applied to a system including a first terminal device and a second terminal device, wherein a user logs in to the same account on the first terminal device and the second terminal device, and the first terminal device and the second terminal device are in the same local area network, the method comprising: the first terminal device sends a broadcast continuation notification to the second terminal device, the broadcast continuation notification being used to request that a first continuation application of the first terminal device be continuation to the second terminal device; the second terminal device receives the above-mentioned broadcast continuation notification, obtains an icon of the second continuation application based on the broadcast continuation notification, and displays a contact button in the form of an icon of the second continuation application; the second terminal device displays a guide installation pop-up window of the second continuation application in response to a user clicking the above-mentioned contact button, and sends a continuation request message to the first terminal device, the continuation request message being used to request continuation data of the first continuation application and an installation package of the first continuation application; the first terminal device sends the continuation data and the installation package to the second terminal device based on the above-mentioned continuation request message; the second terminal device receives the above-mentioned continuation data and the above-mentioned installation package; the second terminal device installs the second continuation application in response to the user operating the above-mentioned guide installation pop-up window, and displays the continuation data.
本申请实施例的应用接续方法,在第二终端设备(即对端设备)未安装第二接续应用的情况下,通过第一终端设备(即源端设备)向对端设备发送广播接续通知,对端设备基于该广播接续通知,获取第二接续应用的图标,并以该图标的形式显示触点按钮,对端设备响应于用户对该触点按钮的点击操作,安装第二接续应用,能够实现对端设备上未安装应用的接续,从而提高用户体验。The application continuation method of the embodiment of the present application sends a broadcast continuation notification to the opposite device through the first terminal device (i.e., the source device) when the second continuation application is not installed on the second terminal device (i.e., the opposite device). The opposite device obtains the icon of the second continuation application based on the broadcast continuation notification and displays a contact button in the form of the icon. The opposite device installs the second continuation application in response to the user clicking the contact button, which can realize the continuation of the application that is not installed on the opposite device, thereby improving the user experience.
结合第一方面,在第一方面的某些实现方式中,上述广播接续通知包括:第一接续应用的应用标识和接续策略;其中,接续策略包括下列至少一种:接续状态标识、第一接续应用的包名或进程名、第一接续应用的应用市场上架策略以及支持接续的最小版本。In combination with the first aspect, in certain implementations of the first aspect, the above-mentioned broadcast connection notification includes: an application identifier and a connection policy of the first connection application; wherein the connection policy includes at least one of the following: a connection status identifier, a package name or process name of the first connection application, an application market listing policy of the first connection application, and a minimum version supporting the connection.
应理解,接续状态标识可以为用于标识接续策略状态的标志位。例如,标志位为0可以表示不支持接续,标志位为1可以表示应用接续,标志位为3可以表示浏览器接续。可以理解的是,标志位的具体值可以任意设置,能够区分不同的状态即可,本申请实施例不作具体限定。It should be understood that the connection status identifier can be a flag bit used to identify the connection policy status. For example, a flag bit of 0 can indicate that the connection is not supported, a flag bit of 1 can indicate application connection, and a flag bit of 3 can indicate browser connection. It is understood that the specific value of the flag bit can be set arbitrarily as long as it can distinguish different states, and the embodiment of the present application does not make specific limitations.
还应理解,若第一接续应用为Android平台的应用,则接续策略包括第一接续应用在Android平台的包名;若第一接续应用为windows平台的应用,则接续策略包括第一接续应用在windows平台的可接续进程名。It should also be understood that if the first continuation application is an application on the Android platform, the continuation policy includes the package name of the first continuation application on the Android platform; if the first continuation application is an application on the Windows platform, the continuation policy includes the continuable process name of the first continuation application on the Windows platform.
应用市场上架策略可以为下列任一种:未上架、海外应用市场1、国内应用市场1、国内应用市场2、海外应用市场2。The application market listing strategy can be any of the following: not listed, overseas application market 1, domestic application market 1, domestic application market 2, overseas application market 2.
支持接续应用的最小版本可以用支持接续应用的最小版本号表示,用于表示第二接续应用可接续时的最小版本。The minimum version of the application that supports the continuation can be represented by the minimum version number of the application that supports the continuation, which is used to represent the minimum version when the second continuation application can be continued.
结合第一方面,在第一方面的某些实现方式中,上述基于广播接续通知,获取第二接续应用的图标,包括:第二终端设备判断是否安装有第二接续应用;在未安装第二接续应用的情况下,第二终端设备基于上述广播接续通知,向云端服务器发送第二接续应用的包名和签名信息;云端服务器接收上述包名和签名信息,并对第二接续应用进行白名单校验;在校验通过的情况下,云端服务器向第二终端设备发送第二接续应用的图标;第二终端设备接收第二接续应用的图标。In combination with the first aspect, in certain implementation methods of the first aspect, the above-mentioned obtaining the icon of the second connection application based on the broadcast connection notification includes: the second terminal device determines whether the second connection application is installed; if the second connection application is not installed, the second terminal device sends the package name and signature information of the second connection application to the cloud server based on the above-mentioned broadcast connection notification; the cloud server receives the above-mentioned package name and signature information, and performs a whitelist check on the second connection application; if the check passes, the cloud server sends the icon of the second connection application to the second terminal device; the second terminal device receives the icon of the second connection application.
应理解,第二终端设备可以从云端服务器获取第二接续应用的图标。It should be understood that the second terminal device can obtain the icon of the second follow-up application from the cloud server.
结合第一方面,在第一方面的某些实现方式中,上述广播接续通知还包括所述第一接续应用的图标。In combination with the first aspect, in some implementations of the first aspect, the broadcast connection notification further includes an icon of the first connection application.
应理解,第二终端设备可以从第一终端设备获取第二接续应用的图标。第一终端设备发送的广播接续通知中还包括第一接续应用的图标,第二终端设备接收第一接续应用的图标,并将第一接续应用的图标作为第二接续应用的图标。It should be understood that the second terminal device can obtain the icon of the second connection application from the first terminal device. The broadcast connection notification sent by the first terminal device also includes the icon of the first connection application, and the second terminal device receives the icon of the first connection application and uses the icon of the first connection application as the icon of the second connection application.
应理解,第二终端设备获取第二接续应用的图标,并以第二接续应用的图标的形式在桌面显示触点按钮时,第二接续应用还未被安装。It should be understood that when the second terminal device obtains the icon of the second continuation application and displays the contact button on the desktop in the form of the icon of the second continuation application, the second continuation application has not been installed.
结合第一方面,在第一方面的某些实现方式中,上述显示第二接续应用的引导安装弹窗,并向第一终端设备发送接续请求消息,包括:在第二终端设备未安装第二接续应用的情况下,第二终端设备显示第二接续应用的引导安装弹窗,并向第一终端设备发送接续请求消息。In combination with the first aspect, in certain implementations of the first aspect, the above-mentioned display of a pop-up window to guide the installation of the second continuation application and sending a continuation request message to the first terminal device include: when the second terminal device has not installed the second continuation application, the second terminal device displays a pop-up window to guide the installation of the second continuation application and sends a continuation request message to the first terminal device.
第二方面,提供了一种应用接续方法,应用于包括第一终端设备和第二终端设备的系统,用户在第一终端设备和第二终端设备上登陆了相同的账号,并且第一终端设备和第二终端设备处于同一局域网,该方法包括:第二终端设备接收来自第一终端设备的广播接续通知,该广播接续通知用于请求将第一终端设备的第一接续应用接续至第二终端设备;第二终端设备基于上述广播接续通知,获取第二接续应用的图标,并以第二接续应用的图标的形式显示触点按钮;第二终端设备响应于用户对触点按钮的点击操作,显示第二接续应用的引导安装弹窗;第二终端设备向第一终端设备发送接续请求消息,该接续请求消息用于请求第一接续应用的接续数据和第一接续应用的安装包;第二终端设备接收来自第一终端设备的第一接续应用的接续数据和第一接续应用的安装包;第二终端设备响应于用户对上述引导安装弹窗的操作,安装第二接续应用,并显示接续数据。In a second aspect, an application continuation method is provided, which is applied to a system including a first terminal device and a second terminal device, a user logs in to the same account on the first terminal device and the second terminal device, and the first terminal device and the second terminal device are in the same local area network, the method comprising: the second terminal device receives a broadcast continuation notification from the first terminal device, the broadcast continuation notification is used to request that a first continuation application of the first terminal device be connected to the second terminal device; the second terminal device obtains an icon of the second continuation application based on the above-mentioned broadcast continuation notification, and displays a contact button in the form of an icon of the second continuation application; the second terminal device displays a guide installation pop-up window of the second continuation application in response to a user clicking the contact button; the second terminal device sends a continuation request message to the first terminal device, the continuation request message is used to request the continuation data of the first continuation application and the installation package of the first continuation application; the second terminal device receives the continuation data of the first continuation application and the installation package of the first continuation application from the first terminal device; the second terminal device installs the second continuation application in response to the user operating the above-mentioned guide installation pop-up window, and displays the continuation data.
结合第二方面,在第二方面的某些实现方式中,上述广播接续通知包括:第一接续应用的应用标识和接续策略;其中,接续策略包括下列至少一种:接续状态标识、第一接续应用的包名或进程名、第一接续应用的应用市场上架策略以及支持接续的最小版本。In combination with the second aspect, in certain implementations of the second aspect, the above-mentioned broadcast connection notification includes: an application identifier and a connection policy of the first connection application; wherein the connection policy includes at least one of the following: a connection status identifier, a package name or process name of the first connection application, an application market listing policy of the first connection application, and a minimum version that supports the connection.
结合第二方面,在第二方面的某些实现方式中,上述基于广播接续通知,获取第二接续应用的图标,包括:第二终端设备判断是否安装有第二接续应用;在未安装第二接续应用的情况下,第二终端设备基于上述广播接续通知,向云端服务器发送第二接续应用的包名和签名信息;第二终端设备接收来自云端服务器的通过白名单校验的第二接续应用的图标。In combination with the second aspect, in certain implementation methods of the second aspect, the above-mentioned obtaining the icon of the second continuation application based on the broadcast continuation notification includes: the second terminal device determines whether the second continuation application is installed; if the second continuation application is not installed, the second terminal device sends the package name and signature information of the second continuation application to the cloud server based on the above-mentioned broadcast continuation notification; the second terminal device receives the icon of the second continuation application that has passed the whitelist verification from the cloud server.
结合第二方面,在第二方面的某些实现方式中,上述广播接续通知还包括第一接续应用的图标。In combination with the second aspect, in some implementations of the second aspect, the broadcast connection notification further includes an icon of the first connection application.
结合第二方面,在第二方面的某些实现方式中,上述显示第二接续应用的引导安装弹窗,并向第一终端设备发送接续请求消息,包括:在第二终端设备未安装第二接续应用的情况下,第二终端设备显示第二接续应用的引导安装弹窗,并向第一终端设备发送接续请求消息。In combination with the second aspect, in certain implementations of the second aspect, the above-mentioned display of a pop-up window to guide the installation of the second continuation application and sending a continuation request message to the first terminal device include: when the second terminal device has not installed the second continuation application, the second terminal device displays a pop-up window to guide the installation of the second continuation application and sends a continuation request message to the first terminal device.
第三方面,提供了一种终端设备,用于执行上述第二方面中任一种可能的实现方式中的方法。具体地,该终端设备包括用于执行上述第二方面中任一种可能的实现方式中的方法的模块。In a third aspect, a terminal device is provided, which is used to execute the method in any possible implementation of the second aspect. Specifically, the terminal device includes a module for executing the method in any possible implementation of the second aspect.
在一种设计中,该终端设备可以包括执行上述第二方面中所描述的方法/操作/步骤/动作所一一对应的模块,该模块可以是硬件电路,也可是软件,也可以是硬件电路结合软件实现。In one design, the terminal device may include a module that executes the methods/operations/steps/actions described in the second aspect above, and the module may be a hardware circuit, software, or a combination of hardware circuit and software.
在另一种设计中,该终端设备为通信芯片,通信芯片可以包括用于发送信息或数据的输入电路或者接口,以及用于接收信息或数据的输出电路或者接口。In another design, the terminal device is a communication chip, which may include an input circuit or interface for sending information or data, and an output circuit or interface for receiving information or data.
在另一种设计中,该终端设备为通信设备,通信设备可以包括用于发送信息或数据的发射机,以及用于接收信息或数据的接收机。In another design, the terminal device is a communication device, which may include a transmitter for sending information or data, and a receiver for receiving information or data.
第四方面,提供了一种终端设备,包括处理器和存储器。该处理器用于读取存储器中存储的指令,并可通过接收器接收信号,通过发射器发射信号,以执行上述第二方面中的任一种可能实现方式中的方法。In a fourth aspect, a terminal device is provided, comprising a processor and a memory. The processor is used to read instructions stored in the memory, and can receive signals through a receiver and transmit signals through a transmitter to execute the method in any possible implementation of the second aspect.
可选地,处理器为一个或多个,存储器为一个或多个。Optionally, there are one or more processors and one or more memories.
可选地,存储器可以与处理器集成在一起,或者存储器与处理器分离设置。Optionally, the memory may be integrated with the processor, or the memory may be provided separately from the processor.
在具体实现过程中,存储器可以为非瞬时性(non-transitory)存储器,例如只读存储器(read only memory,ROM),其可以与处理器集成在同一块芯片上,也可以分别设置在不同的芯片上,本申请实施例对存储器的类型以及存储器与处理器的设置方式不做限定。In the specific implementation process, the memory can be a non-transitory memory, such as a read-only memory (ROM), which can be integrated with the processor on the same chip or can be set on different chips respectively. The embodiments of the present application do not limit the type of memory and the setting method of the memory and the processor.
应理解,相关的数据交互过程例如发送接续数据请求信息可以为从处理器输出指示信息的过程,接收能力信息可以为处理器接收输入能力信息的过程。具体地,处理输出的数据可以输出给发射器,处理器接收的输入数据可以来自接收器。其中,发射器和接收器可以统称为收发器。It should be understood that the relevant data interaction process, such as sending the connection data request information, can be a process of outputting the indication information from the processor, and receiving the capability information can be a process of receiving the input capability information from the processor. Specifically, the processed output data can be output to the transmitter, and the input data received by the processor can come from the receiver. Among them, the transmitter and the receiver can be collectively referred to as a transceiver.
上述第四方面中的终端设备可以是一个芯片,该处理器可以通过硬件来实现也可以通过软件来实现,当通过硬件实现时,该处理器可以是逻辑电路、集成电路等;当通过软件来实现时,该处理器可以是一个通用处理器,通过读取存储器中存储的软件代码来实现,该存储器可以集成在处理器中,可以位于该处理器之外,独立存在。The terminal device in the fourth aspect mentioned above can be a chip, and the processor can be implemented by hardware or by software. When implemented by hardware, the processor can be a logic circuit, an integrated circuit, etc.; when implemented by software, the processor can be a general-purpose processor, which is implemented by reading the software code stored in the memory. The memory can be integrated in the processor or can be located outside the processor and exist independently.
第五方面,提供了一种计算机程序产品,计算机程序产品包括:计算机程序(也可以称为代码,或指令),当计算机程序被运行时,使得计算机执行上述第二方面中的任一种可能实现方式中的方法。In a fifth aspect, a computer program product is provided, the computer program product comprising: a computer program (also referred to as code, or instruction), which, when executed, enables a computer to execute a method in any possible implementation of the second aspect.
第六方面,提供了一种计算机可读存储介质,该计算机可读存储介质存储有计算机程序(也可以称为代码,或指令),当其在计算机上运行时,使得计算机执行上述第二方面中的任一种可能实现方式中的方法。In a sixth aspect, a computer-readable storage medium is provided, which stores a computer program (also referred to as code or instruction), which, when executed on a computer, enables the computer to execute a method in any possible implementation of the second aspect.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1是本申请实施例的应用场景示意图;FIG1 is a schematic diagram of an application scenario of an embodiment of the present application;
图2是本申请实施例提供的终端设备的结构示意图;FIG2 is a schematic diagram of the structure of a terminal device provided in an embodiment of the present application;
图3是本申请实施例提供的终端设备的软件结构示意图;FIG3 is a schematic diagram of the software structure of a terminal device provided in an embodiment of the present application;
图4是本申请实施例提供的终端设备的另一种软件结构示意图;FIG4 is a schematic diagram of another software structure of a terminal device provided in an embodiment of the present application;
图5是本申请实施例提供的一种应用接续方法的示意性流程图;FIG5 is a schematic flow chart of an application connection method provided in an embodiment of the present application;
图6是本申请实施例提供的另一种应用接续方法的示意性流程图;FIG6 is a schematic flow chart of another application connection method provided in an embodiment of the present application;
图7是本申请实施例提供的源端设备的一种界面示意图;FIG7 is a schematic diagram of an interface of a source device provided in an embodiment of the present application;
图8是本申请实施例提供的对端设备的一种界面变化示意图;FIG8 is a schematic diagram of an interface change of a peer device provided in an embodiment of the present application;
图9是本申请实施例提供的另一种应用接续方法的示意性流程图;FIG9 is a schematic flow chart of another application connection method provided in an embodiment of the present application;
图10是本申请实施例提供的又一种应用接续方法的示意性流程图;FIG10 is a schematic flow chart of another application connection method provided in an embodiment of the present application;
图11是本申请实施例提供的一种第二接续应用的图标获取方法的示意性流程图;11 is a schematic flow chart of a method for obtaining an icon of a second subsequent application provided in an embodiment of the present application;
图12是本申请实施例提供的一种终端设备的示意性框图;FIG12 is a schematic block diagram of a terminal device provided in an embodiment of the present application;
图13是本申请实施例提供的另一种终端设备的示意性框图。FIG13 is a schematic block diagram of another terminal device provided in an embodiment of the present application.
具体实施方式Detailed ways
下面将结合附图,对本申请中的技术方案进行描述。The technical solution in this application will be described below in conjunction with the accompanying drawings.
为了便于清楚描述本申请实施例的技术方案,在本申请的实施例中,采用了“第一”、“第二”等字样对功能和作用基本相同的相同项或相似项进行区分。本领域技术人员可以理解“第一”、“第二”等字样并不对数量和执行次序进行限定,并且“第一”、“第二”等字样也并不限定一定不同。In order to clearly describe the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as "first" and "second" are used to distinguish the same or similar items with substantially the same functions and effects. Those skilled in the art can understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit the difference.
需要说明的是,本申请中,“示例性地”或者“例如”等词用于表示作例子、例证或说明。本申请中被描述为“示例性地”或者“例如”的任何实施例或设计方案不应被解释为比其他实施例或设计方案更优选或更具优势。确切而言,使用“示例性地”或者“例如”等词旨在以具体方式呈现相关概念。It should be noted that, in this application, words such as "exemplarily" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplarily" or "for example" in this application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplarily" or "for example" is intended to present related concepts in a specific way.
此外,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项(个)”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a、b和c中的至少一项(个),可以表示:a,或b,或c,或a和b,或a和c,或b和c,或a、b和c,其中a,b,c可以是单个,也可以是多个。In addition, "at least one" means one or more, and "plurality" means two or more. "And/or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and/or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character "/" generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b and c can mean: a, or b, or c, or a and b, or a and c, or b and c, or a, b and c, where a, b, c can be single or multiple.
在多设备场景中,终端设备被划分为源端设备和对端设备,源端设备是发送端设备,对端设备是接收端设备。当源端设备和对端设备登陆了相同的账号,并且源端设备和对端设备处于同一局域网的情况下,通过用户触发接续条件,源端设备和对端设备上的应用可实现接续。例如,源端设备为电脑,对端设备为手机,用户在电脑和手机登陆了相同的账号,且电脑和手机处于同一局域网,若用户在电脑上的视频播放软件播放视频,用户的手机上的视频播放软件能同步播放该视频,若用户在电脑上正在编辑文本,用户的手机上可以同步显示正在编辑的文本。In a multi-device scenario, terminal devices are divided into source devices and peer devices. The source device is the sending device, and the peer device is the receiving device. When the source device and the peer device are logged in to the same account, and the source device and the peer device are in the same local area network, the applications on the source device and the peer device can be connected by the user triggering the connection conditions. For example, the source device is a computer, and the peer device is a mobile phone. The user logs in to the same account on the computer and the mobile phone, and the computer and the mobile phone are in the same local area network. If the user plays a video on the video player software on the computer, the video player software on the user's mobile phone can play the video synchronously. If the user is editing text on the computer, the text being edited can be displayed synchronously on the user's mobile phone.
为了便于理解本申请,下面结合图1对本申请实施例所涉及的应用场景进行介绍。To facilitate understanding of the present application, the application scenarios involved in the embodiments of the present application are introduced below in conjunction with FIG. 1 .
图1示出了本申请实施例的应用场景100的示意图。该应用场景包括第一终端设备101和第二终端设备102,其中,第一终端设备101可以作为源端设备,第二终端设备102可以作为对端设备,用户在第一终端设备101和第二终端设备102上登陆了相同的账号,且第一终端设备101和第二终端设备102处于同一局域网,第一终端设备可以将应用的数据接续到第二终端设备102上。Fig. 1 shows a schematic diagram of an application scenario 100 of an embodiment of the present application. The application scenario includes a first terminal device 101 and a second terminal device 102, wherein the first terminal device 101 can be used as a source device, the second terminal device 102 can be used as a peer device, the user logs in to the same account on the first terminal device 101 and the second terminal device 102, and the first terminal device 101 and the second terminal device 102 are in the same local area network, and the first terminal device can connect the application data to the second terminal device 102.
可选地,上述应用场景100还包括第三终端设备103。第三终端设备103可作为对端设备,用户在第一终端设备101和第三终端设备103上登录了相同的账号,且第一终端设备101和第三终端设备103处于同一局域网,第一终端设备101可以将应用的数据接续到第三终端设备103上。Optionally, the above application scenario 100 further includes a third terminal device 103. The third terminal device 103 can be used as a peer device. If the user logs in to the same account on the first terminal device 101 and the third terminal device 103, and the first terminal device 101 and the third terminal device 103 are in the same local area network, the first terminal device 101 can connect the application data to the third terminal device 103.
应理解,在多设备应用接续的场景中,对端设备的数量可以为一个或多个,本申请实施例对此不作限定。It should be understood that in a scenario where multiple devices are connected, the number of peer devices may be one or more, and this is not limited in the embodiments of the present application.
还应理解,本申请并不要求上述多个对端设备均与源端设备处于同一局域网下,例如,上述第一终端设备101和第二终端设备102可以处于一个局域网(例如WiFi),第一终端设备101和第三终端设备103可以处于另一局域网(例如蓝牙),第一终端设备101可以将应用的数据分别接续到第二终端设备102和第三终端设备103上。It should also be understood that the present application does not require that the above-mentioned multiple opposite-end devices are all in the same local area network as the source-end device. For example, the above-mentioned first terminal device 101 and the second terminal device 102 may be in one local area network (such as WiFi), and the first terminal device 101 and the third terminal device 103 may be in another local area network (such as Bluetooth). The first terminal device 101 may connect the application data to the second terminal device 102 and the third terminal device 103 respectively.
为了更好的理解本申请实施例中的终端设备,下面对本申请实施例的终端设备的硬件结构进行介绍。In order to better understand the terminal device in the embodiment of the present application, the hardware structure of the terminal device in the embodiment of the present application is introduced below.
图2示出了终端设备200的结构示意图。FIG. 2 shows a schematic structural diagram of a terminal device 200 .
终端设备200可以包括处理器210,外部存储器接口220,内部存储器221,通用串行总线(universal serial bus,USB)接口230,充电管理模块240,电源管理模块241,电池242,天线1,天线2,移动通信模块250,无线通信模块260,音频模块270,扬声器270A,受话器270B,麦克风270C,耳机接口270D,传感器模块280,按键290,马达291,指示器292,摄像头293,显示屏294,以及用户标识模块(subscriber identification module,SIM)卡接口295等。其中,传感器模块280可以包括压力传感器280A,陀螺仪传感器280B,气压传感器280C,磁传感器280D,加速度传感器280E,距离传感器280F,接近光传感器280G,指纹传感器280H,温度传感器280J,触摸传感器280K,环境光传感器280L,骨传导传感器280M等。The terminal device 200 may include a processor 210, an external memory interface 220, an internal memory 221, a universal serial bus (USB) interface 230, a charging management module 240, a power management module 241, a battery 242, an antenna 1, an antenna 2, a mobile communication module 250, a wireless communication module 260, an audio module 270, a speaker 270A, a receiver 270B, a microphone 270C, an earphone interface 270D, a sensor module 280, a button 290, a motor 291, an indicator 292, a camera 293, a display screen 294, and a subscriber identification module (SIM) card interface 295, etc. Among them, the sensor module 280 may include a pressure sensor 280A, a gyroscope sensor 280B, an air pressure sensor 280C, a magnetic sensor 280D, an acceleration sensor 280E, a distance sensor 280F, a proximity light sensor 280G, a fingerprint sensor 280H, a temperature sensor 280J, a touch sensor 280K, an ambient light sensor 280L, a bone conduction sensor 280M, etc.
可以理解的是,本申请实施例示意的结构并不构成对终端设备200的具体限定。在本申请另一些实施例中,终端设备200可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It is understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the terminal device 200. In other embodiments of the present application, the terminal device 200 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
处理器210可以包括一个或多个处理单元,例如:处理器210可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processingunit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 210 may include one or more processing units, for example, the processor 210 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and/or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.
处理器210中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器210中的存储器为高速缓冲存储器。该存储器可以保存处理器210刚用过或循环使用的指令或数据。如果处理器210需要再次使用该指令或数据,可从存储器中调用。避免了重复存取,减少了处理器210的等待时间,因而提高了系统的效率。The processor 210 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 210 is a cache memory. The memory may store instructions or data that the processor 210 has just used or cyclically used. If the processor 210 needs to use the instruction or data again, it may be called from the memory. This avoids repeated access, reduces the waiting time of the processor 210, and thus improves the efficiency of the system.
在一些实施例中,处理器210可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuitsound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purposeinput/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。In some embodiments, the processor 210 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (SIM) interface, and/or a universal serial bus (USB) interface, etc.
可以理解的是,本申请实施例示意的各模块间的接口连接关系,是示意性说明,并不构成对终端设备200的结构限定。在本申请另一些实施例中,终端设备200也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is a schematic illustration and does not constitute a structural limitation on the terminal device 200. In other embodiments of the present application, the terminal device 200 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
终端设备通过GPU,显示屏294,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏294和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器210可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The terminal device implements the display function through a GPU, a display screen 294, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 294 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 210 may include one or more GPUs, which execute program instructions to generate or change display information.
终端设备可以通过ISP,摄像头293,视频编解码器,GPU,显示屏294以及应用处理器等实现拍摄功能。The terminal device can realize the shooting function through the ISP, the camera 293, the video codec, the GPU, the display screen 294 and the application processor.
外部存储器接口220可以用于连接外部存储卡,例如Micro SD卡,实现扩展终端设备的存储能力。外部存储卡通过外部存储器接口220与处理器210通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The external memory interface 220 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the terminal device. The external memory card communicates with the processor 210 through the external memory interface 220 to implement a data storage function. For example, files such as music and videos can be stored in the external memory card.
内部存储器221可以用于存储计算机可执行程序代码,可执行程序代码包括指令。内部存储器221可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储终端设备使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器221可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。处理器210通过运行存储在内部存储器221的指令,和/或存储在设置于处理器中的存储器的指令,执行终端设备的各种功能应用以及数据处理。例如,可以执行本申请实施例的应用接续方法。The internal memory 221 can be used to store computer executable program codes, and the executable program codes include instructions. The internal memory 221 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the terminal device (such as audio data, a phone book, etc.), etc. In addition, the internal memory 221 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 210 executes various functional applications and data processing of the terminal device by running instructions stored in the internal memory 221, and/or instructions stored in a memory provided in the processor. For example, the application continuation method of an embodiment of the present application may be executed.
本申请的终端设备可以作为源端设备,也可以作为对端设备。源端设备也可以称为发送端,对端设备也可以称为接收端。终端设备的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本申请实施例的图3以分层架构的Android系统为例,示例性说明发送端和接收端的软件结构。The terminal device of the present application can be used as a source device or as a peer device. The source device can also be called a sender, and the peer device can also be called a receiver. The software system of the terminal device can adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. FIG. 3 of the embodiment of the present application takes the Android system of the layered architecture as an example to illustrate the software structure of the sender and the receiver.
如图3所示,以发送端为例,分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口进行数据的传输与通信。在一些实施例中,将Android系统分为五层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Androidruntime)和系统库、硬件抽象层(hardware abstract layer,HAL),以及内核层。As shown in Figure 3, taking the sending end as an example, the layered architecture divides the software into several layers, each with clear roles and division of labor. Data transmission and communication are carried out between layers through software interfaces. In some embodiments, the Android system is divided into five layers, from top to bottom, namely, the application layer, the application framework layer, the Android runtime (Androidruntime) and the system library, the hardware abstract layer (HAL), and the kernel layer.
应用程序层可以包括一系列应用程序包。如图3所示,应用程序包可以包括第三方应用、软件开发工具包(software development kit,SDK)、蓝牙、WIFI、备忘录、视频、游戏等应用程序。例如本申请实施例中,在应用程序层中,接续应用可以接入接续服务SDK,接续应用可以为终端设备中的系统应用,也可以为第三方应用,备忘录、视频、游戏等应用也可以为系统应用或第三方应用。The application layer may include a series of application packages. As shown in FIG3 , the application package may include third-party applications, software development kits (SDKs), Bluetooth, WIFI, memos, videos, games and other applications. For example, in the embodiment of the present application, in the application layer, the continuation application may access the continuation service SDK, the continuation application may be a system application in the terminal device, or a third-party application, and the memos, videos, games and other applications may also be system applications or third-party applications.
应用程序框架层为应用程序层的应用程序提供应用编程接口(applicationprogramming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.
如图3所示,应用程序框架层可以包括接续服务管理器、通信服务管理器、鉴权服务管理器、通知管理器、窗口管理器、资源管理器、内容提供器和视图系统等。其中,管理器在一些应用场景中也可以称为模块。As shown in Figure 3, the application framework layer may include a connection service manager, a communication service manager, an authentication service manager, a notification manager, a window manager, a resource manager, a content provider, and a view system, etc. The manager may also be referred to as a module in some application scenarios.
接续服务管理器可以负责接续任务的管理,可以为整体接续服务框架的核心。例如本申请实施例中,接续服务管理器可以负责接续应用的接入、接续应用的鉴权、接续应用的图标管理以及接续数据跨设备间的传输。The connection service manager can be responsible for the management of connection tasks and can be the core of the overall connection service framework. For example, in the embodiment of the present application, the connection service manager can be responsible for the access of connection applications, the authentication of connection applications, the icon management of connection applications, and the transmission of connection data across devices.
通信服务管理器可以用于实现跨设备间的数据传输,例如本申请实施例中,通信服务管理器可以实现同账号设备的安全认证与账号鉴权、设备的自发现与自组网、设备间的数据传输以及通信服务的接入等。The communication service manager can be used to realize data transmission across devices. For example, in the embodiment of the present application, the communication service manager can realize security authentication and account authentication of devices with the same account, self-discovery and self-organizing networking of devices, data transmission between devices, and access to communication services.
鉴权服务管理器可以负责应用的合法性校验,例如本申请实施例中,在鉴权服务管理器校验通过后可以允许应用接入接续服务。The authentication service manager may be responsible for verifying the legitimacy of the application. For example, in an embodiment of the present application, the application may be allowed to access the subsequent service after the authentication service manager passes the verification.
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息、发出提示音、终端设备振动、指示灯闪烁等。例如本申请实施例中,当第二终端设备接收到接续通知时,通知管理器可以在任务栏中显示接续通知。The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can automatically disappear after a short stay without user interaction. For example, the notification manager is used to notify the completion of downloads, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is prompted in the status bar, a prompt tone is issued, the terminal device vibrates, the indicator light flashes, etc. For example, in an embodiment of the present application, when the second terminal device receives a follow-up notification, the notification manager can display the follow-up notification in the taskbar.
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.
电话管理器用于提供终端设备200的通信功能。例如通话状态的管理(包括接通,挂断等)。The phone manager is used to provide communication functions of the terminal device 200, such as management of call status (including connection, disconnection, etc.).
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
Android runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。Android runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。The core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android core library.
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
系统库可以包括多个功能模块。例如:媒体库(Media Libraries)、函数库(Function Libraries)图形处理库(例如:OpenGL ES)等。The system library may include multiple functional modules, such as media libraries, function libraries, graphics processing libraries (such as OpenGL ES), etc.
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
函数库为开发者提供多种服务的API接口,方便开发者快速集成并实现各种功能。The function library provides developers with API interfaces for multiple services, making it easy for developers to quickly integrate and implement various functions.
图形处理库用于实现图形绘图、图像渲染、合成和图层处理等。The graphics processing library is used to implement graphics drawing, image rendering, synthesis and layer processing.
硬件抽象层是介于内核层和Android runtime之间的抽象出来的一层结构。硬件抽象层可以是对硬件驱动的一个封装,为上层应用的调用提供统一接口。硬件抽象层可以包括蓝牙模块、WIFI模块、硬件配置模块等。例如本申请实施例中,硬件抽象层中的蓝牙模块和WIFI模块可以屏蔽内核层中蓝牙驱动和WIFI驱动的具体硬件实现细节,上层应用在不必知道内核层硬件驱动的具体实现方式的情况下就可以通过调用接口实现蓝牙功能和WIFI功能。The hardware abstraction layer is an abstracted structure between the kernel layer and the Android runtime. The hardware abstraction layer can be a package of the hardware driver, providing a unified interface for the call of the upper layer application. The hardware abstraction layer may include a Bluetooth module, a WIFI module, a hardware configuration module, etc. For example, in the embodiment of the present application, the Bluetooth module and the WIFI module in the hardware abstraction layer can shield the specific hardware implementation details of the Bluetooth driver and the WIFI driver in the kernel layer, and the upper layer application can implement the Bluetooth function and the WIFI function by calling the interface without having to know the specific implementation method of the kernel layer hardware driver.
内核层是硬件和软件之间的层。内核层可以包括显示驱动、摄像头驱动、音频驱动、蓝牙驱动、WiFi驱动、中央处理器驱动等。例如本申请实施例中,通信服务管理器可以通过蓝牙驱动以及WiFi驱动等相关模块进行跨设备间的连接,实现设备的自发现与自组网。The kernel layer is a layer between hardware and software. The kernel layer may include display drivers, camera drivers, audio drivers, Bluetooth drivers, WiFi drivers, CPU drivers, etc. For example, in the embodiment of the present application, the communication service manager can connect across devices through relevant modules such as Bluetooth drivers and WiFi drivers to achieve self-discovery and self-organizing networking of devices.
下面结合终端设备之间在应用接续过程中进行接续通知显示的场景,示例性说明Android系统分层框架中的接续数据的传输流程。The following is an example of the transmission process of connection data in the Android system layered framework, combining the scenario of displaying the connection notification during the application connection process between terminal devices.
如图3所示,在发送端的应用程序层中,应用程序可以通过接入接续服务SDK实现与接续服务的数据传输。接续服务SDK可以向接续服务管理器发送绑定接续服务以及应用注册接续服务请求,进而实现应用程序层与应用程序框架层之间的接续应用注册与绑定的数据传输。As shown in Figure 3, in the application layer of the sending end, the application can realize data transmission with the continuation service by accessing the continuation service SDK. The continuation service SDK can send a continuation service binding and application registration continuation service request to the continuation service manager, thereby realizing the continuation application registration and binding data transmission between the application layer and the application framework layer.
在应用程序框架层中,接续服务管理器可以通过与通信服务管理器进行信令传输与数据传输完成通信服务的绑定。接续服务管理器还可以与鉴权服务管理器进行绑定鉴权服务以及应用鉴权。In the application framework layer, the connection service manager can complete the binding of communication services by performing signaling transmission and data transmission with the communication service manager. The connection service manager can also bind authentication services and application authentication with the authentication service manager.
在接续应用注册成功后,通信服务管理器可以调用硬件抽象层提供的蓝牙模块接口以及WIFI模块接口实现设备的自发现与自组网,并通过内核层中的蓝牙驱动和WIFI驱动实现终端设备间的会话连接、消息传递,以及接续内容的传输等。After the follow-up application is successfully registered, the communication service manager can call the Bluetooth module interface and the WIFI module interface provided by the hardware abstraction layer to realize the self-discovery and self-organizing network of the device, and realize the session connection, message transmission, and transmission of the follow-up content between terminal devices through the Bluetooth driver and WIFI driver in the kernel layer.
当接收端基于内核层接收到发送端传递过来的接续相关的数据后,可以将数据传输给硬件抽象层中的相关模块。在接收端的应用程序框架层中,通信服务管理器可以通过硬件抽象层中提供的接口获取传输过来的接续数据,并与接续服务管理器进行信令传输与数据传输。接续服务管理器在接收到接续相关的数据后,可以与鉴权服务管理器进行绑定鉴权服务以及应用鉴权。进一步的,接续服务管理器可以指示桌面启动器以图标形式显示接续通知。When the receiving end receives the connection-related data transmitted from the sending end based on the kernel layer, the data can be transmitted to the relevant modules in the hardware abstraction layer. In the application framework layer of the receiving end, the communication service manager can obtain the transmitted connection data through the interface provided in the hardware abstraction layer, and perform signaling and data transmission with the connection service manager. After receiving the connection-related data, the connection service manager can bind the authentication service and apply authentication with the authentication service manager. Furthermore, the connection service manager can instruct the desktop launcher to display the connection notification in the form of an icon.
可以理解的是,本申请实施例的发送端或接收端也可以采用Windows系统,如图4所示,与Android系统不同的是Windows系统的分层架构主要分为用户态和内核态,用户态可以包括用户应用程序进程,以及系统进程与服务进程等;内核态可以包括内核和设备驱动层,以及硬件抽象层等。It can be understood that the sending end or the receiving end of the embodiment of the present application can also adopt the Windows system. As shown in Figure 4, the difference from the Android system is that the layered architecture of the Windows system is mainly divided into user state and kernel state. The user state can include user application processes, system processes, service processes, etc.; the kernel state can include the kernel and device driver layer, as well as the hardware abstraction layer, etc.
用户应用程序进程可以执行一系列应用程序。具体可执行的应用程序类型可以与Android系统中应用程序层中的应用程序类型相同,在此不再赘述。The user application process can execute a series of applications. The specific executable application types can be the same as the application types in the application layer of the Android system, which will not be repeated here.
系统进程与服务进程中可以包括接续服务管理器、通信服务管理器、鉴权服务管理器、系统进程、通知管理器、窗口管理器等,可以为用户应用程序进程的执行提供相应服务。具体与本申请实施例相关的接续服务管理器、通信服务管理器、鉴权服务管理器等进程的作用可参见Android中的相关管理器描述,在此不再赘述。The system process and service process may include a connection service manager, a communication service manager, an authentication service manager, a system process, a notification manager, a window manager, etc., which can provide corresponding services for the execution of user application processes. The functions of the connection service manager, the communication service manager, the authentication service manager and other processes related to the embodiment of the present application can be found in the description of the relevant managers in Android, which will not be repeated here.
内核层和设备驱动层可以包括蓝牙驱动、WiFi驱动、显示驱动等,硬件抽象层可以包括蓝牙模块、WIFI模块、硬件配置模块等。具体的功能模块的作用可参见Android中的相关描述,在此不再赘述。The kernel layer and device driver layer may include Bluetooth driver, WiFi driver, display driver, etc. The hardware abstraction layer may include Bluetooth module, WiFi module, hardware configuration module, etc. The functions of specific functional modules can be found in the relevant description in Android, which will not be repeated here.
下面将结合实现跨设备间的内容接续方法的系统详细说明各模块之间的交互过程。下面的实施例可以相互结合或独立实施,对于相同或相似的概念或过程可能在某些实施例中不再赘述。The following will describe the interaction process between the modules in detail in conjunction with a system for implementing a method for connecting content across devices. The following embodiments may be implemented in combination with each other or independently, and the same or similar concepts or processes may not be described in detail in some embodiments.
图5是本申请实施例提供的一种应用接续方法的示意性流程图。该方法可以应用于上述场景100,该方法所涉及的终端设备的硬件结构可以如图2所述,软件结构可以如图3或图4所示。第一终端设备可以对应于图3或图4的发送端,第二终端设备可以对应于图3或图4的接收端。第一终端设备与第二终端设备中均可以包括实现接续服务的各个功能模块,例如,可以包括接续服务SDK、接续服务管理器、通信服务管理器,以及鉴权服务管理器等。FIG5 is a schematic flow chart of an application continuation method provided by an embodiment of the present application. The method can be applied to the above-mentioned scenario 100, and the hardware structure of the terminal device involved in the method can be as described in FIG2, and the software structure can be as shown in FIG3 or FIG4. The first terminal device can correspond to the transmitting end of FIG3 or FIG4, and the second terminal device can correspond to the receiving end of FIG3 or FIG4. The first terminal device and the second terminal device can both include various functional modules for implementing the continuation service, for example, a continuation service SDK, a continuation service manager, a communication service manager, and an authentication service manager, etc.
为了便于描述,后续将第一终端设备的接续应用称为第一接续应用,第一终端设备的接续服务SDK称为第一接续服务SDK,第一终端设备的接续服务管理器称为第一接续服务管理器,第一终端设备的通信服务管理器称为第一通信服务管理器,第一终端设备的鉴权服务管理器称为第一鉴权服务管理器。For the sake of ease of description, the connection application of the first terminal device will be referred to as the first connection application, the connection service SDK of the first terminal device will be referred to as the first connection service SDK, the connection service manager of the first terminal device will be referred to as the first connection service manager, the communication service manager of the first terminal device will be referred to as the first communication service manager, and the authentication service manager of the first terminal device will be referred to as the first authentication service manager.
将第二终端设备的接续应用称为第二接续应用,第二终端设备的接续服务SDK称为第二接续服务SDK,第二终端设备的接续服务管理器称为第二接续服务管理器,第二终端设备的通信服务管理器称为第二通信服务管理器,第二终端设备的鉴权服务管理器称为第二鉴权服务管理器。The continuation application of the second terminal device is called the second continuation application, the continuation service SDK of the second terminal device is called the second continuation service SDK, the continuation service manager of the second terminal device is called the second continuation service manager, the communication service manager of the second terminal device is called the second communication service manager, and the authentication service manager of the second terminal device is called the second authentication service manager.
应理解,第一接续应用和第二接续应用对应相同,例如第一接续应用为备忘录,第二接续应用也为备忘录。It should be understood that the first continuation application and the second continuation application correspond to the same, for example, the first continuation application is a memo, and the second continuation application is also a memo.
该应用接续方法的实现过程可以分为三个阶段,第一阶段为接续应用的注册与绑定,第二阶段为接续通知的显示,第三阶段为接续数据的获取与加载。下面结合图5分别介绍各阶段。The implementation process of the application connection method can be divided into three stages: the first stage is the registration and binding of the connection application, the second stage is the display of the connection notification, and the third stage is the acquisition and loading of the connection data. Each stage is described below in conjunction with FIG. 5 .
第一阶段、接续应用的注册与绑定。The first stage is to register and bind the subsequent application.
当第一终端设备的第一接续应用监控到一些用户行为时,第一接续应用可以通过调用第一接续服务SDK的注册接口接入接续服务。可以理解的是,第一接续应用在注册接续服务时可以携带第一接续应用的应用包名等信息。用户行为可以为用户点击第一接续应用图标启动应用,也可以为用户在第一接续应用中进行编辑等操作,还可以为用户在第一接续应用中点击播放按钮进行视频播放、音乐播放或其他媒体播放等操作,具体所监控的用户行为可以由接续应用进行自定义设置,本申请实施例在此不做限制。When the first continuation application of the first terminal device monitors some user behaviors, the first continuation application can access the continuation service by calling the registration interface of the first continuation service SDK. It is understandable that the first continuation application can carry information such as the application package name of the first continuation application when registering the continuation service. The user behavior can be the user clicking the first continuation application icon to start the application, or the user performing editing and other operations in the first continuation application, or the user clicking the play button in the first continuation application to play videos, music or other media. The specific monitored user behavior can be customized by the continuation application, and the embodiments of the present application are not limited here.
可能的实现中,第一接续服务SDK可以通过第一接续服务管理器与其他功能管理器进行数据交互。示例性的,第一接续服务SDK可以向第一接续服务管理器发送绑定接续服务以及应用注册接续服务的请求,第一接续服务管理器在接收到第一接续服务SDK的请求后,可以与第一通信服务管理器交互进而绑定通信服务,在绑定成功后,第一接续服务管理器则可以接收到第一通信服务管理器回复的绑定成功的消息。In a possible implementation, the first connection service SDK can exchange data with other function managers through the first connection service manager. Exemplarily, the first connection service SDK can send a request to bind the connection service and apply the registration connection service to the first connection service manager. After receiving the request from the first connection service SDK, the first connection service manager can interact with the first communication service manager to bind the communication service. After the binding is successful, the first connection service manager can receive a successful binding message from the first communication service manager.
进一步的,第一接续服务管理器可以通过调用第一鉴权服务管理器所提供的的接口进行绑定鉴权服务以及应用鉴权。第一鉴权服务管理器在接收到鉴权请求后,可以通过与云端鉴权服务器进行数据交互完成第一接续应用的绑定与鉴权。可以理解的是,在绑定鉴权服务的过程中,云端鉴权服务器可以根据第一接续应用的包名获取用户标识(useridentification,UID),进而根据UID进行应用鉴权。当第一接续应用鉴权成功后,云端鉴权服务器中可以存储第一接续应用的图标等应用信息,并给第一接续服务管理器返回鉴权结果。Furthermore, the first connection service manager can bind the authentication service and perform application authentication by calling the interface provided by the first authentication service manager. After receiving the authentication request, the first authentication service manager can complete the binding and authentication of the first connection application by exchanging data with the cloud authentication server. It can be understood that in the process of binding the authentication service, the cloud authentication server can obtain the user identification (UID) according to the package name of the first connection application, and then perform application authentication according to the UID. When the first connection application is authenticated successfully, the cloud authentication server can store the application information such as the icon of the first connection application, and return the authentication result to the first connection service manager.
在第一接续服务管理器接收到第一接续应用鉴权结果后,会将该消息传递给第一接续应用。其中,鉴权结果可以包括鉴权成功和鉴权失败,如果第一接续应用接收到的结果为鉴权成功,则说明应用注册成功,可以继续执行应用接续的方法;如果第一接续应用接收到的结果为鉴权失败,则说明应用注册失败,不会继续执行应用接续的方法。After the first connection service manager receives the authentication result of the first connection application, it will pass the message to the first connection application. The authentication result may include authentication success and authentication failure. If the result received by the first connection application is authentication success, it means that the application registration is successful and the application connection method can be continued; if the result received by the first connection application is authentication failure, it means that the application registration fails and the application connection method will not be continued.
在第一终端设备的应用注册成功之后,第一通信服务管理器与第二通信服务管理器可以通过蓝牙或者WIFI进行自发现与自组网,以及进行账号鉴权,进一步的,第一通信服务管理器可以向第一接续服务管理器发送用于表示第二终端设备上线的信息。例如,用于表示第二终端设备上线的信息可以包括第二终端设备的设备标识(deviceidentification,DevID)等信息。After the application registration of the first terminal device is successful, the first communication service manager and the second communication service manager can perform self-discovery and self-networking through Bluetooth or WIFI, as well as account authentication. Furthermore, the first communication service manager can send information indicating that the second terminal device is online to the first connection service manager. For example, the information indicating that the second terminal device is online may include information such as the device identification (DevID) of the second terminal device.
在第一接续服务管理器接收到第一通信服务管理器发送的用于表示第二终端设备上线的信息后,可以将第二终端设备的信息进行存储与管理,以便执行进行后续的应用数据接续的流程。After the first connection service manager receives the information sent by the first communication service manager indicating that the second terminal device is online, the information of the second terminal device can be stored and managed to execute the subsequent application data connection process.
第二阶段、接续通知的显示。The second stage is the display of the follow-up notification.
当第一接续应用注册成功后,则可以周期性向第一接续服务管理器发送广播接续通知。其中,广播接续通知中可以携带第一接续应用的包名、接续策略,以及接续内容概要(如标题)等信息。第一接续服务管理器可以根据第一接续应用的接续策略确认可接续的设备。When the first connection application is successfully registered, a broadcast connection notification may be periodically sent to the first connection service manager. The broadcast connection notification may carry information such as the package name of the first connection application, the connection policy, and the connection content summary (such as the title). The first connection service manager may confirm the connectable device according to the connection policy of the first connection application.
示例性的,当接续策略为包括应用程序所支持的设备类型时,例如,接续策略中包括第一接续应用可以支持在手机、平板电脑、电视、电脑等上实现接续服务,则第一接续服务管理器在确认第二终端设备为手机、平板电脑、电视或电脑等时,第一接续服务管理器可以指示第一通信服务管理器和第二通信服务管理器建立会话通路。Exemplarily, when the connection policy includes the device types supported by the application, for example, the connection policy includes that the first connection application can support the implementation of connection services on mobile phones, tablet computers, televisions, computers, etc., then when the first connection service manager confirms that the second terminal device is a mobile phone, tablet computer, television or computer, etc., the first connection service manager can instruct the first communication service manager and the second communication service manager to establish a session path.
示例性的,当接续策略为包括最小版本号或最小版本时,例如,接续策略中包括第一接续应用可以支持最小版本号为A,或最小版本为B,则第一接续服务管理器在确认第二接续应用的版本号大于或等于A时,或者第二接续应用的版本大于或等于B时,第一接续服务管理器可以指示第一通信服务管理器和第二通信服务管理器建立会话通路。Exemplarily, when the continuation policy includes a minimum version number or a minimum version, for example, the continuation policy includes that the first continuation application can support a minimum version number of A, or a minimum version of B, then when the first continuation service manager confirms that the version number of the second continuation application is greater than or equal to A, or the version of the second continuation application is greater than or equal to B, the first continuation service manager can instruct the first communication service manager and the second communication service manager to establish a session path.
第一通信服务管理器和第二通信服务管理器之间则可以建立起会话通路,以便进行应用接续相关的消息传递和数据传输。A session path may be established between the first communication service manager and the second communication service manager to facilitate application connection-related message delivery and data transmission.
会话通路建立成功后,第一通信服务管理器可以向第一接续服务管理器指示通道建立成功,第一接续服务管理器可以根据第一接续应用发送的广播接续通知,将携带有第一接续应用的包名以及接续内容概要等信息的广播接续通知给到第一通信服务管理器,第一通信服务管理器通过建立好的会话通路将第一接续应用的包名以及接续内容概要等信息发送给第二通信服务管理器,第二通信服务管理器进一步将第一接续应用的包名以及接续内容概要等信息上报到第二接续服务管理器。After the session channel is successfully established, the first communication service manager can indicate to the first connection service manager that the channel is successfully established. The first connection service manager can, based on the broadcast connection notification sent by the first connection application, send a broadcast connection notification carrying information such as the package name of the first connection application and a summary of the connection content to the first communication service manager. The first communication service manager sends information such as the package name of the first connection application and a summary of the connection content to the second communication service manager through the established session channel. The second communication service manager further reports information such as the package name of the first connection application and a summary of the connection content to the second connection service manager.
第二接续服务管理器可以解析第一接续应用的包名,并携带第一接续应用的包名信息与第二鉴权服务管理器进行绑定与鉴权,绑定与鉴权相关的实现同第一终端设备中的鉴权步骤类似,在此不再赘述。The second connection service manager can parse the package name of the first connection application, and carry the package name information of the first connection application to bind and authenticate with the second authentication service manager. The implementation related to binding and authentication is similar to the authentication steps in the first terminal device, which will not be repeated here.
当应用鉴权成功后,第二接续服务管理器可以通过任意可能的实现获取应用图标。When the application authentication is successful, the second connection service manager can obtain the application icon through any possible implementation.
一种可能的实现中,第二接续服务管理器可以根据得到的第一接续应用的包名等应用信息在第二终端设备中查找本地是否存储有第一接续应用的图标。若可以查找到第一接续应用的图标,则第二接续服务管理器可以通知桌面启动器使用第一接续应用的图标显示接续通知;若未查找到第一接续应用的图标,则第二接续服务管理器可以通过云端鉴权服务器获取第一接续应用的图标等相关信息。进一步的,在云端鉴权服务器将第一接续应用的图标发送给第二接续服务管理器时,则第二接续服务管理器可以在第二终端设备的本地存储第一接续应用的图标等相关信息,以及第二接续服务管理器可以通知桌面启动器在第二终端设备上显示接续通知。In a possible implementation, the second connection service manager can search whether the icon of the first connection application is stored locally in the second terminal device based on the application information such as the package name of the first connection application. If the icon of the first connection application can be found, the second connection service manager can notify the desktop launcher to use the icon of the first connection application to display the connection notification; if the icon of the first connection application is not found, the second connection service manager can obtain the icon of the first connection application and other related information through the cloud authentication server. Furthermore, when the cloud authentication server sends the icon of the first connection application to the second connection service manager, the second connection service manager can store the icon of the first connection application and other related information locally on the second terminal device, and the second connection service manager can notify the desktop launcher to display the connection notification on the second terminal device.
另一种可能的实现中,第二接续服务管理器可以通过云端鉴权服务器获取第一接续应用的图标等相关信息。In another possible implementation, the second connection service manager may obtain relevant information such as the icon of the first connection application through the cloud authentication server.
再一种可能的实现中,第二接续服务管理器可以在第二终端设备中查找与第一接续应用包名相同的第二接续应用。若可以查找到第二接续应用,则第二接续服务管理器可以通知桌面启动器使用第二终端设备本地存储的第二接续应用的图标显示接续通知;若未查找到第二接续应用,则第二接续服务管理器可以通过上述在第二终端设备的本地或者在云端鉴权服务器中查找应用信息的方式获取第一接续应用的图标等相关信息,并通知桌面启动器使用第一接续应用的图标显示接续通知。In another possible implementation, the second connection service manager can search for a second connection application with the same package name as the first connection application in the second terminal device. If the second connection application can be found, the second connection service manager can notify the desktop launcher to use the icon of the second connection application stored locally on the second terminal device to display the connection notification; if the second connection application is not found, the second connection service manager can obtain the icon and other related information of the first connection application by searching for application information locally on the second terminal device or in the cloud authentication server, and notify the desktop launcher to use the icon of the first connection application to display the connection notification.
可以理解的是,桌面启动器控制显示接续通知时,接续通知可以在第二终端设备的最近任务、任务栏、快捷窗口或者其他界面入口中显示,具体显示接续通知的方式,本申请实施例不做限制。接续通知可以以接续应用图标的形式显示,也可以通过应用名称、提示语或者其他形式显示,具体显示接续通知的形式,本申请实施例不做限制。It is understandable that when the desktop launcher controls the display of the continuation notification, the continuation notification can be displayed in the recent tasks, task bar, quick window or other interface entrance of the second terminal device, and the specific way of displaying the continuation notification is not limited by the embodiment of the present application. The continuation notification can be displayed in the form of a continuation application icon, or can be displayed by the application name, prompt or other forms, and the specific way of displaying the continuation notification is not limited by the embodiment of the present application.
第三阶段、接续数据的获取与加载。The third stage is to obtain and load the subsequent data.
当第二终端设备接收到用户点击接续应用图标的事件后,可能的实现中,若第二终端设备中未安装有第二接续应用,则第二终端设备中可以提示用户安装第二接续应用,具体的提示安装应用的方式,本申请实施例在此不做限制。若第二终端设备中已安装有第二接续应用,或基于提示完成第二接续应用的安装,则可以执行下述的步骤。When the second terminal device receives the event that the user clicks the icon of the continuation application, in a possible implementation, if the second continuation application is not installed in the second terminal device, the second terminal device may prompt the user to install the second continuation application. The specific method of prompting the user to install the application is not limited in the embodiment of the present application. If the second continuation application is already installed in the second terminal device, or the installation of the second continuation application is completed based on the prompt, the following steps may be performed.
第二接续服务管理器可以拉起第二接续应用,并指示第二接续应用加载过渡动画效果,则第二接续应用可以启动并加载过渡动效,过渡动效例如可以包括“加载中…”等提示信息。进一步的,第二接续应用可以通过调用第二接续服务SDK的注册接口接入接续服务,可以理解的是,第二接续应用在注册接续服务时可以携带第二接续应用的应用包名等信息。The second connection service manager can pull up the second connection application and instruct the second connection application to load the transition animation effect, so that the second connection application can start and load the transition animation effect, and the transition animation effect can include prompt information such as "loading...". Further, the second connection application can access the connection service by calling the registration interface of the second connection service SDK. It is understandable that the second connection application can carry information such as the application package name of the second connection application when registering the connection service.
第二接续服务SDK可以向第二接续服务管理器发送绑定接续服务的请求,第二接续服务管理器在接收到绑定接续服务的请求后,可以向第二通信服务管理器发送绑定通信服务的请求。当第二通信服务管理器绑定成功后,第二通信服务管理器可以通过第二接续服务管理器向第二接续服务SDK发送绑定成功的消息。第二接续服务SDK在接收到绑定成功的消息后,向第二接续服务管理器发送注册接续服务的消息,第二接续服务管理器在注册成功后,可以将注册成功的消息通过第二接续服务SDK返回给第二接续应用。The second connection service SDK can send a request to bind the connection service to the second connection service manager. After receiving the request to bind the connection service, the second connection service manager can send a request to bind the communication service to the second communication service manager. When the second communication service manager is successfully bound, the second communication service manager can send a binding success message to the second connection service SDK through the second connection service manager. After receiving the binding success message, the second connection service SDK sends a registration message to the second connection service manager. After the second connection service manager is successfully registered, the registration success message can be returned to the second connection application through the second connection service SDK.
在第二接续应用启动过程中,第二接续服务管理器还可以通过第一终端设备与第二终端设备之间所建立的会话通路向第一接续服务管理器发送请求接续数据,当第一接续服务管理器接收到请求接续数据后,可以通过第一接续服务SDK将请求接续数据上报给第一接续应用,则第一接续应用可以将接续内容等相关接续数据进行打包和加密,并通过第一接续服务SDK将接续数据发送给第一接续服务管理器,第一接续服务管理器可以通过第一终端设备与第二终端设备之间所建立的会话通路将接续数据发送给第二接续服务管理器。During the startup of the second continuation application, the second continuation service manager can also send request continuation data to the first continuation service manager through the session path established between the first terminal device and the second terminal device. After the first continuation service manager receives the request continuation data, it can report the request continuation data to the first continuation application through the first continuation service SDK. The first continuation application can package and encrypt related continuation data such as the continuation content, and send the continuation data to the first continuation service manager through the first continuation service SDK. The first continuation service manager can send the continuation data to the second continuation service manager through the session path established between the first terminal device and the second terminal device.
进一步的,第二接续服务管理器通过第二接续服务SDK向第二接续应用通知接续数据,第二接续应用在注册成功之后,可以加载接续数据并控制第二终端设备显示接续数据,以及向第一终端设备的第一接续应用传递用于指示接续成功的信息,进而第一接续应用可以执行退出第一接续应用的页面等流程。Furthermore, the second continuation service manager notifies the second continuation application of the continuation data through the second continuation service SDK. After successful registration, the second continuation application can load the continuation data and control the second terminal device to display the continuation data, and transmit information indicating the successful continuation to the first terminal device's first continuation application, so that the first continuation application can execute processes such as exiting the page of the first continuation application.
需要说明的是,在本申请实施例的应用接续方法中,如果第一接续应用已经注册和绑定过接续服务,则当第一终端设备的第一接续应用监控到一些用户行为时,第一接续应用则不需要重新注册和绑定接续服务,或理解为不需要执行上述的第一阶段,第一接续应用可以跳过第一阶段执行第二阶段和第三阶段等,不再赘述。It should be noted that in the application continuation method of the embodiment of the present application, if the first continuation application has already registered and bound to the continuation service, then when the first continuation application of the first terminal device monitors some user behaviors, the first continuation application does not need to re-register and bind to the continuation service, or it is understood that there is no need to execute the above-mentioned first stage, and the first continuation application can skip the first stage and execute the second and third stages, etc., which will not be repeated.
上面是应用接续方法的总体介绍,下面结合图6至图11,对对端设备上未安装应用的具体接续方法进行详细介绍。The above is a general introduction to the application connection method. The following is a detailed introduction to the specific connection method for the application not installed on the peer device in conjunction with Figures 6 to 11.
对于某一应用而言,应用接续需要源端设备和对端设备均安装有该应用。当对端设备未安装(或者卸载了)该应用时,源端设备发送该应用的应用接续请求,对端设备无法进行该应用的接续,影响用户体验。有鉴于此,本申请提供了一种应用接续方法,能够实现对端设备上未安装应用的接续,从而提高用户体验。For a certain application, application continuation requires that both the source device and the peer device have the application installed. When the peer device does not have (or has uninstalled) the application, the source device sends an application continuation request for the application, and the peer device cannot continue the application, affecting the user experience. In view of this, the present application provides an application continuation method that can achieve the continuation of an application that is not installed on the peer device, thereby improving the user experience.
图6是本申请实施例提供的另一种应用接续方法600的示意性流程图。该方法600可应用于上述场景100,该方法所涉及的终端设备的硬件结构可以如图2所示,该方法所涉及的终端设备的软件结构可以如图3或图4所示。该方法600包括下列步骤:FIG6 is a schematic flow chart of another application connection method 600 provided in an embodiment of the present application. The method 600 can be applied to the above scenario 100. The hardware structure of the terminal device involved in the method can be shown in FIG2 , and the software structure of the terminal device involved in the method can be shown in FIG3 or FIG4 . The method 600 includes the following steps:
S601,第一终端设备向第二终端设备发送广播接续通知。S601: The first terminal device sends a broadcast connection notification to the second terminal device.
示例性地,当第一终端设备和第二终端设备处于开机状态,第一终端设备和第二终端设备登陆了相同的账号,且第一终端设备和第二终端设备处于同一局域网的情况下,用户在第一终端设备的第一接续应用上正在编辑文本或正在播放视频,第一终端设备向第二终端设备发送广播接续通知,广播接续通知用于表示第一终端设备的第一接续应用请求将数据接续到第二终端设备的第二接续应用上。Exemplarily, when the first terminal device and the second terminal device are powered on, the first terminal device and the second terminal device are logged into the same account, and the first terminal device and the second terminal device are in the same local area network, and the user is editing text or playing a video on a first connection application of the first terminal device, the first terminal device sends a broadcast connection notification to the second terminal device, and the broadcast connection notification is used to indicate that the first connection application of the first terminal device requests to connect data to the second connection application of the second terminal device.
可选地,广播接续通知包括:第一接续应用的应用标识(applicationidentification,APPID)和接续策略;其中,接续策略包括下列至少一种:接续状态标识、第一接续应用的包名或进程名、第一接续应用的应用市场上架策略以及支持接续的最小版本。Optionally, the broadcast connection notification includes: an application identification (APPID) of the first connection application and a connection policy; wherein the connection policy includes at least one of the following: a connection status identification, a package name or process name of the first connection application, an application market listing policy of the first connection application, and a minimum version supporting the connection.
应理解,上述第一接续应用可以为系统应用也可以为第三方应用,本申请实施例对此不作限定。It should be understood that the above-mentioned first subsequent application can be a system application or a third-party application, and the embodiment of the present application does not limit this.
S602,第二终端设备接收该广播接续通知,基于该广播接续通知,获取第二接续应用的图标,并以第二接续应用的图标的形式在桌面上显示触点按钮。S602: The second terminal device receives the broadcast connection notification, obtains an icon of a second connection application based on the broadcast connection notification, and displays a contact button on the desktop in the form of the icon of the second connection application.
具体地,在未安装第二接续应用的情况下,第二终端设备基于广播接续通知,获取第二接续应用的图标,并以图标的形式在桌面显示触点按钮,此时,第二接续应用还未被安装。Specifically, when the second connection application is not installed, the second terminal device obtains the icon of the second connection application based on the broadcast connection notification, and displays a contact button on the desktop in the form of the icon. At this time, the second connection application has not been installed.
应理解,在第二终端设备上安装有第二接续应用,且第二接续应用的版本大于或等于第二接续应用的支持接续的最小版本的情况下,本申请实施例认为第二终端设备安装了第二接续应用,否则,认为第二终端设备未安装第二接续应用。例如,第二接续应用的支持接续的最小版本为v3.0,若第二终端设备安装了第二接续应用的v2.0,无法实现应用接续,则认为第二终端设备未安装第二接续应用,若第二终端设备安装了第二接续应用的v4.0,则认为第二终端设备安装了第二接续应用。It should be understood that if the second continuation application is installed on the second terminal device, and the version of the second continuation application is greater than or equal to the minimum version of the second continuation application that supports continuation, the embodiment of the present application considers that the second terminal device has installed the second continuation application, otherwise, the second terminal device is considered not to have installed the second continuation application. For example, if the minimum version of the second continuation application that supports continuation is v3.0, if the second terminal device has installed v2.0 of the second continuation application and application continuation cannot be achieved, then the second terminal device is considered not to have installed the second continuation application, and if the second terminal device has installed v4.0 of the second continuation application, then the second terminal device is considered to have installed the second continuation application.
可选地,第二终端设备可通过云端服务器获取第二接续应用的图标。Optionally, the second terminal device may obtain the icon of the second follow-up application through the cloud server.
可选地,上述广播接续通知还包括第一接续应用的图标,第二终端设备可以从第一终端设备获取第一接续应用的图标,并将该图标作为第二接续应用的图标。Optionally, the broadcast connection notification further includes an icon of the first connection application. The second terminal device may obtain the icon of the first connection application from the first terminal device and use the icon as the icon of the second connection application.
S603,第二终端设备响应于用户对触点按钮的点击操作,显示第二接续应用的引导安装弹窗。S603: The second terminal device displays a pop-up window for guiding installation of a second follow-up application in response to a user clicking the touch button.
具体地,用户点击第二接续应用的触点按钮,第二终端设备判断是否安装了第二接续应用,由于第二终端设备未安装第二接续应用,第二终端设备显示第二接续应用的引导安装弹窗。Specifically, the user clicks the contact button of the second continuation application, and the second terminal device determines whether the second continuation application is installed. Since the second continuation application is not installed on the second terminal device, the second terminal device displays a pop-up window for guiding installation of the second continuation application.
S604,第二终端设备向第一终端设备发送接续请求消息,用于请求第一接续应用的接续数据和第一接续应用的安装包。对应地,第一终端设备接收该接续请求消息。S604, the second terminal device sends a connection request message to the first terminal device, requesting the connection data of the first connection application and the installation package of the first connection application. Correspondingly, the first terminal device receives the connection request message.
S605,第一终端设备基于上述接续请求消息,向第二终端设备发送第一接续应用的接续数据和安装包,对应地,第二终端设备接收该接续数据和该安装包。S605, the first terminal device sends the connection data and the installation package of the first connection application to the second terminal device based on the connection request message, and correspondingly, the second terminal device receives the connection data and the installation package.
应理解,第二终端设备接收第一接续应用的安装包,并将该安装包保存到指定路径下。It should be understood that the second terminal device receives the installation package of the first follow-up application and saves the installation package to a designated path.
S606,第二终端设备响应于用户对引导安装弹窗的操作,安装第二接续应用,并显示接续数据。S606: The second terminal device installs the second connection application in response to the user's operation on the pop-up window guiding the installation, and displays the connection data.
示例性地,用户可以在引导安装弹窗上点击恢复按钮,第二终端设备响应于用户的操作,到指定路径下基于上述安装包安装第二接续应用,安装完成后,第二终端设备显示接续数据。Exemplarily, the user can click the restore button on the installation guide pop-up window, and the second terminal device responds to the user's operation and installs the second continuation application based on the installation package in the specified path. After the installation is complete, the second terminal device displays the continuation data.
本申请实施例的应用接续方法,在第二终端设备(即对端设备)未安装第二接续应用的情况下,通过第一终端设备(即源端设备)向对端设备发送广播接续通知,对端设备基于该广播接续通知,获取第二接续应用的图标,并以该图标的形式显示触点按钮,对端设备响应于用户对该触点按钮的点击操作,安装第二接续应用,能够实现对端设备上未安装应用的接续,从而提高用户体验。The application continuation method of the embodiment of the present application sends a broadcast continuation notification to the opposite device through the first terminal device (i.e., the source device) when the second continuation application is not installed on the second terminal device (i.e., the opposite device). The opposite device obtains the icon of the second continuation application based on the broadcast continuation notification and displays a contact button in the form of the icon. The opposite device installs the second continuation application in response to the user clicking the contact button, which can realize the continuation of the application that is not installed on the opposite device, thereby improving the user experience.
下面,以第一终端设备(即源端设备)为平板电脑、第二终端设备(即对端设备)为手机,且接续应用为系统应用(例如备忘录)为例,进行示例性说明。Below, an exemplary description is given by taking the case where the first terminal device (ie, the source device) is a tablet computer, the second terminal device (ie, the opposite device) is a mobile phone, and the connecting application is a system application (eg, a memo).
图7是本申请实施例提供的源端设备的一种界面示意图,用于介绍平板电脑作为源端设备响应用户操作的界面。在图7所示的界面中,用户正在备忘录中编辑文本,平板电脑相应地显示用户所编辑的文本,光标的位置随用户编辑的位置而改变。由于平板电脑正在备忘录文本编辑中,可向手机发送备忘录接续请求。FIG7 is a schematic diagram of an interface of a source device provided in an embodiment of the present application, which is used to introduce an interface of a tablet computer as a source device responding to user operations. In the interface shown in FIG7, the user is editing text in a memo, and the tablet computer displays the text edited by the user accordingly, and the position of the cursor changes with the position edited by the user. Since the tablet computer is editing the memo text, a memo continuation request can be sent to the mobile phone.
图8是本申请实施例提供的对端设备的一种界面变化示意图,用于介绍手机作为对端设备响应用户操作的界面变化。在图8的界面a中,由于手机接收到平板电脑发送的备忘录接续请求,在最近任务栏上显示备忘录的触点按钮,该触点按钮显示备忘录的图标和标题“一同去远方”。此外,该触点按钮上还显示有亮点(如图8的界面a中的黑色圆点)和来自“平板”,以提示用户来自平板电脑、且标题“一同去远方”的备忘录想要与手机的备忘录接续。用户点击上述触点按钮,手机响应于用户的点击触点按钮操作,显示图8的界面b。在图8的界面b中,手机桌面上显示有引导安装弹窗,用户点击引导安装弹窗中的“恢复”,手机响应于用户的点击恢复操作,恢复安装应用,显示图8的界面c。在图8的界面c中,显示备忘录的页面,并在该备忘录页面上显示“正在加载接续内容”,内容加载之后,显示图8的界面d。在图8的界面d中,显示平板电脑相同的备忘录内容及相同的光标位置。FIG8 is a schematic diagram of an interface change of a peer device provided in an embodiment of the present application, which is used to introduce the interface change of a mobile phone as a peer device in response to a user operation. In interface a of FIG8, since the mobile phone receives a memo continuation request sent by a tablet computer, a contact button of the memo is displayed on the recent taskbar, and the contact button displays the icon of the memo and the title "Let's go far away together". In addition, a bright spot (such as a black dot in interface a of FIG8) and "Tablet" are also displayed on the contact button to prompt the user that the memo from the tablet computer and the title "Let's go far away together" wants to be continued with the memo of the mobile phone. The user clicks the above-mentioned contact button, and the mobile phone responds to the user's click on the contact button operation and displays interface b of FIG8. In interface b of FIG8, a guide installation pop-up window is displayed on the mobile phone desktop. The user clicks "Restore" in the guide installation pop-up window. The mobile phone responds to the user's click restore operation, restores the installation application, and displays interface c of FIG8. In interface c of FIG8, the memo page is displayed, and "Loading the continuation content" is displayed on the memo page. After the content is loaded, interface d of FIG8 is displayed. In interface d of FIG. 8 , the same memo content and the same cursor position are displayed on the tablet computer.
应理解,上述示例仅以接续应用为系统应用为例进行了说明,接续应用可以为第三方应用,例如微信、微博等,本申请实施例对此不作限定。还应理解,接续应用的触点按钮可以在最近任务栏,也可以在桌面上,本申请实施例对此不作限定。It should be understood that the above examples are only illustrated by taking the continued application as a system application as an example, and the continued application can be a third-party application, such as WeChat, Weibo, etc., and the embodiments of the present application do not limit this. It should also be understood that the contact button of the continued application can be in the recent taskbar or on the desktop, and the embodiments of the present application do not limit this.
下面,结合图9对应用接续方法的具体流程作进一步说明。Next, the specific process of the application connection method is further described in conjunction with FIG. 9 .
图9是本申请实施例提供的另一种应用接续方法的900的示意性流程图。该方法900可应用于上述场景100,该方法900所涉及的终端设备的硬件结构如图2所示,软件结构如图3或图4所示。该方法900包括下列步骤:FIG9 is a schematic flow chart of another application connection method 900 provided in an embodiment of the present application. The method 900 can be applied to the above-mentioned scenario 100. The hardware structure of the terminal device involved in the method 900 is shown in FIG2, and the software structure is shown in FIG3 or FIG4. The method 900 includes the following steps:
S901,用户在第一终端设备的第一接续应用中正在编辑文本或正在播放视频,第一终端设备的第一接续应用向第一终端设备的接续服务管理器发送广播接续通知,该广播接续通知包括:第一接续应用的应用标识和接续策略;其中,接续策略包括下列至少一种:接续状态标识、第一接续应用的包名或进程名、第一接续应用的应用市场上架策略以及支持接续的最小版本。S901, the user is editing text or playing a video in the first continuation application of the first terminal device, and the first continuation application of the first terminal device sends a broadcast continuation notification to the continuation service manager of the first terminal device, and the broadcast continuation notification includes: the application identifier and the continuation policy of the first continuation application; wherein the continuation policy includes at least one of the following: the continuation status identifier, the package name or process name of the first continuation application, the application market listing policy of the first continuation application, and the minimum version supporting the continuation.
示例性地,广播接续通知携带的消息体如下:For example, the message body carried by the broadcast connection notification is as follows:
{{
"PolicyDescription":"0:mute,或者,1:AppHandoff","PolicyDescription":"0:mute, or, 1:AppHandoff",
"Policy":1,"Policy":1,
"Package":"com.phone.app1","Package":"com.phone.app1",
"AppId":220482320,"AppId":220482320,
"AppMarketDescription":"0:未上架,1:海外应用市场1,2:国内应用市场1,3:国内应用市场2,4:海外应用市场2","AppMarketDescription":"0: Not available, 1: Overseas application market 1, 2: Domestic application market 1, 3: Domestic application market 2, 4: Overseas application market 2",
"AppMarket":[1,2],"AppMarket":[1,2],
"MinVersionCode":"110100121","MinVersionCode":"110100121",
"MinVersion":"11.1.0.121""MinVersion":"11.1.0.121"
}}
S902,第一终端设备的接续服务管理器接收到广播接续通知后,向第一终端设备的通信服务管理器发送该广播接续通知。S902: After receiving the broadcast connection notification, the connection service manager of the first terminal device sends the broadcast connection notification to the communication service manager of the first terminal device.
S903,第一终端设备的通信服务管理器接收到广播接续通知后,向第二终端设备的通信服务管理器发送该广播接续通知。S903: After receiving the broadcast connection notification, the communication service manager of the first terminal device sends the broadcast connection notification to the communication service manager of the second terminal device.
S904,第二终端设备的通信服务管理器接收到广播接续通知后,向第二终端设备的接续服务管理器发送上述广播接续通知。S904: After receiving the broadcast connection notification, the communication service manager of the second terminal device sends the broadcast connection notification to the connection service manager of the second terminal device.
S905,第二终端设备的接续服务管理器接收到广播接续通知后,获取第二接续应用的图标。S905: After receiving the broadcast connection notification, the connection service manager of the second terminal device obtains the icon of the second connection application.
S906,第二终端设备的接续服务管理器向第二终端设备的桌面启动器发送第二接续应用的图标。S906: The connection service manager of the second terminal device sends an icon of the second connection application to the desktop launcher of the second terminal device.
S907,第二终端设备的桌面启动器接收第二接续应用的图标,并以图标的形式显示第二接续应用的接续触点按钮。S907: The desktop launcher of the second terminal device receives the icon of the second connection application and displays the connection contact button of the second connection application in the form of an icon.
S908,第二终端设备的桌面启动器响应于用户对触点按钮的点击操作,向第二终端设备的接续服务管理器通知触点按钮的最新状态。S908: In response to the user's click operation on the touch button, the desktop launcher of the second terminal device notifies the connection service manager of the second terminal device of the latest state of the touch button.
S909,第二终端设备的接续服务管理器判断是否安装第二接续应用或第二接续应用的版本是否支持接续。S909: The connection service manager of the second terminal device determines whether the second connection application is installed or whether the version of the second connection application supports the connection.
S910,在第二接续应用未安装或版本不支持接续的情况下,第二终端设备的接续服务管理器执行拉起操作,向应用安装对话框发送第一调用消息。S910: When the second connection application is not installed or the version does not support connection, the connection service manager of the second terminal device performs a pull-up operation and sends a first call message to the application installation dialog box.
S911,应用安装对话框接收第一调用消息,显示第二接续应用的引导安装弹窗,对第二接续应用进行引导安装。S911, the application installation dialog box receives the first call message, displays a pop-up window for guiding the installation of the second follow-up application, and guides the installation of the second follow-up application.
S912,第二终端设备的接续服务管理器向第二终端设备的通信服务管理器发送接续请求消息,用于请求第一接续应用的数据和第一接续应用的安装包。S912, the connection service manager of the second terminal device sends a connection request message to the communication service manager of the second terminal device, requesting data of the first connection application and an installation package of the first connection application.
上述接续请求消息可以包括以下信息:第二接续应用的包名、第二接续应用的APPID和未安装第二接续应用的指示信息。The above-mentioned connection request message may include the following information: the package name of the second connection application, the APPID of the second connection application, and indication information that the second connection application is not installed.
S913,第二终端设备的通信服务管理器接收到接续请求消息后,向第一终端设备的通信服务管理器发送该接续请求消息。S913: After receiving the connection request message, the communication service manager of the second terminal device sends the connection request message to the communication service manager of the first terminal device.
S914,第一终端设备的通信服务管理器接收到该接续请求消息后,向第一终端设备的接续服务管理器发送该接续请求消息。S914: After receiving the connection request message, the communication service manager of the first terminal device sends the connection request message to the connection service manager of the first terminal device.
S915,第一终端设备的接续服务管理器接收到该接续请求消息后,向第一终端设备的第一接续应用发送该接续请求消息。S915: After receiving the connection request message, the connection service manager of the first terminal device sends the connection request message to the first connection application of the first terminal device.
S916,第一终端设备的第一接续应用接收到该接续请求消息后,打包第一接续应用的接续数据和安装包,得到第一数据包。S916: After receiving the connection request message, the first connection application of the first terminal device packages the connection data and the installation package of the first connection application to obtain a first data packet.
S917,第一终端设备的第一接续应用向第一终端设备的接续服务管理器发送该第一数据消息。S917: The first connection application of the first terminal device sends the first data message to the connection service manager of the first terminal device.
S918,第一终端设备的接续服务管理器接收到该第一数据包后,向第一终端设备的通信服务管理器发送该第一数据包。S918: After receiving the first data packet, the connection service manager of the first terminal device sends the first data packet to the communication service manager of the first terminal device.
S919,第一终端设备的通信服务管理器接收到该第一数据包后,向第二终端设备的通信服务管理器发送该第一数据包。S919: After receiving the first data packet, the communication service manager of the first terminal device sends the first data packet to the communication service manager of the second terminal device.
S920,第二终端设备的通信服务管理器接收到该第一数据包后,向第二终端设备的接续服务管理器发送该第一数据包。S920: After receiving the first data packet, the communication service manager of the second terminal device sends the first data packet to the connection service manager of the second terminal device.
S921,第二终端设备的接续服务管理器接收该第一数据包后,对该第一数据包进行解析,得到接续数据和安装包。可选地,第二终端设备可以将安装包保存到指定路径下。S921, after receiving the first data packet, the connection service manager of the second terminal device parses the first data packet to obtain connection data and an installation package. Optionally, the second terminal device can save the installation package to a specified path.
S922,响应于用户对上述S911显示的引导安装弹窗的点击恢复操作,应用安装对话框向第二终端设备的管理系统发送第二调用消息。S922, in response to the user clicking to restore the installation guidance pop-up window displayed in S911, the application installation dialog box sends a second call message to the management system of the second terminal device.
S923,第二终端设备的管理系统接收到第二调用消息后,基于上述安装包,安装第二接续应用。S923: After receiving the second call message, the management system of the second terminal device installs the second follow-up application based on the installation package.
S924,第二接续应用安装完成后,第二终端设备的管理系统向第二终端设备的接续服务管理器发送安装完成消息,安装完成消息用于表示第二接续应用已安装完成。S924, after the installation of the second connection application is completed, the management system of the second terminal device sends an installation completion message to the connection service manager of the second terminal device, where the installation completion message is used to indicate that the installation of the second connection application is complete.
S925,第二终端设备的接续服务管理器接收到安装完成消息后,向第二终端设备的第二接续应用发送上述接续数据。S925: After receiving the installation completion message, the connection service manager of the second terminal device sends the connection data to the second connection application of the second terminal device.
S926,第二终端设备的第二接续应用接收到该接续数据后,加载并显示上述接续数据,完成接续。S926, after receiving the connection data, the second connection application of the second terminal device loads and displays the connection data to complete the connection.
可选地,在完成接续之后,第二终端设备还可以向第一终端设备发送接续成功通知,与图5类似,此处不再赘述。Optionally, after the connection is completed, the second terminal device may also send a connection success notification to the first terminal device, which is similar to FIG. 5 and will not be described in detail here.
本申请实施例的应用接续方法,在第二终端设备未安装应用的情况下,第二终端设备向第一终端设备发送接续请求消息,第二终端设备接收第一终端设备发送的接续数据和安装包,完成第二接续应用的安装,并显示接续数据,能够实现对端设备上未安装应用的接续,从而提高用户体验。The application continuation method of the embodiment of the present application is that when the second terminal device has not installed the application, the second terminal device sends a continuation request message to the first terminal device, the second terminal device receives the continuation data and installation package sent by the first terminal device, completes the installation of the second continuation application, and displays the continuation data, which can realize the continuation of the application that is not installed on the opposite terminal device, thereby improving the user experience.
应理解,在第二接续应用已安装且版本支持接续的情况下,第二终端设备的接续服务管理器向第二终端设备的通信服务管理器发送接续数据请求消息,仅用于请求接续数据;第二终端设备的通信服务管理器接收到该接续数据请求消息后,通过第一终端设备的通信服务管理器和第一终端设备的接续服务管理器向第一接续应用发送上述接续数据请求消息,第一接续应用接收到该接续数据请求消息后,向第一终端设备的接续服务管理器发送接续数据,第一终端设备的接续服务管理器接收到该接续数据后,通过第一终端设备的通信服务管理器、第二终端设备的通信服务管理器和第二终端设备的接续服务管理器向第二接续应用发送该接续数据,第二接续应用接收到该接续数据后,加载并显示接续数据。It should be understood that when the second continuation application has been installed and its version supports continuation, the continuation service manager of the second terminal device sends a continuation data request message to the communication service manager of the second terminal device, which is only used to request continuation data; after the communication service manager of the second terminal device receives the continuation data request message, it sends the above-mentioned continuation data request message to the first continuation application through the communication service manager of the first terminal device and the continuation service manager of the first terminal device; after the first continuation application receives the continuation data request message, it sends the continuation data to the continuation service manager of the first terminal device; after the continuation service manager of the first terminal device receives the continuation data, it sends the continuation data to the second continuation application through the communication service manager of the first terminal device, the communication service manager of the second terminal device and the continuation service manager of the second terminal device; after the second continuation application receives the continuation data, it loads and displays the continuation data.
对于小程序的情况,小程序与接续服务管理器之间存在沙盒隔离,无法直接通信,需要云端服务器辅助进行接续。下面,结合图10对这种情况的具体流程作进一步说明。For the case of the mini program, there is a sandbox isolation between the mini program and the connection service manager, and they cannot communicate directly, so the cloud server is needed to assist in the connection. The specific process of this situation is further explained below in conjunction with Figure 10.
图10是本申请实施例提供的又一种应用接续方法1000的示意性流程图。该方法1000可应用于上述场景100,该方法1000所涉及的终端设备的硬件结构如图2所示,软件结构如图3或图4所示。该方法1000包括下列步骤:FIG10 is a schematic flow chart of another application connection method 1000 provided in an embodiment of the present application. The method 1000 can be applied to the above scenario 100. The hardware structure of the terminal device involved in the method 1000 is shown in FIG2 , and the software structure is shown in FIG3 or FIG4 . The method 1000 includes the following steps:
S1001,用户在第一终端设备的第一接续应用中正在编辑文本或正在播放视频,第一终端设备的第一接续应用向第一云端服务器发送广播接续通知。S1001, a user is editing text or playing a video in a first connection application of a first terminal device, and the first connection application of the first terminal device sends a broadcast connection notification to a first cloud server.
应理解,第一接续应用为小程序应用,无法与第一终端设备的接续服务管理器直接通信,需要通过云端服务器才可以与第一终端设备的接续服务管理器通信。It should be understood that the first connection application is a small program application and cannot communicate directly with the connection service manager of the first terminal device. It needs to communicate with the connection service manager of the first terminal device through the cloud server.
还应理解,第一接续应用与第一云端服务器相对应,由同一服务商提供服务,第一云端服务器可以是第三方云端服务器。It should also be understood that the first connection application corresponds to the first cloud server and is provided by the same service provider, and the first cloud server may be a third-party cloud server.
S1002,第一云端服务器接收到广播接续通知后,向第二云端服务器发送广播接续通知。S1002: After receiving the broadcast connection notification, the first cloud server sends the broadcast connection notification to the second cloud server.
应理解,第二云端服务器是不同于第一云端服务器的另一服务器,第二云端服务器能够为终端设备提供接续服务。It should be understood that the second cloud server is another server different from the first cloud server, and the second cloud server can provide connection services for the terminal device.
S1003,第二云端服务器接收到广播接续通知后,向第一终端设备的接续服务管理器发送广播接续通知。S1003, after receiving the broadcast connection notification, the second cloud server sends the broadcast connection notification to the connection service manager of the first terminal device.
S1004,第一终端设备的接续服务管理器接收到广播接续通知后,向第一终端设备的通信服务管理器发送广播接续通知。S1004: After receiving the broadcast connection notification, the connection service manager of the first terminal device sends a broadcast connection notification to the communication service manager of the first terminal device.
S1005,第一终端设备的通信服务管理器接收到广播接续通知后,向第二终端设备的通信服务管理器发送广播接续通知。S1005: After receiving the broadcast connection notification, the communication service manager of the first terminal device sends a broadcast connection notification to the communication service manager of the second terminal device.
S1006,第二终端设备的通信服务管理器接收到广播接续通知后,向第二终端设备的接续服务管理器发送广播接续通知。S1006: After receiving the broadcast connection notification, the communication service manager of the second terminal device sends a broadcast connection notification to the connection service manager of the second terminal device.
S1007,第二终端设备的接续服务管理器接收到广播接续通知后,第二终端设备的接续服务管理器向第二云端服务器发送第一接续应用的包名和签名信息。S1007: After the connection service manager of the second terminal device receives the broadcast connection notification, the connection service manager of the second terminal device sends the package name and signature information of the first connection application to the second cloud server.
S1008,第二云端服务器接收到第一接续应用的包名和签名信息,基于该包名和签名信息进行鉴权。S1008, the second cloud server receives the package name and signature information of the first follow-up application, and performs authentication based on the package name and signature information.
S1009,第二云端服务器向第二终端设备的接续服务管理器发送鉴权结果,鉴权结果为鉴权成功或鉴权失败。S1009, the second cloud server sends an authentication result to the connection service manager of the second terminal device, where the authentication result is authentication success or authentication failure.
S1010,在鉴权成功的情况下,第二终端设备的接续服务管理器获取第二接续应用的图标。S1010: When the authentication is successful, the connection service manager of the second terminal device obtains an icon of the second connection application.
S1011,第二终端设备的接续服务管理器向第二终端设备的桌面启动器发送第二接续应用的图标。S1011: The connection service manager of the second terminal device sends an icon of the second connection application to the desktop launcher of the second terminal device.
S1012,第二终端设备的桌面启动器接收第二接续应用的图标,并以图标的形式显示第二接续应用的接续触点按钮。S1012: The desktop launcher of the second terminal device receives the icon of the second connection application and displays the connection contact button of the second connection application in the form of an icon.
S1013,第二终端设备的桌面启动器响应于用户对触点按钮的点击操作,第二终端设备的桌面启动器向第二接续应用发送拉起通知。S1013: In response to a user clicking the contact button, the desktop launcher of the second terminal device sends a pull-up notification to the second follow-up application.
S1014,第二终端设备的桌面启动器向第二终端设备的接续服务管理器发送接续数据请求消息,用于请求接续数据。该接续数据请求消息中携带第二接续应用的包名。S1014: The desktop launcher of the second terminal device sends a connection data request message to the connection service manager of the second terminal device to request connection data. The connection data request message carries the package name of the second connection application.
S1015,第二终端设备的接续服务管理器接收到接续数据请求消息后,向第二云端服务器发送接续数据请求消息。S1015, after receiving the connection data request message, the connection service manager of the second terminal device sends a connection data request message to the second cloud server.
S1016,第二云端服务器接收到接续数据请求消息后,向第一云端服务器发送接续数据请求消息。S1016: After receiving the data connection request message, the second cloud server sends a data connection request message to the first cloud server.
S1017,第一云端服务器接收到接续数据请求消息后,向第一终端设备的第一接续应用发送接续数据请求消息。S1017, after receiving the connection data request message, the first cloud server sends a connection data request message to the first connection application of the first terminal device.
S1018,第一终端设备的第一接续应用接收到接续数据请求消息后,向第一云端服务器发送接续数据。S1018: After receiving the connection data request message, the first connection application of the first terminal device sends the connection data to the first cloud server.
S1019,第一云端服务器接收到接续数据后,向第二终端设备的第二接续应用发送接续数据。S1019, after receiving the connection data, the first cloud server sends the connection data to the second connection application of the second terminal device.
应理解,第二接续应用和第一接续应用实质上是同一应用,区别仅在于安装在不同的终端设备上,第二接续应用和第一接续应用均由第一云端服务器提供服务,因此,第一云端服务器可以直接向第二终端设备的第二接续应用发送接续数据。It should be understood that the second connection application and the first connection application are essentially the same application, the only difference is that they are installed on different terminal devices. The second connection application and the first connection application are both provided with services by the first cloud server. Therefore, the first cloud server can directly send connection data to the second connection application of the second terminal device.
S1020,第二接续应用接收到该接续数据后,加载并显示接续数据,完成接续。S1020: After receiving the connection data, the second connection application loads and displays the connection data to complete the connection.
可选地,在完成接续之后,第二终端设备还可以向第一终端设备发送接续成功通知,与图5类似,此处不再赘述。Optionally, after the connection is completed, the second terminal device may also send a connection success notification to the first terminal device, which is similar to FIG. 5 and will not be described in detail here.
在一种可能的实现方式,第二终端设备可以从第一终端设备处获取第二接续应用的图标。具体地,上述应用接续方法900和1000中的广播接续通知还包括第一接续应用的图标,在S905和S1010中,第二终端设备的接续服务管理器可以从广播接续通知中获取第一接续应用的图标,并将该第一接续应用的图标作为第二接续应用的图标发送给桌面启动器。In a possible implementation, the second terminal device may obtain the icon of the second continuation application from the first terminal device. Specifically, the broadcast continuation notification in the above-mentioned application continuation methods 900 and 1000 also includes the icon of the first continuation application. In S905 and S1010, the continuation service manager of the second terminal device may obtain the icon of the first continuation application from the broadcast continuation notification, and send the icon of the first continuation application as the icon of the second continuation application to the desktop launcher.
在另一种可能的实现方式中,第二终端设备可以从云端服务器处获取第二接续应用的图标。下面,结合图11对第二终端设备从云端服务器处获取第二接续应用的图标的获取方法进行详细介绍。In another possible implementation, the second terminal device can obtain the icon of the second connection application from the cloud server. In the following, in conjunction with FIG. 11 , a method for the second terminal device to obtain the icon of the second connection application from the cloud server is described in detail.
本申请实施例的应用接续方法,在第一接续应用无法与第一终端设备的接续服务管理器直接通信的情况下,第二终端设备能够接收第一终端设备的接续数据,实现对端设备上应用的接续,从而提高用户体验。The application continuation method of the embodiment of the present application enables the second terminal device to receive the continuation data of the first terminal device when the first continuation application cannot directly communicate with the continuation service manager of the first terminal device, thereby achieving the continuation of the application on the opposite device, thereby improving the user experience.
图11是本申请实施例提供的一种第二接续应用的图标的获取方法1100的示意性流程图。该方法1100包括下列步骤:FIG11 is a schematic flow chart of a method 1100 for obtaining an icon of a second subsequent application provided in an embodiment of the present application. The method 1100 comprises the following steps:
S1101,第二终端设备的接续服务管理器判断本地是否安装有第二接续应用。S1101, a connection service manager of a second terminal device determines whether a second connection application is installed locally.
S1102,在本地未安装第二接续应用的情况下,第二终端设备的接续服务管理器向第二云端服务器发送第二接续应用的包名和签名信息。S1102: When the second connection application is not installed locally, the connection service manager of the second terminal device sends the package name and signature information of the second connection application to the second cloud server.
S1103,第二云端服务器接收到第二接续应用的包名和签名信息后,对第二接续应用做白名单校验。S1103, after receiving the package name and signature information of the second follow-up application, the second cloud server performs a whitelist check on the second follow-up application.
S1104,第二接续应用的白名单校验通过后,第二云端服务器将第二接续应用的包名和图标信息发送给第二终端设备的接续服务管理器。S1104, after the whitelist verification of the second connection application is passed, the second cloud server sends the package name and icon information of the second connection application to the connection service manager of the second terminal device.
应理解,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
上文结合图6至图11,详细描述了本申请实施例的应用接续方法,下面将结合图12和图13,详细描述本申请实施例的终端设备。The above, in combination with Figures 6 to 11, describes in detail the application continuation method of an embodiment of the present application. The following will describe in detail the terminal device of an embodiment of the present application in combination with Figures 12 and 13.
图12是本申请实施例提供的终端设备1200,该终端设备1200包括:收发模块1201和处理模块1202。该终端设备1200用于实现上述方法600中第二终端设备对应的步骤。Fig. 12 is a terminal device 1200 provided in an embodiment of the present application, and the terminal device 1200 includes: a transceiver module 1201 and a processing module 1202. The terminal device 1200 is used to implement the steps corresponding to the second terminal device in the above method 600.
收发模块1201用于:接收来自第一终端设备的广播接续通知,该广播接续通知用于请求将第一终端设备的第一接续应用接续至终端设备1200;处理模块1202用于:基于该广播接续通知,获取第二接续应用的图标,并以第二接续应用的图标的形式显示触点按钮;响应于用户对上述触点按钮的点击操作,显示第二接续应用的引导安装弹窗;收发模块1201还用于:向第一终端设备发送接续请求消息,该接续请求消息用于请求第一接续应用的接续数据和第一接续应用的安装包;接收来自第一终端设备的第一接续应用的接续数据和第一接续应用的安装包;处理模块1202还用于:响应于用户对引导安装弹窗的操作,安装第二接续应用,并显示接续数据。The transceiver module 1201 is used to: receive a broadcast connection notification from the first terminal device, the broadcast connection notification is used to request that the first connection application of the first terminal device be connected to the terminal device 1200; the processing module 1202 is used to: based on the broadcast connection notification, obtain the icon of the second connection application, and display the contact button in the form of the icon of the second connection application; in response to the user clicking the above-mentioned contact button, display the guide installation pop-up window of the second connection application; the transceiver module 1201 is also used to: send a connection request message to the first terminal device, the connection request message is used to request the connection data of the first connection application and the installation package of the first connection application; receive the connection data of the first connection application and the installation package of the first connection application from the first terminal device; the processing module 1202 is also used to: in response to the user's operation on the guide installation pop-up window, install the second connection application, and display the connection data.
可选地,上述广播接续通知包括:第一接续应用的应用标识和接续策略;其中,接续策略包括下列至少一种:接续状态标识、第一接续应用的包名或进程名、第一接续应用的应用市场上架策略以及支持接续的最小版本。Optionally, the above-mentioned broadcast connection notification includes: an application identifier and a connection policy of the first connection application; wherein the connection policy includes at least one of the following: a connection status identifier, a package name or process name of the first connection application, an application market listing policy of the first connection application, and a minimum version supporting the connection.
可选地,上述处理模块1202还用于:判断是否安装有第二接续应用;收发模块1201还用于:在未安装第二接续应用的情况下,基于上述广播接续通知,向云端服务器发送第二接续应用的包名和签名信息;接收来自云端服务器的通过白名单校验的第二接续应用的图标。Optionally, the above-mentioned processing module 1202 is also used to: determine whether a second continuation application is installed; the transceiver module 1201 is also used to: when the second continuation application is not installed, based on the above-mentioned broadcast continuation notification, send the package name and signature information of the second continuation application to the cloud server; receive the icon of the second continuation application that has passed the whitelist verification from the cloud server.
可选地,上述广播接续通知还包括第一接续应用的图标。Optionally, the broadcast connection notification further includes an icon of the first connection application.
可选地,上述处理模块1202还用于:在终端设备1200未安装第二接续应用的情况下,显示第二接续应用的引导安装弹窗;收发模块1201还用于:在终端设备1200未安装第二接续应用的情况下,向第一终端设备发送上述接续请求消息。Optionally, the above-mentioned processing module 1202 is also used to: when the terminal device 1200 has not installed the second continuation application, display a pop-up window to guide the installation of the second continuation application; the transceiver module 1201 is also used to: when the terminal device 1200 has not installed the second continuation application, send the above-mentioned continuation request message to the first terminal device.
应理解,这里的终端设备1200以功能模块的形式体现。这里的术语“模块”可以指应用特有集成电路(application specific integrated circuit,ASIC)、电子电路、用于执行一个或多个软件或固件程序的处理器(例如共享处理器、专有处理器或组处理器等)和存储器、合并逻辑电路和/或其它支持所描述的功能的合适组件。在一个可选的例子中,本领域技术人员可以理解,终端设备1200可以具体为上述实施例中的第二终端设备,终端设备1400可以用于执行上述方法实施例中与第二终端设备对应的各个流程和/或步骤,为避免重复,在此不再赘述。It should be understood that the terminal device 1200 here is embodied in the form of a functional module. The term "module" here may refer to an application specific integrated circuit (ASIC), an electronic circuit, a processor (such as a shared processor, a proprietary processor or a group processor, etc.) and a memory for executing one or more software or firmware programs, a merged logic circuit and/or other suitable components that support the described functions. In an optional example, those skilled in the art can understand that the terminal device 1200 can be specifically the second terminal device in the above-mentioned embodiment, and the terminal device 1400 can be used to execute the various processes and/or steps corresponding to the second terminal device in the above-mentioned method embodiment. To avoid repetition, it will not be repeated here.
上述终端设备1200具有实现上述方法中第二终端设备执行的相应步骤的功能;上述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。该硬件或软件包括一个或多个与上述功能相对应的模块。例如,上述收发模块1202可以包括发送模块和接收模块,该发送模块可以用于实现上述收发模块对应的用于执行发送动作的各个步骤和/或流程,该接收模块可以用于实现上述收发模块对应的用于执行接收动作的各个步骤和/或流程。该发送模块可以由发射器替代,该接收模块可以由接收器替代,分别执行各个方法实施例中的收发操作以及相关的处理操作。The terminal device 1200 has the function of implementing the corresponding steps performed by the second terminal device in the above method; the above function can be implemented by hardware, or by hardware executing the corresponding software. The hardware or software includes one or more modules corresponding to the above function. For example, the transceiver module 1202 may include a sending module and a receiving module, the sending module can be used to implement the various steps and/or processes for performing the sending action corresponding to the above transceiver module, and the receiving module can be used to implement the various steps and/or processes for performing the receiving action corresponding to the above transceiver module. The sending module can be replaced by a transmitter, and the receiving module can be replaced by a receiver, respectively performing the sending and receiving operations and related processing operations in each method embodiment.
在本申请的实施例,图12中的终端设备1200也可以是芯片或者芯片系统,例如:片上系统(system on chip,SOC)。对应的,收发模块1202可以是该芯片的收发电路,在此不做限定。In the embodiment of the present application, the terminal device 1200 in Fig. 12 may also be a chip or a chip system, such as a system on chip (SOC). Correspondingly, the transceiver module 1202 may be a transceiver circuit of the chip, which is not limited here.
图13是本申请实施例提供的另一种终端设备1300。该终端设备1300包括处理器1301、收发器1302和存储器1303。其中,处理器1301、收发器1302和存储器1303通过内部连接通路互相通信,该存储器1303用于存储指令,该处理器1301用于执行该存储器1303存储的指令,以控制该收发器1302发送信号和/或接收信号。FIG13 is another terminal device 1300 provided in an embodiment of the present application. The terminal device 1300 includes a processor 1301, a transceiver 1302, and a memory 1303. The processor 1301, the transceiver 1302, and the memory 1303 communicate with each other through an internal connection path, the memory 1303 is used to store instructions, and the processor 1301 is used to execute the instructions stored in the memory 1303 to control the transceiver 1302 to send signals and/or receive signals.
应理解,终端设备1300可以具体为上述实施例中的第二终端设备,并且可以用于执行上述方法实施例中与第二终端设备对应的各个步骤和/或流程。可选地,该存储器1303可以包括只读存储器和随机存取存储器,并向处理器提供指令和数据。存储器的一部分还可以包括非易失性随机存取存储器。例如,存储器还可以存储设备类型的信息。该处理器1301可以用于执行存储器中存储的指令,并且当该处理器1301执行存储器中存储的指令时,该处理器1301用于执行上述与该第二终端设备对应的方法实施例的各个步骤和/或流程。该收发器1302可以包括发射器和接收器,该发射器可以用于实现上述收发器对应的用于执行发送动作的各个步骤和/或流程,该接收器可以用于实现上述收发器对应的用于执行接收动作的各个步骤和/或流程。It should be understood that the terminal device 1300 can be specifically the second terminal device in the above embodiment, and can be used to execute the various steps and/or processes corresponding to the second terminal device in the above method embodiment. Optionally, the memory 1303 may include a read-only memory and a random access memory, and provide instructions and data to the processor. A part of the memory may also include a non-volatile random access memory. For example, the memory may also store information about the device type. The processor 1301 may be used to execute instructions stored in the memory, and when the processor 1301 executes the instructions stored in the memory, the processor 1301 is used to execute the various steps and/or processes of the above method embodiment corresponding to the second terminal device. The transceiver 1302 may include a transmitter and a receiver, the transmitter may be used to implement the various steps and/or processes corresponding to the above transceiver for performing the sending action, and the receiver may be used to implement the various steps and/or processes corresponding to the above transceiver for performing the receiving action.
应理解,在本申请实施例中,该处理器可以是中央处理单元(central processingunit,CPU),该处理器还可以是其他通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现场可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。It should be understood that in the embodiments of the present application, the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
在实现过程中,上述方法的各步骤可以通过处理器中的硬件的集成逻辑电路或者软件形式的指令完成。结合本申请实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器,处理器执行存储器中的指令,结合其硬件完成上述方法的步骤。为避免重复,这里不再详细描述。In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in a processor or an instruction in the form of software. The steps of the method disclosed in conjunction with the embodiment of the present application can be directly embodied as a hardware processor for execution, or a combination of hardware and software modules in a processor for execution. The software module can be located in a storage medium mature in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor executes the instructions in the memory, and completes the steps of the above method in conjunction with its hardware. To avoid repetition, it is not described in detail here.
本申请还提供了一种计算机可读存储介质,该计算机可读存储介质用于存储计算机程序,该计算机程序用于实现上述实施例中与第二终端设备对应的方法。The present application also provides a computer-readable storage medium, which is used to store a computer program, and the computer program is used to implement the method corresponding to the second terminal device in the above embodiment.
本申请还提供了一种计算机程序产品,该计算机程序产品包括计算机程序(也可以称为代码,或指令),当该计算机程序在计算机上运行时,该计算机可以执行上述实施例所示的第二终端设备对应的方法。The present application also provides a computer program product, which includes a computer program (also referred to as code or instruction). When the computer program runs on a computer, the computer can execute the method corresponding to the second terminal device shown in the above embodiment.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的模块及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art will appreciate that the modules and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and modules described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个模块或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或模块的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.
所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理模块,即可以位于一个地方,或者也可以分布到多个网络模块上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。In addition, each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module.
所述功能如果以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
以上所述,仅为本申请的具体实施方式,但本申请实施例的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请实施例揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请实施例的保护范围之内。因此,本申请实施例的保护范围应所述以权利要求的保护范围为准。The above is only a specific implementation of the present application, but the protection scope of the embodiments of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the embodiments of the present application, which should be included in the protection scope of the embodiments of the present application. Therefore, the protection scope of the embodiments of the present application should be based on the protection scope of the claims.
Claims (11)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211192913.9A CN116700552B (en) | 2022-09-28 | 2022-09-28 | Application connection method and terminal device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211192913.9A CN116700552B (en) | 2022-09-28 | 2022-09-28 | Application connection method and terminal device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN116700552A CN116700552A (en) | 2023-09-05 |
| CN116700552B true CN116700552B (en) | 2024-04-19 |
Family
ID=87842069
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202211192913.9A Active CN116700552B (en) | 2022-09-28 | 2022-09-28 | Application connection method and terminal device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN116700552B (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN117784988B (en) * | 2022-09-28 | 2024-10-01 | 荣耀终端有限公司 | Application connection method and terminal equipment |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104683469A (en) * | 2015-03-10 | 2015-06-03 | 苏州天鸣信息科技有限公司 | Method and system for immediately sharing and operating application program data |
| CN106874037A (en) * | 2017-01-13 | 2017-06-20 | 北京奇虎科技有限公司 | application program installation method, device and mobile terminal |
| CN107026908A (en) * | 2017-03-31 | 2017-08-08 | 青岛海信移动通信技术股份有限公司 | By the method and device of the Data Migration of second terminal to first terminal |
| CN111447323A (en) * | 2020-03-20 | 2020-07-24 | 华为技术有限公司 | Application display continuing method and device |
| CN113311975A (en) * | 2020-02-27 | 2021-08-27 | 华为技术有限公司 | Application interaction method among multiple devices and related devices |
| WO2022089207A1 (en) * | 2020-10-28 | 2022-05-05 | 华为技术有限公司 | Cross-device application interaction method, electronic device, and server |
| CN114924671A (en) * | 2022-07-18 | 2022-08-19 | 荣耀终端有限公司 | Application connection method and device |
-
2022
- 2022-09-28 CN CN202211192913.9A patent/CN116700552B/en active Active
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104683469A (en) * | 2015-03-10 | 2015-06-03 | 苏州天鸣信息科技有限公司 | Method and system for immediately sharing and operating application program data |
| CN106874037A (en) * | 2017-01-13 | 2017-06-20 | 北京奇虎科技有限公司 | application program installation method, device and mobile terminal |
| CN107026908A (en) * | 2017-03-31 | 2017-08-08 | 青岛海信移动通信技术股份有限公司 | By the method and device of the Data Migration of second terminal to first terminal |
| CN113311975A (en) * | 2020-02-27 | 2021-08-27 | 华为技术有限公司 | Application interaction method among multiple devices and related devices |
| CN111447323A (en) * | 2020-03-20 | 2020-07-24 | 华为技术有限公司 | Application display continuing method and device |
| WO2022089207A1 (en) * | 2020-10-28 | 2022-05-05 | 华为技术有限公司 | Cross-device application interaction method, electronic device, and server |
| CN114924671A (en) * | 2022-07-18 | 2022-08-19 | 荣耀终端有限公司 | Application connection method and device |
Also Published As
| Publication number | Publication date |
|---|---|
| CN116700552A (en) | 2023-09-05 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN104115119A (en) | Mobile device application integration with infotainment head units | |
| CN114706633B (en) | Preloading method, electronic device and storage medium | |
| CN116700552B (en) | Application connection method and terminal device | |
| CN113938890B (en) | Data sharing method and terminal equipment | |
| CN115827911A (en) | Audio file updating method, intelligent device and storage medium | |
| WO2024067225A1 (en) | Application handoff method and terminal device | |
| CN117784988B (en) | Application connection method and terminal equipment | |
| CN116700553B (en) | Application connection method, electronic equipment and application connection system | |
| CN116737037B (en) | Stack management method in interface display and related device | |
| CN114595203B (en) | File synchronization method, terminal device and storage medium based on dual systems | |
| CN116662270B (en) | File analysis method and related device | |
| CN114201103B (en) | Data input method and terminal equipment | |
| CN116302295B (en) | An interface display method | |
| CN115017487A (en) | Switching method for login account of electronic equipment and electronic equipment | |
| CN114501389B (en) | Mobile terminal, network sharing method and storage medium | |
| CN116737404B (en) | Method and terminal device for application connection | |
| CN119166381B (en) | Method and terminal device for application connection | |
| CN113050936A (en) | Front-end data processing method and device based on integrated development environment | |
| CN117135263B (en) | Log information acquisition method, electronic device and computer readable storage medium | |
| CN114356477B (en) | Terminal equipment and application program calling method | |
| CN117827043A (en) | A content continuation method and related device | |
| CN117857646B (en) | Data network sharing method, electronic device and storage medium | |
| CN117827473A (en) | Content continuation method and related device | |
| CN116737179A (en) | Sound effect management method and device and computer equipment | |
| WO2025066224A1 (en) | Memory sharing method and apparatus, terminal, and storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| CP03 | Change of name, title or address |
Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040 Patentee after: Honor Terminal Co.,Ltd. Country or region after: China Address before: 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong Patentee before: Honor Device Co.,Ltd. Country or region before: China |
|
| CP03 | Change of name, title or address |