WO2023001027A1 - Task synchronization method and apparatus, device, and readable storage medium - Google Patents

Task synchronization method and apparatus, device, and readable storage medium Download PDF

Info

Publication number
WO2023001027A1
WO2023001027A1 PCT/CN2022/105219 CN2022105219W WO2023001027A1 WO 2023001027 A1 WO2023001027 A1 WO 2023001027A1 CN 2022105219 W CN2022105219 W CN 2022105219W WO 2023001027 A1 WO2023001027 A1 WO 2023001027A1
Authority
WO
WIPO (PCT)
Prior art keywords
task
synchronization
synchronization task
icon
window
Prior art date
Application number
PCT/CN2022/105219
Other languages
French (fr)
Chinese (zh)
Inventor
王涛
Original Assignee
维沃移动通信有限公司
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 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Publication of WO2023001027A1 publication Critical patent/WO2023001027A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/52Program synchronisation; Mutual exclusion, e.g. by means of semaphores

Definitions

  • the present application belongs to the technical field of communication, and in particular relates to a task synchronization method, device, equipment and readable storage medium.
  • the purpose of the embodiment of the present application is to provide a task synchronization method, device, device, system and readable storage medium, which can simplify the synchronization operation of tasks between devices, shorten the synchronization time, and improve the synchronization efficiency.
  • the embodiment of the present application provides a task synchronization method, the method includes: the first device generates a first synchronization task in response to an operation on the application program icon, and the first synchronization task corresponds to an application program; the first The device sends first synchronization task data corresponding to the first synchronization task to the second device, where the first synchronization task data is used by the second device to synchronize the first synchronization task.
  • the embodiment of the present application provides a task synchronization method, the method includes: the second device receives the first synchronization task data sent by the first device, and starts the synchronization task to open the window, wherein each of the first synchronization tasks The data corresponds to a first synchronization task, and each first synchronization task corresponds to an application program; the second device generates a synchronization task window in response to the operation of opening a window for the synchronization task, and determines the first synchronization task of the first device to synchronize The first synchronization task.
  • the embodiment of the present application provides a task synchronization device, the device includes: a synchronization task generation module, used for the first device to generate a first synchronization task in response to an operation on the application program icon, and the first synchronization task Corresponding to an application program; the synchronization task data sending module is used for the first device to send the first synchronization task data corresponding to the first synchronization task to the second device, wherein the first synchronization task data is used for the synchronization of the second device The first synchronization task.
  • a synchronization task generation module used for the first device to generate a first synchronization task in response to an operation on the application program icon, and the first synchronization task Corresponding to an application program
  • the synchronization task data sending module is used for the first device to send the first synchronization task data corresponding to the first synchronization task to the second device, wherein the first synchronization task data is used for the synchronization of the second device The first synchronization task.
  • the embodiment of the present application provides a task synchronization device, the device includes: a synchronization task receiving module, used for the second device to receive the first synchronization task data sent by the first device, and start the synchronization task opening window, wherein, every The first synchronization task data corresponds to a first synchronization task, and each first synchronization task corresponds to an application program; the synchronization task synchronization module is used for the second device to generate a synchronization task window in response to the operation of opening a window for the synchronization task , and determine a first synchronization task of the first device, so as to synchronize the first synchronization task.
  • the embodiment of the present application provides a first device, the first device includes a processor, a memory, and a program or instruction stored in the memory and operable on the processor, the program or instruction When executed by the processor, the steps of the task synchronization method as described in the first aspect are realized.
  • the embodiment of the present application provides a second device.
  • the first device includes a processor, a memory, and a program or instruction stored in the memory and operable on the processor.
  • the program or instruction When executed by the processor, the steps of implementing the task synchronization method according to the second aspect are realized.
  • the embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, it implements the above-mentioned steps described in the first aspect and the second aspect.
  • the steps of the task synchronization method are described in the first aspect and the second aspect.
  • an embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions, so as to implement the first aspect, The task synchronization method described in the second aspect.
  • the task synchronization method includes: the first device generates a first synchronization task in response to an operation on the application program icon, and the second One synchronization task corresponds to one application program; the first device sends the first synchronization task data corresponding to the first synchronization task to the second device, wherein the first synchronization task data is used for the second device to synchronize the first synchronization task, by responding to the The operation of the application program icon generates the first synchronization task and sends the corresponding first synchronization task data.
  • This application can simplify the synchronization operation, shorten the synchronization time, and improve the synchronization efficiency.
  • FIG. 1 is a schematic diagram of an application environment provided by an embodiment of the present application
  • FIG. 2 is one of the flowcharts of a task synchronization method provided in an embodiment of the present application
  • Fig. 3 is the second flowchart of a task synchronization method provided by the embodiment of the present application.
  • FIG. 4 is a schematic diagram of a synchronization task setting window of a first device provided in an embodiment of the present application
  • FIG. 5 is one of the schematic diagrams of a synchronization task window of a first device provided in an embodiment of the present application
  • Fig. 6 is a schematic diagram of triggering a suspension component in a first device to generate a first window according to an embodiment of the present application
  • Fig. 7 is a schematic diagram of triggering the target area to hide the first window in the first device according to the embodiment of the present application.
  • Fig. 8a is one of the schematic diagrams of operating task icons in the first window provided by the embodiment of the present application.
  • Fig. 8b is the second schematic diagram of operating task icons in the first window provided by the embodiment of the present application.
  • FIG. 9 is a schematic flowchart of a first device detecting a synchronization task of a second device according to an embodiment of the present application.
  • FIG. 10 is a schematic diagram of a synchronization task opening window in a first device provided by an embodiment of the present application.
  • FIG. 11 is a schematic diagram of a synchronization task opening window of a first device provided in an embodiment of the present application.
  • Fig. 12 is a schematic diagram of triggering an application program icon to generate a second window in a first device provided by an embodiment of the present application;
  • FIG. 13 is a schematic flowchart of another task synchronization method provided by the embodiment of the present application.
  • FIG. 14 is a schematic diagram of a synchronization task opening window of a second device provided by an embodiment of the present application.
  • Fig. 15 is a schematic diagram of a synchronization task window in a second device provided by an embodiment of the present application.
  • FIG. 16 is a schematic flowchart of a second device determining a synchronization task provided by an embodiment of the present application.
  • Fig. 17 is a schematic diagram of triggering the suspension component to generate the first window in the second device according to the embodiment of the present application.
  • Fig. 18 is a schematic diagram of dragging a task icon from the first window in the second device according to an embodiment of the present application
  • Fig. 19 is a schematic diagram of a synchronization task window of a second device provided by an embodiment of the present application.
  • FIG. 20 is a schematic diagram of triggering application icons to generate a second window in a second device according to an embodiment of the present application
  • Fig. 21 is a schematic structural diagram of a task synchronization device provided by an embodiment of the present application.
  • Fig. 22 is a schematic structural diagram of another task synchronization device provided by the embodiment of the present application.
  • Fig. 23 is one of the structural schematic diagrams of a first device provided in the embodiment of the present application.
  • Fig. 24 is the second structural schematic diagram of a first device provided by the embodiment of the present application.
  • Synchronization task data refers to the relevant data of the application program running on a certain device, for example: interface sliding position on a certain page, account information, video, music, rendering data, etc.
  • FIG. 1 is a schematic diagram of an application environment provided by an embodiment of the present application.
  • the application environment 100 includes: an electronic device 11 and a server 12 .
  • the electronic device 11 communicates with the server 12 to complete the data transmission or reception of the electronic device 11 , for example: the electronic device 11 connects to the server 12 , and the electronic device 11 sends synchronization task data to the server 12 .
  • the electronic device 11 includes an interface module, and the interface module includes multiple interfaces, such as: communication interface, wireless interface, wired interface, etc., correspondingly, the server 12 includes a server interface, such as: communication interface, wireless interface, For the wired interface, the electronic device 11 invokes the communication interface, connects to the server interface of the server 12 through a gateway, and realizes the communication connection between the electronic device 11 and the server 12 through a communication protocol.
  • the interface module includes multiple interfaces, such as: communication interface, wireless interface, wired interface, etc.
  • the server 12 includes a server interface, such as: communication interface, wireless interface,
  • the electronic device 11 invokes the communication interface, connects to the server interface of the server 12 through a gateway, and realizes the communication connection between the electronic device 11 and the server 12 through a communication protocol.
  • the number of electronic devices 11 can be two or more, for example: the electronic device 11 includes a first device 111 and a second device 112, it can be understood that the first device 111 and the second device 112
  • the two devices 112 can be mobile communication devices, mobile personal computer devices, computer terminals, portable entertainment devices, such as video players, handheld game consoles, smart tablets, etc., which are not limited here.
  • the first device 111 and the second device 112 are connected in communication, for example, through wireless local area network, bluetooth, etc., and the first device 111 and the second device 112 can transmit synchronization task data to realize Task synchronization between the first device 111 and the second device 112 .
  • the electronic device 11 may also include multiple devices, for example: a first device, a second device, a third device, ..., the Nth device, and the first device may send synchronization task data to multiple devices to Realize task synchronization between multiple devices.
  • the number of servers 12 is multiple, and multiple servers 12 can form a server cluster, for example: the server cluster includes: the first server, the second server, ..., the Nth server, or the server cluster can It is a cloud computing service center, which includes several servers for high-speed computing.
  • the server includes but is not limited to: servers such as tower servers, rack servers, and blade servers, which are not limited here.
  • the following takes the first device as a smart phone, the second device as a smart tablet, and task synchronization between the smart phone and the smart tablet as an example:
  • FIG. 2 is one of the flow charts of a task synchronization method provided in an embodiment of the present application.
  • the overall flow of the task synchronization method includes:
  • Step S201 generating a first synchronization task
  • the first device generates a first synchronization task
  • the first synchronization task refers to synchronizing an application program on a certain device to another device. Therefore, each synchronization task corresponds to an application program.
  • Step S202 sending the first synchronization task data
  • the first device sends the first synchronization task data to the second device, wherein the first synchronization task data is data related to the application program on the first device, when the second device receives the first synchronization task data sent by the first device
  • the first synchronizing task data can be used to synchronize to the task breakpoint corresponding to the application program, for example: jumping to the running interface of the application program of a certain device, loading the running data, and so on.
  • Step S203 synchronizing the first synchronization task
  • the second device synchronizes the first synchronization task, wherein the first synchronization task corresponds to an application program, which is equivalent to jumping the application program corresponding to the synchronization task in the second device to the application program of the first device
  • the running interface and load the running data.
  • FIG. 3 is the second flowchart of a task synchronization method provided by an embodiment of the present application.
  • the task synchronization method is applied to the first device. Specifically, the task synchronization method is executed by one or more processors of the first device.
  • the task synchronization method includes:
  • Step S301 the first device generates a first synchronization task in response to an operation on the application program icon, and the first synchronization task corresponds to an application program;
  • the method further includes:
  • the first device receives an operation on the application program icon in a synchronization task window, the synchronization task window includes a suspension component, and the suspension component is used to generate a first synchronization task;
  • the generating the first synchronization task in response to the operation on the application program icon includes:
  • the first device moves the application icon to the hover component in response to a first input to the application icon
  • the first device generates the first synchronization task, and adds the first synchronization task to a synchronization task list.
  • the first device generates a synchronization task window in response to an operation on the synchronization task setting window, wherein the synchronization task setting window includes a display time component and a display form component;
  • FIG. 4 is a schematic diagram of a synchronization task setting window of a first device provided in an embodiment of the present application
  • the synchronization task setting window is generated by the user in the setting options of the electronic device, for example, in "Settings -> More Settings", an option of "synchronization tasks" is added. After the user clicks, the system pops up the synchronization task setting window to guide the user to open and set the synchronization task window.
  • the synchronization task setting window includes: a synchronization task window switch component, a display time component and a display form component;
  • the synchronization task window switch component includes: two options of opening the synchronization task window or not opening the synchronization task window, for providing the user with the option to open the synchronization task window, or to choose not to open the synchronization task window.
  • the display time component and the display form component are displayed in the synchronization task setting window; when the user chooses not to open the synchronization task window, the display is hidden in the synchronization task setting window Time component and presentation component.
  • the synchronization task window switch component defaults to the option of not opening the synchronization task window.
  • the display time component is used to determine the display time of the floating component in the synchronization task window, the user can input or select the display time through the display time component, and the display time is used to limit the display time of the display form component Display method, for example: the display form component is a floating component, such as a floating ball, when the application icon is dragged to the position where the display form component is located, the display form component is highlighted; when the After the display form component has not been operated for more than the display time, it will be automatically displayed transparently; when it is detected that the user's finger clicks on the suspension component in the transparent display state, the suspension component will be lighted.
  • the display form component is a floating component, such as a floating ball
  • the display form component is used to determine the display form, wherein the display form includes a suspension component and a task icon, wherein the suspension component is suspended in the synchronization task window, for example: suspended in the target area of the synchronization task window;
  • the above task icon is displayed on the application icon, for example: displayed on the upper right of the application icon.
  • the method further includes:
  • the first device receives an operation on the application program icon in a synchronization task window, the synchronization task window includes a suspension component, and the suspension component is used to generate a first synchronization task;
  • the generating the first synchronization task in response to the operation on the application program icon includes:
  • the first device moves the application icon to the hover component in response to a first input to the application icon
  • the first device generates the first synchronization task, and adds the first synchronization task to a synchronization task list.
  • the first input includes a voice command or a gesture operation, for example, a click operation, a long press operation, a slide operation, a drag operation, and other gesture operations.
  • a voice command or a gesture operation for example, a click operation, a long press operation, a slide operation, a drag operation, and other gesture operations.
  • FIG. 5 is one of the schematic diagrams of a synchronization task window of a first device provided in an embodiment of the present application.
  • the synchronization task window of the first device includes: an application program icon and a suspension component.
  • the first device When the user drags the application program icon to the position where the suspension component is located, the first device generates an application icon corresponding to the application program icon.
  • the first synchronization task of the application program and add the first synchronization task corresponding to the application program to the synchronization task list.
  • the user can drag multiple application program icons to the floating component in sequence, or , the user can drag multiple application program icons to the floating component at the same time, so as to add multiple first synchronization tasks corresponding to the multiple application programs to the synchronization task list.
  • updating the first synchronization task to the latest first synchronization task includes: if the application program corresponding to the first synchronization task is updated, then updating the first synchronization task; if the application program corresponding to the first synchronization task is not If an update occurs, the existing first synchronization task in the synchronization task list is maintained.
  • the suspension components include, but are not limited to: suspension balls, suspension frames, suspension bars and other forms.
  • the application icon by setting the synchronization task window, based on the suspension component in the synchronization task window, in response to the first input to the application icon, the application icon is moved to the suspension component to generate the first synchronization task, and add the first synchronization task to the synchronization task list, the application can quickly generate the first synchronization task, which is beneficial for the second device to quickly synchronize the first synchronization task of the first device, and improves the synchronization efficiency of the local end.
  • the method further includes:
  • the first device generates a first window in response to the operation of the suspension component, wherein the area occupied by the first window is smaller than the area occupied by the synchronization task window;
  • the first device displays in the first window a task icon corresponding to each first synchronization task in the synchronization task list, where the task icon corresponds to the application program icon, for example: the task icon corresponds to the The application icons are the same.
  • the operation on the suspension component includes: gesture operation on the suspension component, such as: click operation, long press operation, slide operation, drag operation and other gesture operations, when the first device recognizes that the After the suspension component is operated, a first window is generated in response to the operation of the suspension component, wherein the area occupied by the first window is smaller than the area occupied by the synchronization task window, and the first window The area where the sync task window is located is located.
  • the first window is located above, below, on the left or right of the synchronization task window, optionally, the first window is located on the right side of the synchronization task window, with side A sidebar is presented in the synchronization task window to facilitate interactive operations for users.
  • FIG. 6 is a schematic diagram of triggering the suspension component in the first device to generate the first window provided by the embodiment of the present application;
  • the first window is used to present the synchronization icons corresponding to all the first synchronization tasks in the synchronization task list, when an application icon is dragged to the suspension component, the first synchronization task is generated, and the The first synchronization task is added to the synchronization task list, and the task icon corresponding to the first synchronization task is added to the first window, wherein each first synchronization task corresponds to an application program.
  • the task icons are arranged in the first window in order of adding time.
  • the method further includes:
  • the first device When displaying the first window, the first device hides the first window in response to an operation on the target area in the synchronization task window.
  • the operation on the target area in the synchronization task window includes: a gesture operation on the target area, for example: a click operation, a long press operation, a slide operation and other gesture operations, when the first device recognizes that In response to the operation on the target area in the synchronization task window, hiding the first window is equivalent to exiting the first window from the synchronization task window.
  • a gesture operation on the target area for example: a click operation, a long press operation, a slide operation and other gesture operations
  • FIG. 7 is a schematic diagram of triggering the target area to hide the first window in the first device according to the embodiment of the present application.
  • the task icon corresponding to each first synchronization task in the synchronization task list is displayed through the first window, and the task icon corresponds to the application program icon, which is conducive to visually presenting the first synchronization task to be synchronized , which is conducive to improving the user's operating experience.
  • the method further includes:
  • the second device has a second synchronization task, adding a task icon corresponding to the second synchronization task to the first window;
  • the first device synchronizes a second synchronization task corresponding to the task icon in response to a second input to the task icon in the first window, wherein the second input of the task icon is used to move the task icon to the
  • the target area in the synchronization task window corresponds to an application program
  • the second synchronization task is a synchronization task used in the second device to synchronize to the first device.
  • the first device adds a task icon corresponding to the second synchronization task to the first window.
  • the second input includes: a voice command or a gesture operation, such as: a click operation, a long press operation, a slide operation, a drag operation, and other gesture operations.
  • the first device in response to the second input to the task icon in the first window, includes:
  • the first device responds to a gesture operation on the task icon in the first window, wherein the gesture operation includes a drag operation or a move operation, and the gesture operation is used to drag the task icon in the first window Move or move to the target area in the synchronization task window.
  • the first device judges whether the second synchronization task corresponding to the task icon has been updated
  • the first device judges whether the second synchronization task corresponding to the task icon has been updated, and the judgment of whether the task icon corresponds to Whether the second synchronization task is updated includes: judging whether the second synchronization task data corresponding to the second synchronization task is updated. It can be understood that the update of the second synchronization task data corresponding to the second synchronization task comes from the second Device updates.
  • the method further includes: setting a task update flag to identify whether the second synchronization task is updated, and if the second synchronization task is updated, the task icon in the first window Add task update flag.
  • the task update sign can be a preset pattern, such as blue dot, green dot, and red dot, and the task update sign is set on the left, right, top, bottom, and top right of the task icon
  • the task update sign is a red dot, and is set on the upper right of the task icon.
  • the second synchronization task corresponding to the task icon If the second synchronization task corresponding to the task icon is updated, analyze the second synchronization task data of the second synchronization task corresponding to the task icon, and control the application program corresponding to the second synchronization task to jump to the second synchronization task.
  • the second synchronization task corresponding to the task icon when the second synchronization task corresponding to the task icon is updated, it means that the local end, that is, the first device has received the second synchronization task data sent by the opposite end, that is, the second device, and at this time, the The second synchronization task data, the second synchronization task data is the relevant data of the application program running on the second device, the second synchronization task data is used to locate the task breakpoint, and the task breakpoint is the application program
  • the interrupt position of the task on the second device for example: the interrupt position of tasks such as picture editing, article editing, video playback, etc.
  • the relevant data corresponding to the interrupt position is the second synchronous task data, according to the second synchronous task data , locate the task breakpoint of the application program corresponding to the second synchronization task, and control the first device to synchronize to the task breakpoint of the application program.
  • FIG. 8a is one of the schematic diagrams of operating task icons in the first window provided by the embodiment of the present application.
  • dragging a certain task icon from the first window to the target area of the synchronization task window means that the user does not need the synchronization task.
  • the synchronization task corresponding to the task icon is deleted from the synchronization task list, and correspondingly, the task icon is deleted from the first window.
  • the application can quickly implement the second synchronization task
  • the second synchronization task in the device is synchronized to the first device, thereby improving the synchronization efficiency of the opposite end.
  • FIG. 8b is the second schematic diagram of operating task icons in the first window provided by the embodiment of the present application.
  • the synchronization task corresponding to the task icon is not updated, that is, the task icon does not carry the task update flag, delete the task icon at this time.
  • the synchronization task corresponding to the task icon is to delete the synchronization task from the synchronization task list, and correspondingly, delete the task icon from the first window.
  • the second device sends synchronization task data to the first device, it often means that the user of the second device needs to synchronize the application program of the first device, and at this time the first device needs to respond to the synchronization task of the second device.
  • FIG. 9 is a schematic flowchart of a synchronization task for a first device to detect a second device according to an embodiment of the present application
  • the process of the first device detecting the synchronization task of the second device includes:
  • Step S901 the first device communicates with the second device
  • the first device and the second device are connected through wireless local area network, bluetooth, etc., for example: the second device scans the first device through bluetooth, and sends a connection request to the first device, and the first device Confirm the establishment of the Bluetooth connection to complete the communication connection between the first device and the second device.
  • Step S902 the first device detects whether the second device has a second synchronization task
  • the first device detects whether the second synchronization task data sent by the second device is received, and if the second synchronization task data sent by the second device is received, it determines that the second device has a second synchronization task, and enters step S903: Whether the first device has the first synchronization task; if the first device has not received the second synchronization task data sent by the second device, it is determined that the second device does not have the second synchronization task, and then enters step S906: the first device sends the second synchronization task to the second device.
  • the second device sends the first synchronization task data;
  • Step S903 Whether the first device has a first synchronization task
  • step S904 compare the synchronization of the second device and the first device The update time of the task is to determine the latest synchronization task; if the first synchronization task does not exist in the synchronization task list of the first device, enter step S907: synchronize the second synchronization task of the second device to the first device;
  • Step S904 comparing the update time of the synchronization tasks of the second device and the first device, and determining the latest synchronization task;
  • the comparison of the update time of the synchronization tasks of the second device and the first device includes: comparing the first synchronization task data and the second synchronization task data corresponding to the first synchronization task and the second synchronization task corresponding to the same application program respectively.
  • the update time of the synchronization task data determines that the synchronization task corresponding to the synchronization task data with the latest update time is the latest synchronization task.
  • Step S905 Synchronize the latest synchronization task to the first device
  • the first device receives the synchronization task data corresponding to the latest synchronization task sent by the second device, that is, the first device receives the second synchronization task data sent by the second device. It can be understood that, if the latest synchronization task data is the first synchronization task data of the first device, there is no need to synchronize the latest synchronization task to the first device.
  • Step S906 the first device sends synchronization task data to the second device
  • the first device directly sends the synchronization task data to the second device.
  • the synchronization icon is displayed in the application program icon of the second device.
  • Step S907 Synchronizing the second synchronization task of the second device to the first device
  • the synchronizing the second synchronization task of the second device to the first device includes: the first device receives the second synchronization task data corresponding to the second synchronization task sent by the second device, and sends the second synchronization task
  • the task icon corresponding to the second synchronization task of the device is added to the first window, and the first device identifies the task icon corresponding to the latest synchronization task through the first preset symbol in the first window, and, through the second Two preset symbols identify the task icon corresponding to the second synchronization task of the second device, wherein the first preset symbol is the same as the second preset symbol, for example: the first preset symbol and the second preset symbol
  • All the marks are preset patterns, such as blue dots, green dots, and red dots.
  • the first preset mark and the second preset mark are set on the left, right, top or bottom of the task icon.
  • the first preset mark and the second preset mark are red dots, and are set on the upper right of the task icon.
  • the synchronization between the first device and the second device is facilitated, and the accuracy of the synchronization content is improved.
  • Step S302 the first device sends first synchronization task data corresponding to the first synchronization task to the second device, wherein the first synchronization task data is used by the second device to synchronize the first synchronization task.
  • the first device after the first device communicates with the second device, if the synchronization task list of the first device includes at least one first synchronization task, the first device sends at least one first synchronization task of the first synchronization task data to the second device, wherein each first synchronization task corresponds to one first synchronization task data, and the first synchronization task data is used by the second device to synchronize the application program corresponding to the first synchronization task.
  • the transmission process of the first synchronization task data and the second synchronization task data between the first device and the second device is executed in the background, which does not affect the normal use of the first device and the second device.
  • the first device and the second device are connected through wireless local area network, bluetooth, etc., for example: the second device scans the first device through bluetooth, and sends Connection request.
  • both the first device and the second device are configured to be scanned, and when the first device receives the connection request sent by the second device, it obtains a consent instruction to complete the device connection.
  • the first device can receive the synchronization task data of the application program sent by the second device, that is, data related to the running interface and background of the application program.
  • the first device and the second device are connected through Bluetooth.
  • the user can easily add and delete synchronization tasks through the synchronization task window, and after switching to a new device, the user can selectively execute other tasks in the window.
  • the synchronization task on one device does not need to perform the process again, simplifies the synchronization operation, shortens the synchronization time, realizes seamless connection, and improves the user experience.
  • FIG. 10 is a schematic diagram of a synchronization task opening window in a first device provided by an embodiment of the present application.
  • the opening window of the synchronization task is popped up to respond to the consent operation or the cancellation operation. If the operation is consent, that is, the user clicks the agree button, the synchronization task window will be opened; if it is a cancellation operation, that is, the user clicks the cancel button, then Do not open the sync task window.
  • a first synchronization task is generated in response to an operation on the application program icon, the first synchronization task corresponds to an application program, and the first synchronization task data corresponding to the first synchronization task is sent to the second device, wherein , the first synchronization task data is used for the second device to synchronize the first synchronization task, and the present application can simplify the synchronization operation, shorten the synchronization time, and improve the synchronization efficiency.
  • the synchronization is performed in the form of a floating component, but in the embodiment of the present application, the synchronization is performed in the form of a synchronization icon.
  • the second embodiment has the same logic, methods or steps as those in the first embodiment, for details, reference may be made to the related description in the first embodiment, which will not be repeated here.
  • FIG. 4 is a schematic diagram of a synchronization task setting window of a first device provided in an embodiment of the present application.
  • the synchronization icon will be added to the application icon to Indicates that the application has joined the synchronization task.
  • generating the first synchronization task in response to the operation on the application icon includes:
  • the first device In the synchronization task window, the first device generates a synchronization icon corresponding to each application icon in response to a gesture operation on the application icon of the application, wherein the synchronization icon is used to identify the first synchronization corresponding to the application
  • the task has been added to the synchronization task list.
  • the gesture operations include gesture operations such as click operations, long press operations, and slide operations.
  • the gesture operations in this embodiment of the application are three click operations on the application icon within a preset time, that is, three quick clicks.
  • the first device generates a first synchronization task in response to three clicks on the application icon within a preset time, and adds the first synchronization task to the synchronization task list, that is, the corresponding application icon
  • the first synchronization task corresponding to the application program is added to the synchronization task list, and at the same time, a synchronization icon corresponding to each application program icon is generated, wherein the synchronization icon is used to identify that the first synchronization task corresponding to the application program has been added to the synchronization task list.
  • the synchronization icon is a preset pattern, for example, a colored pattern, wherein the synchronization icon is set on the left, right, upper, lower, upper right, etc. of the application icon, Optionally, the synchronization icon is set at the upper right of the application program icon.
  • FIG. 11 is a schematic diagram of a synchronization icon in a first device according to an embodiment of the present application.
  • a synchronization icon is added to the upper right of the application icon to identify that the application corresponding to the application icon has joined the first synchronization task.
  • the method further includes:
  • the first device generates a second window in response to an operation on the application icon marked with the synchronization icon, wherein the area occupied by the second window is smaller than the area occupied by the synchronization task window;
  • the synchronization task data of the synchronization task corresponding to the synchronization icon is analyzed, and the application program corresponding to the synchronization task is controlled to jump to the task breakpoint corresponding to the synchronization task data.
  • the operation on the application icon marked with the synchronization icon includes gesture operation, such as: click operation, long press operation, slide operation and other gesture operations.
  • gesture operation in the embodiment of the present application is a click operation , for example: after the user clicks the application icon marked with the synchronization icon, a second window is generated, wherein the area occupied by the second window is smaller than the area occupied by the synchronization task window;
  • FIG. 12 is a schematic diagram of triggering application icons to generate a second window in a first device according to an embodiment of the present application
  • a second window is generated, wherein the second window is a pop-up box, and prompt information is displayed in the pop-up box, for example: whether to synchronize the operation of the peer end to the local,
  • the pop-up box also provides a cancellation control and an agreement control.
  • the synchronization operation of the opposite end is performed locally, that is, the second synchronization task of the second device is synchronized;
  • the cancellation control the non-synchronization end operation to the local, that is, do not synchronize the second synchronization task of the second device.
  • the synchronization task data of the synchronization task corresponding to the synchronization icon is analyzed, and the application program corresponding to the synchronization task is controlled to jump to the task breakpoint corresponding to the synchronization task data.
  • the application program corresponding to the synchronization task is controlled to jump to the task breakpoint corresponding to the synchronization task data.
  • the method further includes:
  • the first device In response to the cancel operation on the second window, the first device deletes the synchronization task corresponding to the synchronization icon.
  • the synchronization task corresponding to the application in the second device will not be synchronized, and deleting the synchronization icon on the application icon in the synchronization task window of the first program is equivalent to deleting the application.
  • the synchronization task corresponding to the synchronization icon will no longer be synchronized.
  • the user clicks on the application program icon to delete the synchronization icon corresponding to the application program icon, which is equivalent to deleting the synchronization task corresponding to the application program.
  • the method further includes:
  • the first device generates a synchronization task window in response to an operation on the synchronization task setting window, wherein the synchronization task setting window includes a presentation time component and a presentation form component, and the presentation time component is used to determine the The display time of the suspension component, the display form component is used to determine the display form, wherein the display form includes a suspension component and a task icon.
  • the synchronization task is generated by adding a synchronization icon to the application icon.
  • the occupation of the synchronization task window by the floating component and the first window can be reduced, and it is also convenient Quickly synchronize synchronization tasks to the peer end to improve user experience.
  • the task synchronization method in the embodiment of the present application is applied to the second device. Specifically, the task synchronization method is executed by one or more processors of the second device.
  • FIG. 13 is a schematic flowchart of another task synchronization method provided by the embodiment of the present application.
  • the task synchronization method includes:
  • Step S1301 the second device receives the synchronization task data sent by the first device, and opens a synchronization task opening window, wherein each synchronization task data corresponds to a synchronization task, and each synchronization task corresponds to an application program;
  • the first device serves as the sending end of the synchronization task data
  • the second device serves as the receiving end of the synchronization task data
  • the second device receives the synchronization task data sent by the first device, and opens a synchronization task opening window.
  • FIG. 14 is a schematic diagram of the synchronization task opening window of the second device provided by the embodiment of the present application.
  • a synchronization task opening window is generated, wherein the synchronization task opening window is a synchronization task pop-up box, and the synchronization task pop-up box includes an agree button and a cancel button, They are respectively used to provide the user with the choice of opening the synchronization task window or not opening the synchronization task window. If the user chooses to open the synchronization task window, the synchronization task data will be transmitted.
  • the second device directly receives the synchronization task data sent by the first device, so that the second device can Respond quickly to sync tasks.
  • Step S1302 The second device determines the synchronization task and synchronizes the application program corresponding to the synchronization task in response to the opening operation of the synchronization task opening window.
  • the synchronization task window is entered, and the synchronization task is selected through the synchronization task window to synchronize the application program corresponding to the synchronization task.
  • the synchronization task window may include a suspension component for performing operations related to synchronization.
  • FIG. 15 is a schematic diagram of a synchronization task window in a second device according to an embodiment of the present application.
  • the synchronization task window displays the suspension component, wherein, the suspension component is set with a synchronization task number mark, and the synchronization task number mark is used for A number of synchronization tasks in the synchronization task list of the second device is identified.
  • FIG. 16 is a schematic flowchart of a second device determining a synchronization task according to an embodiment of the present application.
  • the determination of the synchronization task includes:
  • Step S1601 the second device generates a first window in response to the operation on the suspension component
  • the operation on the suspension component includes: a gesture operation on the suspension component, for example: a click operation, a long press operation, a slide operation and other gesture operations, when the second device recognizes that the suspension component is After the operation, in response to the operation of the suspension component, a first window is generated, wherein the area occupied by the first window is smaller than the area occupied by the synchronization task window, and the area where the first window is located is located at The sync task window.
  • the first window is located above, below, on the left or right of the synchronization task window, optionally, the first window is located on the right side of the synchronization task window, with side A sidebar is presented in the synchronization task window to facilitate interactive operations for users.
  • FIG. 17 is a schematic diagram of triggering the suspension component in the second device to generate the first window provided by the embodiment of the present application;
  • Step S1602 displaying in the first window a task icon corresponding to each synchronization task in the synchronization task list, wherein the task icon is the same as the application program icon;
  • Step S1603 The second device determines the synchronization task corresponding to the task icon in response to the gesture operation on the task icon in the first window, wherein the gesture operation on the task icon is used to drag the task icon to the target area in the synchronization task window described above.
  • the gesture operations include gesture operations such as click operations, long press operations, slide operations, and drag operations.
  • gesture operations such as click operations, long press operations, slide operations, and drag operations.
  • the user drags the task icon in the first window to make the second device respond to the first
  • the drag operation of the task icon in the window determines the synchronization task corresponding to the task icon.
  • task synchronization is performed according to the synchronization task data corresponding to the synchronization task.
  • the method includes: the second device receives the synchronization task data sent by the first device, and opens a synchronization task opening window, wherein each synchronization task data corresponds to a Synchronization tasks, each synchronization task corresponds to an application program; the second device determines the synchronization task in response to the opening operation of the synchronization task opening window, and synchronizes the application program corresponding to the synchronization task.
  • the present application can simplify the synchronization operation, shorten the synchronization time, and improve the synchronization efficiency.
  • the above third embodiment performs synchronization in the form of a floating component, and in the embodiment of the present application, the synchronization is performed in the form of a synchronization icon. It should be noted that there are the same logic, method or steps in the fourth embodiment and the third embodiment, for details, please refer to the relevant description in the third embodiment, which will not be repeated here.
  • FIG. 19 is a schematic diagram of a synchronization task window of a second device provided by an embodiment of the present application.
  • a synchronization icon is added to the upper right of the application icon to identify that the application corresponding to the application icon has joined the synchronization task.
  • the method further includes:
  • the second device generates a second window in response to an operation on the application icon marked with the synchronization icon, wherein the area occupied by the second window is smaller than the area occupied by the synchronization task window;
  • the synchronization task data of the synchronization task corresponding to the synchronization icon is analyzed, and the application program corresponding to the synchronization task is controlled to jump to the task breakpoint corresponding to the synchronization task data.
  • the operation on the application icon marked with the synchronization icon includes gesture operation, such as: click operation, long press operation, slide operation and other gesture operations.
  • gesture operation in the embodiment of the present application is a click operation , for example: after the user clicks the application icon marked with the synchronization icon, a second window is generated, wherein the area occupied by the second window is smaller than the area occupied by the synchronization task window;
  • FIG. 20 is a schematic diagram of triggering application icons to generate a second window in a second device according to an embodiment of the present application
  • a second window is generated, wherein the second window is a pop-up box, and prompt information is displayed in the pop-up box, for example: whether to synchronize the peer operation to the local.
  • the pop-up box also provides a cancellation control and an agreement control.
  • the synchronization operation of the opposite end is performed locally, that is, the first synchronization task of the first device is synchronized; when the user clicks the cancellation control, the non-synchronization
  • the terminal operates locally, that is, the first synchronization task of the first device is not synchronized.
  • the synchronization task data of the synchronization task corresponding to the synchronization icon is analyzed, and the application program corresponding to the synchronization task is controlled to jump to the task breakpoint corresponding to the synchronization task data.
  • the application program corresponding to the synchronization task is controlled to jump to the task breakpoint corresponding to the synchronization task data.
  • the synchronization task is generated by adding a synchronization icon to the application icon.
  • the occupation of the synchronization task window by the floating component and the first window can be reduced, and it is also convenient Quickly synchronize synchronization tasks to the peer end to improve user experience.
  • the task synchronization device may be a software module, and the software module includes several instructions, which are stored in a memory, and the processor can access the memory, call the instructions for execution, and complete the task synchronization method described in the above-mentioned embodiments.
  • FIG. 21 is a schematic structural diagram of a task synchronization device provided by an embodiment of the present application.
  • the task synchronization device 210 includes:
  • a synchronization task generation module 2101 configured for the first device to generate a first synchronization task in response to an operation on the application program icon, where the first synchronization task corresponds to an application program;
  • a synchronization task data sending module 2102 configured for the first device to send the first synchronization task data corresponding to the first synchronization task to the second device, wherein the first synchronization task data is used by the second device to synchronize the first Synchronize tasks.
  • the synchronization task generating module 2101 is further configured for the first device to receive an operation on the application program icon in the synchronization task window, the synchronization task window includes a suspension component, and the suspension component is used to generate the first synchronization task; A device moves the application program icon to the floating component in response to a first input to the application program icon; the first device generates the first synchronization task and adds the first synchronization task to the synchronization task list.
  • the synchronous task generation module 2101 is further used for the first device to generate a first window in response to the operation of the suspension component, wherein the area occupied by the first window is smaller than the area occupied by the synchronous task window;
  • a device displays a task icon corresponding to each first synchronization task in the synchronization task list in the first window, where the task icon corresponds to the application program icon.
  • the synchronization task generating module 2101 is further configured to add a task icon corresponding to the second synchronization task to the first window if the second device has a second synchronization task; the first device responds to the The second input of the task icon is to synchronize the second synchronization task corresponding to the task icon, wherein the second input of the task icon is used to move the task icon to the target area in the synchronization task window, and the second
  • the synchronization task corresponds to an application program, and the second synchronization task is a synchronization task used in the second device to synchronize to the first device.
  • the synchronization task generation module 2101 is also used for the first device to judge whether the second synchronization task corresponding to the task icon has been updated; if so, analyze the second synchronization task data of the second synchronization task corresponding to the task icon, and control the second synchronization task.
  • the application program corresponding to the second synchronization task jumps to the task breakpoint corresponding to the second synchronization task data; if not, delete the task icon in the first window.
  • the synchronization task generation module 2101 is further configured to detect whether the second device has a second synchronization task after the first device communicates with the second device; if the first device detects that the second device has a second synchronization task , and the first device does not have the first synchronization task, then synchronize the second synchronization task to the first device; if the first device detects that the second device has a second synchronization task, and the first device If there is a first synchronization task, compare the update time of the second synchronization task with the update time of the first synchronization task, determine the latest synchronization task, and synchronize the latest synchronization task to the first device; wherein, the first The synchronization task corresponds to the same application program as the second synchronization task.
  • the task synchronization device can also be built by hardware devices.
  • the task synchronization device can be built by one or more than two chips, and each chip can work in coordination with each other to complete the above-mentioned embodiments.
  • the task synchronization device can also be built by various logic devices, such as a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), a single-chip microcomputer, an ARM (Acorn RISC Machine) or other programmable logic devices, discrete gate or transistor logic, discrete hardware components, or any combination of these components.
  • the task synchronization device in this embodiment of the present application may be a device, or a component, an integrated circuit, or a chip in a terminal.
  • the device may be a mobile electronic device or a non-mobile electronic device.
  • the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle electronic device, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant).
  • non-mobile electronic devices can be servers, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc., this application Examples are not specifically limited.
  • Network Attached Storage NAS
  • personal computer personal computer, PC
  • television television
  • teller machine or self-service machine etc.
  • the task synchronization device in this embodiment of the present application may be a device with an operating system.
  • the operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, which are not specifically limited in this embodiment of the present application.
  • the task synchronization device provided by the embodiment of the present application can realize various processes realized by the method embodiments shown in FIG. 2 and FIG. 3 , and details are not repeated here to avoid repetition.
  • the above-mentioned task synchronization device can execute the task synchronization method provided in Embodiment 1 or Embodiment 2 of the present application, and has corresponding functional modules and beneficial effects for executing the method.
  • the task synchronization method provided in Embodiment 1 or Embodiment 2 of this application.
  • the device includes: a synchronization task generation module, used for the first device to generate a first synchronization task in response to the operation on the application program icon, the first synchronization task corresponds to An application program; a synchronization task data sending module, used for the first device to send the first synchronization task data corresponding to the first synchronization task to the second device, wherein the first synchronization task data is used for the second device to synchronize the first synchronization task.
  • a synchronization task generation module used for the first device to generate a first synchronization task in response to the operation on the application program icon, the first synchronization task corresponds to An application program
  • a synchronization task data sending module used for the first device to send the first synchronization task data corresponding to the first synchronization task to the second device, wherein the first synchronization task data is used for the second device to synchronize the first synchronization task.
  • the application can simplify the synchronization operation, shorten the synchronization time, and improve the synchronization efficiency.
  • the task synchronization device may be a software module, and the software module includes several instructions, which are stored in a memory, and the processor can access the memory, call the instructions for execution, and complete the task synchronization method described in the above-mentioned embodiments.
  • FIG. 22 is a schematic structural diagram of a task synchronization device provided by an embodiment of the present application.
  • the task synchronization device 220 includes:
  • the synchronization task receiving module 2201 is used for the second device to receive the first synchronization task data sent by the first device, and start the synchronization task opening window, wherein each of the first synchronization task data corresponds to a first synchronization task, and each first synchronization task data One synchronization task corresponds to one application program;
  • the synchronization task synchronization module 2202 is configured for the second device to generate a synchronization task window in response to the operation of opening a window for the synchronization task, and determine a first synchronization task of the first device, so as to synchronize the first synchronization task.
  • the task synchronization device provided in the embodiment of the present application can implement various processes implemented in the method embodiment in FIG. 13 , and details are not repeated here to avoid repetition.
  • the above-mentioned task synchronization device can execute the task synchronization method provided in Embodiment 3 or Embodiment 4 of the present application, and has corresponding functional modules and beneficial effects for executing the method.
  • the task synchronization method provided in Embodiment 3 or Embodiment 4 of the present application.
  • the device includes: a synchronization task receiving module, used for the second device to receive the first synchronization task data sent by the first device, and start the synchronization task opening window, wherein, Each of the first synchronization task data corresponds to a first synchronization task, and each first synchronization task corresponds to an application program; the synchronization task synchronization module is used for the second device to generate a synchronization task in response to the operation of opening a window for the synchronization task window, and determine a first synchronization task of the first device, so as to synchronize the first synchronization task.
  • the application can simplify the synchronization operation, shorten the synchronization time, and improve the synchronization efficiency .
  • FIG. 23 is one of the structural schematic diagrams of a first device provided in the embodiment of the present application; as shown in FIG. 23, the embodiment of the present application also provides a first device 230, including processing A device 2301, a memory 2302, a program or instruction stored in the memory 2302 and operable on the processor 2301, when the program or instruction is executed by the processor 2301, each of the above-mentioned task synchronization method embodiment 1 or embodiment 2 is realized. process, and can achieve the same technical effect, in order to avoid repetition, it will not be repeated here.
  • the first device in this embodiment of the present application includes mobile electronic devices and non-mobile electronic devices.
  • Figure 24 is the second structural schematic diagram of a first device provided by the embodiment of the present application.
  • the first device 240 includes but not limited to: a radio frequency unit 241, a network module 242, an audio output unit 243, an input unit 244, a sensor 245, a display unit 246, a user input unit 247, an interface unit 248, a memory 249, a processor 2410, and a power supply 2411.
  • the first device 240 also includes a camera.
  • the first device 240 may also include a power supply (such as a battery) for supplying power to various components, and the power supply may be logically connected to the processor 2410 through the power management system, so that the management of charging, discharging, and functions such as power management.
  • the structure of the first device shown in FIG. 24 does not constitute a limitation to the first device.
  • the first device may include more or fewer components than shown in the illustration, or combine some components, or arrange different components. This will not be repeated here.
  • the terminal devices include, but are not limited to, mobile phones, tablet computers, notebook computers, palmtop computers, vehicle-mounted terminals, wearable devices, and pedometers.
  • the processor 2410 is configured to generate a first synchronization task in response to an operation on the application program icon, where the first synchronization task corresponds to an application program; and send the first synchronization task data corresponding to the first synchronization task to the second device, wherein , the first synchronization task data is used by the second device to synchronize the first synchronization task.
  • the first device 240 in the embodiment of the present application generates the first synchronization task and sends the corresponding first synchronization task data in response to the operation on the application program icon.
  • This application can simplify the synchronization operation, shorten the synchronization time, and improve the synchronization efficiency .
  • the input unit 244 may include a graphics processor (Graphics Processing Unit, GPU) 2441 and a microphone 2442, and the graphics processor 2441 is used for the image capture device (such as the image data of the still picture or video obtained by the camera) for processing.
  • the display unit 246 may include a display panel 2461, and the display panel 2461 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like.
  • the user input unit 247 includes a touch panel 2471 and other input devices 2472 .
  • the touch panel 2471 is also called a touch screen.
  • the touch panel 2471 may include two parts, a touch detection device and a touch controller.
  • Other input devices 2472 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here.
  • Memory 249 may be used to store software programs as well as various data, including but not limited to application programs and operating systems.
  • Processor 2410 may integrate an application processor and a modem processor, wherein the application processor mainly processes operating systems, user interfaces, and application programs, and the modem processor mainly processes wireless communications. It can be understood that the foregoing modem processor may not be integrated into the processor 2410 .
  • the embodiment of the present application further provides a second device, including a processor, a memory, and a program or instruction stored in the memory and operable on the processor, and the program or instruction is executed by the processor to implement
  • a second device including a processor, a memory, and a program or instruction stored in the memory and operable on the processor, and the program or instruction is executed by the processor to implement
  • the second device in this embodiment of the present application includes mobile electronic devices and non-mobile electronic devices.
  • the processor is configured to receive the first synchronization task data sent by the first device, and start the synchronization task opening window, wherein each first synchronization task data corresponds to a first synchronization task, and each first synchronization task corresponds to an application Procedure; the second device responds to the operation of opening the window for the synchronization task, generates a synchronization task window, and determines the first synchronization task of the first device, so as to synchronize the first synchronization task.
  • the second device in the embodiment of the present application determines the synchronization task by responding to the opening operation of the synchronization task opening window, and synchronizes the application program corresponding to the synchronization task.
  • This application can simplify the synchronization operation, shorten the synchronization time, and improve the synchronization. efficiency.
  • the embodiment of the present application also provides a readable storage medium.
  • the readable storage medium stores programs or instructions.
  • the program or instructions are executed by the processor, the various processes of the above-mentioned task synchronization method embodiments can be achieved, and the same In order to avoid repetition, the technical effects will not be repeated here.
  • the processor is the processor in the first device or the second device described in the foregoing embodiments.
  • the readable storage medium includes computer readable storage medium, such as computer read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk, etc.
  • the embodiment of the present application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the above-mentioned task synchronization method embodiment
  • the chip includes a processor and a communication interface
  • the communication interface is coupled to the processor
  • the processor is used to run programs or instructions to implement the above-mentioned task synchronization method embodiment
  • chips mentioned in the embodiments of the present application may also be called system-on-chip, system-on-chip, system-on-a-chip, or system-on-a-chip.
  • the term “comprising”, “comprising” or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the phrase “comprising a " does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that element.
  • the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved. Functions are performed, for example, the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
  • the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation.
  • the technical solution of the present application can be embodied in the form of a software product in essence or the part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM, disk, CD) contains several instructions to enable a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in various embodiments of the present application.
  • a terminal which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The present application relates to the technical field of communications and discloses a task synchronization method and apparatus, a device, and a readable storage medium. The task synchronization method comprises: a first device generates a first synchronization task in response to an operation on an application icon, the first synchronization task corresponding to an application; and the first device sends to a second device first synchronization task data corresponding to the first synchronization task, the first synchronization task data being used by the second device to synchronize the first synchronization task, and in response to the operation on the application icon, a first synchronization task being generated and corresponding first synchronization task data being sent.

