CN112202864B - Context switching system, method, device, equipment and medium - Google Patents

Context switching system, method, device, equipment and medium Download PDF

Info

Publication number
CN112202864B
CN112202864B CN202011019084.5A CN202011019084A CN112202864B CN 112202864 B CN112202864 B CN 112202864B CN 202011019084 A CN202011019084 A CN 202011019084A CN 112202864 B CN112202864 B CN 112202864B
Authority
CN
China
Prior art keywords
synchronized
context
application program
terminal device
client
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
Application number
CN202011019084.5A
Other languages
Chinese (zh)
Other versions
CN112202864A (en
Inventor
林志英
曾相宗
邓小茜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
CCB Finetech Co Ltd
Original Assignee
CCB Finetech Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by CCB Finetech Co Ltd filed Critical CCB Finetech Co Ltd
Priority to CN202011019084.5A priority Critical patent/CN112202864B/en
Publication of CN112202864A publication Critical patent/CN112202864A/en
Application granted granted Critical
Publication of CN112202864B publication Critical patent/CN112202864B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/148Migration or transfer of sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/146Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding

Abstract

The embodiment of the invention discloses a context switching system, a context switching method, a context switching device, context switching equipment and a context switching medium. The system comprises: a source terminal device and at least one target terminal device; the source terminal device and each target terminal device are in the same local area network, the source terminal device is a terminal device currently used by a user in all terminal devices in the local area network, and other terminal devices except the source terminal device in the local area network are target terminal devices. The embodiment of the invention can initiate the cross-device context switching by utilizing a relatively natural mode which is more accordant with the operation habit of human beings, does not need to carry out the limitation operations such as account login and the like, avoids the complex user operations such as document click, sending, receiving, opening and the like, reduces the manual operation of the cross-device context switching, and can conveniently and efficiently complete the switching of the context between different terminal devices.

Description

Context switching system, method, device, equipment and medium
Technical Field
Embodiments of the present invention relate to the field of computer technologies, and in particular, to a context switching system, method, apparatus, device, and medium.
Background
In the information technology age, it is more and more common for a user to personally hold a plurality of intelligent terminals. It is important how to switch the context between different intelligent terminals of a user by using the intelligent terminal as a productivity tool so that the user can continue to work on the previous intelligent terminal without any interruption when the user currently uses the intelligent terminal.
In the related technology, context information can be shared on intelligent terminals such as mobile phones, tablets and computers in a file transmission mode through network file transmission tools such as WeChat and Baidu cloud, so that the effect of context switching to a certain degree is achieved, but the effect is not ideal. The use of a network file transmission tool requires an account number, and needs to meet specific login conditions, so that the limitation is more. Generally, it is time-consuming to implement the context switching between different devices by using a file transmission method, for example, operations such as selecting a file, transmitting a file, receiving a file, opening a file, etc. need to be performed, and the operations are complicated, time-consuming and labor-consuming.
Disclosure of Invention
Embodiments of the present invention provide a context switching system, method, apparatus, device, and medium, which can conveniently and efficiently complete switching of contexts between different terminal devices.
In a first aspect, an embodiment of the present invention provides a context switching system, including:
a source terminal device and at least one target terminal device;
the source terminal device and each target terminal device are in the same local area network, the source terminal device is a terminal device currently used by a user in all terminal devices in the local area network, and other terminal devices except the source terminal device in the local area network are target terminal devices;
the source terminal device is configured to generate a context switching request corresponding to a context switching operation after detecting the context switching operation of a user, where the context switching request carries device information of the source terminal device, identification information of at least one application client to be synchronized, and context data corresponding to each application client to be synchronized; broadcasting the context switching request to each target terminal device in the local area network;
the target terminal device is used for receiving the context switching request; if the context switching request is received, acquiring the equipment information of the source terminal equipment, at least one application program client to be synchronized and the context data corresponding to each application program client to be synchronized, which are carried in the context switching request; judging whether an application program client identical to each application program client to be synchronized exists in the target terminal equipment or not according to the identification information of each application program client to be synchronized; and if the application program clients which are the same as the application program clients to be synchronized exist in the target terminal equipment, performing context synchronization on the application program clients which are the same as the application program clients to be synchronized in the target terminal equipment according to the context data corresponding to the application program clients to be synchronized.
In a second aspect, an embodiment of the present invention further provides a context switching method, including:
after detecting the context switching operation of a user, a source terminal device generates a context switching request corresponding to the context switching operation, wherein the context switching request carries device information of the source terminal device, identification information of at least one application program client to be synchronized and context data corresponding to each application program client to be synchronized;
and the source terminal equipment broadcasts the context switching request to each target terminal equipment in the local area network.
In a third aspect, an embodiment of the present invention further provides a context switching method, including:
the target terminal equipment receives the context switching request;
if the target terminal device receives the context switching request, acquiring device information of the source terminal device, at least one application program client to be synchronized and context data corresponding to each application program client to be synchronized, which are carried in the context switching request;
the target terminal equipment judges whether an application program client identical to each application program client to be synchronized exists in the target terminal equipment or not according to the identification information of each application program client to be synchronized;
and if the application program clients which are the same as the application program clients to be synchronized exist in the target terminal equipment, performing context synchronization on the application program clients which are the same as the application program clients to be synchronized in the target terminal equipment according to the context data corresponding to the application program clients to be synchronized.
In a fourth aspect, an embodiment of the present invention further provides a context switching apparatus, including:
a request generating module, configured to generate a context switching request corresponding to a context switching operation after detecting the context switching operation of a user, where the context switching request carries device information of the source terminal device, identification information of at least one to-be-synchronized application client, and context data corresponding to each to-be-synchronized application client;
a request broadcasting module, configured to broadcast the context switching request to each target terminal device in the local area network.
In a fifth aspect, an embodiment of the present invention further provides a context switching apparatus, including:
a request receiving module, configured to receive the context switch request;
an information obtaining module, configured to obtain, if the target terminal device receives the context switching request, device information of the source terminal device, at least one to-be-synchronized application client, and context data corresponding to each to-be-synchronized application client that are carried in the context switching request;
the application program client judging module is used for judging whether the application program client identical to each application program client to be synchronized exists in the target terminal equipment or not according to the identification information of each application program client to be synchronized;
and the context synchronization module is used for performing context synchronization on the application program clients, which are the same as the application program clients to be synchronized, in the target terminal device according to the context data corresponding to the application program clients to be synchronized if the application program clients which are the same as the application program clients to be synchronized exist in the target terminal device.
In a sixth aspect, an embodiment of the present invention further provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor executes the computer program to implement the context switching method according to the embodiment of the present invention.
In a seventh aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the context switching method according to the embodiment of the present invention.
According to the technical scheme of the embodiment of the invention, after the context switching operation of a user is detected by a source terminal device, a context switching request corresponding to the context switching operation is generated, wherein the context switching request carries device information of the source terminal device, identification information of at least one application program client to be synchronized and context data corresponding to each application program client to be synchronized, and then the context switching request is broadcasted to each target terminal device in a local area network; after receiving a context switching request, a target terminal device acquires device information of a source terminal device, at least one application program client to be synchronized and context data corresponding to each application program client to be synchronized, wherein the device information is carried in the context switching request; judging whether an application program client identical to each application program client to be synchronized exists in the target terminal equipment or not according to the identification information of each application program client to be synchronized; if the same application program client as each application program client to be synchronized exists in the target terminal equipment, the same application program client as each application program client to be synchronized in the target terminal equipment is subjected to context synchronization according to context data corresponding to each application program client to be synchronized, a context switching request is initiated on the terminal equipment currently used by the user through the context switching operation of the user, the context switching request is broadcasted, all target terminal equipment receiving the request in the local area network responds to the target terminal equipment, the cross-equipment context switching is initiated according to the context data corresponding to each application program client to be synchronized in the target terminal equipment, the context of the source terminal equipment is seamlessly transferred to the target terminal equipment, account login and other limiting operations are not needed, file clicking, sending, receiving, opening and other tedious user operations are avoided, cross-equipment manual switching operations are reduced, and the context switching between different terminal equipment can be conveniently and efficiently completed.
Drawings
Fig. 1 is a schematic structural diagram of a context switching system according to an embodiment of the present invention.
Fig. 2 is a flowchart of a context switching method according to a second embodiment of the present invention.
Fig. 3 is a flowchart of a context switching method according to a third embodiment of the present invention.
Fig. 4 is a schematic structural diagram of a context switching apparatus according to a fourth embodiment of the present invention.
Fig. 5 is a schematic structural diagram of a context switching apparatus according to a fifth embodiment of the present invention.
Fig. 6 is a schematic structural diagram of a terminal device according to a sixth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not to be construed as limiting the invention.
It should be further noted that, for the convenience of description, only some but not all of the relevant elements of the present invention are shown in the drawings. Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently or simultaneously. In addition, the order of the operations may be re-arranged. The process may be terminated when its operations are completed, but could have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, subprograms, and the like.
Example one
Fig. 1 is a schematic structural diagram of a context switching system according to an embodiment of the present invention. The embodiment of the invention can be suitable for completing the switching of the context between different terminal devices. As shown in fig. 1, the context switching system may specifically include: a source terminal device 101 and at least one target terminal device 102, the structure and function of which will be explained below.
The source terminal device 101 and each target terminal device 102 are in the same local area network, the source terminal device 101 is a terminal device currently used by a user in all terminal devices in the local area network, and other terminal devices in the local area network except the source terminal device 101 are the target terminal devices 102.
The source terminal device 101 is configured to generate a context switching request corresponding to a context switching operation after detecting the context switching operation of a user, where the context switching request carries device information of the source terminal device 101, identification information of at least one application client to be synchronized, and context data corresponding to each application client to be synchronized; broadcasting the context switch request to each of the target terminal devices 102 within the local area network.
The target terminal device 102 is configured to receive the context switch request; if the context switching request is received, acquiring the device information of the source terminal device 101, at least one application program client to be synchronized and context data corresponding to each application program client to be synchronized, which are carried in the context switching request; judging whether an application program client identical to each application program client to be synchronized exists in the target terminal equipment or not according to the identification information of each application program client to be synchronized; if the same application program client as each application program client to be synchronized exists in the target terminal device 102, performing context synchronization on the same application program client as each application program client to be synchronized in the target terminal device 102 according to the context data corresponding to each application program client to be synchronized.
Optionally, the context switching operation includes a device context switching operation and an application context switching operation; the device context switching operation is configured to trigger a switching process of synchronizing contexts of application clients in the source terminal device 101 to contexts of the same application client in the target terminal device 102, where the device context switching operation includes a sliding operation, a shaking operation, or a dithering operation; the application context switching operation is configured to trigger a switching process of synchronizing a context of a target application client in the source terminal device 101 to a context of an application client that is the same as the target application client in the target terminal device 102, where the application context switching operation includes a drag operation for an icon of the target application client.
Specifically, the user may trigger a switching process of synchronizing the contexts of the application clients in the source terminal device 101 to the contexts of the same application client in the target terminal device 102 through a device context switching operation, that is, synchronizing the contexts of all the application clients in the source terminal device 101 to the contexts of the same application client in the target terminal device 102, so as to seamlessly migrate the context on the source terminal device 101 to the target terminal device 102.
Illustratively, the sliding operation is a multi-finger sliding up of the touch screen on the source terminal device 101. The flick operation is performed by holding the source terminal apparatus 101 by hand and flicking it outward. The dither operation is to hold the source terminal apparatus 101, and dither the source terminal apparatus 101.
Specifically, the target application client is one or more application clients designated by the user. The user may trigger a switching process of synchronizing the context of the target application client in the source terminal device 101 to the context of the application client in the target terminal device 102 that is the same as the target application client through an application context switching operation, that is, synchronizing the context of the target application client in the source terminal device 101 to the context of the application client in the target terminal device 102 that is the same as the target application client, so as to seamlessly migrate the context of the target application client on the source terminal device 101 to the context of the same kind of application client on the target terminal device 102.
Illustratively, the drag operation for the icon of the target application client is to drag the icon of the target application client in a specific direction by a right mouse button. The particular direction may be up, down, left or right.
Optionally, after detecting the context switching operation of the user, the source terminal device 101 generates a context switching request corresponding to the context switching operation, which may include: after detecting the device context switching operation of the user, the source terminal device 101 acquires device information of the source terminal device 101; the source terminal device 101 determines each application program client in the source terminal device 101 as an application program client to be synchronized, and acquires identification information of each application program client to be synchronized; the source terminal device 101 acquires context data corresponding to each application client to be synchronized; the source terminal device 101 generates a context switching request corresponding to the device context switching operation according to the device information of the source terminal device 101, the identification information of each application program client to be synchronized, and the context data corresponding to each application program client to be synchronized.
Optionally, the device information of the source terminal device 101 may be device identification information of the source terminal device 101. Each terminal device has unique corresponding device identification information. Different terminal devices can be distinguished according to the device identification information.
Optionally, each application client has unique corresponding identification information. According to the device identification information, different application program clients to be synchronized can be distinguished. The application client to be synchronized is an application client which needs to perform context synchronization.
Optionally, the context corresponding to the application client is a set of environments in which the application client works or runs. The context data corresponding to the application client is data related to a set of environments in which the application client works or programs run.
Optionally, after detecting the context switching operation of the user, the source terminal device 101 generates a context switching request corresponding to the context switching operation, which may include: after detecting an application context switching operation of a user, a source terminal device 101 acquires device information of the source terminal device 101; the source terminal device 101 determines a target application program client in the source terminal device 101 as an application program client to be synchronized, and acquires identification information of the application program client to be synchronized; the source terminal device 101 acquires context data corresponding to the application client to be synchronized; the source terminal device 101 generates a context switching request corresponding to the application context switching operation according to the device information of the source terminal device, the identification information of the application program client to be synchronized, and the context data corresponding to the application program client to be synchronized.
Optionally, the obtaining the device information of the source terminal device 101, the at least one application client to be synchronized, and the context data corresponding to each application client to be synchronized, which are carried in the context switching request, may include: the target terminal device 102 analyzes the context switching request to obtain the device information of the source terminal device 101, at least one application program client to be synchronized, and context data corresponding to each application program client to be synchronized, which are carried in the context switching request.
Optionally, after the target terminal device 102 receives the context switching request, the method further includes: if the target terminal device 102 does not receive the context switching request, it is determined that the target terminal device 102 does not support the context synchronization operation, and the process is ended.
The two application clients with the same identification information are the same application clients, that is, the two application clients with the same identification information are the same application clients.
Optionally, the determining, by the target terminal device 102 according to the identification information of each application client to be synchronized, whether an application client identical to each application client to be synchronized exists in the target terminal device includes: for each application program client to be synchronized, judging whether an application program client with the identification information identical to that of the application program client to be synchronized exists in the target terminal device 102; if an application client with the identification information identical to that of the application client to be synchronized exists in the target terminal device 102, determining that the application client identical to that of the application client to be synchronized exists in the target terminal device; if the application client having the identification information identical to that of the application client to be synchronized does not exist in the target terminal device 102, it is determined that the application client identical to that of the application client to be synchronized does not exist in the target terminal device.
Optionally, after the target terminal device 102 determines, according to the identification information of each application client to be synchronized, whether an application client identical to each application client to be synchronized exists in the target terminal device 102, the method further includes: and if the application program clients same as the application program clients to be synchronized do not exist in the target terminal device 102, sending context switching suspension information to the source terminal device 101 according to the device information of the source terminal device 101.
The context switch suspension information is for notifying the source terminal apparatus 101 of: the target terminal device 102 does not support context synchronization, terminates the context switching process, and ends the process information.
Optionally, the performing context synchronization on the application client, which is the same as each of the application clients to be synchronized, in the target terminal device according to the context data corresponding to each of the application clients to be synchronized may include: the target terminal device 102 acquires a context data type of context data corresponding to each application program client to be synchronized; the target terminal device 102 determines whether the data type of the context data corresponding to each of the to-be-synchronized application program clients belongs to a context data type that the target terminal device supports synchronization; if the data type of the context data corresponding to each application client to be synchronized belongs to the context data type supported by the target terminal device 102 for synchronization, the target terminal device 102 determines the data synchronization mode of the context data corresponding to each application client to be synchronized according to the data type of the context data corresponding to each application client to be synchronized; the target terminal device 102 displays icons of the application program clients to be synchronized in a notification bar area in a device display interface; if the target terminal device 102 detects that the user clicks the icon of each application client to be synchronized within a preset time interval, synchronizing the context data corresponding to each application client to be synchronized into the target terminal device 102 according to the data synchronization mode of the context data corresponding to each application client to be synchronized.
Optionally, the context data type of the context data may include: web pages, documents, and text.
Optionally, the context data types supported by the target terminal device 102 for synchronization and the data synchronization mode corresponding to each context data type are preset. The data synchronization method is a method of performing context data synchronization.
In one embodiment, the data synchronization method may be: and copying and pasting the context data corresponding to the application client to be synchronized to the context data storage position of the application client which is the same as the application client to be synchronized in the target terminal device 102. The context data storage location is a location for the application client to store context data.
In another embodiment, the data synchronization method may be: the context data corresponding to the application client to be synchronized is stored to a preset position, then the address of the preset position is provided to the application client in the target terminal device 102, which is the same as the application client to be synchronized, so that the application client in the target terminal device 102, which is the same as the application client to be synchronized, accesses the preset position according to the address of the preset position to obtain the context data, and the context data is stored to the context data storage position of the application client in the target terminal device 102, which is the same as the application client to be synchronized.
Optionally, the device display interface is a screen display interface of the target terminal device 102. The notification bar area is an interface area for displaying notification information. The preset time interval can be set according to business requirements. Illustratively, the preset time interval is within 30 seconds after the icon is displayed.
Optionally, after the target terminal device 101 displays icons of the to-be-synchronized application clients in a notification bar area in a device display interface, the method may further include: and if the data type of the context data corresponding to each application client to be synchronized does not belong to the context data type supported by the target terminal device 102, sending context switching suspension information to the source terminal device 101 according to the device information of the source terminal device 101.
Optionally, after the target terminal device 102 displays an icon of each application client to be synchronized in a notification bar area in a device display interface, the method may include: if the target terminal device 102 does not detect the user's clicking operation on the icon of each application client to be synchronized within a preset time interval, sending context switching suspension information to the source terminal device 101 according to the device information of the source terminal device 101.
The embodiment of the invention provides a context switching system, which comprises a source terminal device, a context switching request and a context switching control module, wherein the context switching request is generated corresponding to the context switching operation after the context switching operation of a user is detected by the source terminal device, carries the device information of the source terminal device, the identification information of at least one application program client to be synchronized and the context data corresponding to each application program client to be synchronized, and then broadcasts the context switching request to each target terminal device in a local area network; after receiving a context switching request, a target terminal device acquires device information of a source terminal device, at least one application program client to be synchronized and context data corresponding to each application program client to be synchronized, wherein the device information is carried in the context switching request; judging whether an application program client identical to each application program client to be synchronized exists in the target terminal equipment or not according to the identification information of each application program client to be synchronized; if the application program client identical to each application program client to be synchronized exists in the target terminal equipment, the application program client identical to each application program client to be synchronized in the target terminal equipment is subjected to context synchronization according to context data corresponding to each application program client to be synchronized, a context switching request is initiated on the terminal equipment currently used by a user through the context switching operation of the user, the context switching request is broadcasted, all target terminal equipment receiving the request in the local area network responds to the target terminal equipment, the application program client identical to each application program client to be synchronized in the target terminal equipment is subjected to context synchronization according to the context data corresponding to each application program client to be synchronized, so that the context on the source terminal equipment is seamlessly transferred to the target terminal equipment, cross-equipment context switching is initiated in a relatively natural mode more conforming to the habit of human operation, account number login and other limiting operations are not needed, file clicking, sending, receiving, opening and other complicated user operations are avoided, cross-equipment context switching manual operations are reduced, and convenient and fast switching between different terminal equipment contexts can be efficiently completed.
Example two
Fig. 2 is a flowchart of a context switching method according to a second embodiment of the present invention. The embodiment can be applied to the situation of completing the switching of the context between different terminal devices. The method can be applied to the source terminal device in the context switching system provided by the above embodiment of the present invention. As shown in fig. 2, the method of the embodiment specifically includes:
step 201, after detecting a context switching operation of a user, a source terminal device generates a context switching request corresponding to the context switching operation, where the context switching request carries device information of the source terminal device, identification information of at least one application client to be synchronized, and context data corresponding to each application client to be synchronized.
Optionally, the context switching operation includes a device context switching operation and an application context switching operation; the device context switching operation is used for triggering a switching process of synchronizing the contexts of the application program clients in the source terminal device to the contexts of the same application program clients in the target terminal device, and the device context switching operation comprises sliding operation, shaking operation or dithering operation; the application context switching operation is used for triggering a switching process of synchronizing the context of a target application program client in a source terminal device to the context of an application program client which is the same as the target application program client in a target terminal device, and the application context switching operation comprises a dragging operation aiming at an icon of the target application program client.
Specifically, the user may trigger a switching process of synchronizing the contexts of the application clients in the source terminal device to the contexts of the same application clients in the target terminal device through the device context switching operation, that is, synchronizing the contexts of all the application clients in the source terminal device to the contexts of the same application clients in the target terminal device, so as to seamlessly migrate the contexts on the source terminal device to the target terminal device.
Illustratively, the sliding operation is a multi-finger sliding up of the touch screen of the source terminal device. The swing operation is to hold the source terminal device and swing it outward. The dithering operation is to hold the source terminal equipment by hand and to dither the source terminal equipment.
Specifically, the target application client is one or more application clients designated by the user. The user can trigger a switching process of synchronizing the context of the target application program client in the source terminal device to the context of the application program client in the target terminal device, which is the same as the target application program client, through application context switching operation, that is, synchronizing the context of the target application program client in the source terminal device to the context of the application program client in the target terminal device, which is the same as the target application program client, so that the context of the target application program client on the source terminal device is seamlessly transferred to the context of the same application program client on the target terminal device.
Illustratively, the drag operation for the icon of the target application client is to drag the icon of the target application client in a specific direction by a right mouse button. The particular direction may be up, down, left or right.
Optionally, after detecting the context switching operation of the user, the source terminal device generates the context switching request corresponding to the context switching operation, which may include: the method comprises the steps that after a source terminal device detects the context switching operation of a user, the device information of the source terminal device is obtained; the source terminal equipment determines each application program client in the source terminal equipment as an application program client to be synchronized, and acquires identification information of each application program client to be synchronized; the source terminal equipment acquires context data corresponding to each application program client to be synchronized; and the source terminal equipment generates a context switching request corresponding to the equipment context switching operation according to the equipment information of the source terminal equipment, the identification information of each application program client to be synchronized and the context data corresponding to each application program client to be synchronized.
Optionally, the device information of the source terminal device may be device identification information of the source terminal device. Each terminal device has unique corresponding device identification information. Different terminal devices can be distinguished according to the device identification information.
Optionally, each application client has unique corresponding identification information. According to the device identification information, different application program clients to be synchronized can be distinguished. The application client to be synchronized is an application client which needs to perform context synchronization.
Optionally, the context corresponding to the application client is a set of environments in which the application client works or runs. The context data corresponding to the application client is data related to a set of environments in which the application client works or programs run.
Optionally, after detecting the context switching operation of the user, the source terminal device generates the context switching request corresponding to the context switching operation, which may include: the method comprises the steps that after a source terminal device detects application context switching operation of a user, device information of the source terminal device is obtained; the source terminal equipment determines a target application program client in the source terminal equipment as an application program client to be synchronized, and acquires identification information of the application program client to be synchronized; the source terminal equipment acquires context data corresponding to the application program client to be synchronized; and the source terminal equipment generates a context switching request corresponding to the application context switching operation according to the equipment information of the source terminal equipment, the identification information of the application program client to be synchronized and the context data corresponding to the application program client to be synchronized.
Optionally, the obtaining of the device information of the source terminal device, the at least one to-be-synchronized application client, and the context data corresponding to each to-be-synchronized application client, which are carried in the context switching request, may include: and the target terminal equipment analyzes the context switching request to obtain the equipment information of the source terminal equipment, at least one application program client to be synchronized and context data corresponding to each application program client to be synchronized, which are carried in the context switching request.
Step 202, the source terminal device broadcasts the context switching request to each target terminal device in the local area network.
And the source terminal equipment broadcasts the context switching request, and all target terminal equipment receiving the request in the local area network responds.
The embodiment of the invention provides a context switching method, which comprises the steps of generating a context switching request corresponding to the context switching operation after a source terminal device detects the context switching operation of a user, wherein the context switching request carries equipment information of the source terminal device, identification information of at least one application program client to be synchronized and context data corresponding to each application program client to be synchronized, broadcasting the context switching request to each target terminal device in a local area network, initiating a context switching request on the terminal device currently used by the user through the context switching operation of the user, broadcasting the context switching request, and responding by all target terminal devices receiving the request in the local area network.
EXAMPLE III
Fig. 3 is a flowchart of a context switching method according to a third embodiment of the present invention. The embodiment can be applied to the situation of completing the switching of the context between different terminal devices. The method can be applied to the target terminal device in the context switching system provided by the above embodiment of the present invention. As shown in fig. 3, the method of this embodiment specifically includes:
step 301, the target terminal device receives the context switching request.
Optionally, after the target terminal device receives the context switching request, the method further includes: and if the target terminal equipment does not receive the context switching request, determining that the target terminal equipment does not support the context synchronous operation, and ending the process.
Step 302, if the target terminal device receives the context switching request, obtaining the device information of the source terminal device, at least one application program client to be synchronized, and context data corresponding to each application program client to be synchronized, which are carried in the context switching request.
Optionally, the obtaining the device information of the source terminal device, the at least one application client to be synchronized, and the context data corresponding to each application client to be synchronized, which are carried in the context switching request, may include: the target terminal device analyzes the context switching request to obtain the device information of the source terminal device, at least one application program client to be synchronized and context data corresponding to each application program client to be synchronized, wherein the device information of the source terminal device, the at least one application program client to be synchronized and the context data are carried in the context switching request.
Step 303, the target terminal device determines whether an application client identical to each application client to be synchronized exists in the target terminal device according to the identification information of each application client to be synchronized.
In this embodiment, the two application clients with the same identification information are the same application client, that is, the two application clients with the same identification information are the same application client.
Optionally, the determining, by the target terminal device, whether an application client that is the same as each application client to be synchronized exists in the target terminal device according to the identification information of each application client to be synchronized includes: judging whether an application program client with the identification information identical to that of the application program client to be synchronized exists in the target terminal equipment or not aiming at each application program client to be synchronized; if the application program client with the identification information identical to that of the application program client to be synchronized exists in the target terminal equipment, determining that the application program client identical to that of the application program client to be synchronized exists in the target terminal equipment; and if the application program client with the identification information identical to that of the application program client to be synchronized does not exist in the target terminal equipment, determining that the application program client identical to that of the application program client to be synchronized does not exist in the target terminal equipment.
Optionally, after the target terminal device determines, according to the identification information of each application client to be synchronized, whether an application client identical to each application client to be synchronized exists in the target terminal device, the method further includes: and if the application program client identical to each application program client to be synchronized does not exist in the target terminal equipment, sending context switching suspension information to the source terminal equipment according to the equipment information of the source terminal equipment.
The context switch suspension information is for notifying the source terminal device of: and the target terminal equipment does not support context synchronization, the context switching process is stopped, and the information of the flow is ended.
Step 304, if the same application program client as each application program client to be synchronized exists in the target terminal device, performing context synchronization on the same application program client as each application program client to be synchronized in the target terminal device according to the context data corresponding to each application program client to be synchronized.
Optionally, the performing context synchronization on the application client, which is the same as each of the application clients to be synchronized, in the target terminal device according to the context data corresponding to each of the application clients to be synchronized may include: the target terminal equipment acquires context data types of context data corresponding to the to-be-synchronized application program clients; the target terminal equipment judges whether the data type of the context data corresponding to each application program client to be synchronized belongs to the context data type supported by the target terminal equipment for synchronization; if the data type of the context data corresponding to each application program client to be synchronized belongs to the context data type which is supported by the target terminal equipment to be synchronized, the target terminal equipment determines the data synchronization mode of the context data corresponding to each application program client to be synchronized according to the data type of the context data corresponding to each application program client to be synchronized; the target terminal device displays icons of the application program clients to be synchronized in a notification bar area in a device display interface; and if the target terminal equipment detects that the user clicks the icon of each application program client to be synchronized within a preset time interval, synchronizing the context data corresponding to each application program client to be synchronized into the target terminal equipment according to the data synchronization mode of the context data corresponding to each application program client to be synchronized.
Optionally, the context data type of the context data may include: web pages, documents, and text.
Optionally, the context data types supported by the target terminal device for synchronization and the data synchronization mode corresponding to each context data type are preset. The data synchronization method is a method of performing context data synchronization.
In one embodiment, the data synchronization method may be: and copying and pasting the context data corresponding to the application program client to be synchronized to the context data storage position of the application program client which is the same as the application program client to be synchronized in the target terminal equipment. The context data storage location is a location for the application client to store context data.
In another embodiment, the data synchronization method may be: the context data corresponding to the application program client to be synchronized are stored to a preset position, then the address of the preset position is provided for the application program client which is the same as the application program client to be synchronized in the target terminal equipment, so that the application program client which is the same as the application program client to be synchronized in the target terminal equipment accesses the preset position according to the address of the preset position, the context data are obtained, and the context data are stored to the context data storage position of the application program client which is the same as the application program client to be synchronized in the target terminal equipment.
Optionally, the device display interface is a screen display interface of the target terminal device. The notification bar area is an interface area for displaying notification information. The preset time interval can be set according to business requirements. Illustratively, the predetermined time interval is within 30 seconds after the icon is displayed.
Optionally, after the target terminal device displays an icon of each application client to be synchronized in a notification bar area in a device display interface, the method may further include: and if the data type of the context data corresponding to each application program client to be synchronized does not belong to the context data type supported by the target terminal equipment for synchronization, sending context switching suspension information to the source terminal equipment according to the equipment information of the source terminal equipment.
Optionally, after the target terminal device displays icons of the to-be-synchronized application clients in a notification bar area in a device display interface, the method may include: and if the target terminal equipment does not detect the clicking operation of the user on the icon of each application program client to be synchronized within a preset time interval, sending context switching suspension information to the source terminal equipment according to the equipment information of the source terminal equipment.
The embodiment of the invention provides a context switching method, which comprises the steps that after a target terminal device receives a context switching request, the device information of a source terminal device, at least one application program client to be synchronized and context data corresponding to each application program client to be synchronized, which are carried in the context switching request, are obtained; judging whether an application program client identical to each application program client to be synchronized exists in the target terminal equipment or not according to the identification information of each application program client to be synchronized; when an application client identical to each application client to be synchronized exists in a target terminal device, the application client identical to each application client to be synchronized in the target terminal device is context-synchronized according to context data corresponding to each application client to be synchronized, a context switching request is initiated on a terminal device currently used by a user through context switching operation of the user, the context switching request is broadcasted, all target terminal devices receiving the request in a local area network respond, and the application clients identical to each application client to be synchronized in the target terminal device are context-synchronized according to the context data corresponding to each application client to be synchronized, so that the context on a source terminal device is seamlessly transferred to the target terminal device, manual operation of cross-device context switching is reduced, and switching of the context between different terminal devices can be conveniently and efficiently completed.
Example four
Fig. 4 is a schematic structural diagram of a context switch apparatus according to a fourth embodiment of the present invention. The apparatus may be configured in the source terminal device in the context switching system provided in the foregoing embodiment of the present invention. As shown in fig. 4, the apparatus includes: a request generation module 401 and a request broadcast module 402.
The request generating module 401 is configured to generate a context switching request corresponding to a context switching operation after detecting the context switching operation of a user, where the context switching request carries device information of the source terminal device, identification information of at least one to-be-synchronized application client, and context data corresponding to each to-be-synchronized application client; a request broadcasting module 402, configured to broadcast the context switch request to each target terminal device in the local area network.
The embodiment of the invention provides a context switching device, which generates a context switching request corresponding to a context switching operation after a source terminal device detects the context switching operation of a user, wherein the context switching request carries device information of the source terminal device, identification information of at least one application program client to be synchronized and context data corresponding to each application program client to be synchronized, and then broadcasts the context switching request to each target terminal device in a local area network.
In an optional implementation manner of the embodiment of the present invention, optionally, the context switching operation includes a device context switching operation and an application context switching operation; the device context switching operation is used for triggering a switching process of synchronizing the contexts of the application program clients in the source terminal device to the contexts of the same application program clients in the target terminal device, and the device context switching operation comprises sliding operation, shaking operation or dithering operation; the application context switching operation is used for triggering a switching process of synchronizing the context of a target application program client in a source terminal device to the context of an application program client which is the same as the target application program client in a target terminal device, and the application context switching operation comprises a dragging operation aiming at an icon of the target application program client.
In an optional implementation manner of the embodiment of the present invention, optionally, the request generating module 401 may include: a first obtaining unit, configured to obtain device information of the source terminal device after detecting a device context switching operation of a user; a second obtaining unit, configured to determine each application client in the source terminal device as an application client to be synchronized, and obtain identification information of each application client to be synchronized; a third obtaining unit, configured to obtain context data corresponding to each to-be-synchronized application client; a first generating unit, configured to generate a context switching request corresponding to the device context switching operation according to the device information of the source terminal device, the identification information of each application client to be synchronized, and the context data corresponding to each application client to be synchronized.
In an optional implementation manner of the embodiment of the present invention, optionally, the request generating module 401 may include: a fourth obtaining unit, configured to obtain device information of the source terminal device after detecting an application context switching operation of a user; a fifth obtaining unit, configured to determine a target application client in the source terminal device as an application client to be synchronized, and obtain identification information of the application client to be synchronized; a sixth obtaining unit, configured to obtain context data corresponding to the application client to be synchronized; a second generating unit, configured to generate a context switch request corresponding to the application context switch operation according to the device information of the source terminal device, the identification information of the application client to be synchronized, and the context data corresponding to the application client to be synchronized.
With regard to the apparatus in the above embodiments, the specific manner in which each module performs operations has been described in detail in the embodiments related to the context switching method, and will not be elaborated here.
EXAMPLE five
Fig. 5 is a schematic structural diagram of a context switch apparatus according to a fifth embodiment of the present invention. The apparatus can be configured in the service end of the context switching system provided in the above embodiments of the present invention. As shown in fig. 5, the apparatus includes: a request receiving module 501, an information obtaining module 502, an application client determining module 503, and a context synchronizing module 504.
The request receiving module 501 is configured to receive the context switching request; an information obtaining module 502, configured to, if the target terminal device receives the context switching request, obtain device information of the source terminal device, at least one to-be-synchronized application client, and context data corresponding to each to-be-synchronized application client that are carried in the context switching request; an application client determining module 503, configured to determine, according to the identification information of each to-be-synchronized application client, whether an application client identical to each to-be-synchronized application client exists in the target terminal device; a context synchronization module 504, configured to, if there is an application client that is the same as each of the to-be-synchronized application clients in the target terminal device, perform context synchronization on the application client that is the same as each of the to-be-synchronized application clients in the target terminal device according to context data corresponding to each of the to-be-synchronized application clients.
The embodiment of the invention provides a context switching device, which is characterized in that after a target terminal device receives a context switching request, the device information of a source terminal device, at least one application program client to be synchronized and context data corresponding to each application program client to be synchronized, which are carried in the context switching request, are obtained; judging whether an application program client identical to each application program client to be synchronized exists in the target terminal equipment or not according to the identification information of each application program client to be synchronized; when the application program clients same as the application program clients to be synchronized exist in the target terminal equipment, the application program clients same as the application program clients to be synchronized in the target terminal equipment are subjected to context synchronization according to context data corresponding to the application program clients to be synchronized, a context switching request is initiated on the terminal equipment currently used by a user through the context switching operation of the user, the context switching request is broadcasted, all the target terminal equipment receiving the request in the local area network responds, and the application program clients same as the application program clients to be synchronized in the target terminal equipment are subjected to context synchronization according to the context data corresponding to the application program clients to be synchronized, so that the context on the source terminal equipment is seamlessly transferred to the target terminal equipment, the manual operation of cross-equipment context switching is reduced, and the switching of the context between different terminal equipment can be conveniently and efficiently completed.
In an optional implementation manner of the embodiment of the present invention, optionally, the information obtaining module 502 is specifically configured to: and analyzing the context switching request to obtain the device information of the source terminal device, at least one application program client to be synchronized and context data corresponding to each application program client to be synchronized, which are carried in the context switching request.
In an optional implementation manner of the embodiment of the present invention, optionally, the context switching apparatus may further include: and the suspension information sending module is used for sending context switching suspension information to the source terminal equipment according to the equipment information of the source terminal equipment if the application program client which is the same as each application program client to be synchronized does not exist in the target terminal equipment.
In an optional implementation manner of the embodiment of the present invention, the context synchronization module 504 may optionally include: the type acquisition unit is used for acquiring the context data type of the context data corresponding to each application program client to be synchronized; the type judging unit is used for judging whether the data type of the context data corresponding to each application program client to be synchronized belongs to the context data type which supports synchronization of the target terminal equipment; a mode determining unit, configured to determine, according to the data type of the context data corresponding to each of the to-be-synchronized application program clients, a data synchronization mode of the context data corresponding to each of the to-be-synchronized application program clients if the data type of the context data corresponding to each of the to-be-synchronized application program clients belongs to a context data type that the target terminal device supports synchronization; the chart display unit is used for displaying icons of the to-be-synchronized application program clients in a notification bar area in an equipment display interface; and the data synchronization unit is used for detecting the clicking operation of the user on the icon of each application program client to be synchronized in a preset time interval, and synchronizing the context data corresponding to each application program client to be synchronized into the target terminal equipment according to the data synchronization mode of the context data corresponding to each application program client to be synchronized.
In an optional implementation manner of the embodiment of the present invention, optionally, the context synchronization module 504 may further include: a first suspension information sending unit, configured to send context switching suspension information to the source terminal device according to the device information of the source terminal device if the data type of the context data corresponding to each to-be-synchronized application client does not belong to the context data type supported by synchronization by the target terminal device.
In an optional implementation manner of the embodiment of the present invention, optionally, the context synchronization module 504 may further include: and a second suspension information sending unit, configured to send context switching suspension information to the source terminal device according to the device information of the source terminal device if the target terminal device does not detect a click operation of the user on an icon of each to-be-synchronized application client within a preset time interval.
With regard to the apparatus in the above embodiments, the specific manner in which each module performs operations has been described in detail in the embodiments related to the context switching method, and will not be elaborated here.
Example six
Fig. 6 is a schematic structural diagram of a terminal device according to a sixth embodiment of the present invention. Fig. 6 illustrates a block diagram of an exemplary terminal device 12 suitable for use in implementing embodiments of the present invention. The terminal device 12 shown in fig. 6 is only an example, and should not bring any limitation to the function and the use range of the embodiment of the present invention.
As shown in fig. 6, terminal device 12 is in the form of a general purpose computing device. The components of terminal device 12 may include, but are not limited to: one or more processors 16, a memory 28, and a bus 18 that connects the various system components (including the memory 28 and the processors 16).
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Terminal device 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by terminal device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 30 and/or cache memory 32. Terminal device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 6, commonly referred to as a "hard drive"). Although not shown in FIG. 6, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28, such program modules 42 including but not limited to an operating system, one or more application clients, other program modules, and program data, each of which examples or some combination thereof may include an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of the described embodiments of the invention.
Terminal device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), one or more devices that enable a user to interact with terminal device 12, and/or any device (e.g., network card, modem, etc.) that enables terminal device 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. Also, terminal device 12 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet) via network adapter 20. As shown in fig. 6, the network adapter 20 communicates with the other modules of the terminal device 12 via the bus 18. It should be understood that although not shown in fig. 6, other hardware and/or software modules may be used in conjunction with terminal device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, to name a few.
The processor 16 executes various functional applications and data processing by running programs stored in the memory 28, so as to implement the context switching method provided by the embodiment of the present invention: after detecting the context switching operation of a user, a source terminal device generates a context switching request corresponding to the context switching operation, wherein the context switching request carries device information of the source terminal device, identification information of at least one application program client to be synchronized and context data corresponding to each application program client to be synchronized; and the source terminal equipment broadcasts the context switching request to each target terminal equipment in the local area network.
Or, implementing the context switching method provided by the embodiment of the present invention: the target terminal equipment receives the context switching request; if the target terminal device receives the context switching request, acquiring device information of the source terminal device, at least one application program client to be synchronized and context data corresponding to each application program client to be synchronized, wherein the device information is carried in the context switching request; the target terminal equipment judges whether an application program client identical to each application program client to be synchronized exists in the target terminal equipment or not according to the identification information of each application program client to be synchronized; and if the application program clients which are the same as the application program clients to be synchronized exist in the target terminal equipment, performing context synchronization on the application program clients which are the same as the application program clients to be synchronized in the target terminal equipment according to the context data corresponding to the application program clients to be synchronized.
EXAMPLE seven
A seventh embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored thereon, and when the computer program is executed by a processor, the context switching method provided in the embodiment of the present invention is implemented: after detecting the context switching operation of a user, a source terminal device generates a context switching request corresponding to the context switching operation, wherein the context switching request carries device information of the source terminal device, identification information of at least one application program client to be synchronized and context data corresponding to each application program client to be synchronized; and the source terminal equipment broadcasts the context switching request to each target terminal equipment in the local area network.
Or, implementing the context switching method provided by the embodiment of the present invention: the target terminal equipment receives the context switching request; if the target terminal device receives the context switching request, acquiring device information of the source terminal device, at least one application program client to be synchronized and context data corresponding to each application program client to be synchronized, which are carried in the context switching request; the target terminal equipment judges whether an application program client identical to each application program client to be synchronized exists in the target terminal equipment or not according to the identification information of each application program client to be synchronized; and if the application program clients identical to the application program clients to be synchronized exist in the target terminal equipment, performing context synchronization on the application program clients identical to the application program clients to be synchronized in the target terminal equipment according to the context data corresponding to the application program clients to be synchronized.
Any combination of one or more computer-readable media may be employed. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an information delivery system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an information handling system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or computer device. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. Those skilled in the art will appreciate that the present invention is not limited to the particular embodiments described herein, and that various obvious changes, rearrangements and substitutions will now be apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (15)

