EP-4068899-B1 - SYNCHRONIZATION METHOD AND ELECTRONIC DEVICE
Inventors
- LUO, JIE
Dates
- Publication Date
- 20260506
- Application Date
- 20201124
Claims (9)
- A synchronization method performed by a first electronic device, comprising: receiving, in a case that the first electronic device is in communication connection with a second electronic device, a running interface of a first application sent by the second electronic device (101); receiving, in a case that the first electronic device runs the first application, target application data of the first application sent by the second electronic device (102); and synchronizing the target application data to the first application run on the first electronic device (103), wherein the target application data is used for performing interface rendering on the first application, so that processes of operating the first application run on the first electronic device and the first application run on the second electronic device are synchronized, characterized in that , after the receiving a running interface of a first application sent by the second electronic device, the method comprises: displaying the received running interface of the first application on a virtual screen, wherein the virtual screen mirrors the running interface of the first application sent by the second electronic device, wherein before the first application of the first electronic device is started, the user operation for the first application is performed on the virtual screen, the first electronic device feeds back the operation data to the second electronic device, and the second electronic device performs an operation on the first application according to the operation data.
- The method according to claim 1, wherein the receiving, in a case that the first electronic device is in communication connection with a second electronic device, a running interface of a first application sent by the second electronic device comprises: in a case that the first electronic device is in communication connection with the second electronic device, receiving the running interface of the first application sent by the second electronic device and starting the first application on the first electronic device.
- The method according to claim 1, wherein after the synchronizing the target application data to the first application run on the first electronic device, the method further comprises: turning off the virtual screen and displaying the running interface of the first application on a display interface of the first electronic device.
- The method according to claim 1, wherein after the synchronizing the target application data to the first application run on the first electronic device, the method further comprises: interrupting the communication connection between the first electronic device and the second electronic device.
- An electronic device (700), wherein the electronic device is a first electronic device, comprising: a first receiving module (710), configured to receive, in a case that the first electronic device is in communication connection with a second electronic device, a running interface of a first application sent by the second electronic device; a second receiving module (720), configured to receive, in a case that the first electronic device runs the first application, target application data of the first application sent by the second electronic device; a first processing module (730), configured to synchronize the target application data to the first application run on the first electronic device; and a first display module, characterized in that the first display module is configured to display the received running interface of the first application on a virtual screen, wherein the virtual screen mirrors the running interface of the first application sent by the second electronic device, wherein before the first application of the first electronic device is started, the user operation for the first application is performed on the virtual screen, the first electronic device feeds back the operation data to the second electronic device, and the second electronic device performs an operation on the first application according to the operation data.
- The electronic device according to claim 5, wherein the first receiving module is further configured to: in a case that the first electronic device is in communication connection with the second electronic device, receive the running interface of the first application sent by the second electronic device and start the first application on the first electronic device.
- The electronic device according to claim 5, further comprising: a second processing module, configured to turn off the virtual screen and display the running interface of the first application on a display interface of the first electronic device.
- The electronic device according to claim 5, further comprising: a third processing module, configured to interrupt the communication connection between the first electronic device and the second electronic device.
- A computer readable storage medium, storing a computer program, characterized in that , the computer program, when executed by a processor, implementing the synchronization method according to any one of claims 1 to 4.
Description
TECHNICAL FIELD The present disclosure relates to the field of communication technologies, and in particular, to a synchronization method and an electronic device. BACKGROUND Currently, an average amount of smart devices possessed by each person has continuously increased. For a user having a plurality of smart devices, in a case that there is a demand for device switching because one of the smart devices is out of power or usage scenarios are changed, the user needs to exit an operation interface of a current device, start an application on a second device, and then enter the operation interface again. There is an interruption period during switch between applications of two devices, and the user needs to perform cumbersome operations on the second device to implement the same operations previously performed on the first device. WO 2013/097898 and US 2009/213032 represent relevant prior art for the present disclosure. SUMMARY The present disclosure provides a synchronization method according to claim 1 and an electronic device according to claim 5, and a computer readable storage medium according to claim 9, to resolve a problem that a user needs to repeat cumbersome operations previously performed after switching a device. To solve the foregoing technical problem, the present disclosure is implemented as follows: According to a first aspect, an embodiment of the present disclosure provides a synchronization method, applicable to a first electronic device, the method including: receiving, in a case that the first electronic device is in communication connection with a second electronic device, a running interface of a first application sent by the second electronic device;receiving, in a case that the first electronic device runs the first application, target application data of the first application sent by the second electronic device; andsynchronizing the target application data to the first application run on the first electronic device. According to a second aspect, an embodiment of the present disclosure further provides a synchronization method, applicable to a second electronic device, the method including: sending, in a case that the second electronic device is in communication connection with a first electronic device, a running interface of a first application to the first electronic device; andsending target application data of the first application to the first electronic device. According to a third aspect, an embodiment of the present disclosure provides an electronic device, the electronic device being a first electronic device and including: a first receiving module, configured to receive, in a case that the first electronic device is in communication connection with a second electronic device, a running interface of a first application sent by the second electronic device;a second receiving module, configured to receive, in a case that the first electronic device runs the first application, target application data of the first application sent by the second electronic device; anda first processing module, configured to synchronize the target application data to the first application run on the first electronic device. According to a fourth aspect, an embodiment of the present disclosure provides an electronic device, the electronic device being a second electronic device and including: a first sending module, configured to send, in a case that the second electronic device is in communication connection with a first electronic device, a running interface of a first application to the first electronic device; anda second sending module, configured to send target application data of the first application to the first electronic device. According to a fifth aspect, an embodiment of the present disclosure further provides an electronic device, including a processor, a memory, and a computer program stored in the memory and executable by the processor, the computer program, when executed by the processor, implementing the steps of the synchronization method described above. According to a sixth aspect, an embodiment of the present disclosure further provides a computer-readable storage medium, storing a computer program, the computer program, when executed by a processor, implementing the steps of the synchronization method described above. In the embodiments of the present disclosure, when a first electronic device does not start a first application, a running interface of the first application sent by a second electronic device is received, and the running interface sent by the second electronic device is used as a buffer transition during device switching. After the first electronic device starts the first application and synchronizes data of the first application, a user can directly perform operations on a running interface of the synchronized first application, so that the first application is seamlessly switched from the second electronic device to the first electronic device, thereby en