Description

任务同步方法、装置、设备及可读存储介质Task synchronization method, device, equipment and readable storage medium
相关申请的交叉引用Cross References to Related Applications
本申请主张2021年7月19日在中国提交的中国专利申请号202110812329.8的优先权,其全部内容通过引用包含于此。This application claims priority to Chinese Patent Application No. 202110812329.8 filed in China on July 19, 2021, the entire contents of which are hereby incorporated by reference.
技术领域technical field
本申请属于通信技术领域,具体涉及一种任务同步方法、装置、设备及可读存储介质。The present application belongs to the technical field of communication, and in particular relates to a task synchronization method, device, equipment and readable storage medium.
背景技术Background technique
随着科技的发展和人们生活水平的提高,电子设备,例如:智能手机、智能平板、智能手表等电子设备的发展也在加速,电子设备所能实现的功能也越来越多。用户在某一电子设备(例如,手机)看视频,写文章,浏览网页,编辑图片或者执行某些操作流程时(例如注册账号等),如果遇到状况,例如手机没电,此时需要切换到另一电子设备,例如:平板电脑,在平板电脑上继续手机上的工作时,往往需要在平板上重新打开对应的应用程序,利用应用程序的历史记录功能找到刚才看的视频,网页或保存的文章,继续手机上的任务,但是对于一些正在编辑的资料如图片或者已经执行了一半的注册流程,往往并不能做到无缝对接,有些注册流程很长,需要经过多个步骤,此时切换到平板电脑,只能重新走一遍流程,费时费力。With the development of science and technology and the improvement of people's living standards, the development of electronic devices, such as smart phones, smart tablets, and smart watches, is also accelerating, and the functions that electronic devices can achieve are also increasing. When a user watches a video, writes an article, browses the web, edits a picture, or performs some operation procedures (such as registering an account, etc.) on an electronic device (such as a mobile phone), if a situation occurs, such as the mobile phone is out of power, it needs to switch Go to another electronic device, such as a tablet computer. When continuing to work on the mobile phone on the tablet computer, it is often necessary to re-open the corresponding application on the tablet, and use the history record function of the application to find the video, web page or save it just now. , and continue the tasks on the mobile phone, but for some materials that are being edited, such as pictures, or half of the registration process has been executed, it often cannot be seamlessly connected. Some registration processes are very long and require multiple steps. At this time If you switch to a tablet computer, you can only go through the process again, which is time-consuming and laborious.
在实现本申请过程中,发明人发现现有技术中至少存在如下问题:对于某一设备中的任务需要切换到另一设备上继续执行时,操作繁琐。During the process of implementing the present application, the inventor found at least the following problems in the prior art: when a task in a certain device needs to be switched to another device to continue execution, the operation is cumbersome.
发明内容Contents of the invention
本申请实施例的目的是提供一种任务同步方法、装置、设备、系统及可读存储介质,能够简化任务在设备间的同步操作,缩短同步时间,提高同步效率。The purpose of the embodiment of the present application is to provide a task synchronization method, device, device, system and readable storage medium, which can simplify the synchronization operation of tasks between devices, shorten the synchronization time, and improve the synchronization efficiency.
为了解决上述技术问题,本申请是这样实现的:In order to solve the above-mentioned technical problems, the application is implemented as follows:
第一方面,本申请实施例提供一种任务同步方法,该方法包括:第一设备响应于对应 用程序图标的操作,生成第一同步任务,所述第一同步任务对应一个应用程序;第一设备发送所述第一同步任务对应的第一同步任务数据至第二设备,其中,所述第一同步任务数据用于第二设备同步所述第一同步任务。In the first aspect, the embodiment of the present application provides a task synchronization method, the method includes: the first device generates a first synchronization task in response to an operation on the application program icon, and the first synchronization task corresponds to an application program; the first The device sends first synchronization task data corresponding to the first synchronization task to the second device, where the first synchronization task data is used by the second device to synchronize the first synchronization task.
第二方面,本申请实施例提供一种任务同步方法,该方法包括:第二设备接收第一设备发送的第一同步任务数据,启动同步任务开启窗口,其中,每一所述第一同步任务数据对应一个第一同步任务,每一第一同步任务对应一个应用程序;第二设备响应于对同步任务开启窗口的操作,生成同步任务窗口,并确定第一设备的第一同步任务,以同步所述第一同步任务。In the second aspect, the embodiment of the present application provides a task synchronization method, the method includes: the second device receives the first synchronization task data sent by the first device, and starts the synchronization task to open the window, wherein each of the first synchronization tasks The data corresponds to a first synchronization task, and each first synchronization task corresponds to an application program; the second device generates a synchronization task window in response to the operation of opening a window for the synchronization task, and determines the first synchronization task of the first device to synchronize The first synchronization task.
第三方面,本申请实施例提供一种任务同步装置,该装置包括:同步任务生成模块,用于第一设备响应于对应用程序图标的操作,生成第一同步任务,所述第一同步任务对应一个应用程序;同步任务数据发送模块,用于第一设备发送所述第一同步任务对应的第一同步任务数据至第二设备,其中,所述第一同步任务数据用于第二设备同步所述第一同步任务。In the third aspect, the embodiment of the present application provides a task synchronization device, the device includes: a synchronization task generation module, used for the first device to generate a first synchronization task in response to an operation on the application program icon, and the first synchronization task Corresponding to an application program; the synchronization task data sending module is used for the first device to send the first synchronization task data corresponding to the first synchronization task to the second device, wherein the first synchronization task data is used for the synchronization of the second device The first synchronization task.
第四方面,本申请实施例提供一种任务同步装置,该装置包括:同步任务接收模块,用于第二设备接收第一设备发送的第一同步任务数据,启动同步任务开启窗口,其中,每一所述第一同步任务数据对应一个第一同步任务,每一第一同步任务对应一个应用程序;同步任务同步模块,用于第二设备响应于对同步任务开启窗口的操作,生成同步任务窗口,并确定第一设备的第一同步任务,以同步所述第一同步任务。In the fourth aspect, the embodiment of the present application provides a task synchronization device, the device includes: a synchronization task receiving module, used for the second device to receive the first synchronization task data sent by the first device, and start the synchronization task opening window, wherein, every The first synchronization task data corresponds to a first synchronization task, and each first synchronization task corresponds to an application program; the synchronization task synchronization module is used for the second device to generate a synchronization task window in response to the operation of opening a window for the synchronization task , and determine a first synchronization task of the first device, so as to synchronize the first synchronization task.
第五方面,本申请实施例提供一种第一设备,该第一设备包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的任务同步方法的步骤。In the fifth aspect, the embodiment of the present application provides a first device, the first device includes a processor, a memory, and a program or instruction stored in the memory and operable on the processor, the program or instruction When executed by the processor, the steps of the task synchronization method as described in the first aspect are realized.
第六方面,本申请实施例提供一种第二设备,该第一设备包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第二方面所述的任务同步方法的步骤。In the sixth aspect, the embodiment of the present application provides a second device. The first device includes a processor, a memory, and a program or instruction stored in the memory and operable on the processor. The program or instruction When executed by the processor, the steps of implementing the task synchronization method according to the second aspect are realized.
第七方面,本申请实施例提供了一种可读存储介质,该可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面、第二方面所述的任务同步方法的步骤。In the seventh aspect, the embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, it implements the above-mentioned steps described in the first aspect and the second aspect. The steps of the task synchronization method.
第八方面,本申请实施例提供一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面、第二方面所述的任务同步方法。In an eighth aspect, an embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions, so as to implement the first aspect, The task synchronization method described in the second aspect.
在本申请实施例中,通过提供一种任务同步方法、装置、设备及可读存储介质,该任务同步方法,包括:第一设备响应于对应用程序图标的操作,生成第一同步任务,第一同步任务对应一个应用程序;第一设备发送第一同步任务对应的第一同步任务数据至第二设备,其中,第一同步任务数据用于第二设备同步第一同步任务,通过响应于对应用程序图标的操作,生成第一同步任务并发送对应的第一同步任务数据,本申请能够简化同步操作,缩短同步时间,提高同步效率。In this embodiment of the present application, by providing a task synchronization method, device, device, and readable storage medium, the task synchronization method includes: the first device generates a first synchronization task in response to an operation on the application program icon, and the second One synchronization task corresponds to one application program; the first device sends the first synchronization task data corresponding to the first synchronization task to the second device, wherein the first synchronization task data is used for the second device to synchronize the first synchronization task, by responding to the The operation of the application program icon generates the first synchronization task and sends the corresponding first synchronization task data. This application can simplify the synchronization operation, shorten the synchronization time, and improve the synchronization efficiency.
附图说明Description of drawings
一个或多个实施例通过与之对应的附图中的图片进行示例性说明,这些示例性说明并不构成对实施例的限定,附图中具有相同参考数字标号的元件表示为类似的元件,除非有特别申明,附图中的图不构成比例限制。One or more embodiments are exemplified by the pictures in the corresponding drawings, and these exemplifications do not constitute a limitation to the embodiments. Elements with the same reference numerals in the drawings represent similar elements. Unless otherwise stated, the drawings in the drawings are not limited to scale.
图1是本申请实施例提供的一种应用环境的示意图;FIG. 1 is a schematic diagram of an application environment provided by an embodiment of the present application;
图2是本申请实施例提供的一种任务同步方法的流程图之一;FIG. 2 is one of the flowcharts of a task synchronization method provided in an embodiment of the present application;
图3是本申请实施例提供的一种任务同步方法的流程图之二;Fig. 3 is the second flowchart of a task synchronization method provided by the embodiment of the present application;
图4是本申请实施例提供的一种第一设备的同步任务设置窗口的示意图;FIG. 4 is a schematic diagram of a synchronization task setting window of a first device provided in an embodiment of the present application;
图5是本申请实施例提供的一种第一设备的同步任务窗口的示意图之一;FIG. 5 is one of the schematic diagrams of a synchronization task window of a first device provided in an embodiment of the present application;
图6是本申请实施例提供的一种在第一设备中触发悬浮组件生成第一窗口的示意图;Fig. 6 is a schematic diagram of triggering a suspension component in a first device to generate a first window according to an embodiment of the present application;
图7是本申请实施例提供的一种在第一设备中触发目标区域隐藏第一窗口的示意图;Fig. 7 is a schematic diagram of triggering the target area to hide the first window in the first device according to the embodiment of the present application;
图8a是本申请实施例提供的一种在第一窗口中操作任务图标的示意图之一;Fig. 8a is one of the schematic diagrams of operating task icons in the first window provided by the embodiment of the present application;
图8b是本申请实施例提供的一种在第一窗口中操作任务图标的示意图之二;Fig. 8b is the second schematic diagram of operating task icons in the first window provided by the embodiment of the present application;
图9是本申请实施例提供的一种第一设备检测第二设备的同步任务的流程示意图;FIG. 9 is a schematic flowchart of a first device detecting a synchronization task of a second device according to an embodiment of the present application;
图10是本申请实施例提供的一种第一设备中的同步任务开启窗口的示意图;FIG. 10 is a schematic diagram of a synchronization task opening window in a first device provided by an embodiment of the present application;
图11是本申请实施例提供的一种第一设备的同步任务开启窗口的示意图;FIG. 11 is a schematic diagram of a synchronization task opening window of a first device provided in an embodiment of the present application;
图12是本申请实施例提供的一种第一设备中触发应用程序图标生成第二窗口的示意 图;Fig. 12 is a schematic diagram of triggering an application program icon to generate a second window in a first device provided by an embodiment of the present application;
图13是本申请实施例提供的另一种任务同步方法的流程示意图;FIG. 13 is a schematic flowchart of another task synchronization method provided by the embodiment of the present application;
图14是本申请实施例提供的第二设备的同步任务开启窗口的示意图;FIG. 14 is a schematic diagram of a synchronization task opening window of a second device provided by an embodiment of the present application;
图15是本申请实施例提供的一种第二设备中的同步任务窗口的示意图;Fig. 15 is a schematic diagram of a synchronization task window in a second device provided by an embodiment of the present application;
图16是本申请实施例提供的一种第二设备确定同步任务的流程示意图;FIG. 16 is a schematic flowchart of a second device determining a synchronization task provided by an embodiment of the present application;
图17是本申请实施例提供的一种在第二设备中触发悬浮组件生成第一窗口的示意图;Fig. 17 is a schematic diagram of triggering the suspension component to generate the first window in the second device according to the embodiment of the present application;
图18是本申请实施例提供的一种在第二设备中从第一窗口中拖动任务图标的示意图;Fig. 18 is a schematic diagram of dragging a task icon from the first window in the second device according to an embodiment of the present application;
图19是本申请实施例提供的一种第二设备的同步任务窗口的示意图;Fig. 19 is a schematic diagram of a synchronization task window of a second device provided by an embodiment of the present application;
图20是本申请实施例提供的一种第二设备中触发应用程序图标生成第二窗口的示意图;FIG. 20 is a schematic diagram of triggering application icons to generate a second window in a second device according to an embodiment of the present application;
图21是本申请实施例提供的一种任务同步装置的结构示意图;Fig. 21 is a schematic structural diagram of a task synchronization device provided by an embodiment of the present application;
图22是本申请实施例提供的另一种任务同步装置的结构示意图;Fig. 22 is a schematic structural diagram of another task synchronization device provided by the embodiment of the present application;
图23是本申请实施例提供的一种第一设备的结构示意图之一;Fig. 23 is one of the structural schematic diagrams of a first device provided in the embodiment of the present application;
图24是本申请实施例提供的一种第一设备的结构示意图之二。Fig. 24 is the second structural schematic diagram of a first device provided by the embodiment of the present application.
具体实施方式detailed description
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of this application.
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。The terms "first", "second" and the like in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific sequence or sequence. It should be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments of the application can be practiced in sequences other than those illustrated or described herein, and that references to "first," "second," etc. distinguish Objects are generally of one type, and the number of objects is not limited. For example, there may be one or more first objects. In addition, "and/or" in the specification and claims means at least one of the connected objects, and the character "/" generally means that the related objects are an "or" relationship.
对本申请进行详细说明之前,对本申请实施例中涉及的名词和术语进行说明,本申请 实施例中涉及的名词和术语适用于如下的解释:Before the application is described in detail, the nouns and terms involved in the embodiments of the application are described, and the nouns and terms involved in the embodiments of the application are applicable to the following explanations:
(1)同步任务数据,指的是某一设备上运行的应用程序的相关数据,例如:某一页面上的界面滑动位置、账号信息、视频、音乐、渲染数据等。(1) Synchronization task data refers to the relevant data of the application program running on a certain device, for example: interface sliding position on a certain page, account information, video, music, rendering data, etc.
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的任务同步方法进行详细地说明。The task synchronization method provided by the embodiment of the present application will be described in detail below through specific embodiments and application scenarios with reference to the accompanying drawings.
请参阅图1,图1是本申请实施例提供的一种应用环境的示意图;Please refer to FIG. 1, which is a schematic diagram of an application environment provided by an embodiment of the present application;
如图1所示,该应用环境100包括:电子设备11及服务器12。As shown in FIG. 1 , the application environment 100 includes: an electronic device 11 and a server 12 .
其中,电子设备11与服务器12通信连接,以完成电子设备11的数据发送或接收,例如:电子设备11对接服务器12,电子设备11向服务器12发送同步任务数据。Wherein, the electronic device 11 communicates with the server 12 to complete the data transmission or reception of the electronic device 11 , for example: the electronic device 11 connects to the server 12 , and the electronic device 11 sends synchronization task data to the server 12 .
在一些实施例中,该电子设备11包括接口模块,接口模块包括多个接口,例如:通信接口、无线接口、有线接口等,相应的,服务器12包括服务器接口,例如:通信接口、无线接口、有线接口,电子设备11调用通信接口,通过网关连接服务器12的服务器接口,通过通信协议实现电子设备11与服务器12之间的通信连接。In some embodiments, the electronic device 11 includes an interface module, and the interface module includes multiple interfaces, such as: communication interface, wireless interface, wired interface, etc., correspondingly, the server 12 includes a server interface, such as: communication interface, wireless interface, For the wired interface, the electronic device 11 invokes the communication interface, connects to the server interface of the server 12 through a gateway, and realizes the communication connection between the electronic device 11 and the server 12 through a communication protocol.
在一些实施例中,电子设备11的数量可以为两个,亦可以为多个,例如:电子设备11包括第一设备111和第二设备112,可以理解的是,该第一设备111和第二设备112均可以采用移动通信设备、移动个人计算机设备、计算机终端、便携式娱乐设备,例如:视频播放器、掌上游戏机、智能平板等设备,在此不进行限定。In some embodiments, the number of electronic devices 11 can be two or more, for example: the electronic device 11 includes a first device 111 and a second device 112, it can be understood that the first device 111 and the second device 112 The two devices 112 can be mobile communication devices, mobile personal computer devices, computer terminals, portable entertainment devices, such as video players, handheld game consoles, smart tablets, etc., which are not limited here.
在一些实施例中,第一设备111与第二设备112通信连接,例如:通过无线局域网、蓝牙等方式通信连接,第一设备111与第二设备112之间可以通过传输同步任务数据,以实现第一设备111和第二设备112之间的任务同步。In some embodiments, the first device 111 and the second device 112 are connected in communication, for example, through wireless local area network, bluetooth, etc., and the first device 111 and the second device 112 can transmit synchronization task data to realize Task synchronization between the first device 111 and the second device 112 .
可以理解的是,电子设备11还可以包括多个设备,例如:第一设备、第二设备、第三设备,……,第N设备,第一设备可以向多个设备发送同步任务数据,以实现多个设备之间的任务同步。It can be understood that the electronic device 11 may also include multiple devices, for example: a first device, a second device, a third device, ..., the Nth device, and the first device may send synchronization task data to multiple devices to Realize task synchronization between multiple devices.
在一些实施例中,服务器12的数量为多个,多个服务器12可构成服务器集群,例如:该服务器集群包括:第一服务器、第二服务器,…,第N服务器,或者,该服务器集群可以是一个云计算服务中心,该云计算服务中心包括若干台服务器,用于进行高速运算。在本申请实施例中,该服务器包括但不限于:塔式服务器、机架式服务器、刀片式服务器等 服务器,在此不进行限定。In some embodiments, the number of servers 12 is multiple, and multiple servers 12 can form a server cluster, for example: the server cluster includes: the first server, the second server, ..., the Nth server, or the server cluster can It is a cloud computing service center, which includes several servers for high-speed computing. In the embodiment of the present application, the server includes but is not limited to: servers such as tower servers, rack servers, and blade servers, which are not limited here.
实施例一Embodiment one
下面以第一设备为智能手机、第二设备为智能平板,智能手机与智能平板之间进行任务同步为例进行说明:The following takes the first device as a smart phone, the second device as a smart tablet, and task synchronization between the smart phone and the smart tablet as an example:
请参阅图2,图2是本申请实施例提供的一种任务同步方法的流程图之一;Please refer to FIG. 2. FIG. 2 is one of the flow charts of a task synchronization method provided in an embodiment of the present application;
如图2所示,该任务同步方法的整体流程,包括:As shown in Figure 2, the overall flow of the task synchronization method includes:
步骤S201:生成第一同步任务;Step S201: generating a first synchronization task;
具体的,第一设备生成第一同步任务,所述第一同步任务指的是将某一设备上的应用程序同步到另一设备上,因此,每一同步任务对应一个应用程序。Specifically, the first device generates a first synchronization task, and the first synchronization task refers to synchronizing an application program on a certain device to another device. Therefore, each synchronization task corresponds to an application program.
步骤S202:发送第一同步任务数据;Step S202: sending the first synchronization task data;
具体的,第一设备向第二设备发送第一同步任务数据,其中,所述第一同步任务数据为第一设备上的应用程序的相关数据,当第二设备接收到第一设备发送的第一同步任务数据之后,可以通过该第一同步任务数据,同步到该应用程序对应的任务断点,例如:跳转到某一设备的应用程序的运行界面,加载运行数据等。Specifically, the first device sends the first synchronization task data to the second device, wherein the first synchronization task data is data related to the application program on the first device, when the second device receives the first synchronization task data sent by the first device After synchronizing the task data, the first synchronizing task data can be used to synchronize to the task breakpoint corresponding to the application program, for example: jumping to the running interface of the application program of a certain device, loading the running data, and so on.
步骤S203:同步第一同步任务;Step S203: synchronizing the first synchronization task;
具体的,第二设备同步所述第一同步任务,其中,第一同步任务对应一个应用程序,相当于第二设备中的与所述同步任务对应的应用程序跳转到第一设备的应用程序的运行界面,并加载运行数据。Specifically, the second device synchronizes the first synchronization task, wherein the first synchronization task corresponds to an application program, which is equivalent to jumping the application program corresponding to the synchronization task in the second device to the application program of the first device The running interface and load the running data.
请再参阅图3,图3是本申请实施例提供的一种任务同步方法的流程图之二;Please refer to FIG. 3 again. FIG. 3 is the second flowchart of a task synchronization method provided by an embodiment of the present application;
其中,该任务同步方法,应用于第一设备,具体的,该任务同步方法的执行主体为第一设备的一个或多个处理器。Wherein, the task synchronization method is applied to the first device. Specifically, the task synchronization method is executed by one or more processors of the first device.
如图3所示,该任务同步方法,包括:As shown in Figure 3, the task synchronization method includes:
步骤S301:第一设备响应于对应用程序图标的操作,生成第一同步任务,所述第一同步任务对应一个应用程序;Step S301: the first device generates a first synchronization task in response to an operation on the application program icon, and the first synchronization task corresponds to an application program;
在响应于对应用程序图标的操作之前,所述方法还包括:Before responding to the manipulation of the application icon, the method further includes:
第一设备在同步任务窗口中,接收对所述应用程序图标的操作,所述同步任务窗口包括悬浮组件,所述悬浮组件用于生成第一同步任务;The first device receives an operation on the application program icon in a synchronization task window, the synchronization task window includes a suspension component, and the suspension component is used to generate a first synchronization task;
所述响应于对应用程序图标的操作,生成第一同步任务,包括:The generating the first synchronization task in response to the operation on the application program icon includes:
第一设备响应于对所述应用程序图标的第一输入,将所述应用程序图标移动到所述悬浮组件;the first device moves the application icon to the hover component in response to a first input to the application icon;
第一设备生成所述第一同步任务,并将所述第一同步任务加入到同步任务列表中。The first device generates the first synchronization task, and adds the first synchronization task to a synchronization task list.
具体的,第一设备响应于对同步任务设置窗口的操作,生成同步任务窗口,其中,所述同步任务设置窗口包括展示时间组件、展示形式组件;Specifically, the first device generates a synchronization task window in response to an operation on the synchronization task setting window, wherein the synchronization task setting window includes a display time component and a display form component;
响应于对所述展示时间组件的操作,确定所述同步任务窗口中的悬浮组件的展示时间,和/或,响应于对所述展示形式组件的操作,确定展示形式,其中,所述展示形式包括悬浮组件、任务图标。In response to the operation of the display time component, determine the display time of the floating component in the synchronization task window, and/or, in response to the operation of the display form component, determine the display form, wherein the display form Including suspension components, task icons.
请参阅图4,图4是本申请实施例提供的一种第一设备的同步任务设置窗口的示意图;Please refer to FIG. 4. FIG. 4 is a schematic diagram of a synchronization task setting window of a first device provided in an embodiment of the present application;
其中,该同步任务设置窗口由用户在电子设备的设置选项中生成,例如:在“设置->更多设置”中,新增一个“同步任务”的选项。用户点击后,系统弹出同步任务设置窗口,以引导用户开启和设置同步任务窗口。Wherein, the synchronization task setting window is generated by the user in the setting options of the electronic device, for example, in "Settings -> More Settings", an option of "synchronization tasks" is added. After the user clicks, the system pops up the synchronization task setting window to guide the user to open and set the synchronization task window.
如图4所示,该同步任务设置窗口,包括:同步任务窗口开关组件、展示时间组件以及展示形式组件;As shown in Figure 4, the synchronization task setting window includes: a synchronization task window switch component, a display time component and a display form component;
其中,所述同步任务窗口开关组件包括:开启同步任务窗口或者不开启同步任务窗口两个选项,用于提供给用户进行选择开启同步任务窗口,或者,选择不开启同步任务窗口。当用户选择开启同步任务窗口,则在所述同步任务设置窗口中展示所述展示时间组件以及展示形式组件;当用户选择不开启同步任务窗口,则在所述同步任务设置窗口中隐藏所述展示时间组件以及展示形式组件。在本申请实施例中,所述同步任务窗口开关组件默认处于不开启同步任务窗口选项。Wherein, the synchronization task window switch component includes: two options of opening the synchronization task window or not opening the synchronization task window, for providing the user with the option to open the synchronization task window, or to choose not to open the synchronization task window. When the user chooses to open the synchronization task window, the display time component and the display form component are displayed in the synchronization task setting window; when the user chooses not to open the synchronization task window, the display is hidden in the synchronization task setting window Time component and presentation component. In the embodiment of the present application, the synchronization task window switch component defaults to the option of not opening the synchronization task window.
其中,所述展示时间组件用于确定所述同步任务窗口中的悬浮组件的展示时间,用户可以通过所述展示时间组件输入或选择展示时间,所述展示时间用于限制所述展示形式组件的展示方式,例如:所述展示形式组件为悬浮组件,比如,悬浮球,当应用程序图标被拖动到所述展示形式组件所在的位置时,所述展示形式组件进行高亮展示;当所述展示形式组件未被操作的时间超过所述展示时间之后,则自动透明展示;当检测到用户的手指点击处于透明展示状态的悬浮组件时,点亮所述悬浮组件。Wherein, the display time component is used to determine the display time of the floating component in the synchronization task window, the user can input or select the display time through the display time component, and the display time is used to limit the display time of the display form component Display method, for example: the display form component is a floating component, such as a floating ball, when the application icon is dragged to the position where the display form component is located, the display form component is highlighted; when the After the display form component has not been operated for more than the display time, it will be automatically displayed transparently; when it is detected that the user's finger clicks on the suspension component in the transparent display state, the suspension component will be lighted.
其中,所述展示形式组件用于确定展示形式,其中,所述展示形式包括悬浮组件、任务图标,其中,所述悬浮组件悬浮于同步任务窗口,例如:悬浮于同步任务窗口的目标区域;所述任务图标展示于应用程序图标,例如:展示于应用程序图标的右上方。Wherein, the display form component is used to determine the display form, wherein the display form includes a suspension component and a task icon, wherein the suspension component is suspended in the synchronization task window, for example: suspended in the target area of the synchronization task window; The above task icon is displayed on the application icon, for example: displayed on the upper right of the application icon.
在响应于对应用程序图标的操作之前,所述方法还包括:Before responding to the manipulation of the application icon, the method further includes:
第一设备在同步任务窗口中,接收对所述应用程序图标的操作,所述同步任务窗口包括悬浮组件,所述悬浮组件用于生成第一同步任务;The first device receives an operation on the application program icon in a synchronization task window, the synchronization task window includes a suspension component, and the suspension component is used to generate a first synchronization task;
所述响应于对应用程序图标的操作,生成第一同步任务,包括:The generating the first synchronization task in response to the operation on the application program icon includes:
第一设备响应于对所述应用程序图标的第一输入,将所述应用程序图标移动到所述悬浮组件;the first device moves the application icon to the hover component in response to a first input to the application icon;
第一设备生成所述第一同步任务,并将所述第一同步任务加入到同步任务列表中。The first device generates the first synchronization task, and adds the first synchronization task to a synchronization task list.
具体的,所述第一输入包括语音指令或手势操作,例如:点击操作、长按操作、滑动操作、拖动操作等手势操作。Specifically, the first input includes a voice command or a gesture operation, for example, a click operation, a long press operation, a slide operation, a drag operation, and other gesture operations.
请再参阅图5,图5是本申请实施例提供的一种第一设备的同步任务窗口的示意图之一;Please refer to FIG. 5 again. FIG. 5 is one of the schematic diagrams of a synchronization task window of a first device provided in an embodiment of the present application;
如图5所示,第一设备的同步任务窗口包括:应用程序图标以及悬浮组件,当用户将应用程序图标拖动到所述悬浮组件所在的位置时,第一设备生成该应用程序图标对应的应用程序的第一同步任务,并将该应用程序对应的第一同步任务加入到同步任务列表中,可以理解的是,用户可以按顺序依次拖动多个应用程序图标到所述悬浮组件,或者,用户可以同时拖动多个应用程序图标到所述悬浮组件,以将多个应用程序对应的多个第一同步任务加入同步任务列表。As shown in FIG. 5 , the synchronization task window of the first device includes: an application program icon and a suspension component. When the user drags the application program icon to the position where the suspension component is located, the first device generates an application icon corresponding to the application program icon. The first synchronization task of the application program, and add the first synchronization task corresponding to the application program to the synchronization task list. It can be understood that the user can drag multiple application program icons to the floating component in sequence, or , the user can drag multiple application program icons to the floating component at the same time, so as to add multiple first synchronization tasks corresponding to the multiple application programs to the synchronization task list.
可以理解的是,当所述同步任务列表中已存在某一第一同步任务,则在将该同步任务对应的应用程序图标拖动到悬浮组件之后,此时执行覆盖操作,将同步任务进行覆盖,更新第一同步任务为最新的第一同步任务,以避免重复添加造成同步任务列表中存在多个相同的第一同步任务。其中,更新第一同步任务为最新的第一同步任务,包括:若所述第一同步任务对应的应用程序发生更新,则更新第一同步任务;若所述第一同步任务对应的应用程序不发生更新,则保持同步任务列表中已存在的第一同步任务。It can be understood that, when a first synchronization task already exists in the synchronization task list, after the application icon corresponding to the synchronization task is dragged to the suspension component, an overlay operation is performed at this time to overwrite the synchronization task , updating the first synchronization task to the latest first synchronization task, so as to avoid multiple identical first synchronization tasks in the synchronization task list caused by repeated addition. Wherein, updating the first synchronization task to the latest first synchronization task includes: if the application program corresponding to the first synchronization task is updated, then updating the first synchronization task; if the application program corresponding to the first synchronization task is not If an update occurs, the existing first synchronization task in the synchronization task list is maintained.
在本申请实施例中,所述悬浮组件包括但不限于:悬浮球、悬浮框、悬浮栏等形式。In the embodiment of the present application, the suspension components include, but are not limited to: suspension balls, suspension frames, suspension bars and other forms.
在本申请实施例中,通过设置同步任务窗口,基于同步任务窗口中的悬浮组件,响应 于对所述应用程序图标的第一输入,将所述应用程序图标移动到悬浮组件以生成第一同步任务,并将第一同步任务加入到同步任务列表中,本申请能够快速生成第一同步任务,有利于第二设备快速同步第一设备的第一同步任务,提高了本端的同步效率。In the embodiment of the present application, by setting the synchronization task window, based on the suspension component in the synchronization task window, in response to the first input to the application icon, the application icon is moved to the suspension component to generate the first synchronization task, and add the first synchronization task to the synchronization task list, the application can quickly generate the first synchronization task, which is beneficial for the second device to quickly synchronize the first synchronization task of the first device, and improves the synchronization efficiency of the local end.
在本申请实施例中,所述方法还包括:In the embodiment of the present application, the method further includes:
第一设备响应于对所述悬浮组件的操作,生成第一窗口,其中,所述第一窗口所占的区域小于所述同步任务窗口所占的区域;The first device generates a first window in response to the operation of the suspension component, wherein the area occupied by the first window is smaller than the area occupied by the synchronization task window;
第一设备在所述第一窗口中显示同步任务列表中的每一第一同步任务对应的任务图标,其中,所述任务图标与所述应用程序图标对应,例如:所述任务图标与所述应用程序图标相同。The first device displays in the first window a task icon corresponding to each first synchronization task in the synchronization task list, where the task icon corresponds to the application program icon, for example: the task icon corresponds to the The application icons are the same.
具体的,所述对所述悬浮组件的操作,包括:对所述悬浮组件的手势操作,例如:点击操作、长按操作、滑动操作、拖动操作等手势操作,当第一设备识别到对所述悬浮组件的操作之后,响应于对所述悬浮组件的操作,生成第一窗口,其中,所述第一窗口所占的区域小于所述同步任务窗口所占的区域,所述第一窗口所在的区域位于所述同步任务窗口。在本申请实施例中,所述第一窗口位于所述同步任务窗口的上方、下方、左侧或右侧,可选地,所述第一窗口位于所述同步任务窗口的右侧,以侧边栏的方式呈现于所述同步任务窗口,以方便用户进行交互操作。Specifically, the operation on the suspension component includes: gesture operation on the suspension component, such as: click operation, long press operation, slide operation, drag operation and other gesture operations, when the first device recognizes that the After the suspension component is operated, a first window is generated in response to the operation of the suspension component, wherein the area occupied by the first window is smaller than the area occupied by the synchronization task window, and the first window The area where the sync task window is located is located. In this embodiment of the present application, the first window is located above, below, on the left or right of the synchronization task window, optionally, the first window is located on the right side of the synchronization task window, with side A sidebar is presented in the synchronization task window to facilitate interactive operations for users.
请再参阅图6,图6是本申请实施例提供的一种在第一设备中触发悬浮组件生成第一窗口的示意图;Please refer to FIG. 6 again. FIG. 6 is a schematic diagram of triggering the suspension component in the first device to generate the first window provided by the embodiment of the present application;
如图6所示,当用户对悬浮组件进行手势操作,例如:点击所述悬浮组件之后,隐藏所述悬浮组件,并在同步任务窗口的右侧弹出第一窗口,其中,第一窗口以侧边栏的方式呈现于所述同步任务窗口,其中,所述第一窗口中显示一个或多个任务图标,其中,每一任务图标对应一个第一同步任务,其中,所述任务图标与应用程序图标对应。As shown in Figure 6, when the user performs a gesture operation on the suspension component, for example: after clicking on the suspension component, the suspension component is hidden, and a first window pops up on the right side of the synchronization task window, wherein the first window starts with a side A sidebar is presented in the synchronous task window, wherein one or more task icons are displayed in the first window, wherein each task icon corresponds to a first synchronous task, wherein the task icon and the application program corresponding to the icon.
可以理解的是,该第一窗口用于呈现同步任务列表中的所有第一同步任务对应的同步图标,当某一应用程序图标被拖动到悬浮组件之后,则生成第一同步任务,并将该第一同步任务加入到同步任务列表中,同时将该第一同步任务对应的任务图标加入到第一窗口,其中,每一所述第一同步任务对应一个应用程序。在本申请实施例中,任务图标以加入时间的顺序排布于第一窗口。It can be understood that the first window is used to present the synchronization icons corresponding to all the first synchronization tasks in the synchronization task list, when an application icon is dragged to the suspension component, the first synchronization task is generated, and the The first synchronization task is added to the synchronization task list, and the task icon corresponding to the first synchronization task is added to the first window, wherein each first synchronization task corresponds to an application program. In the embodiment of the present application, the task icons are arranged in the first window in order of adding time.
在本申请实施例中,所述方法还包括:In the embodiment of the present application, the method further includes:
第一设备在显示第一窗口时,响应于对所述同步任务窗口中的目标区域的操作,隐藏所述第一窗口。When displaying the first window, the first device hides the first window in response to an operation on the target area in the synchronization task window.
具体的,所述对所述同步任务窗口中的目标区域的操作,包括:对所述目标区域的手势操作,例如:点击操作、长按操作、滑动操作等手势操作,当第一设备识别到对所述同步任务窗口中的目标区域的操作,响应于对所述目标区域的操作,隐藏所述第一窗口,相当于将所述第一窗口从所述同步任务窗口中退出。Specifically, the operation on the target area in the synchronization task window includes: a gesture operation on the target area, for example: a click operation, a long press operation, a slide operation and other gesture operations, when the first device recognizes that In response to the operation on the target area in the synchronization task window, hiding the first window is equivalent to exiting the first window from the synchronization task window.
请再参阅图7,图7是本申请实施例提供的一种在第一设备中触发目标区域隐藏第一窗口的示意图;Please refer to FIG. 7 again. FIG. 7 is a schematic diagram of triggering the target area to hide the first window in the first device according to the embodiment of the present application;
如图7所示,当用户对同步任务窗口中的目标区域进行操作,例如:点击操作之后,在同步任务窗口中隐藏第一窗口,并且,展示悬浮组件,例如:悬浮球,在悬浮组件展示预设时间之后,若同步任务窗口没有对悬浮组件的操作,则自动透明展示所述悬浮组件。As shown in Figure 7, when the user operates on the target area in the synchronization task window, such as clicking, the first window is hidden in the synchronization task window, and a floating component, such as a floating ball, is displayed on the floating component After a preset time, if the synchronization task window does not operate on the floating component, the floating component is automatically and transparently displayed.
在本申请实施例中,通过第一窗口显示同步任务列表中的每一第一同步任务对应的任务图标,并且,任务图标与应用程序图标对应,有利于直观地呈现待同步的第一同步任务,有利于提高用户的操作体验。In the embodiment of the present application, the task icon corresponding to each first synchronization task in the synchronization task list is displayed through the first window, and the task icon corresponds to the application program icon, which is conducive to visually presenting the first synchronization task to be synchronized , which is conducive to improving the user's operating experience.
在本申请实施例中,所述方法还包括:In the embodiment of the present application, the method further includes:
若第二设备存在第二同步任务,将所述第二同步任务对应的任务图标加入所述第一窗口;If the second device has a second synchronization task, adding a task icon corresponding to the second synchronization task to the first window;
第一设备响应于对所述第一窗口中的任务图标的第二输入,同步所述任务图标对应的第二同步任务,其中,所述任务图标的第二输入用于将任务图标移动到所述同步任务窗口中的目标区域,所述第二同步任务对应一个应用程序,所述第二同步任务为第二设备中用于同步到第一设备的同步任务。The first device synchronizes a second synchronization task corresponding to the task icon in response to a second input to the task icon in the first window, wherein the second input of the task icon is used to move the task icon to the The target area in the synchronization task window, the second synchronization task corresponds to an application program, and the second synchronization task is a synchronization task used in the second device to synchronize to the first device.
若第一设备获取到第二设备存在第二同步任务,第一设备将第二同步任务对应的任务图标加入所述第一窗口。If the first device obtains that the second device has a second synchronization task, the first device adds a task icon corresponding to the second synchronization task to the first window.
具体的,第二输入包括:语音指令或手势操作,例如:点击操作、长按操作、滑动操作、拖动操作等手势操作。第一设备响应于对所述第一窗口中的任务图标的第二输入,包括:Specifically, the second input includes: a voice command or a gesture operation, such as: a click operation, a long press operation, a slide operation, a drag operation, and other gesture operations. The first device, in response to the second input to the task icon in the first window, includes:
第一设备响应于对所述第一窗口中的任务图标的手势操作,其中,所述手势操作包括拖动操作或移动操作,所述手势操作用于将所述第一窗口中的任务图标拖动或移动到同步任务窗口中的目标区域。The first device responds to a gesture operation on the task icon in the first window, wherein the gesture operation includes a drag operation or a move operation, and the gesture operation is used to drag the task icon in the first window Move or move to the target area in the synchronization task window.
第一设备判断所述任务图标对应的第二同步任务是否有更新;The first device judges whether the second synchronization task corresponding to the task icon has been updated;
具体的,当所述任务图标被拖动或移动到同步任务窗口中的目标区域之后,第一设备判断所述任务图标对应的第二同步任务是否有更新,所述判断所述任务图标对应的第二同步任务是否有更新,包括:判断第二同步任务对应的第二同步任务数据是否有更新,可以理解的是,所述第二同步任务对应的第二同步任务数据的更新来自于第二设备的更新。在本申请实施例中,所述方法还包括:设置任务更新标志,以标识第二同步任务是否有更新,若所述第二同步任务有更新,则在所述第一窗口中的任务图标中添加任务更新标志。在本申请实施例中,所述任务更新标志可以为预设图案,例如:蓝点、绿点、红点,所述任务更新标志设置于任务图标的左方、右方、上方、下方、右上方等位置,可选地,所述任务更新标志为红点,并设置于任务图标的右上方。Specifically, after the task icon is dragged or moved to the target area in the synchronization task window, the first device judges whether the second synchronization task corresponding to the task icon has been updated, and the judgment of whether the task icon corresponds to Whether the second synchronization task is updated includes: judging whether the second synchronization task data corresponding to the second synchronization task is updated. It can be understood that the update of the second synchronization task data corresponding to the second synchronization task comes from the second Device updates. In the embodiment of the present application, the method further includes: setting a task update flag to identify whether the second synchronization task is updated, and if the second synchronization task is updated, the task icon in the first window Add task update flag. In the embodiment of the present application, the task update sign can be a preset pattern, such as blue dot, green dot, and red dot, and the task update sign is set on the left, right, top, bottom, and top right of the task icon Optionally, the task update sign is a red dot, and is set on the upper right of the task icon.
若所述任务图标对应的第二同步任务有更新,则解析该任务图标对应的第二同步任务的第二同步任务数据,控制该第二同步任务对应的应用程序跳转到所述第二同步任务数据对应的任务断点;If the second synchronization task corresponding to the task icon is updated, analyze the second synchronization task data of the second synchronization task corresponding to the task icon, and control the application program corresponding to the second synchronization task to jump to the second synchronization task. The task breakpoint corresponding to the task data;
若所述任务图标对应的第二同步任务无更新,则删除该任务图标对应的第二同步任务;If the second synchronization task corresponding to the task icon is not updated, then delete the second synchronization task corresponding to the task icon;
具体的,当所述任务图标对应的第二同步任务有更新,则意味着本端,即第一设备已接收到对端,即第二设备发送的第二同步任务数据,此时解析所述第二同步任务数据,所述第二同步任务数据为第二设备上运行的应用程序的相关数据,所述第二同步任务数据用于定位任务断点,所述任务断点为所述应用程序在第二设备上的任务的中断位置,例如:图片编辑、文章编辑、视频播放等任务的中断位置,该中断位置对应的相关数据即为第二同步任务数据,根据所述第二同步任务数据,定位到所述第二同步任务对应的应用程序的任务断点,并控制第一设备同步到该应用程序的任务断点。Specifically, when the second synchronization task corresponding to the task icon is updated, it means that the local end, that is, the first device has received the second synchronization task data sent by the opposite end, that is, the second device, and at this time, the The second synchronization task data, the second synchronization task data is the relevant data of the application program running on the second device, the second synchronization task data is used to locate the task breakpoint, and the task breakpoint is the application program The interrupt position of the task on the second device, for example: the interrupt position of tasks such as picture editing, article editing, video playback, etc., the relevant data corresponding to the interrupt position is the second synchronous task data, according to the second synchronous task data , locate the task breakpoint of the application program corresponding to the second synchronization task, and control the first device to synchronize to the task breakpoint of the application program.
请再参阅图8a,图8a是本申请实施例提供的一种在第一窗口中操作任务图标的示意图之一;Please refer to FIG. 8a again. FIG. 8a is one of the schematic diagrams of operating task icons in the first window provided by the embodiment of the present application;
如图8a所示,当第一窗口中的任务图标被拖动到同步任务窗口的目标区域时,若该任 务图标对应的同步任务有更新,即任务图标携带任务更新标志,此时解析第二同步任务对应的第二同步任务数据,定位任务断点,并同步所述第二同步任务对应的应用程序,例如:继续播放视频、继续编辑文章或者继续编辑图片。As shown in Figure 8a, when the task icon in the first window is dragged to the target area of the synchronization task window, if the synchronization task corresponding to the task icon is updated, that is, the task icon carries the task update flag, then the analysis of the second Synchronize the second synchronization task data corresponding to the task, locate the task breakpoint, and synchronize the application program corresponding to the second synchronization task, for example: continue to play the video, continue to edit the article or continue to edit the picture.
具体的,若所述任务图标对应的同步任务无更新,此时将某一任务图标从第一窗口中拖动到同步任务窗口的目标区域,意味着用户不需要该同步任务,此时,删除该任务图标对应的同步任务,即从同步任务列表中删除该同步任务,相应的,从第一窗口中删除该任务图标。Specifically, if the synchronization task corresponding to the task icon has not been updated, dragging a certain task icon from the first window to the target area of the synchronization task window means that the user does not need the synchronization task. The synchronization task corresponding to the task icon is deleted from the synchronization task list, and correspondingly, the task icon is deleted from the first window.
在本申请实施例中,通过设置第一窗口,响应于对所述第一窗口中的任务图标的第二输入,同步所述任务图标对应的第二同步任务,本申请能够快速实现将第二设备中的第二同步任务同步到第一设备,提高对端的同步效率。In this embodiment of the application, by setting the first window, in response to the second input to the task icon in the first window, synchronizing the second synchronization task corresponding to the task icon, the application can quickly implement the second synchronization task The second synchronization task in the device is synchronized to the first device, thereby improving the synchronization efficiency of the opposite end.
请再参阅图8b,图8b是本申请实施例提供的一种在第一窗口中操作任务图标的示意图之二;Please refer to FIG. 8b again. FIG. 8b is the second schematic diagram of operating task icons in the first window provided by the embodiment of the present application;
如图8b所示,当第一窗口中的任务图标被拖动到同步任务窗口的目标区域时,若该任务图标对应的同步任务无更新,即任务图标不携带任务更新标志,此时删除该任务图标对应的同步任务,即从同步任务列表中删除该同步任务,相应的,从第一窗口中删除该任务图标。As shown in Figure 8b, when the task icon in the first window is dragged to the target area of the synchronization task window, if the synchronization task corresponding to the task icon is not updated, that is, the task icon does not carry the task update flag, delete the task icon at this time. The synchronization task corresponding to the task icon is to delete the synchronization task from the synchronization task list, and correspondingly, delete the task icon from the first window.
可以理解的是,当第二设备向第一设备发送同步任务数据时,往往意味着第二设备的用户需要第一设备同步应用程序,此时第一设备需要响应第二设备的同步任务。It can be understood that when the second device sends synchronization task data to the first device, it often means that the user of the second device needs to synchronize the application program of the first device, and at this time the first device needs to respond to the synchronization task of the second device.
具体的,请参阅图9,图9是本申请实施例提供的一种第一设备检测第二设备的同步任务的流程示意图;Specifically, please refer to FIG. 9 . FIG. 9 is a schematic flowchart of a synchronization task for a first device to detect a second device according to an embodiment of the present application;
如图9所示,该第一设备检测第二设备的同步任务的流程,包括:As shown in FIG. 9, the process of the first device detecting the synchronization task of the second device includes:
步骤S901:第一设备通信连接第二设备;Step S901: the first device communicates with the second device;
所述第一设备和第二设备通过无线局域网、蓝牙等方式通信连接,例如:所述第二设备通过蓝牙扫描所述第一设备,并向所述第一设备发送连接请求,由第一设备确认建立蓝牙连接,以完成第一设备和第二设备之间的通信连接。The first device and the second device are connected through wireless local area network, bluetooth, etc., for example: the second device scans the first device through bluetooth, and sends a connection request to the first device, and the first device Confirm the establishment of the Bluetooth connection to complete the communication connection between the first device and the second device.
步骤S902:第一设备检测第二设备是否存在第二同步任务;Step S902: the first device detects whether the second device has a second synchronization task;
具体的,第一设备检测是否接收到第二设备发送的第二同步任务数据,若接收到第二 设备发送的第二同步任务数据,则确定第二设备存在第二同步任务,进入步骤S903:第一设备是否存在第一同步任务;若第一设备未接收到第二设备发送的第二同步任务数据,则确定第二设备不存在第二同步任务,则进入步骤S906:第一设备向第二设备发送第一同步任务数据;Specifically, the first device detects whether the second synchronization task data sent by the second device is received, and if the second synchronization task data sent by the second device is received, it determines that the second device has a second synchronization task, and enters step S903: Whether the first device has the first synchronization task; if the first device has not received the second synchronization task data sent by the second device, it is determined that the second device does not have the second synchronization task, and then enters step S906: the first device sends the second synchronization task to the second device. The second device sends the first synchronization task data;
步骤S903:第一设备是否存在第一同步任务;Step S903: Whether the first device has a first synchronization task;
具体的,检测第一设备的同步任务列表中是否存在第一同步任务,若第一设备的同步任务列表中存在第一同步任务,则进入步骤S904:比对第二设备和第一设备的同步任务的更新时间,确定最新的同步任务;若第一设备的同步任务列表中不存在第一同步任务,则进入步骤S907:同步所述第二设备的第二同步任务到第一设备;Specifically, it is detected whether the first synchronization task exists in the synchronization task list of the first device, and if the first synchronization task exists in the synchronization task list of the first device, then enter step S904: compare the synchronization of the second device and the first device The update time of the task is to determine the latest synchronization task; if the first synchronization task does not exist in the synchronization task list of the first device, enter step S907: synchronize the second synchronization task of the second device to the first device;
步骤S904:比对第二设备和第一设备的同步任务的更新时间,确定最新的同步任务;Step S904: comparing the update time of the synchronization tasks of the second device and the first device, and determining the latest synchronization task;
具体的,所述比对第二设备和第一设备的同步任务的更新时间,包括:比对同一应用程序对应的第一同步任务和第二同步任务分别对应的第一同步任务数据和第二同步任务数据的更新时间,确定更新时间最近的同步任务数据对应的同步任务为最新的同步任务。Specifically, the comparison of the update time of the synchronization tasks of the second device and the first device includes: comparing the first synchronization task data and the second synchronization task data corresponding to the first synchronization task and the second synchronization task corresponding to the same application program respectively. The update time of the synchronization task data determines that the synchronization task corresponding to the synchronization task data with the latest update time is the latest synchronization task.
步骤S905:同步所述最新的同步任务到第一设备;Step S905: Synchronize the latest synchronization task to the first device;
具体的,第一设备接收第二设备发送的最新的同步任务对应的同步任务数据,即第一设备接收第二设备发送的第二同步任务数据。可以理解的是,若最新的同步任务数据为第一设备的第一同步任务数据,则无需同步所述最新的同步任务到第一设备。Specifically, the first device receives the synchronization task data corresponding to the latest synchronization task sent by the second device, that is, the first device receives the second synchronization task data sent by the second device. It can be understood that, if the latest synchronization task data is the first synchronization task data of the first device, there is no need to synchronize the latest synchronization task to the first device.
步骤S906:第一设备向第二设备发送同步任务数据;Step S906: the first device sends synchronization task data to the second device;
具体的,若所述第二设备不存在同步任务,且第一设备存在同步任务,则第一设备直接向第二设备发送同步任务数据。其中,在同步任务数据传输完成后,在第二设备的应用程序图标中显示同步图标。Specifically, if the second device does not have a synchronization task and the first device has a synchronization task, the first device directly sends the synchronization task data to the second device. Wherein, after the synchronization task data transmission is completed, the synchronization icon is displayed in the application program icon of the second device.
步骤S907:同步所述第二设备的第二同步任务到第一设备;Step S907: Synchronizing the second synchronization task of the second device to the first device;
具体的,所述同步所述第二设备的第二同步任务到第一设备,包括:第一设备接收第二设备发送的第二同步任务对应的第二同步任务数据,并将所述第二设备的第二同步任务对应的任务图标加入所述第一窗口,并且,第一设备在第一窗口中,通过第一预设标志标识所述最新的同步任务对应的任务图标,以及,通过第二预设标志标识第二设备的第二同步任务对应的任务图标,其中,所述第一预设标志与第二预设标志相同,例如:所述第一 预设标志和所述第二预设标志均为预设图案,例如:蓝点、绿点、红点,所述第一预设标志和所述第二预设标志设置于任务图标的左方、右方、上方或下方,可选地,所述第一预设标志和所述第二预设标志为红点,并设置于任务图标的右上方。Specifically, the synchronizing the second synchronization task of the second device to the first device includes: the first device receives the second synchronization task data corresponding to the second synchronization task sent by the second device, and sends the second synchronization task The task icon corresponding to the second synchronization task of the device is added to the first window, and the first device identifies the task icon corresponding to the latest synchronization task through the first preset symbol in the first window, and, through the second Two preset symbols identify the task icon corresponding to the second synchronization task of the second device, wherein the first preset symbol is the same as the second preset symbol, for example: the first preset symbol and the second preset symbol All the marks are preset patterns, such as blue dots, green dots, and red dots. The first preset mark and the second preset mark are set on the left, right, top or bottom of the task icon. Optionally, the first preset mark and the second preset mark are red dots, and are set on the upper right of the task icon.
在本申请实施例中,通过比对同步任务的更新时间,有利于第一设备和第二设备之间的同步,提高同步的内容准确性。In the embodiment of the present application, by comparing the update time of the synchronization task, the synchronization between the first device and the second device is facilitated, and the accuracy of the synchronization content is improved.
步骤S302:第一设备发送所述第一同步任务对应的第一同步任务数据至第二设备,其中,所述第一同步任务数据用于第二设备同步所述第一同步任务。Step S302: the first device sends first synchronization task data corresponding to the first synchronization task to the second device, wherein the first synchronization task data is used by the second device to synchronize the first synchronization task.
具体的,当第一设备与第二设备通信连接之后,若第一设备的同步任务列表中包括至少一个第一同步任务,则第一设备发送至少一个所述第一同步任务的第一同步任务数据至第二设备,其中,每一第一同步任务一一对应一个第一同步任务数据,所述第一同步任务数据用于第二设备同步所述第一同步任务对应的应用程序。Specifically, after the first device communicates with the second device, if the synchronization task list of the first device includes at least one first synchronization task, the first device sends at least one first synchronization task of the first synchronization task data to the second device, wherein each first synchronization task corresponds to one first synchronization task data, and the first synchronization task data is used by the second device to synchronize the application program corresponding to the first synchronization task.
可以理解的是,所述第一同步任务数据和第二同步任务数据在第一设备和第二设备之间的传输过程都在后台执行,不影响第一设备和第二设备的正常使用。It can be understood that, the transmission process of the first synchronization task data and the second synchronization task data between the first device and the second device is executed in the background, which does not affect the normal use of the first device and the second device.
在本申请实施例中,所述第一设备和第二设备通过无线局域网、蓝牙等方式通信连接,例如:所述第二设备通过蓝牙扫描所述第一设备,并向所述第一设备发送连接请求。可选地,所述第一设备以及所述第二设备均设置自身可被扫描,在所述第一设备接收到所述第二设备发送的连接请求时,获取同意指令以完成设备连接。所述通信连接建立后,所述第一设备能够接收到第二设备发送的应用程序的同步任务数据,即应用程序的运行界面和后台相关的数据。可选地,所述第一设备和第二设备通过蓝牙进行通信连接。In this embodiment of the present application, the first device and the second device are connected through wireless local area network, bluetooth, etc., for example: the second device scans the first device through bluetooth, and sends Connection request. Optionally, both the first device and the second device are configured to be scanned, and when the first device receives the connection request sent by the second device, it obtains a consent instruction to complete the device connection. After the communication connection is established, the first device can receive the synchronization task data of the application program sent by the second device, that is, data related to the running interface and background of the application program. Optionally, the first device and the second device are connected through Bluetooth.
在本申请实施例中,通过增加了一种同步任务窗口的交互机制,通过同步任务窗口,用户可方便的添加、删除同步任务,切换到新设备上后,用户可有选择地执行窗口内另一个设备上的同步任务,无需重新执行一遍流程,简化同步操作,并且缩短了同步时间,实现无缝对接,提高用户的使用体验。In the embodiment of this application, by adding an interactive mechanism of the synchronization task window, the user can easily add and delete synchronization tasks through the synchronization task window, and after switching to a new device, the user can selectively execute other tasks in the window. The synchronization task on one device does not need to perform the process again, simplifies the synchronization operation, shortens the synchronization time, realizes seamless connection, and improves the user experience.
请再参阅图10,图10是本申请实施例提供的一种第一设备中的同步任务开启窗口的示意图;Please refer to FIG. 10 again. FIG. 10 is a schematic diagram of a synchronization task opening window in a first device provided by an embodiment of the present application;
如图10所示,通过弹出同步任务开启窗口,以响应同意操作或取消操作,若为同意操作,即用户点击同意按钮,则开启同步任务窗口;若为取消操作,即用户点击取消按钮, 则不开启同步任务窗口。As shown in Figure 10, the opening window of the synchronization task is popped up to respond to the consent operation or the cancellation operation. If the operation is consent, that is, the user clicks the agree button, the synchronization task window will be opened; if it is a cancellation operation, that is, the user clicks the cancel button, then Do not open the sync task window.
在本申请实施例中,通过响应于对应用程序图标的操作,生成第一同步任务,第一同步任务对应一个应用程序,发送第一同步任务对应的第一同步任务数据至第二设备,其中,第一同步任务数据用于第二设备同步第一同步任务,本申请能够简化同步操作,缩短同步时间,提高同步效率。In the embodiment of the present application, a first synchronization task is generated in response to an operation on the application program icon, the first synchronization task corresponds to an application program, and the first synchronization task data corresponding to the first synchronization task is sent to the second device, wherein , the first synchronization task data is used for the second device to synchronize the first synchronization task, and the present application can simplify the synchronization operation, shorten the synchronization time, and improve the synchronization efficiency.
实施例二Embodiment two
上述实施例一以悬浮组件的方式进行同步,在本申请实施例中,以同步图标的方式进行同步。需要说明的是,实施例二与实施例一中存在相同的逻辑、方法或步骤,具体可参考实施例一中的相关描述,在此不再赘述。In the first embodiment above, the synchronization is performed in the form of a floating component, but in the embodiment of the present application, the synchronization is performed in the form of a synchronization icon. It should be noted that the second embodiment has the same logic, methods or steps as those in the first embodiment, for details, reference may be made to the related description in the first embodiment, which will not be repeated here.
请再参阅图4,图4是本申请实施例提供的一种第一设备的同步任务设置窗口的示意图;Please refer to FIG. 4 again. FIG. 4 is a schematic diagram of a synchronization task setting window of a first device provided in an embodiment of the present application;
如图4所示,若用户在展示形式组件中选择任务图标,则在同步任务时不再展示悬浮组件和第一窗口,即侧边栏,而是通过在应用程序图标上增加同步图标,以标识该应用程序已加入同步任务。As shown in Figure 4, if the user selects the task icon in the display form component, the floating component and the first window, that is, the sidebar, will no longer be displayed when the task is synchronized. Instead, the synchronization icon will be added to the application icon to Indicates that the application has joined the synchronization task.
具体的,与实施例一不同的是,在本申请实施例中,所述响应于对应用程序图标的操作,生成第一同步任务,包括:Specifically, different from Embodiment 1, in this embodiment of the application, generating the first synchronization task in response to the operation on the application icon includes:
第一设备在同步任务窗口中,响应于对应用程序的应用程序图标的手势操作,生成每一应用程序图标对应的同步图标,其中,所述同步图标用于标识该应用程序对应的第一同步任务已加入同步任务列表。In the synchronization task window, the first device generates a synchronization icon corresponding to each application icon in response to a gesture operation on the application icon of the application, wherein the synchronization icon is used to identify the first synchronization corresponding to the application The task has been added to the synchronization task list.
具体的,所述手势操作包括点击操作、长按操作、滑动操作等手势操作,可选地,本申请实施例中的手势操作为预设时间内对应用程序图标的三次点击操作,即快速三连击,所述第一设备响应于预设时间内对应用程序图标的三次点击操作,生成第一同步任务,并将该第一同步任务加入同步任务列表,即,将该应用程序图标对应的应用程序对应的第一同步任务加入同步任务列表,同时,生成每一应用程序图标对应的同步图标,其中,所述同步图标用于标识该应用程序对应的第一同步任务已加入同步任务列表。Specifically, the gesture operations include gesture operations such as click operations, long press operations, and slide operations. Optionally, the gesture operations in this embodiment of the application are three click operations on the application icon within a preset time, that is, three quick clicks. Combo, the first device generates a first synchronization task in response to three clicks on the application icon within a preset time, and adds the first synchronization task to the synchronization task list, that is, the corresponding application icon The first synchronization task corresponding to the application program is added to the synchronization task list, and at the same time, a synchronization icon corresponding to each application program icon is generated, wherein the synchronization icon is used to identify that the first synchronization task corresponding to the application program has been added to the synchronization task list.
在本申请实施例中,所述同步图标为预设图案,例如:带颜色的图案,其中,所述同步图标设置于应用程序图标的左方、右方、上方、下方、右上方等位置,可选地,所述同 步图标设置于应用程序图标的右上方。In the embodiment of the present application, the synchronization icon is a preset pattern, for example, a colored pattern, wherein the synchronization icon is set on the left, right, upper, lower, upper right, etc. of the application icon, Optionally, the synchronization icon is set at the upper right of the application program icon.
请参阅图11,图11是本申请实施例提供的一种第一设备中的同步图标的示意图;Please refer to FIG. 11. FIG. 11 is a schematic diagram of a synchronization icon in a first device according to an embodiment of the present application;
如图11所示,通过在应用程序图标的右上方添加同步图标,以标识该应用程序图标对应的应用程序已加入第一同步任务。As shown in FIG. 11 , a synchronization icon is added to the upper right of the application icon to identify that the application corresponding to the application icon has joined the first synchronization task.
在本申请实施例中,所述方法还包括:In the embodiment of the present application, the method further includes:
第一设备响应于对标识有同步图标的应用程序图标的操作,生成第二窗口,其中,所述第二窗口所占的区域小于所述同步任务窗口所占的区域;The first device generates a second window in response to an operation on the application icon marked with the synchronization icon, wherein the area occupied by the second window is smaller than the area occupied by the synchronization task window;
响应于对第二窗口的同步操作,解析该同步图标对应的同步任务的同步任务数据,控制该同步任务对应的应用程序跳转到所述同步任务数据对应的任务断点。In response to the synchronization operation on the second window, the synchronization task data of the synchronization task corresponding to the synchronization icon is analyzed, and the application program corresponding to the synchronization task is controlled to jump to the task breakpoint corresponding to the synchronization task data.
具体的,所述对标识有同步图标的应用程序图标的操作包括手势操作,例如:点击操作、长按操作、滑动操作等手势操作,可选地,本申请实施例中的手势操作为点击操作,比如:当用户点击标识有同步图标的应用程序图标之后,生成第二窗口,其中,所述第二窗口所占的区域小于所述同步任务窗口所占的区域;Specifically, the operation on the application icon marked with the synchronization icon includes gesture operation, such as: click operation, long press operation, slide operation and other gesture operations. Optionally, the gesture operation in the embodiment of the present application is a click operation , for example: after the user clicks the application icon marked with the synchronization icon, a second window is generated, wherein the area occupied by the second window is smaller than the area occupied by the synchronization task window;
请参阅图12,图12是本申请实施例提供的一种第一设备中触发应用程序图标生成第二窗口的示意图;Please refer to FIG. 12. FIG. 12 is a schematic diagram of triggering application icons to generate a second window in a first device according to an embodiment of the present application;
如图12所示,当用户点击标识有同步图标的应用程序图标之后,生成第二窗口,其中,第二窗口为弹框,弹框中显示提示信息,例如:是否同步对端操作到本地,所述弹框中还提供取消控件和同意控件,当用户点击同意控件之后,则同步对端操作到本地,即同步第二设备的第二同步任务;当用户点击取消控件之后,则不同步对端操作到本地,即不同步第二设备的第二同步任务。As shown in Figure 12, when the user clicks the application icon marked with the synchronization icon, a second window is generated, wherein the second window is a pop-up box, and prompt information is displayed in the pop-up box, for example: whether to synchronize the operation of the peer end to the local, The pop-up box also provides a cancellation control and an agreement control. When the user clicks the consent control, the synchronization operation of the opposite end is performed locally, that is, the second synchronization task of the second device is synchronized; when the user clicks the cancellation control, the non-synchronization end operation to the local, that is, do not synchronize the second synchronization task of the second device.
具体的,在点击同意按钮,解析该同步图标对应的同步任务的同步任务数据,控制该同步任务对应的应用程序跳转到所述同步任务数据对应的任务断点,具体的同步步骤可参考上述实施例一中的叙述,在此不再赘述。Specifically, after clicking the agree button, the synchronization task data of the synchronization task corresponding to the synchronization icon is analyzed, and the application program corresponding to the synchronization task is controlled to jump to the task breakpoint corresponding to the synchronization task data. For specific synchronization steps, please refer to the above The description in Embodiment 1 will not be repeated here.
在本申请实施例中,所述方法还包括:In the embodiment of the present application, the method further includes:
第一设备响应于对第二窗口的取消操作,删除该同步图标对应的同步任务。In response to the cancel operation on the second window, the first device deletes the synchronization task corresponding to the synchronization icon.
具体的,当用户点击取消按钮之后,则不同步第二设备中与该应用程序对应的同步任务,并且,在第一程序的同步任务窗口中的应用程序图标上删除同步图标,相当于删除该 同步图标对应的同步任务,不再进行同步。Specifically, after the user clicks the cancel button, the synchronization task corresponding to the application in the second device will not be synchronized, and deleting the synchronization icon on the application icon in the synchronization task window of the first program is equivalent to deleting the application. The synchronization task corresponding to the synchronization icon will no longer be synchronized.
或者,当用户需要取消某一同步任务时,通过对应用程序图标进行点击操作,以删除该应用程序图标对应的同步图标,相当于删除该应用程序对应的同步任务。Alternatively, when the user needs to cancel a certain synchronization task, the user clicks on the application program icon to delete the synchronization icon corresponding to the application program icon, which is equivalent to deleting the synchronization task corresponding to the application program.
在第一设备响应于对同步任务窗口中的应用程序图标的操作之前,所述方法还包括:Before the first device responds to the manipulation of the application icon in the synchronization task window, the method further includes:
第一设备响应于对同步任务设置窗口的操作,生成同步任务窗口,其中,所述同步任务设置窗口包括展示时间组件、展示形式组件,所述展示时间组件用于确定所述同步任务窗口中的悬浮组件的展示时间,所述展示形式组件用于确定展示形式,其中,所述展示形式包括悬浮组件、任务图标。The first device generates a synchronization task window in response to an operation on the synchronization task setting window, wherein the synchronization task setting window includes a presentation time component and a presentation form component, and the presentation time component is used to determine the The display time of the suspension component, the display form component is used to determine the display form, wherein the display form includes a suspension component and a task icon.
具体的,同步任务设置窗口的相关内容,可参考上述实施例一中的相关叙述,在此不再赘述。Specifically, for the relevant content of the synchronization task setting window, reference may be made to the relevant description in the first embodiment above, and details are not repeated here.
在本申请实施例中,通过在应用程序图标中添加同步图标的方式,实现同步任务的生成,相比上述实施例一,能够减少悬浮组件和第一窗口对同步任务窗口的占有,也可以方便快速的将同步任务同步到对端,提升用户体验。In the embodiment of the present application, the synchronization task is generated by adding a synchronization icon to the application icon. Compared with the first embodiment above, the occupation of the synchronization task window by the floating component and the first window can be reduced, and it is also convenient Quickly synchronize synchronization tasks to the peer end to improve user experience.
实施例三Embodiment three
与上述实施例一、实施例二不同的是,本申请实施例的任务同步方法,应用于第二设备,具体的,该任务同步方法的执行主体为第二设备的一个或多个处理器。Different from the first and second embodiments above, the task synchronization method in the embodiment of the present application is applied to the second device. Specifically, the task synchronization method is executed by one or more processors of the second device.
请参阅图13,图13是本申请实施例提供的另一种任务同步方法的流程示意图;Please refer to FIG. 13. FIG. 13 is a schematic flowchart of another task synchronization method provided by the embodiment of the present application;
如图13所示,该任务同步方法,包括:As shown in Figure 13, the task synchronization method includes:
步骤S1301:第二设备接收第一设备发送的同步任务数据,开启同步任务开启窗口,其中,每一所述同步任务数据对应一个同步任务,每个同步任务对应一个应用程序;Step S1301: the second device receives the synchronization task data sent by the first device, and opens a synchronization task opening window, wherein each synchronization task data corresponds to a synchronization task, and each synchronization task corresponds to an application program;
具体的,第一设备作为同步任务数据的发送端,第二设备作为同步任务数据的接收端,第二设备接收第一设备发送的同步任务数据,开启同步任务开启窗口。Specifically, the first device serves as the sending end of the synchronization task data, the second device serves as the receiving end of the synchronization task data, and the second device receives the synchronization task data sent by the first device, and opens a synchronization task opening window.
请再参阅图14,图14是本申请实施例提供的第二设备的同步任务开启窗口的示意图;Please refer to FIG. 14 again. FIG. 14 is a schematic diagram of the synchronization task opening window of the second device provided by the embodiment of the present application;
如图14所示,当第二设备检测到有同步任务,则生成同步任务开启窗口,其中,所述同步任务开启窗口为同步任务弹框,所述同步任务弹框包括同意按钮和取消按钮,分别用于提供给用户选择开启同步任务窗口或者不开启同步任务窗口,若用户选择开启同步任务窗口,则开始传输同步任务数据。As shown in Figure 14, when the second device detects that there is a synchronization task, a synchronization task opening window is generated, wherein the synchronization task opening window is a synchronization task pop-up box, and the synchronization task pop-up box includes an agree button and a cancel button, They are respectively used to provide the user with the choice of opening the synchronization task window or not opening the synchronization task window. If the user chooses to open the synchronization task window, the synchronization task data will be transmitted.
可以理解的是,为了提高同步的效率,在第一设备生成同步任务,并且,第二设备通信连接第一设备之后,第二设备直接接收第一设备发送的同步任务数据,使得第二设备能够快速响应同步任务。It can be understood that, in order to improve the efficiency of synchronization, after the first device generates a synchronization task and the second device communicates with the first device, the second device directly receives the synchronization task data sent by the first device, so that the second device can Respond quickly to sync tasks.
步骤S1302:第二设备响应于对同步任务开启窗口的开启操作,确定同步任务,并同步所述同步任务对应的应用程序。Step S1302: The second device determines the synchronization task and synchronizes the application program corresponding to the synchronization task in response to the opening operation of the synchronization task opening window.
具体的,当用户在同步任务开启窗口中点击同意按钮之后,进入同步任务窗口,通过所述同步任务窗口,选择同步任务,以同步所述同步任务对应的应用程序。Specifically, after the user clicks the agree button in the synchronization task opening window, the synchronization task window is entered, and the synchronization task is selected through the synchronization task window to synchronize the application program corresponding to the synchronization task.
在本申请实施例中,与上述实施例一、实施例二中的相同,所述同步任务窗口可以包括悬浮组件,用于进行与同步相关的操作。In this embodiment of the present application, the same as in the first and second embodiments above, the synchronization task window may include a suspension component for performing operations related to synchronization.
请再参阅图15,图15是本申请实施例提供的一种第二设备中的同步任务窗口的示意图;Please refer to FIG. 15 again. FIG. 15 is a schematic diagram of a synchronization task window in a second device according to an embodiment of the present application;
如图15所示,用户在第二设备中设置悬浮组件的方式进行同步,因此,同步任务窗口显示悬浮组件,其中,所述悬浮组件设置有一个同步任务数量标志,该同步任务数量标志用于标识第二设备的同步任务列表中的同步任务的数量。As shown in Figure 15, the user sets the suspension component in the second device to perform synchronization, therefore, the synchronization task window displays the suspension component, wherein, the suspension component is set with a synchronization task number mark, and the synchronization task number mark is used for A number of synchronization tasks in the synchronization task list of the second device is identified.
具体的,请再参阅图16,图16是本申请实施例提供的一种第二设备确定同步任务的流程示意图;Specifically, please refer to FIG. 16 again. FIG. 16 is a schematic flowchart of a second device determining a synchronization task according to an embodiment of the present application;
如图16所示,所述确定同步任务,包括:As shown in Figure 16, the determination of the synchronization task includes:
步骤S1601:第二设备响应于对所述悬浮组件的操作,生成第一窗口;Step S1601: the second device generates a first window in response to the operation on the suspension component;
具体的,所述对所述悬浮组件的操作,包括:对所述悬浮组件的手势操作,例如:点击操作、长按操作、滑动操作等手势操作,当第二设备识别到对所述悬浮组件的操作之后,响应于对所述悬浮组件的操作,生成第一窗口,其中,所述第一窗口所占的区域小于所述同步任务窗口所占的区域,所述第一窗口所在的区域位于所述同步任务窗口。在本申请实施例中,所述第一窗口位于所述同步任务窗口的上方、下方、左侧或右侧,可选地,所述第一窗口位于所述同步任务窗口的右侧,以侧边栏的方式呈现于所述同步任务窗口,以方便用户进行交互操作。Specifically, the operation on the suspension component includes: a gesture operation on the suspension component, for example: a click operation, a long press operation, a slide operation and other gesture operations, when the second device recognizes that the suspension component is After the operation, in response to the operation of the suspension component, a first window is generated, wherein the area occupied by the first window is smaller than the area occupied by the synchronization task window, and the area where the first window is located is located at The sync task window. In this embodiment of the present application, the first window is located above, below, on the left or right of the synchronization task window, optionally, the first window is located on the right side of the synchronization task window, with side A sidebar is presented in the synchronization task window to facilitate interactive operations for users.
具体的,请再参阅图17,图17是本申请实施例提供的一种在第二设备中触发悬浮组件生成第一窗口的示意图;Specifically, please refer to FIG. 17 again. FIG. 17 is a schematic diagram of triggering the suspension component in the second device to generate the first window provided by the embodiment of the present application;
如图17所示,当用户对悬浮组件进行手势操作,例如:点击所述悬浮组件之后,隐藏 所述悬浮组件,并在同步任务窗口的右侧弹出第一窗口,其中,第一窗口以侧边栏的方式呈现于所述同步任务窗口,其中,所述第一窗口中显示一个或多个任务图标,其中,每一任务图标对应一个同步任务,其中,所述任务图标与应用程序图标相同。As shown in Figure 17, when the user performs a gesture operation on the suspension component, for example: after clicking on the suspension component, the suspension component is hidden, and a first window pops up on the right side of the synchronization task window, wherein the first window starts with a side A sidebar is presented in the synchronization task window, wherein one or more task icons are displayed in the first window, wherein each task icon corresponds to a synchronization task, wherein the task icon is the same as the application program icon .
可以理解的是,第二设备响应于对悬浮组件的操作与第一设备响应于对悬浮组件的操作相同,相关内容可参考实施例一,在此不再赘述。It can be understood that the response of the second device to the operation of the suspension component is the same as that of the first device in response to the operation of the suspension component. For related content, reference may be made to Embodiment 1, and details are not repeated here.
步骤S1602:在所述第一窗口中显示同步任务列表中的每一同步任务对应的任务图标,其中,所述任务图标与所述应用程序图标相同;Step S1602: displaying in the first window a task icon corresponding to each synchronization task in the synchronization task list, wherein the task icon is the same as the application program icon;
步骤S1603:第二设备响应于对所述第一窗口中的任务图标的手势操作,确定所述任务图标对应的同步任务,其中,所述任务图标的手势操作用于将任务图标拖动到所述同步任务窗口中的目标区域。Step S1603: The second device determines the synchronization task corresponding to the task icon in response to the gesture operation on the task icon in the first window, wherein the gesture operation on the task icon is used to drag the task icon to the target area in the synchronization task window described above.
具体的,所述手势操作包括点击操作、长按操作、滑动操作、拖动操作等手势操作,例如:用户通过拖动第一窗口中的任务图标,使得第二设备响应于对所述第一窗口中的任务图标的拖动操作,确定所述任务图标对应的同步任务。Specifically, the gesture operations include gesture operations such as click operations, long press operations, slide operations, and drag operations. For example, the user drags the task icon in the first window to make the second device respond to the first The drag operation of the task icon in the window determines the synchronization task corresponding to the task icon.
在确定所述任务同步图标对应的同步任务之后,根据所述同步任务对应的同步任务数据,进行任务同步。After the synchronization task corresponding to the task synchronization icon is determined, task synchronization is performed according to the synchronization task data corresponding to the synchronization task.
可以理解的是,第二设备和第一设备的同步过程相同,具体可参阅实施例一中的叙述,在此不再赘述。It can be understood that the synchronization process of the second device is the same as that of the first device. For details, please refer to the description in Embodiment 1, which will not be repeated here.
在本申请实施例中,通过提供一种任务同步方法,所述方法包括:第二设备接收第一设备发送的同步任务数据,开启同步任务开启窗口,其中,每一所述同步任务数据对应一个同步任务,每个同步任务对应一个应用程序;第二设备响应于对同步任务开启窗口的开启操作,确定同步任务,并同步所述同步任务对应的应用程序。通过响应于对同步任务开启窗口的开启操作,确定同步任务,并同步所述同步任务对应的应用程序,本申请能够简化同步操作,缩短同步时间,提高同步效率。In the embodiment of the present application, by providing a task synchronization method, the method includes: the second device receives the synchronization task data sent by the first device, and opens a synchronization task opening window, wherein each synchronization task data corresponds to a Synchronization tasks, each synchronization task corresponds to an application program; the second device determines the synchronization task in response to the opening operation of the synchronization task opening window, and synchronizes the application program corresponding to the synchronization task. By responding to the opening operation of the synchronization task opening window, determining the synchronization task, and synchronizing the application program corresponding to the synchronization task, the present application can simplify the synchronization operation, shorten the synchronization time, and improve the synchronization efficiency.
实施例四Embodiment four
上述实施例三以悬浮组件的方式进行同步,在本申请实施例中,以同步图标的方式进行同步。需要说明的是,实施例四与实施例三中存在相同的逻辑、方法或步骤,具体可参 考实施例三中的相关描述,在此不再赘述。The above third embodiment performs synchronization in the form of a floating component, and in the embodiment of the present application, the synchronization is performed in the form of a synchronization icon. It should be noted that there are the same logic, method or steps in the fourth embodiment and the third embodiment, for details, please refer to the relevant description in the third embodiment, which will not be repeated here.
请再参阅图19,图19是本申请实施例提供的一种第二设备的同步任务窗口的示意图;Please refer to FIG. 19 again. FIG. 19 is a schematic diagram of a synchronization task window of a second device provided by an embodiment of the present application;
如图19所示,通过在应用程序图标的右上方添加同步图标,以标识该应用程序图标对应的应用程序已加入同步任务。As shown in FIG. 19 , a synchronization icon is added to the upper right of the application icon to identify that the application corresponding to the application icon has joined the synchronization task.
在本申请实施例中,所述方法还包括:In the embodiment of the present application, the method further includes:
第二设备响应于对标识有同步图标的应用程序图标的操作,生成第二窗口,其中,所述第二窗口所占的区域小于所述同步任务窗口所占的区域;The second device generates a second window in response to an operation on the application icon marked with the synchronization icon, wherein the area occupied by the second window is smaller than the area occupied by the synchronization task window;
响应于对第二窗口的同步操作,解析该同步图标对应的同步任务的同步任务数据,控制该同步任务对应的应用程序跳转到所述同步任务数据对应的任务断点。In response to the synchronization operation on the second window, the synchronization task data of the synchronization task corresponding to the synchronization icon is analyzed, and the application program corresponding to the synchronization task is controlled to jump to the task breakpoint corresponding to the synchronization task data.
具体的,所述对标识有同步图标的应用程序图标的操作包括手势操作,例如:点击操作、长按操作、滑动操作等手势操作,可选地,本申请实施例中的手势操作为点击操作,比如:当用户点击标识有同步图标的应用程序图标之后,生成第二窗口,其中,所述第二窗口所占的区域小于所述同步任务窗口所占的区域;Specifically, the operation on the application icon marked with the synchronization icon includes gesture operation, such as: click operation, long press operation, slide operation and other gesture operations. Optionally, the gesture operation in the embodiment of the present application is a click operation , for example: after the user clicks the application icon marked with the synchronization icon, a second window is generated, wherein the area occupied by the second window is smaller than the area occupied by the synchronization task window;
请参阅图20,图20是本申请实施例提供的一种第二设备中触发应用程序图标生成第二窗口的示意图;Please refer to FIG. 20. FIG. 20 is a schematic diagram of triggering application icons to generate a second window in a second device according to an embodiment of the present application;
如图20所示,当用户点击标识有同步图标的应用程序图标之后,生成第二窗口,其中,第二窗口为弹框,弹框中显示提示信息,例如:是否同步对端操作到本地,所述弹框中还提供取消控件和同意控件,当用户点击同意控件之后,则同步对端操作到本地,即同步第一设备的第一同步任务;当用户点击取消控件之后,则不同步对端操作到本地,即不同步第一设备的第一同步任务。As shown in Figure 20, when the user clicks the application icon marked with the synchronization icon, a second window is generated, wherein the second window is a pop-up box, and prompt information is displayed in the pop-up box, for example: whether to synchronize the peer operation to the local, The pop-up box also provides a cancellation control and an agreement control. When the user clicks the consent control, the synchronization operation of the opposite end is performed locally, that is, the first synchronization task of the first device is synchronized; when the user clicks the cancellation control, the non-synchronization The terminal operates locally, that is, the first synchronization task of the first device is not synchronized.
具体的,在点击同意按钮,解析该同步图标对应的同步任务的同步任务数据,控制该同步任务对应的应用程序跳转到所述同步任务数据对应的任务断点,具体的同步步骤可参考上述实施例一中的叙述,在此不再赘述。Specifically, after clicking the agree button, the synchronization task data of the synchronization task corresponding to the synchronization icon is analyzed, and the application program corresponding to the synchronization task is controlled to jump to the task breakpoint corresponding to the synchronization task data. For specific synchronization steps, please refer to the above The description in Embodiment 1 will not be repeated here.
在本申请实施例中,通过在应用程序图标中添加同步图标的方式,实现同步任务的生成,相比上述实施例三,能够减少悬浮组件和第一窗口对同步任务窗口的占有,也可以方便快速的将同步任务同步到对端,提升用户体验。In the embodiment of the present application, the synchronization task is generated by adding a synchronization icon to the application icon. Compared with the third embodiment above, the occupation of the synchronization task window by the floating component and the first window can be reduced, and it is also convenient Quickly synchronize synchronization tasks to the peer end to improve user experience.
实施例五Embodiment five
本申请实施例提供一种任务同步装置。其中,任务同步装置可以为软件模块,所述软件模块包括若干指令,其存储在存储器内,处理器可以访问该存储器,调用指令进行执行,以完成上述各个实施例所述的任务同步方法。An embodiment of the present application provides a task synchronization device. Wherein, the task synchronization device may be a software module, and the software module includes several instructions, which are stored in a memory, and the processor can access the memory, call the instructions for execution, and complete the task synchronization method described in the above-mentioned embodiments.
请参阅图21,图21是本申请实施例提供的一种任务同步装置的结构示意图;Please refer to FIG. 21. FIG. 21 is a schematic structural diagram of a task synchronization device provided by an embodiment of the present application;
如图21所示,该任务同步装置210,包括:As shown in Figure 21, the task synchronization device 210 includes:
同步任务生成模块2101,用于第一设备响应于对应用程序图标的操作,生成第一同步任务,所述第一同步任务对应一个应用程序;A synchronization task generation module 2101, configured for the first device to generate a first synchronization task in response to an operation on the application program icon, where the first synchronization task corresponds to an application program;
同步任务数据发送模块2102,用于第一设备发送所述第一同步任务对应的第一同步任务数据至第二设备,其中,所述第一同步任务数据用于第二设备同步所述第一同步任务。A synchronization task data sending module 2102, configured for the first device to send the first synchronization task data corresponding to the first synchronization task to the second device, wherein the first synchronization task data is used by the second device to synchronize the first Synchronize tasks.
同步任务生成模块2101,还用于第一设备在同步任务窗口中,接收对所述应用程序图标的操作,所述同步任务窗口包括悬浮组件,所述悬浮组件用于生成第一同步任务;第一设备响应于对所述应用程序图标的第一输入,将所述应用程序图标移动到所述悬浮组件;第一设备生成所述第一同步任务,并将所述第一同步任务加入到同步任务列表中。The synchronization task generating module 2101 is further configured for the first device to receive an operation on the application program icon in the synchronization task window, the synchronization task window includes a suspension component, and the suspension component is used to generate the first synchronization task; A device moves the application program icon to the floating component in response to a first input to the application program icon; the first device generates the first synchronization task and adds the first synchronization task to the synchronization task list.
同步任务生成模块2101,还用于第一设备响应于对所述悬浮组件的操作,生成第一窗口,其中,所述第一窗口所占的区域小于所述同步任务窗口所占的区域;第一设备在所述第一窗口中显示所述同步任务列表中的每一第一同步任务对应的任务图标,其中,所述任务图标与所述应用程序图标对应。The synchronous task generation module 2101 is further used for the first device to generate a first window in response to the operation of the suspension component, wherein the area occupied by the first window is smaller than the area occupied by the synchronous task window; A device displays a task icon corresponding to each first synchronization task in the synchronization task list in the first window, where the task icon corresponds to the application program icon.
同步任务生成模块2101,还用于若第二设备存在第二同步任务,将所述第二同步任务对应的任务图标加入所述第一窗口;第一设备响应于对所述第一窗口中的任务图标的第二输入,同步所述任务图标对应的第二同步任务,其中,所述任务图标的第二输入用于将任务图标移动到所述同步任务窗口中的目标区域,所述第二同步任务对应一个应用程序,所述第二同步任务为第二设备中用于同步到第一设备的同步任务。The synchronization task generating module 2101 is further configured to add a task icon corresponding to the second synchronization task to the first window if the second device has a second synchronization task; the first device responds to the The second input of the task icon is to synchronize the second synchronization task corresponding to the task icon, wherein the second input of the task icon is used to move the task icon to the target area in the synchronization task window, and the second The synchronization task corresponds to an application program, and the second synchronization task is a synchronization task used in the second device to synchronize to the first device.
同步任务生成模块2101,还用于第一设备判断所述任务图标对应的第二同步任务是否有更新;若是,则解析该任务图标对应的第二同步任务的第二同步任务数据,控制该第二同步任务对应的应用程序跳转到所述第二同步任务数据对应的任务断点;若否,则在第一窗口中删除该任务图标。The synchronization task generation module 2101 is also used for the first device to judge whether the second synchronization task corresponding to the task icon has been updated; if so, analyze the second synchronization task data of the second synchronization task corresponding to the task icon, and control the second synchronization task. The application program corresponding to the second synchronization task jumps to the task breakpoint corresponding to the second synchronization task data; if not, delete the task icon in the first window.
同步任务生成模块2101,还用于在第一设备通信连接第二设备之后,第一设备检测第二设备是否存在第二同步任务;若第一设备检测到所述第二设备存在第二同步任务,且所述第一设备不存在第一同步任务,则同步所述第二同步任务到第一设备;若第一设备检测到所述第二设备存在第二同步任务,且所述第一设备存在第一同步任务,则比对所述第二同步任务和所述第一同步任务的更新时间,确定最新的同步任务,同步所述最新的同步任务到第一设备;其中,所述第一同步任务与所述第二同步任务对应同一应用程序。The synchronization task generation module 2101 is further configured to detect whether the second device has a second synchronization task after the first device communicates with the second device; if the first device detects that the second device has a second synchronization task , and the first device does not have the first synchronization task, then synchronize the second synchronization task to the first device; if the first device detects that the second device has a second synchronization task, and the first device If there is a first synchronization task, compare the update time of the second synchronization task with the update time of the first synchronization task, determine the latest synchronization task, and synchronize the latest synchronization task to the first device; wherein, the first The synchronization task corresponds to the same application program as the second synchronization task.
在本申请实施例中,任务同步装置亦可以由硬件器件搭建成的,例如,任务同步装置可以由一个或两个以上的芯片搭建而成,各个芯片可以互相协调工作,以完成上述各个实施例所阐述的任务同步方法。再例如,任务同步装置还可以由各类逻辑器件搭建而成,诸如由通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现场可编程门阵列(FPGA)、单片机、ARM(Acorn RISC Machine)或其它可编程逻辑器件、分立门或晶体管逻辑、分立的硬件组件或者这些部件的任何组合而搭建成。In the embodiment of the present application, the task synchronization device can also be built by hardware devices. For example, the task synchronization device can be built by one or more than two chips, and each chip can work in coordination with each other to complete the above-mentioned embodiments. The task synchronization method described. For another example, the task synchronization device can also be built by various logic devices, such as a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), a single-chip microcomputer, an ARM (Acorn RISC Machine) or other programmable logic devices, discrete gate or transistor logic, discrete hardware components, or any combination of these components.
本申请实施例中的任务同步装置可以是装置,也可以是终端中的部件、集成电路、或芯片。该装置可以是移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,非移动电子设备可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。The task synchronization device in this embodiment of the present application may be a device, or a component, an integrated circuit, or a chip in a terminal. The device may be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle electronic device, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant). assistant, PDA), etc., non-mobile electronic devices can be servers, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc., this application Examples are not specifically limited.
本申请实施例中的任务同步装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。The task synchronization device in this embodiment of the present application may be a device with an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, which are not specifically limited in this embodiment of the present application.
本申请实施例提供的任务同步装置能够实现图2、图3的方法实施例实现的各个过程,为避免重复,这里不再赘述。The task synchronization device provided by the embodiment of the present application can realize various processes realized by the method embodiments shown in FIG. 2 and FIG. 3 , and details are not repeated here to avoid repetition.
需要说明的是,上述任务同步装置可执行本申请实施例一或实施例二所提供的任务同步方法,具备执行方法相应的功能模块和有益效果。未在任务同步装置实施例中详尽描述 的技术细节,可参见本申请实施例一或实施例二所提供的任务同步方法。It should be noted that the above-mentioned task synchronization device can execute the task synchronization method provided in Embodiment 1 or Embodiment 2 of the present application, and has corresponding functional modules and beneficial effects for executing the method. For technical details that are not described in detail in the embodiment of the task synchronization device, please refer to the task synchronization method provided in Embodiment 1 or Embodiment 2 of this application.
在本申请实施例中,通过提供一种任务同步装置,所述装置包括:同步任务生成模块,用于第一设备响应于对应用程序图标的操作,生成第一同步任务,第一同步任务对应一个应用程序;同步任务数据发送模块,用于第一设备发送第一同步任务对应的第一同步任务数据至第二设备,其中,第一同步任务数据用于第二设备同步第一同步任务。通过响应于对应用程序图标的操作,生成第一同步任务,发送第一同步任务对应的第一同步任务数据至第二设备,本申请能够简化同步操作,缩短同步时间,提高同步效率。In the embodiment of the present application, by providing a task synchronization device, the device includes: a synchronization task generation module, used for the first device to generate a first synchronization task in response to the operation on the application program icon, the first synchronization task corresponds to An application program; a synchronization task data sending module, used for the first device to send the first synchronization task data corresponding to the first synchronization task to the second device, wherein the first synchronization task data is used for the second device to synchronize the first synchronization task. By generating the first synchronization task in response to the operation on the application program icon, and sending the first synchronization task data corresponding to the first synchronization task to the second device, the application can simplify the synchronization operation, shorten the synchronization time, and improve the synchronization efficiency.
实施例六Embodiment six
本申请实施例提供一种任务同步装置。其中,任务同步装置可以为软件模块,所述软件模块包括若干指令,其存储在存储器内,处理器可以访问该存储器,调用指令进行执行,以完成上述各个实施例所述的任务同步方法。An embodiment of the present application provides a task synchronization device. Wherein, the task synchronization device may be a software module, and the software module includes several instructions, which are stored in a memory, and the processor can access the memory, call the instructions for execution, and complete the task synchronization method described in the above-mentioned embodiments.
请参阅图22,图22是本申请实施例提供的一种任务同步装置的结构示意图;Please refer to FIG. 22, which is a schematic structural diagram of a task synchronization device provided by an embodiment of the present application;
如图22所示,该任务同步装置220,包括:As shown in Figure 22, the task synchronization device 220 includes:
同步任务接收模块2201,用于第二设备接收第一设备发送的第一同步任务数据,启动同步任务开启窗口,其中,每一所述第一同步任务数据对应一个第一同步任务,每一第一同步任务对应一个应用程序;The synchronization task receiving module 2201 is used for the second device to receive the first synchronization task data sent by the first device, and start the synchronization task opening window, wherein each of the first synchronization task data corresponds to a first synchronization task, and each first synchronization task data One synchronization task corresponds to one application program;
同步任务同步模块2202,用于第二设备响应于对同步任务开启窗口的操作,生成同步任务窗口,并确定第一设备的第一同步任务,以同步所述第一同步任务。The synchronization task synchronization module 2202 is configured for the second device to generate a synchronization task window in response to the operation of opening a window for the synchronization task, and determine a first synchronization task of the first device, so as to synchronize the first synchronization task.
本申请实施例提供的任务同步装置能够实现图13的方法实施例实现的各个过程,为避免重复,这里不再赘述。The task synchronization device provided in the embodiment of the present application can implement various processes implemented in the method embodiment in FIG. 13 , and details are not repeated here to avoid repetition.
需要说明的是,上述任务同步装置可执行本申请实施例三或实施例四所提供的任务同步方法,具备执行方法相应的功能模块和有益效果。未在任务同步装置实施例中详尽描述的技术细节,可参见本申请实施例三或实施例四所提供的任务同步方法。It should be noted that the above-mentioned task synchronization device can execute the task synchronization method provided in Embodiment 3 or Embodiment 4 of the present application, and has corresponding functional modules and beneficial effects for executing the method. For technical details not described in detail in the embodiment of the task synchronization device, refer to the task synchronization method provided in Embodiment 3 or Embodiment 4 of the present application.
在本申请实施例中,通过提供一种任务同步装置,所述装置包括:同步任务接收模块,用于第二设备接收第一设备发送的第一同步任务数据,启动同步任务开启窗口,其中,每一所述第一同步任务数据对应一个第一同步任务,每一第一同步任务对应一个应用程序;同步任务同步模块,用于第二设备响应于对同步任务开启窗口的操作,生成同步任务窗口, 并确定第一设备的第一同步任务,以同步所述第一同步任务。通过响应于对同步任务开启窗口的操作,生成同步任务窗口,并确定第一设备的第一同步任务,以同步所述第一同步任务,本申请能够简化同步操作,缩短同步时间,提高同步效率。In the embodiment of the present application, by providing a task synchronization device, the device includes: a synchronization task receiving module, used for the second device to receive the first synchronization task data sent by the first device, and start the synchronization task opening window, wherein, Each of the first synchronization task data corresponds to a first synchronization task, and each first synchronization task corresponds to an application program; the synchronization task synchronization module is used for the second device to generate a synchronization task in response to the operation of opening a window for the synchronization task window, and determine a first synchronization task of the first device, so as to synchronize the first synchronization task. By responding to the operation of opening the window for the synchronization task, generating the synchronization task window, and determining the first synchronization task of the first device to synchronize the first synchronization task, the application can simplify the synchronization operation, shorten the synchronization time, and improve the synchronization efficiency .
实施例七Embodiment seven
可选的,请参阅图23,图23是本申请实施例提供的一种第一设备的结构示意图之一;如图23所示,本申请实施例还提供一种第一设备230,包括处理器2301,存储器2302,存储在存储器2302上并可在所述处理器2301上运行的程序或指令,该程序或指令被处理器2301执行时实现上述任务同步方法实施例一或实施例二的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, please refer to FIG. 23. FIG. 23 is one of the structural schematic diagrams of a first device provided in the embodiment of the present application; as shown in FIG. 23, the embodiment of the present application also provides a first device 230, including processing A device 2301, a memory 2302, a program or instruction stored in the memory 2302 and operable on the processor 2301, when the program or instruction is executed by the processor 2301, each of the above-mentioned task synchronization method embodiment 1 or embodiment 2 is realized. process, and can achieve the same technical effect, in order to avoid repetition, it will not be repeated here.
需要注意的是,本申请实施例中的第一设备包括移动电子设备和非移动电子设备。It should be noted that the first device in this embodiment of the present application includes mobile electronic devices and non-mobile electronic devices.
请参阅图24,图24是本申请实施例提供的一种第一设备的结构示意图之二;Please refer to Figure 24, Figure 24 is the second structural schematic diagram of a first device provided by the embodiment of the present application;
如图24所示,该第一设备240包括但不限于:射频单元241、网络模块242、音频输出单元243、输入单元244、传感器245、显示单元246、用户输入单元247、接口单元248、存储器249、处理器2410、以及电源2411等部件,所述第一设备240还包括摄像头。As shown in Figure 24, the first device 240 includes but not limited to: a radio frequency unit 241, a network module 242, an audio output unit 243, an input unit 244, a sensor 245, a display unit 246, a user input unit 247, an interface unit 248, a memory 249, a processor 2410, and a power supply 2411. The first device 240 also includes a camera.
本领域技术人员可以理解,第一设备240还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器2410逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图24中示出的第一设备的结构并不构成对第一设备的限定,第一设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。在本申请实施例中,终端设备包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、以及计步器等。Those skilled in the art can understand that the first device 240 may also include a power supply (such as a battery) for supplying power to various components, and the power supply may be logically connected to the processor 2410 through the power management system, so that the management of charging, discharging, and functions such as power management. The structure of the first device shown in FIG. 24 does not constitute a limitation to the first device. The first device may include more or fewer components than shown in the illustration, or combine some components, or arrange different components. This will not be repeated here. In the embodiment of the present application, the terminal devices include, but are not limited to, mobile phones, tablet computers, notebook computers, palmtop computers, vehicle-mounted terminals, wearable devices, and pedometers.
其中,处理器2410,用于响应于对应用程序图标的操作,生成第一同步任务,第一同步任务对应一个应用程序;发送第一同步任务对应的第一同步任务数据至第二设备,其中,第一同步任务数据用于第二设备同步第一同步任务。Wherein, the processor 2410 is configured to generate a first synchronization task in response to an operation on the application program icon, where the first synchronization task corresponds to an application program; and send the first synchronization task data corresponding to the first synchronization task to the second device, wherein , the first synchronization task data is used by the second device to synchronize the first synchronization task.
本申请实施例中的第一设备240,通过响应于对应用程序图标的操作,生成第一同步任务并发送对应的第一同步任务数据,本申请能够简化同步操作,缩短同步时间,提高同步效率。The first device 240 in the embodiment of the present application generates the first synchronization task and sends the corresponding first synchronization task data in response to the operation on the application program icon. This application can simplify the synchronization operation, shorten the synchronization time, and improve the synchronization efficiency .
应当理解的是,本申请实施例中,输入单元244可以包括图形处理器(Graphics Processing Unit,GPU)2441和麦克风2442,图形处理器2441对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元246可包括显示面板2461,可以采用液晶显示器、有机发光二极管等形式来配置显示面板2461。用户输入单元247包括触控面板2471以及其他输入设备2472。触控面板2471,也称为触摸屏。触控面板2471可包括触摸检测装置和触摸控制器两个部分。其他输入设备2472可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。存储器249可用于存储软件程序以及各种数据,包括但不限于应用程序和操作系统。处理器2410可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器2410中。It should be understood that, in the embodiment of the present application, the input unit 244 may include a graphics processor (Graphics Processing Unit, GPU) 2441 and a microphone 2442, and the graphics processor 2441 is used for the image capture device ( Such as the image data of the still picture or video obtained by the camera) for processing. The display unit 246 may include a display panel 2461, and the display panel 2461 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 247 includes a touch panel 2471 and other input devices 2472 . The touch panel 2471 is also called a touch screen. The touch panel 2471 may include two parts, a touch detection device and a touch controller. Other input devices 2472 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here. Memory 249 may be used to store software programs as well as various data, including but not limited to application programs and operating systems. Processor 2410 may integrate an application processor and a modem processor, wherein the application processor mainly processes operating systems, user interfaces, and application programs, and the modem processor mainly processes wireless communications. It can be understood that the foregoing modem processor may not be integrated into the processor 2410 .
实施例八Embodiment Eight
可选的,本申请实施例还提供一种第二设备,包括处理器,存储器,存储在存储器上并可在所述处理器上运行的程序或指令,该程序或指令被处理器执行时实现上述任务同步方法实施例三或实施例四的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, the embodiment of the present application further provides a second device, including a processor, a memory, and a program or instruction stored in the memory and operable on the processor, and the program or instruction is executed by the processor to implement The processes in Embodiment 3 or Embodiment 4 of the above-mentioned task synchronization method can achieve the same technical effect, so in order to avoid repetition, details are not repeated here.
需要注意的是,本申请实施例中的第二设备包括移动电子设备和非移动电子设备。It should be noted that the second device in this embodiment of the present application includes mobile electronic devices and non-mobile electronic devices.
其中,处理器,用于接收第一设备发送的第一同步任务数据,启动同步任务开启窗口,其中,每一第一同步任务数据对应一个第一同步任务,每一第一同步任务对应一个应用程序;第二设备响应于对同步任务开启窗口的操作,生成同步任务窗口,并确定第一设备的第一同步任务,以同步第一同步任务。Wherein, the processor is configured to receive the first synchronization task data sent by the first device, and start the synchronization task opening window, wherein each first synchronization task data corresponds to a first synchronization task, and each first synchronization task corresponds to an application Procedure; the second device responds to the operation of opening the window for the synchronization task, generates a synchronization task window, and determines the first synchronization task of the first device, so as to synchronize the first synchronization task.
本申请实施例中的第二设备,通过响应于对同步任务开启窗口的开启操作,确定同步任务,并同步所述同步任务对应的应用程序,本申请能够简化同步操作,缩短同步时间,提高同步效率。The second device in the embodiment of the present application determines the synchronization task by responding to the opening operation of the synchronization task opening window, and synchronizes the application program corresponding to the synchronization task. This application can simplify the synchronization operation, shorten the synchronization time, and improve the synchronization. efficiency.
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述任务同步方法实施例的各个过程,且能达到相同的技 术效果,为避免重复,在此不再赘述。The embodiment of the present application also provides a readable storage medium. The readable storage medium stores programs or instructions. When the program or instructions are executed by the processor, the various processes of the above-mentioned task synchronization method embodiments can be achieved, and the same In order to avoid repetition, the technical effects will not be repeated here.
其中,所述处理器为上述实施例中所述的第一设备或第二设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。Wherein, the processor is the processor in the first device or the second device described in the foregoing embodiments. The readable storage medium includes computer readable storage medium, such as computer read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk, etc.
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述任务同步方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiment of the present application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the above-mentioned task synchronization method embodiment Each process can achieve the same technical effect, so in order to avoid repetition, it will not be repeated here.
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。It should be understood that the chips mentioned in the embodiments of the present application may also be called system-on-chip, system-on-chip, system-on-a-chip, or system-on-a-chip.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。It should be noted that, in this document, the term "comprising", "comprising" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved. Functions are performed, for example, the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on such an understanding, the technical solution of the present application can be embodied in the form of a software product in essence or the part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM, disk, CD) contains several instructions to enable a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in various embodiments of the present application.
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形 式,均属于本申请的保护之内。The embodiments of the present application have been described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementations. The above-mentioned specific implementations are only illustrative and not restrictive. Those of ordinary skill in the art will Under the inspiration of this application, without departing from the purpose of this application and the scope of protection of the claims, many forms can also be made, all of which belong to the protection of this application.