1. A context switching system, comprising:
a source terminal device and at least one target terminal device;
the source terminal device and each target terminal device are in the same local area network, the source terminal device is a terminal device currently used by a user in all terminal devices in the local area network, and other terminal devices in the local area network except the source terminal device are target terminal devices;
the source terminal device is configured to generate a context switching request corresponding to a context switching operation after detecting the context switching operation of a user, where the context switching request carries device information of the source terminal device, identification information of at least one application client to be synchronized, and context data corresponding to each application client to be synchronized; broadcasting the context switching request to each target terminal device in the local area network; wherein the context data is data related to a set of environments in which a work or program of an application client operates;
the target terminal device is used for receiving the context switching request; if the context switching request is received, acquiring the device information of the source terminal device, at least one application program client to be synchronized and context data corresponding to each application program client to be synchronized, which are carried in the context switching request; judging whether application program clients identical to the to-be-synchronized application program clients exist in the target terminal equipment or not according to the identification information of the to-be-synchronized application program clients; if the application program clients identical to the application program clients to be synchronized exist in the target terminal equipment, performing context synchronization on the application program clients identical to the application program clients to be synchronized in the target terminal equipment according to context data corresponding to the application program clients to be synchronized; if the application program client identical to each application program client to be synchronized does not exist in the target terminal equipment, sending context switching suspension information to the source terminal equipment according to the equipment information of the source terminal equipment; the context switching suspension information is information for notifying the source terminal device that the target terminal device does not support context synchronization, suspending the context switching process, and ending the process.
2. A context switching method applied to the source terminal device in the context switching system according to claim 1, wherein the method comprises:
after detecting the context switching operation of a user, a source terminal device generates a context switching request corresponding to the context switching operation, wherein the context switching request carries device information of the source terminal device, identification information of at least one application program client to be synchronized and context data corresponding to each application program client to be synchronized; wherein the context data is data related to a set of environments in which a program or a job of an application client is run;
and the source terminal equipment broadcasts the context switching request to each target terminal equipment in the local area network.
3. The method of claim 2, wherein the context switching operation comprises a device context switching operation and an application context switching operation;
the device context switching operation is used for triggering a switching process of synchronizing the contexts of the application program clients in the source terminal device to the contexts of the same application program clients in the target terminal device, and the device context switching operation comprises sliding operation, shaking operation or dithering operation;
the application context switching operation is used for triggering a switching process of synchronizing the context of a target application program client in a source terminal device to the context of an application program client which is the same as the target application program client in a target terminal device, and the application context switching operation comprises a dragging operation aiming at an icon of the target application program client.
4. The method according to claim 3, wherein the generating, by the source terminal device, the context switching request corresponding to the context switching operation after detecting the context switching operation of the user comprises:
the method comprises the steps that after a source terminal device detects the context switching operation of a user, the device information of the source terminal device is obtained;
the source terminal equipment determines each application program client in the source terminal equipment as an application program client to be synchronized, and acquires identification information of each application program client to be synchronized;
the source terminal equipment acquires context data corresponding to each application program client to be synchronized;
and the source terminal equipment generates a context switching request corresponding to the equipment context switching operation according to the equipment information of the source terminal equipment, the identification information of each application program client to be synchronized and the context data corresponding to each application program client to be synchronized.
5. The method according to claim 3, wherein the generating, by the source terminal device, the context switching request corresponding to the context switching operation after detecting the context switching operation of the user comprises:
the method comprises the steps that after a source terminal device detects application context switching operation of a user, device information of the source terminal device is obtained;
the source terminal equipment determines a target application program client in the source terminal equipment as an application program client to be synchronized, and acquires identification information of the application program client to be synchronized;
the source terminal equipment acquires context data corresponding to the application program client to be synchronized;
and the source terminal equipment generates a context switching request corresponding to the application context switching operation according to the equipment information of the source terminal equipment, the identification information of the application program client to be synchronized and the context data corresponding to the application program client to be synchronized.
6. A context switching method applied to the target terminal device in the context switching system according to claim 1, wherein the method comprises:
the target terminal equipment receives the context switching request;
if the target terminal device receives the context switching request, acquiring device information of the source terminal device, at least one application program client to be synchronized and context data corresponding to each application program client to be synchronized, which are carried in the context switching request; wherein the context data is data related to a set of environments in which a work or program of an application client operates;
the target terminal equipment judges whether an application program client identical to each application program client to be synchronized exists in the target terminal equipment or not according to the identification information of each application program client to be synchronized;
if the application program clients identical to the application program clients to be synchronized exist in the target terminal equipment, performing context synchronization on the application program clients identical to the application program clients to be synchronized in the target terminal equipment according to context data corresponding to the application program clients to be synchronized;
if the application program client identical to each application program client to be synchronized does not exist in the target terminal equipment, sending context switching suspension information to the source terminal equipment according to the equipment information of the source terminal equipment; the context switching suspension information is information for notifying the source terminal device that the target terminal device does not support context synchronization, suspending the context switching process, and ending the process.
7. The method according to claim 6, wherein the obtaining of the device information of the source terminal device, the at least one application client to be synchronized, and the context data corresponding to each application client to be synchronized, which are carried in the context switching request, includes:
and the target terminal equipment analyzes the context switching request to obtain the equipment information of the source terminal equipment, at least one application program client to be synchronized and context data corresponding to each application program client to be synchronized, which are carried in the context switching request.
8. The method according to claim 6, wherein after the target terminal device determines whether the same application client as each of the to-be-synchronized application clients exists in the target terminal device according to the identification information of each of the to-be-synchronized application clients, the method further comprises:
and if the application program client identical to each application program client to be synchronized does not exist in the target terminal equipment, sending context switching suspension information to the source terminal equipment according to the equipment information of the source terminal equipment.
9. The method according to claim 6, wherein the performing context synchronization on the same application client as each application client to be synchronized in the target terminal device according to the context data corresponding to each application client to be synchronized comprises:
the target terminal equipment acquires context data types of context data corresponding to the to-be-synchronized application program clients;
the target terminal equipment judges whether the data type of the context data corresponding to each application program client to be synchronized belongs to the context data type supported by the target terminal equipment for synchronization;
if the data type of the context data corresponding to each application program client to be synchronized belongs to the context data type which is supported by the target terminal equipment to be synchronized, the target terminal equipment determines the data synchronization mode of the context data corresponding to each application program client to be synchronized according to the data type of the context data corresponding to each application program client to be synchronized;
the target terminal device displays icons of the application program clients to be synchronized in a notification bar area in a device display interface;
and if the target terminal equipment detects that the user clicks the icon of each application program client to be synchronized in a preset time interval, synchronizing the context data corresponding to each application program client to be synchronized into the target terminal equipment according to the data synchronization mode of the context data corresponding to each application program client to be synchronized.
10. The method according to claim 9, further comprising, after the target terminal device displays icons of the to-be-synchronized application clients in a notification bar area in a device display interface, the method further comprising:
and if the data type of the context data corresponding to each application program client to be synchronized does not belong to the context data type supported by the target terminal equipment for synchronization, sending context switching suspension information to the source terminal equipment according to the equipment information of the source terminal equipment.
11. The method according to claim 9, further comprising, after the target terminal device displays icons of the to-be-synchronized application clients in a notification bar area in a device display interface, the method further comprising:
and if the target terminal equipment does not detect the clicking operation of the user on the icon of each application program client to be synchronized in a preset time interval, sending context switching suspension information to the source terminal equipment according to the equipment information of the source terminal equipment.
12. A context switching apparatus, configured in a source terminal device in the context switching system according to claim 1, characterized in that the apparatus comprises:
a request generating module, configured to generate a context switching request corresponding to a context switching operation after detecting the context switching operation of a user, where the context switching request carries device information of the source terminal device, identification information of at least one to-be-synchronized application client, and context data corresponding to each to-be-synchronized application client; wherein the context data is data related to a set of environments in which a program or a job of an application client is run;
a request broadcasting module, configured to broadcast the context switching request to each target terminal device in the local area network.
13. A context switching apparatus applied in a target terminal device in the context switching system according to claim 1, wherein the apparatus comprises:
a request receiving module, configured to receive the context switch request;
an information obtaining module, configured to obtain, if the target terminal device receives the context switching request, device information of the source terminal device, at least one to-be-synchronized application client, and context data corresponding to each to-be-synchronized application client that are carried in the context switching request; wherein the context data is data related to a set of environments in which a work or program of an application client operates;
the application program client judging module is used for judging whether the application program client identical to each application program client to be synchronized exists in the target terminal equipment or not according to the identification information of each application program client to be synchronized;
a context synchronization module, configured to, if an application client that is the same as each of the to-be-synchronized application clients exists in the target terminal device, perform context synchronization on the application client that is the same as each of the to-be-synchronized application clients in the target terminal device according to context data corresponding to each of the to-be-synchronized application clients;
a pause information sending module, configured to send context switch pause information to the source terminal device according to the device information of the source terminal device if there is no application client that is the same as each of the to-be-synchronized application clients in the target terminal device; the context switching suspension information is information for notifying the source terminal device that the target terminal device does not support context synchronization, suspending the context switching process, and ending the process.
14. A terminal device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the context switching method according to any of claims 2-5 or the context switching method according to any of claims 6-11 when executing the computer program.
15. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the context switching method according to any one of claims 2 to 5, or the context switching method according to any one of claims 6 to 11.
CN202011019084.5A 2020-09-24 2020-09-24 Context switching system, method, device, equipment and medium Active CN112202864B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011019084.5A CN112202864B (en) 2020-09-24 2020-09-24 Context switching system, method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011019084.5A CN112202864B (en) 2020-09-24 2020-09-24 Context switching system, method, device, equipment and medium