Claims (19)

  1. 一种任务同步方法,包括:A task synchronization method, comprising:
    第一设备响应于对应用程序图标的操作,生成第一同步任务,所述第一同步任务对应一个应用程序;The first device generates a first synchronization task in response to an operation on the application program icon, and the first synchronization task corresponds to an application program;
    第一设备发送所述第一同步任务对应的第一同步任务数据至第二设备,其中,所述第一同步任务数据用于第二设备同步所述第一同步任务。The first device sends first synchronization task data corresponding to the first synchronization task to the second device, where the first synchronization task data is used by the second device to synchronize the first synchronization task.
  2. 根据权利要求1所述的方法,其中,在响应于对应用程序图标的操作之前,所述方法还包括:The method according to claim 1, wherein, before responding to the operation on the application program icon, the method further comprises:
    第一设备在同步任务窗口中,接收对所述应用程序图标的操作,所述同步任务窗口包括悬浮组件,所述悬浮组件用于生成第一同步任务;The first device receives an operation on the application program icon in a synchronization task window, the synchronization task window includes a suspension component, and the suspension component is used to generate a first synchronization task;
    所述响应于对应用程序图标的操作,生成第一同步任务,包括:The generating the first synchronization task in response to the operation on the application program icon includes:
    第一设备响应于对所述应用程序图标的第一输入,将所述应用程序图标移动到所述悬浮组件;the first device moves the application icon to the hover component in response to a first input to the application icon;
    第一设备生成所述第一同步任务,并将所述第一同步任务加入到同步任务列表中。The first device generates the first synchronization task, and adds the first synchronization task to a synchronization task list.
  3. 根据权利要求2所述的方法,其中,所述方法还包括:The method according to claim 2, wherein the method further comprises:
    第一设备响应于对所述悬浮组件的操作,生成第一窗口,其中,所述第一窗口所占的区域小于所述同步任务窗口所占的区域;The first device generates a first window in response to the operation of the suspension component, wherein the area occupied by the first window is smaller than the area occupied by the synchronization task window;
    第一设备在所述第一窗口中显示所述同步任务列表中的每一第一同步任务对应的任务图标,其中,所述任务图标与所述应用程序图标对应。The first device displays a task icon corresponding to each first synchronization task in the synchronization task list in the first window, where the task icon corresponds to the application program icon.
  4. 根据权利要求3所述的方法,其中,所述方法还包括:The method according to claim 3, wherein the method further comprises:
    若第二设备存在第二同步任务,将所述第二同步任务对应的任务图标加入所述第一窗口;If the second device has a second synchronization task, adding a task icon corresponding to the second synchronization task to the first window;
    第一设备响应于对所述第一窗口中的任务图标的第二输入,同步所述任务图标对应的第二同步任务,其中,所述任务图标的第二输入用于将任务图标移动到所述同步任务窗口中的目标区域,所述第二同步任务对应一个应用程序,所述第二同步任务为第二设备中用于同步到第一设备的同步任务。The first device synchronizes a second synchronization task corresponding to the task icon in response to a second input to the task icon in the first window, wherein the second input of the task icon is used to move the task icon to the The target area in the synchronization task window, the second synchronization task corresponds to an application program, and the second synchronization task is a synchronization task used in the second device to synchronize to the first device.
  5. 根据权利要求4所述的方法,其中,在第一设备响应于对所述第一窗口中的任务图 标的第二输入之后,所述方法还包括:The method of claim 4, wherein after the first device responds to the second input to the task icon in the first window, the method further comprises:
    第一设备判断所述任务图标对应的第二同步任务是否有更新;The first device judges whether the second synchronization task corresponding to the task icon has been updated;
    若是,则解析该任务图标对应的第二同步任务的第二同步任务数据,控制该第二同步任务对应的应用程序跳转到所述第二同步任务数据对应的任务断点;If so, analyze the second synchronization task data of the second synchronization task corresponding to the task icon, and control the application program corresponding to the second synchronization task to jump to the task breakpoint corresponding to the second synchronization task data;
    若否,则在第一窗口中删除该任务图标。If not, delete the task icon in the first window.
  6. 根据权利要求3-5任一项所述的方法,其中,所述方法还包括:The method according to any one of claims 3-5, wherein the method further comprises:
    在第一设备通信连接第二设备之后,第一设备检测第二设备是否存在第二同步任务;After the first device communicates with the second device, the first device detects whether there is a second synchronization task in the second device;
    若第一设备检测到所述第二设备存在第二同步任务,且所述第一设备不存在第一同步任务,则同步所述第二同步任务到第一设备;If the first device detects that the second device has a second synchronization task, and the first device does not have a first synchronization task, synchronizing the second synchronization task to the first device;
    若第一设备检测到所述第二设备存在第二同步任务,且所述第一设备存在第一同步任务,则比对所述第二同步任务和所述第一同步任务的更新时间,确定最新的同步任务,同步所述最新的同步任务到第一设备;其中,所述第一同步任务与所述第二同步任务对应同一应用程序。If the first device detects that the second device has a second synchronization task, and the first device has a first synchronization task, then compare the update time of the second synchronization task with the first synchronization task, and determine The latest synchronization task, synchronizing the latest synchronization task to the first device; wherein, the first synchronization task and the second synchronization task correspond to the same application program.
  7. 一种任务同步方法,包括:A task synchronization method, comprising:
    第二设备接收第一设备发送的第一同步任务数据,启动同步任务开启窗口,其中,每一所述第一同步任务数据对应一个第一同步任务,每一第一同步任务对应一个应用程序;The second device receives the first synchronization task data sent by the first device, and starts a synchronization task opening window, wherein each of the first synchronization task data corresponds to a first synchronization task, and each first synchronization task corresponds to an application program;
    第二设备响应于对同步任务开启窗口的操作,生成同步任务窗口,并确定第一设备的第一同步任务,以同步所述第一同步任务。The second device generates a synchronization task window in response to the operation of opening a window for the synchronization task, and determines a first synchronization task of the first device, so as to synchronize the first synchronization task.
  8. 一种任务同步装置,包括:A task synchronization device, comprising:
    同步任务生成模块,用于第一设备响应于对应用程序图标的操作,生成第一同步任务,所述第一同步任务对应一个应用程序;A synchronization task generation module, configured for the first device to generate a first synchronization task in response to an operation on the application program icon, and the first synchronization task corresponds to an application program;
    同步任务数据发送模块,用于第一设备发送所述第一同步任务对应的第一同步任务数据至第二设备,其中,所述第一同步任务数据用于第二设备同步所述第一同步任务。A synchronization task data sending module, configured for the first device to send the first synchronization task data corresponding to the first synchronization task to the second device, wherein the first synchronization task data is used by the second device to synchronize the first synchronization task Task.
  9. 根据权利要求8所述的装置,其中,还包括:The device according to claim 8, further comprising:
    所述同步任务生成模块,还用于第一设备在响应于对应用程序图标的操作之前,在同步任务窗口中,接收对所述应用程序图标的操作,所述同步任务窗口包括悬浮组件,所述悬浮组件用于生成第一同步任务;The synchronization task generation module is further used for the first device to receive an operation on the application program icon in a synchronization task window before responding to the operation on the application program icon, and the synchronization task window includes a suspension component, so The suspension component is used to generate the first synchronization task;
    所述同步任务生成模块具体用于:The synchronization task generating module is specifically used for:
    第一设备响应于对所述应用程序图标的第一输入,将所述应用程序图标移动到所述悬浮组件;the first device moves the application icon to the hover component in response to a first input to the application icon;
    第一设备生成所述第一同步任务,并将所述第一同步任务加入到同步任务列表中。The first device generates the first synchronization task, and adds the first synchronization task to a synchronization task list.
  10. 根据权利要求9所述的装置,其中,所述同步任务生成模块还用于:The device according to claim 9, wherein the synchronous task generation module is also used for:
    第一设备响应于对所述悬浮组件的操作,生成第一窗口,其中,所述第一窗口所占的区域小于所述同步任务窗口所占的区域;The first device generates a first window in response to the operation of the suspension component, wherein the area occupied by the first window is smaller than the area occupied by the synchronization task window;
    第一设备在所述第一窗口中显示所述同步任务列表中的每一第一同步任务对应的任务图标,其中,所述任务图标与所述应用程序图标对应。The first device displays a task icon corresponding to each first synchronization task in the synchronization task list in the first window, where the task icon corresponds to the application program icon.
  11. 根据权利要求10所述的装置,其中,所述同步任务生成模块还用于:The device according to claim 10, wherein the synchronous task generation module is also used for:
    若第二设备存在第二同步任务,将所述第二同步任务对应的任务图标加入所述第一窗口;If the second device has a second synchronization task, adding a task icon corresponding to the second synchronization task to the first window;
    第一设备响应于对所述第一窗口中的任务图标的第二输入,同步所述任务图标对应的第二同步任务,其中,所述任务图标的第二输入用于将任务图标移动到所述同步任务窗口中的目标区域,所述第二同步任务对应一个应用程序,所述第二同步任务为第二设备中用于同步到第一设备的同步任务。The first device synchronizes a second synchronization task corresponding to the task icon in response to a second input to the task icon in the first window, wherein the second input of the task icon is used to move the task icon to the The target area in the synchronization task window, the second synchronization task corresponds to an application program, and the second synchronization task is a synchronization task used in the second device to synchronize to the first device.
  12. 根据权利要求11所述的装置,其中,所述同步任务生成模块还用于:The device according to claim 11, wherein the synchronous task generation module is also used for:
    在第一设备响应于对所述第一窗口中的任务图标的第二输入之后,第一设备判断所述任务图标对应的第二同步任务是否有更新;After the first device responds to the second input to the task icon in the first window, the first device determines whether the second synchronization task corresponding to the task icon has been updated;
    若是,则解析该任务图标对应的第二同步任务的第二同步任务数据,控制该第二同步任务对应的应用程序跳转到所述第二同步任务数据对应的任务断点;If so, analyze the second synchronization task data of the second synchronization task corresponding to the task icon, and control the application program corresponding to the second synchronization task to jump to the task breakpoint corresponding to the second synchronization task data;
    若否,则在第一窗口中删除该任务图标。If not, delete the task icon in the first window.
  13. 根据权利要求10-12任一项所述的装置,其中,所述同步任务生成模块还用于:The device according to any one of claims 10-12, wherein the synchronization task generation module is further configured to:
    在第一设备通信连接第二设备之后,第一设备检测第二设备是否存在第二同步任务;After the first device communicates with the second device, the first device detects whether there is a second synchronization task in the second device;
    若第一设备检测到所述第二设备存在第二同步任务,且所述第一设备不存在第一同步任务,则同步所述第二同步任务到第一设备;If the first device detects that the second device has a second synchronization task, and the first device does not have a first synchronization task, synchronizing the second synchronization task to the first device;
    若第一设备检测到所述第二设备存在第二同步任务,且所述第一设备存在第一同步任 务,则比对所述第二同步任务和所述第一同步任务的更新时间,确定最新的同步任务,同步所述最新的同步任务到第一设备;其中,所述第一同步任务与所述第二同步任务对应同一应用程序。If the first device detects that the second device has a second synchronization task, and the first device has a first synchronization task, then compare the update time of the second synchronization task with the first synchronization task, and determine The latest synchronization task, synchronizing the latest synchronization task to the first device; wherein, the first synchronization task and the second synchronization task correspond to the same application program.
  14. 一种任务同步装置,包括:A task synchronization device, comprising:
    同步任务接收模块,用于第二设备接收第一设备发送的第一同步任务数据,启动同步任务开启窗口,其中,每一所述第一同步任务数据对应一个第一同步任务,每一第一同步任务对应一个应用程序;The synchronization task receiving module is used for the second device to receive the first synchronization task data sent by the first device, and start the synchronization task opening window, wherein each of the first synchronization task data corresponds to a first synchronization task, and each first A synchronization task corresponds to an application;
    同步任务同步模块,用于第二设备响应于对同步任务开启窗口的操作,生成同步任务窗口,并确定第一设备的第一同步任务,以同步所述第一同步任务。The synchronization task synchronization module is used for the second device to generate a synchronization task window in response to the operation of opening a window for the synchronization task, and determine a first synchronization task of the first device, so as to synchronize the first synchronization task.
  15. 一种电子设备,包括处理器,存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述至少一个处理器执行时实现如权利要求1-6或权利要求7中任一项所述的任务同步方法的步骤。An electronic device, comprising a processor, a memory, and programs or instructions stored in the memory and operable on the processor, when the program or instructions are executed by the at least one processor, the invention as claimed in claim 1 -6 or the step of any one described task synchronization method in claim 7.
  16. 一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如权利要求1-7任一项所述的任务同步方法的步骤。A readable storage medium, storing programs or instructions on the readable storage medium, and implementing the steps of the task synchronization method according to any one of claims 1-7 when the programs or instructions are executed by a processor.
  17. 一种计算机程序产品,所述程序产品被存储在非易失的存储介质中,所述程序产品被至少一个处理器执行以实现如权利要求1-7任一项所述的任务同步方法的步骤。A computer program product, the program product is stored in a non-volatile storage medium, and the program product is executed by at least one processor to implement the steps of the task synchronization method according to any one of claims 1-7 .
  18. 一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如权利要求1-7任一项所述的任务同步方法的步骤。A chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, the processor is used to run programs or instructions, and realize task synchronization as described in any one of claims 1-7 method steps.
  19. 一种电子设备,用于执行如权利要求1-7任一项所述的任务同步方法的步骤。An electronic device, configured to execute the steps of the task synchronization method according to any one of claims 1-7.