Publications (2)

Publication Number Publication Date
CN112202864A CN112202864A (en) 2021-01-08
CN112202864B true CN112202864B (en) 2022-12-09

Family

ID=74007227

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011019084.5A Active CN112202864B (en) 2020-09-24 2020-09-24 Context switching system, method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN112202864B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6061711A (en) * 1996-08-19 2000-05-09 Samsung Electronics, Inc. Efficient context saving and restoring in a multi-tasking computing system environment
CN103108051A (en) * 2013-02-27 2013-05-15 上海够快网络科技有限公司 Synchronous file sharing method from cloud server
CN104794008A (en) * 2015-04-28 2015-07-22 北京数字天域科技有限责任公司 Application program synchronizing method, device and system
CN106095389A (en) * 2009-12-23 2016-11-09 英特尔公司 For automatically obtaining and synchronous context content and the method and apparatus of application
CN108509500A (en) * 2017-02-28 2018-09-07 谷歌有限责任公司 Seamless context switching

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130226878A1 (en) * 2012-02-27 2013-08-29 Nec Laboratories America, Inc. Seamless context transfers for mobile applications
US9578111B2 (en) * 2012-06-08 2017-02-21 International Business Machines Corporation Enabling different client contexts to share session information
CN105337926B (en) * 2014-06-18 2020-01-24 阿里巴巴集团控股有限公司 Multi-terminal linkage method and related equipment and system
US10258272B2 (en) * 2015-10-08 2019-04-16 International Business Machines Corporation Identifying stress levels associated with context switches
CN105933393A (en) * 2016-04-12 2016-09-07 乐视控股(北京)有限公司 Intra-local area network data synchronization method, device and user terminal
US20180182384A1 (en) * 2016-12-22 2018-06-28 Elemental Path, Inc. Stateful Context-Based Content Production Control
CN107613003B (en) * 2017-09-19 2019-03-12 北京达佳互联信息技术有限公司 Multimedia file synchronous method, device and terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6061711A (en) * 1996-08-19 2000-05-09 Samsung Electronics, Inc. Efficient context saving and restoring in a multi-tasking computing system environment
CN106095389A (en) * 2009-12-23 2016-11-09 英特尔公司 For automatically obtaining and synchronous context content and the method and apparatus of application
CN103108051A (en) * 2013-02-27 2013-05-15 上海够快网络科技有限公司 Synchronous file sharing method from cloud server
CN104794008A (en) * 2015-04-28 2015-07-22 北京数字天域科技有限责任公司 Application program synchronizing method, device and system
CN108509500A (en) * 2017-02-28 2018-09-07 谷歌有限责任公司 Seamless context switching

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
基于云计算Live Mesh的流媒体应用研究;曹彬等;《计算机科学》;20101115(第11期);全文 *
基于线路信息和QoS上下文转移的无缝切换方案;彭军等;《铁道学报》;20090615(第03期);全文 *

Also Published As

Publication number Publication date
CN112202864A (en) 2021-01-08

Similar Documents

Publication Publication Date Title
EP2778881B1 (en) Multi-input control method and system, and electronic device supporting the same
US20110219331A1 (en) Window resize on remote desktops
US9021507B2 (en) Dynamic use of data across multiple programs
US8832681B1 (en) Bundled mobile/desktop application package
US20140032699A1 (en) Remote user interface in a terminal server environment
US20140040763A1 (en) Managing active gui elements remotely
EP2806358B1 (en) Electronic device for operating application
US9134887B2 (en) Multi-device visual correlation interaction
CN104092815A (en) Method and device for inter-application information interaction based on Android system
TW201740286A (en) Information sharing system and method
US8635561B1 (en) System and method for sorting electronic documents
CN107817962B (en) Remote control method, device, control server and storage medium
EP3699731B1 (en) Method and device for calling input method, and server and terminal
US20190227698A1 (en) Splitting and merging files via a motion input on a graphical user interface
CN113778270A (en) Method and device for dragging icon
CN112202864B (en) Context switching system, method, device, equipment and medium
US9857910B2 (en) Method for controlling multiple touchscreens and electronic device
CN102043631A (en) Window control system and control method thereof
CN115421846A (en) Cross-device control method, control device, electronic device and readable storage medium
US9753741B2 (en) Remote inking
CN107390981B (en) Global menu control method, device, equipment and storage medium
US10812565B2 (en) Systems and methods to configure metadata
JP2017102847A (en) Information processing system, relay device, method, and program
CN114816203B (en) Shortcut operation method, device, terminal and storage medium suitable for network disk drive letter
US11962280B2 (en) Synchronized controller

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