PCT/CN2022/105219 2021-07-19 2022-07-12 Task synchronization method and apparatus, device, and readable storage medium WO2023001027A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110812329.8A CN113467661A (en) 2021-07-19 2021-07-19 Task synchronization method, device, equipment and readable storage medium
CN202110812329.8 2021-07-19

Publications (1)

Publication Number Publication Date
WO2023001027A1 true WO2023001027A1 (en) 2023-01-26

Family

ID=77881053

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/105219 WO2023001027A1 (en) 2021-07-19 2022-07-12 Task synchronization method and apparatus, device, and readable storage medium

Country Status (2)

Country Link
CN (1) CN113467661A (en)
WO (1) WO2023001027A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113467661A (en) * 2021-07-19 2021-10-01 维沃移动通信有限公司 Task synchronization method, device, equipment and readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107295097A (en) * 2017-07-17 2017-10-24 深圳市金立通信设备有限公司 Method of data synchronization, server and equipment
WO2019062182A1 (en) * 2017-09-30 2019-04-04 平安科技(深圳)有限公司 Data synchronization device and method, and computer readable storage medium
CN109597537A (en) * 2017-09-30 2019-04-09 腾讯科技(深圳)有限公司 File synchronisation method, device and equipment
CN109646940A (en) * 2018-12-19 2019-04-19 努比亚技术有限公司 Method, terminal and the computer readable storage medium of synchronization applications
CN111007995A (en) * 2019-11-20 2020-04-14 维沃移动通信有限公司 Data processing method and electronic equipment
CN113467661A (en) * 2021-07-19 2021-10-01 维沃移动通信有限公司 Task synchronization method, device, equipment and readable storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111309693A (en) * 2020-02-07 2020-06-19 北京奇艺世纪科技有限公司 Data synchronization method, device and system, electronic equipment and storage medium
CN112184168B (en) * 2020-09-29 2024-06-28 维沃移动通信(深圳)有限公司 Reminding task generation method and device and electronic equipment
CN112540709A (en) * 2020-12-21 2021-03-23 维沃移动通信有限公司 Split screen display method and device, electronic equipment and readable storage medium
CN113110894B (en) * 2021-03-08 2024-08-23 联想(北京)有限公司 Information processing method, electronic equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107295097A (en) * 2017-07-17 2017-10-24 深圳市金立通信设备有限公司 Method of data synchronization, server and equipment
WO2019062182A1 (en) * 2017-09-30 2019-04-04 平安科技(深圳)有限公司 Data synchronization device and method, and computer readable storage medium
CN109597537A (en) * 2017-09-30 2019-04-09 腾讯科技(深圳)有限公司 File synchronisation method, device and equipment
CN109646940A (en) * 2018-12-19 2019-04-19 努比亚技术有限公司 Method, terminal and the computer readable storage medium of synchronization applications
CN111007995A (en) * 2019-11-20 2020-04-14 维沃移动通信有限公司 Data processing method and electronic equipment
CN113467661A (en) * 2021-07-19 2021-10-01 维沃移动通信有限公司 Task synchronization method, device, equipment and readable storage medium

Also Published As

Publication number Publication date
CN113467661A (en) 2021-10-01

Similar Documents

Publication Publication Date Title
CN111061574B (en) Object sharing method and electronic device
WO2021036594A1 (en) Control method applied to screen projection scenario and related device
CN111913628B (en) Sharing method and device and electronic equipment
CN104967801B (en) A kind of video data handling procedure and device
WO2021213496A1 (en) Message display method and electronic device
CN104137048B (en) The opening example of application is provided
US11575636B2 (en) Method of managing processing progress of a message in a group communication interface and terminal
KR20220101676A (en) Application sharing method, electronic device and computer readable storage medium
WO2021213379A1 (en) Screen projection display method and system, terminal device, and storage medium
WO2021012931A1 (en) Icon management method and terminal
WO2022063022A1 (en) Video preview method and apparatus and electronic device
US20220300302A1 (en) Application sharing method and electronic device
WO2021147785A1 (en) Mind map display method and electronic device
CN111432265B (en) Method for processing video pictures, related device and storage medium
KR20220104236A (en) Synchronization methods and electronic devices
WO2021104160A1 (en) Editing method and electronic device
WO2019196691A1 (en) Keyboard interface display method and mobile terminal
WO2021109961A1 (en) Method for generating shortcut icon, electronic apparatus, and medium
WO2021004426A1 (en) Content selection method, and terminal
WO2023005920A1 (en) Screen splitting method and apparatus, and electronic device
WO2020001604A1 (en) Display method and terminal device
WO2020181956A1 (en) Method for displaying application identifier, and terminal apparatus
WO2016192518A1 (en) Method and device for interaction between terminals
WO2019076377A1 (en) Image viewing method and mobile terminal
KR20220158794A (en) Information presentation methods, electronic devices and storage media

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22845192

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 22845192

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 12.07.2024)