WO2024012346A1 - 任务迁移的方法、电子设备和系统 - Google Patents

任务迁移的方法、电子设备和系统 Download PDF

Info

Publication number
WO2024012346A1
WO2024012346A1 PCT/CN2023/106098 CN2023106098W WO2024012346A1 WO 2024012346 A1 WO2024012346 A1 WO 2024012346A1 CN 2023106098 W CN2023106098 W CN 2023106098W WO 2024012346 A1 WO2024012346 A1 WO 2024012346A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
message
message notification
notification
proxy
Prior art date
Application number
PCT/CN2023/106098
Other languages
English (en)
French (fr)
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 WO2024012346A1 publication Critical patent/WO2024012346A1/zh

Links

Classifications

    • 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/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
    • 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/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • 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/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1454Digital output to display device ; Cooperation and interconnection of the display device with other functional units involving copying of the display data of a local workstation or window to a remote workstation or window so that an actual copy of the data is displayed simultaneously on two or more displays, e.g. teledisplay
    • 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/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • 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/48Program initiating; Program switching, e.g. by interrupt
    • 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/54Interprogram communication
    • 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/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues

Definitions

  • Embodiments of the present application relate to the field of task migration, and more specifically, to a method, electronic device and system for task migration.
  • This application provides a method, electronic device and system for task migration.
  • the user when the user is using the second electronic device, the user can synchronously receive the message notification on the first electronic device, and can trigger the task migration process by clicking the corresponding proxy message notification on the second electronic device, which improves the user's Use experience.
  • a method for task migration includes: in response to displaying a message notification on a screen of a first electronic device, a second electronic device displays an agent message notification on the screen of the second electronic device, wherein the agent The message notification is generated according to the message notification and has a corresponding relationship with the message notification; in response to the user's operation of clicking the proxy message notification, the second electronic device displays the message notification corresponding to the first electronic device on the screen of the second electronic device.
  • Application APP page in response to displaying a message notification on a screen of a first electronic device, a second electronic device displays an agent message notification on the screen of the second electronic device, wherein the agent The message notification is generated according to the message notification and has a corresponding relationship with the message notification; in response to the user's operation of clicking the proxy message notification, the second electronic device displays the message notification corresponding to the first electronic device on the screen of the second electronic device.
  • Application APP page in response to displaying a message notification on a screen of a first electronic device, a second electronic device displays
  • first electronic device and the second electronic device are bound to each other and a communication connection is established.
  • the second electronic device in response to the user's operation of clicking the proxy message notification, sends a first request message to the first electronic device, the first request message being used to request to initiate a task migration with the first electronic device;
  • the second electronic device receives the task migration data sent by the first electronic device in response to the first request message;
  • the second electronic device displays the message notification on the screen of the second electronic device according to the task migration data.
  • the corresponding application APP page on the device is not limited to the user's operation of clicking the proxy message notification.
  • the task migration data includes descriptive data and control data.
  • the descriptive data includes data indicating the page corresponding to the APP that issued the message notification
  • the control data includes data indicating the coordinate position of the user's click. data.
  • the descriptive data may include data used to indicate the screen of the page corresponding to the APP that issued the message notification, data used to indicate the name of the APP, data used to indicate the icon of the APP, data used to indicate the APP version data, etc.
  • the second electronic device when the user is using the second electronic device, if the APP on the first electronic device sends a message notification, the second electronic device can receive the message notification synchronously (proxy message notification), and the user can By clicking on the message notification on the second electronic device, the task migration between the second electronic device and the first electronic device is triggered, so that the APP page corresponding to the message notification is displayed on the screen of the second electronic device, and it is further possible to realize the task migration on the second electronic device.
  • This message informs further processing. In this way, the user can not only view message notifications on other devices in a timely manner, but also use the proxy message notification as an entry point to initiate a task migration process, thereby improving the user experience.
  • the electronic device being used sends a request message to the electronic device that issued the message notification. Based on the request message, the task migration process starts between the two electronic devices, so that , the task migration process is initiated based on the request message, which can make the device subject for task migration more accurate and avoid unreasonable task migration between devices.
  • the second electronic device in response to the user's operation of clicking the proxy message notification, displays the message notification on the screen of the second electronic device on the first electronic device.
  • the method also includes: the second electronic device determines whether the object clicked by the user is the agent message notification; when the second electronic device determines that the object clicked by the user is the agent message notification, the second electronic device It is further determined that the proxy message notification originates from the first electronic device.
  • the source device of the proxy message notification is further determined. In this way, task migration between devices initiated due to misidentification of the device can be avoided, and migration can be improved.
  • the safety performance of the process further enhances the user experience.
  • the second electronic device displays the proxy message notification on the screen of the second electronic device, including: the second electronic device receives the first notification message sent by the first electronic device, The first notification message includes first data, wherein the first indication information is used to indicate that there is a proxy message notification; the second electronic device displays the proxy message notification on the screen of the second electronic device according to the first notification message.
  • the first notification message also includes first indication information, and the first indication information is used to indicate that there is a proxy message notification.
  • an electronic device when an electronic device receives a message notification, it synchronously displays the message notification on other electronic devices bound to it and in an online state, which can realize synchronization of message notifications between multiple electronic devices, allowing users to Being able to receive timely message notifications from other electronic devices that are bound to the currently used electronic device and are online improves the user experience.
  • the second electronic device displays a proxy message notification on the screen of the second electronic device according to the first notification message, including: the second electronic device creates a proxy according to the first notification message message notification; the second electronic device generates a second notification message according to the proxy message notification; the second electronic device displays the proxy message notification on the screen of the second electronic device according to the second notification message.
  • the display form of the agent message notification and the display form of the message notification may be different.
  • the display form of the agent message notification may also be a notification bar message notification, Floating message notifications, etc.
  • the display form of the proxy message notification and the message notification may be related to the user's current use of the electronic device.
  • the message notification/proxy message notification of the electronic device is preferably in the form of Displayed in the notification bar.
  • the second electronic device creates a proxy message notification based on the received first notification message.
  • the content of the proxy message notification is the same as the content of the message notification, but its presentation form may be different. Further, its presentation form may be Automatically adapt to the specific usage status of the corresponding electronic device.
  • the display form of the message notification/agent message notification of the electronic device is preferably in the form of a notification bar, so as to avoid disturbing the user's viewing experience as much as possible. The impact can further enhance the user experience.
  • the method further includes: in response to the user's operation of clicking the proxy message notification, the second electronic device stops displaying the proxy message notification.
  • the second electronic device stops displaying the proxy message notification.
  • the specific implementation may be: the second electronic device receives a second deletion message sent by the first electronic device, and the second deletion message is used to notify the second electronic device to stop Display the proxy message notification; in response to the second deletion message, the second electronic device stops displaying the proxy message notification.
  • the message notification or proxy message notification displayed on other devices can be cleared in time to avoid unnecessary annoyance to the user and further improve the user experience.
  • a method for task migration includes: a first electronic device displays a message notification on the screen of the first electronic device, and triggers display of an agent message notification on the screen of the second electronic device.
  • the agent The message notification is generated based on the message notification and has a corresponding relationship with the message notification; in response to the user's operation of clicking the proxy message notification displayed on the screen of the second electronic device, the first electronic device creates the message notification on the first electronic device.
  • the corresponding application APP page on the device is used by the second electronic device to display on the screen of the second electronic device.
  • the first electronic device and the second electronic device are bound to each other and a communication connection is established.
  • the content of the agent message notification is the same as the content of the message notification.
  • the second electronic device when the user is using the second electronic device, if the APP on the first electronic device sends a message notification, the second electronic device can receive the message notification synchronously (proxy message notification), and the user can By clicking on the message notification on the second electronic device, the task migration between the second electronic device and the first electronic device is triggered, so that the APP page corresponding to the message notification is displayed on the screen of the second electronic device, and it is further possible to realize the task migration on the second electronic device.
  • This message informs further processing. In this way, the user can not only view message notifications on other devices in a timely manner, but also use the proxy message notification as an entry point to initiate a task migration process, thereby improving the user experience.
  • the method further includes: the first electronic device receiving a first request message sent by the second electronic device, the first request message being the second electronic device's response to the user clicking on the first Agent displayed on the screen of two electronic devices Sent by the operation of message notification, the first request message is used to request to initiate task migration with the first electronic device, wherein the agent message notification is generated according to the message notification and has a corresponding relationship with the message notification; in response to the first Request message: the first electronic device sends task migration data to the second electronic device.
  • the task migration data is used by the second electronic device to display a message on the screen of the second electronic device to notify the corresponding application program APP on the first electronic device. page.
  • the task migration data includes descriptive data and control data.
  • the descriptive data includes data indicating the page corresponding to the APP that issued the message notification
  • the control data includes data indicating the coordinates of the user's click. Location data.
  • the descriptive data may include data used to indicate the screen of the page corresponding to the APP that issued the message notification, data used to indicate the name of the APP, data used to indicate the icon of the APP, data used to indicate the APP version data, etc.
  • the second electronic device when the user is using the second electronic device, if the APP on the first electronic device sends a message notification, the second electronic device can receive the message notification synchronously (proxy message notification), and the user can By clicking on the message notification on the second electronic device, the task migration between the second electronic device and the first electronic device is triggered, so that the APP page corresponding to the message notification is displayed on the screen of the second electronic device, and it is further possible to realize the task migration on the second electronic device.
  • This message informs further processing. In this way, the user can not only view message notifications on other devices in a timely manner, but also use the proxy message notification as an entry point to initiate a task migration process, thereby improving the user experience.
  • the method further includes: in response to the first electronic device displaying a message notification on the screen of the first electronic device, the first electronic device sends the first notification to the second electronic device message, the first notification message is used by the second electronic device to display the proxy message notification on the screen of the second electronic device, the first notification message includes first data, wherein the first data is related to the proxy message notification data.
  • the first notification message includes first indication information, and the first indication information is used to indicate that there is a proxy message notification.
  • the above-mentioned first notification message is used by the second electronic device to display the agent message notification on the screen of the second electronic device.
  • an electronic device when an electronic device receives a message notification, it synchronously displays the message notification on other electronic devices bound to it and in an online state, which can realize synchronization of message notifications between multiple electronic devices, allowing users to Being able to receive timely message notifications from other electronic devices that are bound to the currently used electronic device and are online improves the user experience.
  • the method further includes: in response to the first request message, the first electronic device stops displaying the message notification.
  • the first electronic device stops displaying the message notification.
  • the message notification displayed on the device that issued the message notification can be cleared in time to avoid unnecessary annoyance to the user and further improve the user experience.
  • the method further includes: in response to the first request message, the first electronic device sends a second deletion message to the second electronic device, the second deletion message being used to notify the second The electronic device stopped showing agent message notifications.
  • the first electronic device in response to the user's operation of clicking the proxy message notification, sends a second deletion message to the second electronic device, and the second deletion message is used to notify the second electronic device to stop displaying the proxy message notification.
  • the proxy message notification displayed on other devices can be cleared in time to avoid unnecessary annoyance to the user and further improve the user experience.
  • the method before the first electronic device sends the task migration data to the second electronic device, the method further includes: when the above-mentioned APP is in an open state on the first electronic device, the first The electronic device controls the APP to jump to the APP page corresponding to the message notification and displays the APP page.
  • the method before the first electronic device sends the task migration data to the second electronic device, the method further includes: when the above APP is not open on the first electronic device, the first The electronic device opens the APP and jumps to the APP page corresponding to the message notification.
  • the fact that electronic device A is in an open state means that the corresponding operation interface of the APP is being displayed on the display screen of electronic device A.
  • electronic device A is not in an open state means: the corresponding operation interface of the APP is not displayed on the display screen of electronic device A. More specifically, it may mean that the APP is running in the background, or it may mean that the APP is closed and not running.
  • the first electronic device controls the APP to jump to the APP page specified/corresponding to the message notification, and further displays the APP on the second electronic device.
  • the APP page enables the user to perform further operations on the agent message notification on the second electronic device.
  • an electronic device is provided.
  • the electronic device is a second electronic device.
  • the electronic device includes: a second system user interface.
  • a surface module configured to display a proxy message notification on the screen of the first electronic device in response to the message notification being displayed on the screen of the first electronic device.
  • the proxy message notification is generated based on the message notification and has a corresponding relationship with the message notification;
  • the task migration module is configured to display the application APP page corresponding to the message notification on the first electronic device on the screen of the electronic device in response to the user's operation of clicking the proxy message notification.
  • first electronic device and the electronic device are bound to each other, and a communication connection is established.
  • the second task migration module is specifically configured to: in response to the user's operation of clicking on the proxy message notification, send a first request message to the first electronic device, where the first request message is used for request initiation and the first electronic device. task migration; receiving task migration data sent by the first electronic device in response to the first request message; displaying the message on the screen of the second electronic device according to the task migration data to notify the corresponding application on the first electronic device Program APP page.
  • the display form of the agent message notification and the display form of the message notification may be different.
  • the display form of the agent message notification may also be a notification bar message notification, Floating message notifications, etc.
  • the display form of the proxy message notification and the message notification may be related to the user's current use of the electronic device.
  • the message notification/proxy message notification of the electronic device is preferably in the form of Displayed in the notification bar.
  • the task migration data includes descriptive data and control data.
  • the descriptive data includes data indicating the page corresponding to the APP that issued the message notification
  • the control data includes data indicating the coordinates of the user's click. Location data.
  • the descriptive data may include data used to indicate the screen of the page corresponding to the APP that issued the message notification, data used to indicate the name of the APP, data used to indicate the icon of the APP, data used to indicate the APP version data, etc.
  • the electronic device when the user is using an electronic device, if the APP on the first electronic device sends a message notification, the electronic device can receive the message notification (agent message notification) synchronously, and the user can click the The message notification on the electronic device triggers task migration with the first electronic device, so that the APP page corresponding to the message notification is displayed on the screen of the electronic device, further enabling further processing of the message notification on the electronic device. .
  • the user can not only view message notifications on other devices in a timely manner, but also use the proxy message notification as an entry point to initiate a task migration process, thereby improving the user experience.
  • the electronic device being used sends a request message to the electronic device that issued the message notification. Based on the request message, the task migration process starts between the two electronic devices, so that , the task migration process is initiated based on the request message, which can make the device subject for task migration more accurate and avoid unreasonable task migration between devices.
  • the electronic device further includes: a determination module, configured to determine whether the object clicked by the user is a proxy message notification before responding to the operation of the user clicking on the proxy message notification; and further using When it is determined that the object clicked by the user is a proxy message notification, it is further determined that the proxy message notification originates from the first electronic device.
  • a determination module configured to determine whether the object clicked by the user is a proxy message notification before responding to the operation of the user clicking on the proxy message notification; and further using When it is determined that the object clicked by the user is a proxy message notification, it is further determined that the proxy message notification originates from the first electronic device.
  • the proxy message when the user clicks on a proxy message to trigger task migration between devices, it is first determined whether the object clicked by the user is a proxy message notification. When it is determined that the clicked object is a proxy message notification, the proxy message is further determined.
  • the source device of the notification can avoid task migration between devices due to misidentification of the device, improve the security performance of the migration process, and further enhance the user experience.
  • the second task migration module is further specifically configured to: receive a first notification message sent by the first electronic device, where the first notification message includes first data, wherein the first The data is data related to the agent message notification; the second system user interface module is specifically configured to: display the agent message notification on the screen of the electronic device according to the first notification message.
  • the first notification message also includes first indication information, and the first indication information is used to indicate that there is a proxy message notification.
  • an electronic device when an electronic device receives a message notification, it synchronously displays the message notification on other electronic devices bound to it and in an online state, which can realize synchronization of message notifications between multiple electronic devices, allowing users to Being able to receive timely message notifications from other electronic devices that are bound to the currently used electronic device and are online improves the user experience.
  • the second task migration module is further configured to: create a proxy message notification according to the first notification message;
  • the electronic device further includes: a second notification management module, configured to create a proxy message notification according to the first notification message.
  • the proxy message notification generates a second notification message;
  • the second system user interface module is specifically configured to: display the proxy message notification on the screen of the electronic device according to the second notification message.
  • the display form of the agent message notification and the display form of the message notification may be different.
  • the display form of the agent message notification may also be a notification bar message notification, Floating message notifications, etc.
  • the agent message notification and the display form of the message notification can be related to the user's current use of the electronic device, for example, If the user is currently using the video function of the electronic device, then the message notification/agent message notification of the electronic device is preferably displayed in the form of a notification bar.
  • the electronic device creates a proxy message notification based on the received first notification message.
  • the content of the proxy message notification is the same as the content of the message notification, but its presentation form may be different. Furthermore, its presentation form may be automatically adapted.
  • the display form of the message notification/agent message notification of the electronic device is preferably in the form of a notification bar, so as to avoid affecting the user's viewing experience as much as possible. , which can further enhance the user experience.
  • the second system user interface is also configured to: in response to the user clicking on the proxy message notification, stop displaying the proxy message notification.
  • the second system user interface is also specifically configured to: receive a second deletion message sent by the first electronic device, the second deletion message being used to notify the electronic device to stop displaying the proxy message notification; and respond to the second deletion message. , stops displaying agent message notifications.
  • the message notification or proxy message notification displayed on other devices can be cleared in time to avoid unnecessary annoyance to the user and further improve the user experience.
  • an electronic device is provided.
  • the electronic device is a first electronic device.
  • the electronic device includes: a first system user interface module for displaying a message notification on the screen of the electronic device and triggering a notification on the second electronic device.
  • a proxy message notification is displayed on the screen of the device, and the proxy message notification is generated based on the message notification and has a corresponding relationship with the message notification; the application APP is used to respond to the user clicking on the proxy message notification displayed on the screen of the second electronic device.
  • Operation create the message notification corresponding application APP page on the first electronic device, and the APP page is used by the second electronic device to display on the screen of the second electronic device.
  • the electronic device and the first electronic device are bound to each other, and a communication connection is established.
  • the content of the agent message notification is the same as the content of the message notification.
  • the second electronic device when the user is using the second electronic device, if the APP on the first electronic device sends a message notification, the second electronic device can receive the message notification synchronously (proxy message notification), and the user can By clicking on the message notification on the second electronic device, the task migration between the second electronic device and the first electronic device is triggered, so that the APP page corresponding to the message notification is displayed on the screen of the second electronic device, and it is further possible to realize the task migration on the second electronic device.
  • This message informs further processing. In this way, the user can not only view message notifications on other devices in a timely manner, but also use the proxy message notification as an entry point to initiate a task migration process, thereby improving the user experience.
  • the electronic device further includes: a first task migration module, configured to receive a first request message sent by the second electronic device, where the first request message is The first request message is sent in response to the user clicking on the proxy message notification displayed on the screen of the second electronic device.
  • the first request message is used to request the initiation of task migration with the electronic device.
  • the content of the proxy message notification is the same as the above.
  • the content of the message notification is the same;
  • the first task migration module is also configured to respond to the first request message and send task migration data to the second electronic device.
  • the task migration data is used by the second electronic device to display on the screen of the second electronic device.
  • the message notification is displayed on the corresponding application APP page on the electronic device.
  • the task migration data includes descriptive data and control data.
  • the descriptive data includes data indicating the page corresponding to the APP that issued the message notification
  • the control data includes data indicating the coordinates of the user's click. Location data.
  • the descriptive data may include data used to indicate the screen of the page corresponding to the APP that issued the message notification, data used to indicate the name of the APP, data used to indicate the icon of the APP, data used to indicate the APP version data, etc.
  • the display form of the agent message notification and the display form of the message notification may be different.
  • the display form of the agent message notification may also be a notification bar message notification, Floating message notifications, etc.
  • the display form of the proxy message notification and the message notification may be related to the user's current use of the electronic device.
  • the message notification/proxy message notification of the electronic device is preferably in the form of Displayed in the notification bar.
  • the second electronic device when the user is using the second electronic device, if the APP on another electronic device sends a message notification, the second electronic device can simultaneously receive the message notification (proxy message notification), and the user can By clicking the message notification on the second electronic device, the task migration between the electronic device and the second electronic device is triggered, so that the APP page corresponding to the message notification is displayed on the screen of the second electronic device, further enabling the application of the message notification on the second electronic device. Further processing of message notifications. In this way, the user can not only view message notifications on other devices in a timely manner, but also use the proxy message notification as an entry point to initiate a task migration process, thereby improving the user experience.
  • the first task migration module is further configured to: in response to the electronic device displaying a message notification on the screen of the electronic device, send the first notification message to the second electronic device,
  • the first notification message is used by the second electronic device to display the proxy message notification on the screen of the second electronic device.
  • the first notification message includes first data, wherein the first data is related to the proxy message. Notification related data.
  • the first notification message includes first indication information, and the first indication information is used to indicate that there is a proxy message notification.
  • an electronic device when an electronic device receives a message notification, it synchronously displays the message notification on other electronic devices bound to it and in an online state, which can realize synchronization of message notifications between multiple electronic devices, allowing users to Being able to receive timely message notifications from other electronic devices that are bound to the currently used electronic device and are online improves the user experience.
  • the first system user interface module is further configured to: stop displaying message notifications in response to the first request message.
  • the first system user interface module is also used to: stop displaying the message notification in response to the user clicking on the agent message notification.
  • the message notification displayed on the device that issued the message notification can be cleared in time to avoid unnecessary annoyance to the user and further improve the user experience.
  • the first task migration module is further configured to: in response to the first request message, send a second deletion message to the second electronic device, the second deletion message being used to notify The second electronic device stops displaying proxy message notifications.
  • the first task migration module is also configured to: in response to the user's operation of clicking the agent message notification, send a second deletion message to the second electronic device, the second deletion message is used to notify the second electronic device to stop Display agent message notifications.
  • the proxy message notification displayed on other devices can be cleared in time to avoid unnecessary annoyance to the user and further improve the user experience.
  • a fifth aspect provides an electronic device, which includes a memory and a processor, wherein the memory is used to store computer program code, and the processor is used to execute the computer program code stored in the memory to implement the first aspect or the third aspect.
  • a sixth aspect provides an electronic device, which includes a memory and a processor, wherein the memory is used to store computer program code, and the processor is used to execute the computer program code stored in the memory to implement the above second aspect or the third aspect. Methods in any of the two possible implementation methods.
  • a seventh aspect provides a system for task migration, which system includes: one or more electronic devices as described in the fifth aspect, and one or more electronic devices as described in the sixth aspect.
  • An eighth aspect provides a chip in which instructions are stored, which when run on a device causes the chip to execute the method in the above first aspect or any of the possible implementations of the first aspect, or to cause The chip performs the method in the above second aspect or any possible implementation manner of the second aspect.
  • a computer-readable storage medium In a ninth aspect, a computer-readable storage medium is provided. Computer programs or instructions are stored in the computer-readable storage medium. When the computer program or instructions are executed, the first aspect or any one of the first aspects is implemented. A method in a possible implementation manner, or a method in any of the above second aspects or any possible implementation manner of the second aspect.
  • a computer program product is provided.
  • the computer program product When the computer program product is run on an electronic device, it causes the electronic device to execute the method in the first aspect or any of the possible implementations of the first aspect, or causes the electronic device to execute The device performs the method in the above second aspect or any possible implementation manner of the second aspect.
  • Figure 1 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • Figure 2 is a software structure block diagram of an electronic device provided by an embodiment of the present application.
  • Figure 3 is an operation interface diagram for task migration between existing electronic devices provided by an embodiment of the present application.
  • Figure 4 is an interface display diagram for task migration between electronic devices provided by an embodiment of the present application.
  • Figure 5 is a schematic interface diagram of yet another task migration between electronic devices provided by an embodiment of the present application.
  • Figure 6 is a schematic flow chart of a task migration method provided by an embodiment of the present application.
  • Figure 7 is an information interaction diagram for realizing message notification synchronization between multiple electronic devices according to an embodiment of the present application.
  • Figure 8 is an information interaction diagram for realizing task migration between electronic devices provided by an embodiment of the present application.
  • Figure 9 is an information interaction diagram corresponding to a method for clearing message notifications provided by an embodiment of the present application.
  • FIG. 10 is a schematic functional module diagram of a system for realizing task migration between devices provided by an embodiment of the present application.
  • first and second are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the quantity of indicated technical features. Therefore, features defined as “first” and “second” may explicitly or implicitly include one or more of these features. In the description of this embodiment, unless otherwise specified, “plurality” means two or more.
  • the methods provided by the embodiments of this application can be applied to mobile phones, tablet computers, wearable devices, vehicle-mounted devices, augmented reality (AR)/virtual reality (VR) devices, notebook computers, ultra mobile personal computers (ultra -Mobile personal computer (UMPC), netbook, personal digital assistant (personal digital assistant, PDA) and other electronic devices, the embodiments of this application do not place any restrictions on the specific types of electronic devices.
  • AR augmented reality
  • VR virtual reality
  • UMPC ultra mobile personal computers
  • PDA personal digital assistant
  • FIG. 1 shows a schematic structural diagram of an electronic device 100 .
  • the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2 , mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone interface 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, and Subscriber identification module (SIM) card interface 195, etc.
  • SIM Subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light. Sensor 180L, bone conduction sensor 180M, etc.
  • the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100 .
  • the electronic device 100 may include more or fewer components than shown in the figures, or some components may be combined, some components may be separated, or some components may be arranged differently.
  • the components illustrated may be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units.
  • the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU) wait.
  • application processor application processor, AP
  • modem processor graphics processing unit
  • GPU graphics processing unit
  • image signal processor image signal processor
  • ISP image signal processor
  • controller memory
  • video codec digital signal processor
  • DSP digital signal processor
  • baseband processor baseband processor
  • NPU neural-network processing unit
  • different processing units can be independent devices or integrated in one or more processors.
  • the controller may be the nerve center and command center of the electronic device 100 .
  • the controller can generate operation control signals based on the instruction operation code and timing signals to complete the control of fetching and executing instructions.
  • the processor 110 may also be provided with a memory for storing instructions and data.
  • the memory in processor 110 is cache memory. This memory may hold instructions or data that have been recently used or recycled by processor 110 . If the processor 110 needs to use the instructions or data again, it can be called directly from the memory. Repeated access is avoided and the waiting time of the processor 110 is reduced, thus improving the efficiency of the system.
  • processor 110 may include one or more interfaces.
  • Interfaces may include integrated circuit (inter-integrated circuit, I2C) interface, integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, pulse code modulation (pulse code modulation, PCM) interface, universal asynchronous receiver and transmitter (universal asynchronous receiver/transmitter (UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and /or universal serial bus (USB) interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • UART universal asynchronous receiver and transmitter
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB universal serial bus
  • the I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock Line (derail clock line, SCL).
  • processor 110 may include multiple sets of I2C buses.
  • the processor 110 can separately couple the touch sensor 180K, charger, flash, camera 193, etc. through different I2C bus interfaces.
  • the processor 110 can be coupled to the touch sensor 180K through an I2C interface, so that the processor 110 and the touch sensor 180K communicate through the I2C bus interface to implement the touch function of the electronic device 100 .
  • the I2S interface can be used for audio communication.
  • processor 110 may include multiple sets of I2S buses.
  • the processor 110 can be coupled with the audio module 170 through the I2S bus to implement communication between the processor 110 and the audio module 170 .
  • the audio module 170 can transmit audio signals to the wireless communication module 160 through the I2S interface to implement the function of answering calls through a Bluetooth headset.
  • the PCM interface can also be used for audio communications to sample, quantize and encode analog signals.
  • the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface.
  • the audio module 170 can also transmit audio signals to the wireless communication module 160 through the PCM interface to implement the function of answering calls through a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
  • the UART interface is a universal serial data bus used for asynchronous communication.
  • the bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication.
  • a UART interface is generally used to connect the processor 110 and the wireless communication module 160 .
  • the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function.
  • the audio module 170 can transmit audio signals to the wireless communication module 160 through the UART interface to implement the function of playing music through a Bluetooth headset.
  • the MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193 .
  • MIPI interfaces include camera serial interface (CSI), display serial interface (DSI), etc.
  • the processor 110 and the camera 193 communicate through the CSI interface to implement the shooting function of the electronic device 100 .
  • the processor 110 and the display screen 194 communicate through the DSI interface to implement the display function of the electronic device 100 .
  • the GPIO interface can be configured through software.
  • the GPIO interface can be configured as a control signal or as a data signal.
  • the GPIO interface can be used to connect the processor 110 with the camera 193, display screen 194, wireless communication module 160, audio module 170, sensor module 180, etc.
  • the GPIO interface can also be configured as an I2C interface, I2S interface, UART interface, MIPI interface, etc.
  • the USB interface 130 is an interface that complies with the USB standard specification, and may be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc.
  • the USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transmit data between the electronic device 100 and peripheral devices. It can also be used to connect headphones to play audio through them. This interface can also be used to connect other electronic devices, such as AR devices, etc.
  • the interface connection relationships between the modules illustrated in the embodiments of the present application are only schematic illustrations and do not constitute a structural limitation of the electronic device 100 .
  • the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
  • the charging management module 140 is used to receive charging input from the charger.
  • the charger can be a wireless charger or a wired charger.
  • the charging management module 140 may receive charging input from the wired charger through the USB interface 130 .
  • the charging management module 140 may receive wireless charging input through the wireless charging coil of the electronic device 100 . While the charging management module 140 charges the battery 142, it can also provide power to the electronic device through the power management module 141.
  • the power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110.
  • the power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, internal memory 121, external memory, display screen 194, camera 193, wireless communication module 160, etc.
  • the power management module 141 can also be used to monitor battery capacity, battery cycle times, battery health status (leakage, impedance) and other parameters.
  • the power management module 141 may also be provided in the processor 110 .
  • the power management module 141 and the charging management module 140 may also be provided in the same device.
  • the wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in electronic device 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example: Antenna 1 can be reused as a diversity antenna for a wireless LAN. In other embodiments, antennas may be used in conjunction with tuning switches.
  • the mobile communication module 150 can provide solutions for wireless communication including 2G/3G/4G/5G applied on the electronic device 100 .
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc.
  • the mobile communication module 150 can receive electromagnetic waves through the antenna 1, perform filtering, amplification and other processing on the received electromagnetic waves, and transmit them to the modem processor for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves through the antenna 1 for radiation.
  • at least part of the functional modules of the mobile communication module 150 may be disposed in the processor 110 .
  • at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be provided in the same device.
  • a modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal.
  • the demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the application processor outputs sound signals through audio devices (not limited to speaker 170A, receiver 170B, etc.), or displays images or videos through display screen 194.
  • the modem processor may be a stand-alone device.
  • the modem processor may be independent of the processor 110 and may be provided in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), Bluetooth (bluetooth, BT), and global navigation satellites.
  • WLAN wireless local area networks
  • System global navigation satellite system, GNSS
  • frequency modulation frequency modulation, FM
  • near field communication technology near field communication, NFC
  • infrared technology infrared, IR
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
  • the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc.
  • the GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (quasi) -zenith satellite system (QZSS) and/or satellite based augmentation systems (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite based augmentation systems
  • the electronic device 100 implements display functions through a GPU, a display screen 194, an application processor, and the like.
  • the GPU is an image processing microprocessor and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
  • the display screen 194 is used to display images, videos, etc.
  • Display 194 includes a display panel.
  • the display panel can use a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode (active-matrix organic light emitting diode).
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • AMOLED organic light-emitting diode
  • FLED flexible light-emitting diode
  • Miniled MicroLed, Micro-oLed, quantum dot light emitting diode (QLED), etc.
  • the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
  • the electronic device 100 can implement the shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
  • the ISP is used to process the data fed back by the camera 193. For example, when taking a photo, the shutter is opened, the light is transmitted to the camera sensor through the lens, the optical signal is converted into an electrical signal, and the camera sensor passes the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP may be provided in the camera 193.
  • Camera 193 is used to capture still images or video.
  • the object passes through the lens to produce an optical image that is projected onto the photosensitive element.
  • the photosensitive element can be a charge coupled device (CCD) or a complementary metal oxide semiconductor (CCD). metal-oxide-semiconductor, CMOS) phototransistor.
  • CCD charge coupled device
  • CCD complementary metal oxide semiconductor
  • CMOS metal-oxide-semiconductor
  • the photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to convert it into a digital image signal.
  • ISP outputs digital image signals to DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other format image signals.
  • the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
  • Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
  • Video codecs are used to compress or decompress digital video.
  • Electronic device 100 may support one or more video codecs. In this way, the electronic device 100 can play or record videos in multiple encoding formats, such as moving picture experts group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
  • MPEG moving picture experts group
  • MPEG2 MPEG2, MPEG3, MPEG4, etc.
  • NPU is a neural network (NN) computing processor.
  • NN neural network
  • Intelligent cognitive applications of the electronic device 100 can be implemented through the NPU, such as image recognition, face recognition, speech recognition, text understanding, etc.
  • the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100.
  • the external memory card communicates with the processor 110 through the external memory interface 120 to implement the data storage function. Such as saving music, videos, etc. files in external memory card.
  • Internal memory 121 may be used to store computer executable program code, which includes instructions.
  • the processor 110 executes instructions stored in the internal memory 121 to execute various functional applications and data processing of the electronic device 100 .
  • the internal memory 121 may include a program storage area and a data storage area. Among them, the stored program area can store an operating system, at least one App required for a function (such as a sound playback function, an image playback function, etc.), etc.
  • the storage data area may store data created during use of the electronic device 100 (such as audio data, phone book, etc.).
  • the internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc.
  • the electronic device 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D, and the application processor. Such as music playback, recording, etc.
  • the audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. Audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be provided in the processor 110 , or some functional modules of the audio module 170 may be provided in the processor 110 .
  • Speaker 170A also called “speaker” is used to convert audio electrical signals into sound signals.
  • the electronic device 100 can listen to music through the speaker 170A, or listen to hands-free calls.
  • Receiver 170B also called “earpiece” is used to convert audio electrical signals into sound signals.
  • the electronic device 100 answers a call or a voice message, the voice can be heard by bringing the receiver 170B close to the human ear.
  • Microphone 170C also called “microphone” or “microphone” is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak close to the microphone 170C with the human mouth and input the sound signal to the microphone 170C.
  • the electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C, which in addition to collecting sound signals, may also implement a noise reduction function. In other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and implement directional recording functions, etc.
  • the headphone interface 170D is used to connect wired headphones.
  • the headphone interface 170D may be a USB interface 130, or may be a 3.5mm open mobile terminal platform (OMTP) standard interface, or a Cellular Telecommunications Industry Association of the USA (CTIA) standard interface.
  • OMTP open mobile terminal platform
  • CTIA Cellular Telecommunications Industry Association of the USA
  • the pressure sensor 180A is used to sense pressure signals and can convert the pressure signals into electrical signals.
  • pressure sensor 180A may be disposed on display screen 194 .
  • pressure sensors 180A there are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc.
  • a capacitive pressure sensor may include at least two parallel plates of conductive material.
  • the electronic device 100 determines the intensity of the pressure based on the change in capacitance.
  • the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A.
  • the electronic device 100 may also calculate the touched position based on the detection signal of the pressure sensor 180A.
  • touch operations acting on the same touch location but with different touch operation intensities may correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold is applied to the short message application icon, an instruction to view the short message is executed. When there is a touch operation intensity greater than or equal to the first When the touch operation of the pressure threshold is applied to the short message application icon, the instruction to create a new short message is executed.
  • the gyro sensor 180B may be used to determine the motion posture of the electronic device 100 .
  • the angular velocity of electronic device 100 about three axes ie, x, y, and z axes
  • the gyro sensor 180B can be used for image stabilization. For example, when the shutter is pressed, the gyro sensor 180B detects the angle at which the electronic device 100 shakes, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shake of the electronic device 100 through reverse movement to achieve anti-shake.
  • the gyro sensor 180B can also be used for navigation and somatosensory game scenes.
  • Air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
  • Magnetic sensor 180D includes a Hall sensor.
  • the electronic device 100 may utilize the magnetic sensor 180D to detect opening and closing of the flip holster.
  • the electronic device 100 may detect the opening and closing of the flip according to the magnetic sensor 180D. Then, based on the detected opening and closing status of the leather case or the opening and closing status of the flip cover, features such as automatic unlocking of the flip cover are set.
  • the acceleration sensor 180E can detect the acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of electronic devices and be used in horizontal and vertical screen switching, pedometer and other applications.
  • Distance sensor 180F for measuring distance.
  • Electronic device 100 can measure distance via infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 may utilize the distance sensor 180F to measure distance to achieve fast focusing.
  • Proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode.
  • the light emitting diode may be an infrared light emitting diode.
  • the electronic device 100 emits infrared light outwardly through the light emitting diode.
  • Electronic device 100 uses photodiodes to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100 . When insufficient reflected light is detected, the electronic device 100 may determine that there is no object near the electronic device 100 .
  • the electronic device 100 can use the proximity light sensor 180G to detect when the user holds the electronic device 100 close to the ear for talking, so as to automatically turn off the screen to save power.
  • the proximity light sensor 180G can also be used in holster mode, and pocket mode automatically unlocks and locks the screen.
  • the ambient light sensor 180L is used to sense ambient light brightness.
  • the electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness.
  • the ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures.
  • the ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in the pocket to prevent accidental touching.
  • Fingerprint sensor 180H is used to collect fingerprints.
  • the electronic device 100 can use the collected fingerprint characteristics to achieve fingerprint unlocking, access to application locks, fingerprint photography, fingerprint answering of incoming calls, etc.
  • Temperature sensor 180J is used to detect temperature.
  • the electronic device 100 utilizes the temperature detected by the temperature sensor 180J to execute the temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 100 reduces the performance of a processor located near the temperature sensor 180J in order to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to prevent the low temperature from causing the electronic device 100 to shut down abnormally. In some other embodiments, when the temperature is lower than another threshold, the electronic device 100 performs boosting on the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
  • Touch sensor 180K also called “touch panel”.
  • the touch sensor 180K can be disposed on the display screen 194.
  • the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen”.
  • the touch sensor 180K is used to detect a touch operation on or near the touch sensor 180K.
  • the touch sensor can pass the detected touch operation to the application processor to determine the touch event type.
  • Visual output related to the touch operation may be provided through display screen 194 .
  • the touch sensor 180K may also be disposed on the surface of the electronic device 100 at a location different from that of the display screen 194 .
  • Bone conduction sensor 180M can acquire vibration signals.
  • the bone conduction sensor 180M can acquire the vibration signal of the vibrating bone mass of the human body's vocal part.
  • the bone conduction sensor 180M can also contact the human body's pulse and receive blood pressure beating signals.
  • the bone conduction sensor 180M can also be provided in an earphone and combined into a bone conduction earphone.
  • the audio module 170 can analyze the voice signal based on the vibration signal of the vocal vibrating bone obtained by the bone conduction sensor 180M to implement the voice function.
  • the application processor can analyze the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 180M to implement the heart rate detection function.
  • the buttons 190 include a power button, a volume button, etc.
  • Key 190 may be a mechanical key. It can also be a touch button.
  • the electronic device 100 may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 100 .
  • the motor 191 can generate vibration prompts.
  • the motor 191 can be used for vibration prompts for incoming calls and can also be used for touch vibration feedback.
  • touch operations for different applications can correspond to different vibration feedback effects.
  • the motor 191 can also respond to different vibration feedback effects for touch operations in different areas of the display screen 194 .
  • Different application scenarios for example: time Reminders, receiving messages, alarm clocks, games, etc.
  • the touch vibration feedback effect can also be customized.
  • the indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, or may be used to indicate messages, missed calls, notifications, etc.
  • the SIM card interface 195 is used to connect a SIM card.
  • the SIM card can be connected to or separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195 .
  • the electronic device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1.
  • SIM card interface 195 can support Nano SIM card, Micro SIM card, SIM card, etc. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the plurality of cards may be the same or different.
  • the SIM card interface 195 is also compatible with different types of SIM cards.
  • the SIM card interface 195 is also compatible with external memory cards.
  • the electronic device 100 interacts with the network through the SIM card to implement functions such as calls and data communications.
  • the electronic device 100 uses an embedded SIM (embedded-SIM, eSIM) card, that is, an embedded SIM card.
  • the eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device
  • the phone card in the embodiment of this application includes but is not limited to SIM card, eSIM card, universal subscriber identity module (USIM), universal integrated circuit card (UICC), etc.
  • the software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture.
  • the embodiment of this application takes the Android system with a layered architecture as an example to illustrate the software structure of the electronic device 100 .
  • FIG. 2 is a software structure block diagram of the electronic device 100 according to the embodiment of the present application.
  • the layered architecture divides the software into several layers, and each layer has clear roles and division of labor.
  • the layers communicate through software interfaces.
  • the Android system is divided into four layers, from top to bottom: application layer, application framework layer, Android runtime and system libraries, and kernel layer.
  • the application layer can include a series of application packages.
  • the application package can include camera, gallery, calendar, calling, map, navigation, WLAN, Bluetooth, music, video, short message and other applications.
  • the application framework layer provides an application programming interface (API) and programming framework for applications in the application layer.
  • API application programming interface
  • the application framework layer includes some predefined functions.
  • the application framework layer can include a window manager, content provider, view system, phone manager, resource manager, notification manager, etc.
  • a window manager is used to manage window programs.
  • the window manager can obtain the display size, determine whether there is a status bar, lock the screen, capture the screen, etc.
  • Content providers are used to store and retrieve data and make this data accessible to applications.
  • Said data can include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
  • the view system includes visual controls, such as controls that display text, controls that display pictures, etc.
  • a view system can be used to build applications.
  • the display interface can be composed of one or more views.
  • a display interface including a text message notification icon may include a view for displaying text and a view for displaying pictures.
  • the phone manager is used to provide communication functions of the electronic device 100 .
  • call status management including connected, hung up, etc.
  • the resource manager provides various resources to applications, such as localized strings, icons, pictures, layout files, video files, etc.
  • the notification manager allows applications to display notification information in the status bar, which can be used to convey notification-type messages and can automatically disappear after a short stay without user interaction.
  • the notification manager is used to notify download completion, message reminders, etc.
  • the notification manager can also be notifications that appear in the status bar at the top of the system in the form of charts or scroll bar text, such as notifications for applications running in the background, or notifications that appear on the screen in the form of conversation windows. For example, text information is prompted in the status bar, a beep sounds, the electronic device vibrates, the indicator light flashes, etc.
  • Android Runtime includes core libraries and virtual machines. Android runtime is responsible for the scheduling and management of the Android system.
  • the core library contains two parts: one is the functional functions that need to be called by the Java language, and the other is the core library of Android.
  • the application layer and application framework layer run in virtual machines.
  • the virtual machine executes the java files of the application layer and application framework layer into binary files.
  • the virtual machine is used to perform object life cycle management, stack management, thread management, security and exception management, and garbage collection and other functions.
  • System libraries can include multiple functional modules. For example: surface manager (surface manager), media library (media libraries), 3D graphics processing library (for example: OpenGL ES), 2D graphics engine (for example: SGL), etc.
  • the surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.
  • the media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc.
  • the media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, composition, and layer processing.
  • 2D Graphics Engine is a drawing engine for 2D drawing.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
  • the device's task migration function provides users with a seamless cross-device operation experience. For example, when a user operates an application (APP) on device A, he or she can continue to operate the APP on device B by triggering the task migration process between device A and device B, and display the APP on device B.
  • the interface of the APP is consistent with the interface displayed on device A before triggering the task migration, and the relevant data is also migrated simultaneously.
  • the user continues to operate the APP, and the seamless connection of APP operations can be achieved, just as the APP has always been.
  • Running on device B is
  • the above APP may not be installed in device B. That is to say, device A has installed the first APP, but device B has not installed the first APP.
  • the first APP can also be migrated to device B, and then the first APP can be migrated to device B. Continue to operate the APP on B.
  • the interface style of the first APP displayed on device B is consistent with the interface style of the APP displayed on device A.
  • the interface style of the first APP displayed on device B can be consistent with the interface style of the APP displayed on device A, or it can The interface style is consistent with the Gaiah APP installed on device B.
  • the application scenario of the embodiment of this application may be that the user triggers the task migration process through message notification.
  • the electronic device in the embodiment of this application may be a television, a desktop computer, a notebook computer, or a portable electronic device such as a mobile phone, a tablet computer, a camera, a video recorder, a video recorder, or an electronic device in a 5G network or in future evolutions.
  • Electronic equipment in the public land mobile communication network public land mobile network, PLMN, etc., this application does not limit this.
  • FIG 3 shows an operation interface diagram for task migration between existing electronic devices.
  • existing task migration between electronic devices uses the task center as the entry point.
  • the user wants to migrate the APP running on electronic device B (or the second electronic device) to electronic device A (or the second electronic device) (an electronic device)
  • the user first needs to enter the task center of electronic device A (for example: enter the task center of electronic device A by swiping up from the bottom of the screen of electronic device A, as shown in (a) in Figure 3 )
  • electronic device A displays a list of APPs running on electronic device B (as shown in (b) in Figure 3).
  • the user selects the APP that needs to perform task migration on the list (Huawei Video APP For example) (as shown in (b) in Figure 3), to trigger task migration between electronic device A and electronic device B. After that, the APP continues to run on electronic device A.
  • This method uses the device's task center as the entrance, and the task center can only display a list of running APPs. Most messaging APPs only display messages in the notification bar and other places through the system's message push service, and will not be in a running state.
  • the Huawei Sports and Health APP can establish a binding relationship between a mobile phone and a watch or bracelet, and monitor the message notifications of each APP on the mobile phone. When receiving message notifications, these message notifications will be forwarded to the watch or bracelet that has established a binding relationship with the mobile phone in a timely manner, thereby achieving synchronous display of messages between the mobile phone and the watch or bracelet.
  • the application scenarios of this method are limited to synchronously displaying message notifications on mobile phones on smart wearable devices such as watches or bracelets. It cannot achieve synchronization of message notifications between two or more mobile phones. Device types and application scenarios are limited, and users You can only view the details of message notifications on the watch or bracelet, and cannot directly operate the corresponding APP.
  • the current task migration uses the task center as the entrance, and cannot realize the task migration of most messaging apps.
  • this application provides a task migration method and electronic device.
  • This method can realize the synchronization of message notifications between multiple electronic devices, so that when using one electronic device, the user can promptly check the message notifications on another electronic device, and the user can use the message notification as an entry point to initiate tasks.
  • the migration process no longer relies on the task center and can improve the user experience.
  • electronic device A and electronic device B are bound to each other.
  • the SMS APP on electronic device A receives a text message and displays the text message notification in the form of a pop-up window on the screen of electronic device A.
  • a notification corresponding to the SMS notification is also displayed on the screen of electronic device B in the form of a pop-up window.
  • the SMS notification is a message notification; the notification corresponding to the SMS notification is an agent message notification.
  • the proxy message notification originates from the message notification and is generated based on the message notification.
  • the proxy message notification has a corresponding relationship with the message notification.
  • the content of the proxy message notification is the same as the content of the corresponding message notification.
  • the specific display form can be determined according to the situation in which the user is using the electronic device. For example, when the user is using the electronic device to play games, the display form is in the form of a notification bar instead of a pop-up window.
  • FIG. 4 shows an interface display diagram for task migration between electronic devices provided by an embodiment of the present application.
  • electronic device A and electronic device B are bound to each other.
  • the user is using electronic device B.
  • the information APP on electronic device A receives a new message, it sends a corresponding message notification in the form of a pop-up window.
  • electronic device B also received the message notification in the form of a pop-up window (as shown in (b) in Figure 4), that is, electronic device A and Message synchronization is achieved between electronic device B.
  • the task migration between electronic device A and electronic device B can be triggered, that is, the APP corresponding to the message notification is displayed on electronic device B.
  • page (the APP page corresponding to the message notification in this embodiment is an information page, as shown in (c) of Figure 4), so that the user can perform further operations on electronic device B.
  • the operation of deleting the message notification on electronic device A and electronic device B will be automatically triggered.
  • both electronic device A and electronic device B are connected to the same local area network, or a WIFI P2P connection is established between electronic device A and electronic device B, or electronic device A and electronic device B establish communication through other methods. connection, this application does not limit this.
  • the message notification sent by the APP on the electronic device A may also be a notification bar message notification, a floating message notification, or other forms, which is not limited in this application.
  • electronic device B can also display the above-mentioned message notification synchronously in the form of a notification bar message notification, a floating message notification, or other forms, which is not limited in this application.
  • the message notification display format on electronic device B may be the same as the message notification display format on electronic device A, or it may be a preference format preset by the user according to the actual situation, or the system may display the message notification format according to the user's current situation.
  • the form of automatic scene selection can also be in other forms, which is not limited in this application.
  • the system automatically selects the display format based on the scenario the user is using. For example, the user is playing a game on electronic device B when a message notification displayed in the form of a pop-up window is received on electronic device A. , at this time, electronic device B automatically selects a notification bar or a floating window to display the message notification in a form that does not disturb the user's gaming experience based on the scene the user is using.
  • the message notification displayed in a pop-up window, notification bar or other form may display the specific content of the message notification, or may not display the specific content, but may display, for example, "You have a new message", “You have A new WeChat message” and other notifications.
  • electronic device A may be any one of a mobile phone, a tablet, a smart TV, a wearable smart device, or other electronic devices, which is not limited in this application.
  • electronic device B can be any one of a mobile phone, a tablet, a smart TV, a wearable smart device, or other electronic devices, which is not limited in this application.
  • the APP page corresponding to the above message notification is designated by the APP on electronic device A when it sends the message notification.
  • electronic device A has already established the page before displaying the message notification on its display screen.
  • the corresponding relationship between the message notification and the APP page is such that the APP page corresponding to the message notification can be determined based on the message notification.
  • the message notification is issued by the information APP on the electronic device A
  • the APP page corresponding to the message notification is an information page. It can also be said that the information page is issued by the information APP on the electronic device A. Specified when this message is notified.
  • the message notification displayed on the electronic device B can also be called a proxy message notification.
  • the content of the proxy message notification is exactly the same as the content of the corresponding message notification.
  • the difference lies in the display carrier (this embodiment).
  • electronic device B and electronic device A are different, and the display form of the agent message notification and the display form of the message notification can be different.
  • the display form of the message notification is a pop-up message notification, then the agent message notification
  • the display form can also be in the form of notification bar message notification, floating message notification, etc.
  • the electronic device B when the user is using electronic device B, if the APP on electronic device A sends a message notification, the electronic device B that has established a binding relationship with it and is connected to the same local area network can receive the message notification synchronously. , and the user can trigger task migration with electronic device A by clicking on the message notification on electronic device B, so that the display interface of electronic device B displays the APP page corresponding to the message notification, and further can realize the task migration on electronic device B Further processing of this message notification. In this way, the user can view message notifications on other devices in a timely manner, and can use the message notification as an entry point to initiate a task migration process, thereby improving the user experience.
  • FIG. 5 shows yet another schematic interface diagram of task migration between electronic devices provided by an embodiment of the present application.
  • electronic device A and electronic device B are bound to each other, and electronic device A and electronic device C are also bound to each other.
  • the user is using electronic device C, and the information APP on electronic device A receives a new message.
  • the corresponding message notification was sent in the form of a pop-up window (as shown in (a) in Figure 5).
  • the electronic device B also received the message notification in the form of a pop-up window (as shown in (a) in Figure 5).
  • electronic device C also received the message notification in the form of a pop-up window (as shown in (c) in Figure 5), that is, message synchronization has been achieved between electronic device A and electronic device B. , and message synchronization is also achieved between electronic device A and electronic device C.
  • the task migration between electronic device A and electronic device C can be triggered, that is, electronic device C
  • the APP page corresponding to the message notification is displayed on the APP page (the APP page corresponding to the message notification in this embodiment is an information page, as shown in (d) of Figure 5), so that the user can perform further operations on the electronic device C.
  • the message notification sent by the APP on the electronic device A may also be a notification bar message notification, a floating message notification, or other forms, which is not limited in this application.
  • electronic device B can also display the above-mentioned message notification synchronously in the form of a notification bar message notification, a floating message notification, or other forms, which is not limited in this application.
  • the electronic device C can also display the above message notification synchronously in the form of a notification bar message notification, a floating message notification, or other forms, which is not limited in this application.
  • the message notification display format on electronic device B or electronic device C can be the same as the message notification display format of electronic device A, or it can be a preference format preset by the user according to the actual situation, or it can be the system's preferred format based on the actual situation.
  • the user is using
  • the form of automatic scene selection can also be in other forms, which is not limited in this application.
  • the system automatically selects the display format based on the scenario the user is using. For example, the user is playing a game on electronic device B when a message notification displayed in the form of a pop-up window is received on electronic device A. , electronic device C is on the lock screen page and no one is using it. At this time, electronic device B automatically selects a notification bar or a floating window according to the scene the user is using to display message notifications in a form that does not disturb the user's gaming experience, and electronic device C can The message notification is displayed simultaneously in the form of a pop-up window.
  • the message notification displayed in a pop-up window, notification bar or other form may display the specific content of the message notification, or may not display the specific content, but may display, for example, "You have a new message", “You have A new WeChat message” and other notifications.
  • the synchronization of message notifications between devices that have been bound and connected to the same local area network can be achieved through a task migration module located inside the electronic device.
  • the binding relationship between electronic devices may be established through the setting portal of the electronic device, or the binding relationship between the electronic devices may be established through the hyper terminal portal of the electronic device, or the binding relationship between the electronic devices may be established.
  • the binding relationship between electronic devices is established through other methods, which is not limited in this application.
  • electronic device A may be any one of a mobile phone, a tablet, a smart TV, a wearable smart device, or other electronic devices, which is not limited in this application.
  • electronic device B or electronic device C can be any one of a mobile phone, a tablet, a smart TV, a wearable smart device, or other electronic devices, which is not limited in this application.
  • the APP page corresponding to the above message notification is designated by the APP on the electronic device A when it sends the message notification.
  • the message notification is sent by the information APP on the electronic device A.
  • the APP page corresponding to the message notification is an information page, that is to say, the information page is designated by the information APP on the electronic device A when it sends the message notification.
  • the message notification displayed on electronic device B and electronic device C can also be called a proxy message notification.
  • the content of the proxy message notification is exactly the same as the content of the corresponding message notification.
  • the difference lies in the display carrier.
  • the carrier of the message notification is electronic device A
  • the carriers of the proxy message notification are electronic device B and electronic device C.
  • the presentation form of the proxy message notification and the presentation form of the message notification may be different, for example : If the display form of the message notification is a pop-up message notification, the display form of the agent message notification can also be a notification bar message notification, a floating message notification, etc.
  • the electronic devices bound to electronic device A are electronic device B and electronic device C.
  • electronic device B and electronic device C in the embodiment of this application can generally refer to the electronic device established with electronic device A. All electronic devices that have a binding relationship and are online (connected to the same LAN), that is, if electronic device A has established a binding relationship with N (N is a positive integer greater than or equal to 1) electronic devices and all is in the online state, then the electronic device A can achieve message synchronization with the N electronic devices, and the user can trigger the communication with the electronic device A by clicking on the proxy message notification on any one of the N electronic devices. Task migration.
  • the message notification displayed on the electronic device A is the same as the message notification displayed on the N electronic devices.
  • the displayed agent message notification will be automatically deleted; or, when the user is using electronic device A, the user clicks the message notification displayed on electronic device A, which will also trigger the message notification displayed on the electronic device A and the N electronic devices.
  • the automatic deletion process of agent message notifications is shown above.
  • the multiple electronic devices can all receive the message notification simultaneously, and the user can trigger the communication with the electronic device A by clicking on the message notification on any one of the multiple electronic devices.
  • Task migration between times so that the display interface of any electronic device displays the APP page corresponding to the message notification, thereby further processing the message notification on any electronic device, and when the user clicks on the message notification, it is triggered
  • the message notifications on electronic device A and multiple electronic devices will be automatically deleted.
  • the user can view the message notifications on other devices in a timely manner, and can use the message notification as the entry to initiate the task migration process, so that the task migration between devices no longer relies on the task center entry.
  • the user can This message notification will be deleted on all devices in a timely manner, which can improve the user experience.
  • Figure 6 shows a schematic flow chart of a task migration method 600 provided by an embodiment of the present application. As shown in Figure 6, the method 600 includes:
  • Step S601 When a message notification is displayed on the screen of the first electronic device, the second electronic device displays a proxy message notification on its screen.
  • the proxy message notification is generated based on the message notification and has a corresponding relationship with the message notification.
  • the content of the proxy message notification is the same as the content of the message notification.
  • the display form of the agent message notification and the display form of the message notification can be different.
  • the display form of the agent message notification can also be a notification bar message notification, a floating window Message notifications, etc.
  • the display form of the proxy message notification and the message notification may be related to the user's current use of the electronic device.
  • the message notification/proxy message notification of the electronic device is preferably in the form of Displayed in the notification bar.
  • Step S602 In response to the user's first operation, the second electronic device displays the application APP page corresponding to the above message notification on the first electronic device on its screen, where the first operation is an operation of clicking on the above proxy message notification.
  • step S602 the following steps may also be included:
  • the second electronic device determines whether the object clicked by the user is the above-mentioned proxy message notification
  • the second electronic device determines that the object clicked by the user is the above-mentioned proxy message notification, the second electronic device further determines that the proxy message notification originates from the first electronic device.
  • the second electronic device when the user is using the second electronic device, if the APP on the first electronic device sends a message notification, the second electronic device can receive the message notification synchronously (proxy message notification), and the user can By clicking on the message notification on the second electronic device, the task migration between the second electronic device and the first electronic device is triggered, so that the APP page corresponding to the message notification is displayed on the screen of the second electronic device, and it is further possible to realize the task migration on the second electronic device.
  • This message informs further processing. In this way, the user can not only view message notifications on other devices in a timely manner, but also use the proxy message notification as an entry point to initiate a task migration process, thereby improving the user experience.
  • FIG. 7 shows an information interaction diagram for realizing message notification synchronization between multiple electronic devices provided by an embodiment of the present application.
  • electronic device A includes an application APP, a first task migration module, a first distributed device management module, and a first system user interface. module (first SystemUI module) and first notification management module.
  • electronic device B includes a second task migration module, a second system user interface module (second SystemUI module) and a second notification management module.
  • the message notification synchronization process includes:
  • Step S701 The first task migration module sends a first registration message to the first distributed device management module.
  • the first registration message is used by the first task migration module to register the upper and lower bound electronic devices with the first distributed device management module. Line monitoring.
  • the bound electronic device refers to an electronic device that has established a binding relationship with electronic device A.
  • Step S702 The first SystemUI module sends a second registration message to the first notification management module.
  • the second registration message is used for the first SystemUI module to register monitoring of message notifications with the first notification management module.
  • Step S703 The first task migration module sends a third registration message to the first notification management module.
  • the third registration message is used by the first task migration module to register monitoring of message notifications with the first notification management module.
  • Step S704 In response to the above-mentioned first registration message, the first distributed device management module sends a first reply message to the first task migration module.
  • the first reply message is used to notify the first task migration module of the online and offline status of the electronic device. Condition.
  • the electronic device being online may mean that the electronic device has established a binding relationship with electronic device A and is connected to the same local area network as electronic device A; it may also mean that the electronic device has established a binding relationship with electronic device A. relationship, and the distance to electronic device A is within the coverage range of the Bluetooth signals of the two devices, or it can also refer to a state in which other electronic devices and electronic device A can communicate with each other. This application does not limit this .
  • binding relationship established between electronic devices is a logical trust relationship established by user authorization. It is triggered by the user and implemented by the system. It is a prerequisite for the online and offline electronic devices.
  • an electronic device being offline refers to a state in which the electronic device has established a binding relationship with electronic device A but cannot communicate with electronic device A through any medium.
  • the first reply message may include the ID of the online electronic device and the ID of the offline electronic device.
  • Step S705 The first task migration module maintains an available device list.
  • the available device list refers to a list of electronic devices that have established a binding relationship with electronic device A and are in an online state.
  • the online electronic device is stored in the available device list; when the first task migration module determines through the first reply message that an electronic device is offline When the power line is offline, the power line that is offline The child device is removed from the list of available devices.
  • Step S706 When an APP on electronic device A receives a message, create a message notification and send a first message to the first notification management module, where the first message carries the message notification.
  • Step S707 After receiving the first message, the first notification management module sends a second reply message to the first SystemUI module in response to the second registration message.
  • the second reply message is used to notify the first SystemUI module that there is a new message notification, and the second reply message carries the new message notification.
  • the second reply message may include first indication information, and the first indication information is used to indicate that there is a new message notification.
  • the new message notification may be carried or forwarded directly, may be encoded and/or encrypted and then carried or forwarded, may be compressed and then carried or forwarded, or may be carried or forwarded.
  • Other methods are not limited by this application.
  • Step S708 After receiving the second reply message, the first SystemUI module displays the message notification on the screen of electronic device A.
  • the message notification may be displayed in a notification bar, a pop-up window, a floating window, or other methods, which are not limited in this application.
  • the content displayed in the message notification can be, for example, "You have a new text message", "You have a new email” or "You have a missed call”, etc., or it can further include notifications related to the message notification.
  • a brief description of the content such as displaying the first line of text of a new text message, displaying a summary of a new email, displaying a caller's contact for missed calls, etc. It can also be other content related to the message notification, which is not limited by this application.
  • Step S709 In parallel with step S707, after receiving the first message, the first notification management module responds to the third registration message and sends a third reply message to the first task migration module.
  • the third reply message is used to notify the third task migration module.
  • a task migration module has a new message notification, and the third reply message carries the new message notification.
  • the third reply message may include second indication information, and the second indication information is used to indicate that there is a new message notification.
  • the new message notification may be carried or forwarded directly, may be encoded and/or encrypted and then carried or forwarded, may be compressed and then carried or forwarded, or may be carried or forwarded.
  • Other methods are not limited by this application.
  • step S707 and step S709 are not limited, and they may be executed at the same time or not at the same time.
  • Step S710 After receiving the third reply message, the first task migration module sends a first notification message to the second task migration module.
  • the first notification message is used to notify the second task migration module that there is a proxy message notification.
  • the first notification message The message includes first data, and the first data is data related to the agent message notification.
  • the first task migration module may send the above-mentioned first notification message to the server, and then the server sends the first notification message to the second task migration module.
  • the first notification message may include third indication information, and the third indication information is used to indicate that there is a proxy message notification.
  • the first data may include one or more of the following data: data used to indicate the number of the agent message notification, data used to indicate the title of the agent message notification, data used to indicate the agent message notification.
  • data used to indicate the agent message notification may also include data used to indicate other content of the message notification, which is not limited in this application.
  • the content of the agent message notification described in all embodiments of this application is the same as the content of the corresponding message notification.
  • the difference lies in the different carriers, and the display form of the agent message notification and the display of the message notification.
  • the forms can be different.
  • the display form of the agent message notification is a pop-up message notification
  • the display form of the agent message notification can also be a notification bar message notification, a floating message notification, etc.
  • electronic device B in the embodiment of this application generally refers to all electronic devices that have a binding relationship with electronic device A and are in an online state (that is, all devices in the available device list).
  • the first task migration module After receiving the third reply message, the first task migration module will send the above-mentioned first notification message to the task migration modules of all electronic devices in the available device list.
  • Step S711 After receiving the first notification message, the second task migration module parses the first data carried in the first notification message, and then creates a proxy message notification corresponding to the above message notification, and then sends it to the second notification management The module sends a second message, the second message carries the proxy message notification.
  • the content of the above proxy message notification is exactly the same as the content of the message notification.
  • the difference lies in the different carriers, that is: the message notification is a message notification displayed on the screen of the original electronic device, and the proxy message notification is bound to the source electronic device.
  • the message notification displayed on the screen of other electronic devices connected to the same local area network, and the display form of the agent message notification and the display of the message notification The display formats can be different. For example, if the message notification is displayed as a pop-up message notification, the agent message notification can also be displayed in the notification bar message notification, floating message notification, etc.
  • Step S712 After receiving the second message, the second notification management module sends a second notification message to the second SystemUI module.
  • the second notification message is used to notify the second SystemUI module that there is a proxy message notification, and the second notification The message carries the agent message notification.
  • the second notification message may include fourth indication information, the fourth indication information being used to indicate that there is a proxy message notification.
  • the proxy message notification may be carried or forwarded directly, may be encoded and/or encrypted and then carried or forwarded, may be compressed and then carried or forwarded, or may be carried or forwarded in other ways.
  • method this application does not limit this.
  • Step S713 After receiving the second notification message, the second SystemUI module displays the proxy message notification carried in the second notification message on the screen of electronic device B.
  • the message notification monitoring function and the message notification forwarding function of the task migration module of the electronic device when electronic device A receives the message notification, it can be
  • the message notification is synchronously displayed on other online electronic devices, which can realize the synchronization of message notifications between multiple electronic devices, so that users can promptly receive other electronic devices that are bound to the currently used electronic device and are online.
  • Message notifications on the device improve the user experience.
  • FIG. 8 shows information for realizing task migration between electronic devices provided by the embodiment of the present application.
  • Step S801 When the user clicks the proxy message notification on electronic device B, the second SystemUI module recognizes that the proxy message notification displayed by it is clicked.
  • Step S802 The second SystemUI module sends a third notification message to the second task migration module.
  • the third notification message is used to notify the second task migration module that the proxy message notification is clicked.
  • the third notification message includes identification information of the clicked agent message notification.
  • Step S803 After receiving the third notification message, the second task migration module sends a first request message to the first task migration module.
  • the first request message is used to initiate a task migration request to the first task migration module.
  • Step S804 After receiving the first request message, the first task migration module notifies other electronic devices to delete the message notification.
  • Step S805 The first task migration module sends a fourth notification message to the APP that issued the message notification on electronic device A.
  • the fourth notification message is used to notify the APP that issued the message notification that the message notification was clicked.
  • the message notification being clicked in this step means that the agent message notification corresponding to the message notification is clicked.
  • the fourth notification message includes identification information of the clicked message notification.
  • the clicked message notification described in step S805 is a message notification corresponding to the clicked agent message notification described in step S802.
  • the contents of the two are consistent, and the difference is that their carriers are different, and the agent
  • the display form of the message notification and the display form of the message notification can be different.
  • the display form of the agent message notification can also be a notification bar message notification, a floating message notification, etc.
  • Step S806 In response to the received fourth notification message, the APP that issued the message notification jumps to the APP page specified/corresponding to the message notification.
  • This step S806 may also be: in response to the received fourth notification message/in response to the operation of the user clicking on the proxy message notification displayed on the screen of electronic device B, electronic device A creates an application corresponding to the message notification on electronic device A. Program APP page.
  • the electronic device A controls the APP to jump to the APP page specified/corresponding to the message notification, and displays the APP page.
  • the fact that electronic device A is in an open state means that the corresponding operation interface of the APP is being displayed on the display screen of electronic device A.
  • electronic device A controls the APP to jump to the APP page specified/corresponding to the message notification in the background.
  • electronic device A is not in an open state means: the corresponding operation interface of the APP is not displayed on the display screen of electronic device A. More specifically, it may mean that the APP is running in the background, or it may mean that the APP is closed and not running.
  • the designated/corresponding APP page is the SMS page; when the message notification is a missed call notification, the designated/corresponding APP page is the call list page.
  • Step S807 After the above-mentioned jump to the message notification designated page is completed, the APP that sent the message notification sends a jump completion message to the first task migration module.
  • step S807 is an optional step.
  • this step may also be: electronic device A sends a creation completion notification to electronic device B, and the creation completion notification is used to trigger electronic device B to display the above APP page on the screen of electronic device B.
  • Step S808 In response to the above jump completion message, the first task migration module sends task migration data to the second task migration module.
  • the task migration data includes descriptive data and control data.
  • the descriptive data includes data indicating the page corresponding to the APP that issued the message notification
  • the control data includes data indicating the coordinates of the user's click. Location data.
  • the descriptive data may include data used to indicate the screen of the page corresponding to the APP that issued the message notification, data used to indicate the name of the APP, data used to indicate the icon of the APP, data used to indicate the APP version data, etc.
  • Step S809 After receiving the task migration data, the second task migration module displays the APP after task migration based on the task migration data.
  • the APP after task migration displayed by electronic device B is the same as the APP page specified/corresponding to the message notification that electronic device A jumps to in step S806.
  • the APP task is closed on electronic device B.
  • the status of the APP on electronic device A is also restored to its original state. For example: before task migration, the electronic device The APP on A is open, and the APP will return to the original page at this time; for another example: before task migration, the APP on electronic device A is closed, and the APP status returns to the closed state at this time.
  • the user when the user receives a proxy message notification synchronized with the message notification of electronic device A on the electronic device B being used, the user can trigger the communication between electronic device B and electronic device A by clicking on the proxy message notification.
  • Task migration not only enables timely viewing of message notifications on device A, but also enables further operation of the APP corresponding to the message notification directly on device B, improving the user experience of using multiple devices.
  • FIG. 9 shows an information interaction diagram corresponding to a method for clearing message notifications provided by an embodiment of the present application. As shown in Figure 9, the method includes:
  • Step S901 When the message notification or proxy message notification is clicked, the APP that issued the message notification sends a first deletion message to the first notification module.
  • the first deletion message is used to notify the first notification management module to delete the message notification.
  • the first deletion message includes identification information notified by the message.
  • Step S902 After receiving the first deletion message, the first notification management module forwards the first deletion message to the first SystemUI module.
  • Step S903 After receiving the first deletion message, the first SystemUI module stops displaying the message notification on the screen of electronic device A.
  • stop displaying the message notification on the screen of electronic device A For example: if the message notification is displayed in the form of a pop-up window, then it means to stop the corresponding pop-up window display; if the message notification is in the form of a notification bar Displayed means clearing the display of the message notification in the notification bar.
  • Step S904 The first notification management module forwards the first deletion message to the first task migration module.
  • step S902 and step S904 are not limited, and they may be executed at the same time or not at the same time.
  • Step S905 After receiving the first deletion message, the first task migration module sends a second deletion message to the second task migration module.
  • the second deletion message is used to notify the second task migration module to delete the proxy message corresponding to the message notification. .
  • the second deletion message includes identification information notified by the proxy message.
  • Step S906 After receiving the second deletion message, the second task migration module forwards the second deletion message to the second notification management module.
  • Step S907 After receiving the second deletion message, the second notification management module forwards the second deletion message to the second SystemUI module. interest.
  • Step S908 After receiving the second deletion message, the second SystemUI module stops displaying the agent message notification on the screen of electronic device B.
  • stop displaying the agent message notification on the screen of electronic device B For example: if the agent message notification is displayed in the form of a pop-up window, then it means to stop the corresponding pop-up window display; if the agent message notification is displayed in the form of a notification If displayed in the form of a bar, it means clearing the display of the agent message notification in the notification bar.
  • electronic device A when the above message notification or proxy message notification is clicked or deleted, electronic device A will traverse the available device list and send a first deletion message or a second deletion message to each electronic device in the available device list.
  • Each electronic device in the available device list deletes the message notification or proxy message notification displayed by it (ie, stops displaying the message notification or proxy message notification on the screen of the electronic device).
  • the message notification or proxy message notification displayed on other devices can be cleared in time to avoid unnecessary annoyance to the user and further improve the user experience. .
  • FIG. 10 shows a functional module schematic diagram of a system 1000 for implementing task migration between devices provided by an embodiment of this application.
  • the task migration system includes electronic device A and electronic device B.
  • Electronic device A includes an application program (APP) 1001, a first system user interface module 1002, a first notification management module 1003, a first task Migration module 1004, first distributed device management module 1005 and first communication module 1006;
  • electronic device B includes a second system user interface module 1007, a second notification management module 1008, a second task migration module 1009, a second distributed device Management module 1010 and second communication module 1011.
  • APP application program
  • Application program (APP) 1001 is used to receive messages and create message notifications, and send a first message to the first notification management module.
  • the first message carries the message notification; and is also used to specify the need to jump to after clicking the message notification. designated notification page.
  • the application program (APP) 1001 is also used to jump to the APP page specified/corresponding to the message notification after receiving the fourth notification message.
  • the fourth notification message is used to notify the application program (APP) 1001 that the message notification is clicked. .
  • the application program (APP) 1001 is also configured to send a jump completion message to the first task migration module after the above-mentioned jump to message notification specified page is completed.
  • the first system user interface module 1002 is configured to send a second registration message to the first notification management module 1003.
  • the second registration message is used for the first system user interface module 1002 to register the monitoring of message notifications with the first notification management module 1003; It is also used to receive a second reply message sent by the first notification management module 1003.
  • the second reply message is used to notify the first SystemUI module that there is a new message notification, and the second reply message carries the new message notification.
  • the second reply message may include first indication information, and the first indication information is used to indicate that there is a new message notification.
  • the first system user interface module 1002 is also configured to: after receiving the second reply message, display the message notification on the screen of electronic device A.
  • the first system user interface module 1002 is also used to receive a first deletion message sent by the first notification management module.
  • the first deletion message is used to notify the first notification management module to delete the message notification; and is also used to receive the first deletion message after receiving the first deletion message.
  • stop display message notification After sending the message, stop displaying the message notification on the screen of electronic device A.
  • the explanation of the stop display message notification is explained in detail in step S903, and for the sake of brevity, it will not be described again here.
  • the first deletion message includes identification information notified by the message.
  • the first notification management module 1003 is used to provide a message notification creation and deletion interface for the APP, and to provide a message notification listening interface for the first system user interface module 1002, the first task migration module 1004, etc. specifically:
  • the first notification management module 1003 is used to receive the second registration message sent by the first system user interface module 1002, and is also used to receive the third registration message sent by the first task migration module 1004. The third registration message is used to send the third registration message to the first task migration module 1004.
  • a notification management module 1003 registers the monitoring of message notifications.
  • the first notification management module 1003 is also configured to receive a message notification sent by the application program (APP) 1001, and after receiving the message notification, send a second reply message to the first system user interface module 1002 in response to the second registration message.
  • the second reply message is used to notify the first system user interface module 1002 that there is a new message notification, and the second reply message carries the new message notification, and/or, in response to the third registration message, to the first
  • the task migration module 1004 sends a third reply message, which is used to notify the third A task migration module has a new message notification, and the third reply message carries the new message notification.
  • the first notification management module 1003 is also used to receive the first deletion message sent by the application program (APP) 1001; and after receiving the first deletion message, forward the first system user interface module 1002 and the first task migration module 1004 to Forward the first deletion message.
  • APP application program
  • the first task migration module 1004 is configured to send a first registration message to the first distributed device management module 1005.
  • the first registration message is used to register the online and offline bound electronic devices with the first distributed device management module 1005.
  • the first reply message is used to notify the first task migration module 1004 of the online and offline status of the electronic device.
  • the first task migration module 1004 is also configured to send a third registration message to the first notification management module 1003.
  • the first task migration module 1004 is also used to maintain the available device list.
  • the available device list refers to a list of electronic devices that have established a binding relationship with electronic device A and are in an online state.
  • the online electronic device is stored in the available device list; when the first task migration module 1004 determines that an electronic device is online through the first reply message.
  • the offline electronic device is removed from the list of available devices.
  • the first task migration module 1004 is also configured to receive a third reply message sent by the first notification management module 1003.
  • the third reply message is used to notify the first task migration module 1004 of a new message notification, and the third reply message
  • the message carries the new message notification; it is also used to send a first notification message to the second task migration module 1009 after receiving the third reply message.
  • the first notification message is used to notify the second task migration module 1009 of the agent message.
  • the first notification message includes first data, and the first data is data related to the agent message notification.
  • the first data may include one or more of the following data: data used to indicate the number of the agent message notification, data used to indicate the title of the agent message notification, data used to indicate the agent message notification.
  • data used to indicate the agent message notification may also include data used to indicate other content of the message notification, which is not limited in this application.
  • the content of the agent message notification described in all embodiments of this application is the same as the content of the corresponding message notification.
  • the difference lies in the different carriers, and the display form of the agent message notification and the display of the message notification.
  • the forms can be different.
  • the display form of the agent message notification is a pop-up message notification
  • the display form of the agent message notification can also be a notification bar message notification, a floating message notification, etc.
  • electronic device B in the embodiment of this application generally refers to all electronic devices that have a binding relationship with electronic device A and are in an online state (that is, all devices in the available device list).
  • the first task migration module 904 After receiving the third reply message, the first task migration module 904 will send the above-mentioned first notification message to the task migration modules of all electronic devices in the available device list.
  • the first task migration module 1004 is also configured to receive a first request message sent by the second task migration module 1009. The first request message is used to initiate a task migration request to the first task migration module 1004. The first task migration module 1004 is also configured to Used to notify other electronic devices to delete the message notification after receiving the first request message.
  • the first task migration module 1004 is also configured to send a fourth notification message to the application program (APP) 1001.
  • the fourth notification message is used to notify that the message notification is clicked; and is also configured to send a message to the third notification message after receiving the jump completion notification.
  • the second task migration module 1009 sends task migration data.
  • the task migration data includes descriptive data and control data.
  • the descriptive data includes data indicating the page corresponding to the APP that issued the message notification
  • the control data includes data indicating the coordinates of the user's click. Location data.
  • the descriptive data may include data used to indicate the screen of the page corresponding to the APP that issued the message notification, data used to indicate the name of the APP, data used to indicate the icon of the APP, data used to indicate the APP version data, etc.
  • the fourth notification message includes identification information of the clicked message notification.
  • the first task migration module 1004 is also configured to receive the first deletion message sent by the first notification management module 1003, and after receiving the first deletion message, send a second deletion message to the second task migration module 1009.
  • the second deletion message is used to notify the second task migration module to delete the agent message corresponding to the message notification.
  • the second deletion message includes identification information notified by the proxy message.
  • the first distributed device management module 1005 is used to bind a trust relationship with electronic device B and provide a device online and offline monitoring interface for electronic device A. Specifically, it is used to receive the first registration message sent by the first task migration module 1004; and also used to respond to the above-mentioned first registration message and send a first reply message to the first task migration module 1004, where the first reply message is used to Notify the first task migration module 1004 of the online and offline status of the electronic device.
  • the first communication module 1006 is used to implement data communication with electronic device B.
  • the first communication module 1006 may be a Bluetooth module or a WIFI module. That is to say, electronic device A can communicate with electronic device B through Bluetooth or electronic device B through WIFI.
  • the second system user interface module 1007 is configured to receive a second notification message sent by the second notification management module 1008.
  • the second notification message is used to notify the second system user interface module 1007 that there is a proxy message notification, and the second notification
  • the message carries the proxy message notification; and is also used to display the proxy message notification carried by the second notification message on the screen of electronic device B after receiving the second notification message.
  • the second system user interface module 1007 is also configured to send a third notification message to the second task migration module 1009.
  • the third notification message is used to notify the second task migration module 1009 that the proxy message notification is clicked.
  • the third notification message includes identification information of the clicked agent message notification.
  • the second system user interface module 1007 is also configured to receive a second deletion message; and to stop displaying the agent message notification on the screen of electronic device B after receiving the second deletion message.
  • the second notification management module 1008 is configured to receive a second message sent by the second task migration module 1009, where the second message carries an agent message notification; and is also configured to send a message to the second system user interface after receiving the second message. Module 1007 sends a second notification message.
  • the second notification management module 1008 is also configured to receive the second deletion message sent by the second task migration module 1009; and is also configured to forward the second deletion message to the second system user interface module 1007 after receiving the second deletion message. .
  • the second task migration module 1009 is configured to receive the first notification message sent by the first task migration module 1004; and is also configured to parse the first data carried in the first notification message after receiving the first notification message. , and then create a proxy message notification, and then send a second message to the second notification management module 1008, where the second message carries the proxy message notification.
  • the second task migration module 1009 is also configured to receive a third notification message sent by the second system user interface module 1007.
  • the third notification message is used to notify the second task migration module that the proxy message notification is clicked; and is also configured to receive After the third notification message, a first request message is sent to the first task migration module 1004.
  • the first request message is used to initiate a task migration request to the first task migration module 1004.
  • the second task migration module 1009 is also configured to receive the task migration data sent by the first task migration module 1004; and is also configured to display the APP after task migration based on the task migration data after receiving the task migration data.
  • the second task migration module 1009 is also configured to receive a second deletion message sent by the first task migration module 1004, where the second deletion message is used to indicate deletion of the agent message notification; and is also configured to, after receiving the second deletion message, The second deletion message is forwarded to the second notification management module 1008.
  • the second deletion message is used to notify the second task migration module 1009 to delete the agent message corresponding to the message notification.
  • the second deletion message includes identification information notified by the proxy message.
  • the second distributed device management module 1010 is configured to bind a trust relationship with electronic device A, and provide electronic device B with an online and offline monitoring interface of the device.
  • the second communication module 1011 is used to implement data communication with the electronic device A.
  • the second communication module 1011 may be a Bluetooth module or a WIFI module. That is to say, electronic device B can communicate with electronic device A through Bluetooth, or can communicate with electronic device A through WIFI.
  • the electronic device further includes: a determination module, configured to determine whether the object clicked by the user is a proxy message notification before responding to the operation of the user clicking on the proxy message notification; and also configured to determine whether the object clicked by the user is a proxy message notification.
  • a determination module configured to determine whether the object clicked by the user is a proxy message notification before responding to the operation of the user clicking on the proxy message notification; and also configured to determine whether the object clicked by the user is a proxy message notification.
  • the agent message notification originates from the first electronic device.
  • electronic device A in the embodiment of this application may refer to the original electronic device that sent the message notification
  • electronic device B generally refers to other electronic devices that have a binding relationship with the original electronic device and are in an online state.
  • the task migration module is expanded to have the functions of monitoring the device's online and offline monitoring and message notification monitoring, and also has the ability to forward and proxy message notifications.
  • electronic device B will also receive the message notification (agent message notification) synchronously, thereby realizing message synchronization between multiple electronic devices, so that the user can view it in time when using electronic device B Message notification on device A; and, the user can click on the proxy message notification displayed on electronic device B to trigger task migration between it and electronic device A, and can directly further operate the APP corresponding to the message notification on electronic device B,
  • This also makes the entrance to the task migration function between devices no longer limited to the task center, improving the user experience of using multiple devices; in addition, it can also clear the message notification or agent message notification in time after it is clicked.
  • the message notification or proxy message notification is displayed on other electronic devices to avoid unnecessary annoyance to the user and further improve the user experience.
  • the user clicks on a proxy message to trigger task migration between devices it is first determined whether the object clicked by the user is a proxy message notification. When it is determined that the clicked object is a proxy message notification, the user then further determines whether the clicked object is a proxy message notification. Proxy the source device of the message notification. In this way, task migration between devices initiated due to misidentification of the device can be avoided, the security performance of the migration process can be improved, and the user experience can be further improved.
  • One or more of the modules or units described herein may be implemented in software, hardware, or a combination of both.
  • the software exists in the form of computer program instructions and is stored in the memory.
  • the processor can be used to execute the program instructions and implement the above method flow.
  • the processor may include but is not limited to at least one of the following: a central processing unit (CPU), a microprocessor, a digital signal processor (DSP), a microcontroller unit (MCU), or artificial intelligence
  • CPU central processing unit
  • DSP digital signal processor
  • MCU microcontroller unit
  • Each computing device may include one or more cores for executing software instructions to perform calculations or processing.
  • the processor can be built into an SoC (system on a chip) or an application specific integrated circuit (ASIC), or it can be an independent semiconductor chip.
  • the processor can further include necessary hardware accelerators, such as field programmable gate array (FPGA), PLD (programmable logic device) , or a logic circuit that implements dedicated logic operations.
  • FPGA field programmable gate array
  • PLD programmable logic device
  • the hardware may be a CPU, microprocessor, DSP, MCU, artificial intelligence processor, ASIC, SoC, FPGA, PLD, dedicated digital circuit, hardware accelerator or non- Any one or any combination of integrated discrete devices, which can run necessary software or not rely on software to perform the above method process.
  • the modules or units described herein When the modules or units described herein are implemented using software, they may be implemented in whole or in part in the form of a computer program product.
  • the computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in accordance with the embodiments of the present invention are generated in whole or in part.
  • the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device.
  • the computer instructions may be stored in or transmitted from one computer-readable storage medium to another, e.g., the computer instructions may be transferred from a website, computer, server, or data center Transmission to another website, computer, server or data center by wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) means.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains one or more available media integrated.
  • the available media may be magnetic media (eg, floppy disk, hard disk, magnetic tape), optical media (eg, DVD), or semiconductor media (eg, solid state disk (SSD)), etc.
  • the disclosed systems, devices and methods can be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of the units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components may be combined or can be integrated into another system, or some features can be ignored, or not implemented.
  • the coupling or direct coupling or communication connection between each other shown or discussed may be through some interfaces, and the indirect coupling or communication connection of the devices or units may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or they may be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in each embodiment of the present application can be integrated into one processing unit, each unit can exist physically alone, or two or more units can be integrated into one unit.
  • the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium.
  • the technical solution of the present application is essentially or that part that contributes to the existing technology. Or part of the technical solution can be embodied in the form of a software product.
  • the computer software product is stored in a storage medium and includes a number of instructions to cause a computer device (which can be a personal computer, server, or network device, etc.) to execute All or part of the steps of the methods described in various embodiments of this application.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk and other media that can store program code. .

Abstract

本申请实施例提供了一种任务迁移的方法、电子设备和系统,该方法包括:响应于第一电子设备的屏幕上显示消息通知,第二电子设备在该第二电子设备的屏幕上显示代理消息通知,其中,代理消息通知根据消息通知生成,与该消息通知具有对应关系;响应于用户点击该代理消息通知的操作,该第二电子设备在该第二电子设备的屏幕上显示该消息通知在第一电子设备上对应的应用程序APP页面。这样,当用户正在使用第二电子设备时,能够同步接收第一电子设备上的消息通知,并且,能够通过点击第二电子设备上的代理消息通知触发该第二电子设备与第一电子设备之间的任务迁移,提高了用户的使用体验。

Description

任务迁移的方法、电子设备和系统
本申请要求于2022年07月13日提交中国专利局、申请号为202210821297.2、申请名称为“任务迁移的方法、电子设备和系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请实施例涉及任务迁移领域,并且更具体地,涉及一种任务迁移的方法、电子设备和系统。
背景技术
目前,随着电子设备的普及,人们在工作和生活中产生的对电子设备的依赖性越来越强,并且对应用(application,APP)的跨设备使用需求也越来越大。
发明内容
本申请提供一种任务迁移的方法、电子设备和系统。通过该方法,当用户正在使用第二电子设备时,能够同步接收第一电子设备上的消息通知,并且,能够通过点击第二电子设备上相应的代理消息通知触发任务迁移流程,提高了用户的使用体验。
第一方面,提供一种任务迁移的方法,该方法包括:响应于第一电子设备的屏幕上显示消息通知,第二电子设备在该第二电子设备的屏幕上显示代理消息通知,其中,代理消息通知根据消息通知生成,与该消息通知具有对应关系;响应于用户点击该代理消息通知的操作,第二电子设备在该第二电子设备的屏幕上显示消息通知在第一电子设备上对应的应用程序APP页面。
应理解:第一电子设备和第二电子设备之间相互绑定,且建立了通信连接。
可选地,响应于用户点击代理消息通知的操作,第二电子设备向第一电子设备发送第一请求消息,该第一请求消息用于请求发起与第一电子设备之间的任务迁移;该第二电子设备接收该第一电子设备为响应于该第一请求消息发送的任务迁移数据;该第二电子设备根据该任务迁移数据在第二电子设备的屏幕上显示该消息通知在第一电子设备上对应的应用程序APP页面。
可选地,任务迁移数据包括描述型数据和控制型数据,其中,描述型数据包括用于指示发出该消息通知的APP对应的页面的数据,控制型数据包括用于指示用户点击的坐标位置的数据。
可选地,描述型数据可以包括用于指示发出该消息通知的APP对应页面的画面的数据、用于指示该APP的名称的数据、用于指示该APP的图标的数据、用于指示该APP的版本的数据等。
本申请实施例中,当用户正在使用第二电子设备时,若第一电子设备上的APP发出消息通知,则第二电子设备能够同步收到该消息通知(代理消息通知),并且,用户能够通过点击第二电子设备上的消息通知触发与第一电子设备之间的任务迁移,从而使得第二电子设备的屏幕上显示该消息通知对应的APP页面,进一步能够实现在第二电子设备上对该消息通知的进一步处理。这样,不仅能够使得用户及时地查看其他设备上的消息通知,还能够以该代理消息通知为入口发起任务迁移流程,提高用户的使用体验。
另外,当用户点击正在使用的电子设备上的代理消息通知时,该正在使用的电子设备向发出消息通知的电子设备发送请求消息,基于该请求消息,两电子设备之间开始任务迁移流程,这样,任务迁移流程基于请求消息发起,能够使得进行任务迁移的设备主体更加准确,避免发生设备间不合理的任务迁移。
结合第一方面,在一种可能的实现方式中,在响应于用户点击所述代理消息通知的操作,第二电子设备在该第二电子设备的屏幕上显示该消息通知在第一电子设备上对应的应用程序APP页面之前,方法还包括:第二电子设备确定用户点击的对象是否为该代理消息通知;当第二电子设备确定用户点击的对象为该代理消息通知时,该第二电子设备进一步确定该代理消息通知来源于第一电子设备。
本申请实施例中,在通过用户点击代理消息触发设备间的任务迁移时,先判断用户点击的对象是 否为代理消息通知,当确定了点击的对象为代理消息通知时,再进一步确定该代理消息通知的来源设备,这样,能够避免因设备的错误识别而发起的设备间的任务迁移,能够提高迁移过程的安全性能,进一步提升用户的使用体验。
结合第一方面,在一种可能的实现方式中,第二电子设备在该第二电子设备的屏幕上显示代理消息通知,包括:第二电子设备接收第一电子设备发送的第一通知消息,该第一通知消息包括第一数据,其中,第一指示信息用于指示有代理消息通知;第二电子设备根据该第一通知消息在第二电子设备的屏幕上显示该代理消息通知。
可选地,第一通知消息还包括第一指示信息,该第一指示信息用于指示有代理消息通知。
本申请实施例中,电子设备在收到消息通知时,在与其绑定的且处于在线状态的其他电子设备上同步展示该消息通知,能够实现多个电子设备之间的消息通知同步,使得用户能够及时接收到与当前所使用的电子设备相互绑定且处于在线状态的其他电子设备上的消息通知,提高了用户的使用体验。
结合第一方面,在一种可能的实现方式中,第二电子设备根据第一通知消息在该第二电子设备的屏幕上显示代理消息通知,包括:第二电子设备根据第一通知消息创建代理消息通知;第二电子设备根据该代理消息通知生成第二通知消息;第二电子设备根据该第二通知消息在第二电子设备的屏幕上显示代理消息通知。
可选地,该代理消息通知的展示形式和该消息通知的展示形式可以不同,例如:若消息通知的展示形式为弹窗消息通知,则代理消息通知的展示形式还可以是通知栏消息通知、悬浮消息通知等。
可选地,代理消息通知和消息通知的展示形式可以与用户当前使用电子设备的情况相关,例如,若用户当前正在使用电子设备的视频功能,那么该电子设备的消息通知/代理消息通知优选以通知栏的形式展示。
本申请实施例中,第二电子设备根据接收到的第一通知消息创建代理消息通知,该代理消息通知的内容与消息通知的内容相同,但是其展示形式可以不同,进一步地,其展示形式可以自动适应于对应的电子设备的具体使用状态,比如,当用户正在使用视频应用时,该电子设备的消息通知/代理消息通知的展示形式优选为通知栏形式,从而尽可能避免对用户的观看体验造成影响,能够进一步提升用户的使用体验。
结合第一方面,在一种可能的实现方式中,方法还包括:响应于用户点击代理消息通知的操作,第二电子设备停止显示该代理消息通知。
可选地,第二电子设备停止显示该代理消息通知,具体实现方式可以是:第二电子设备接收第一电子设备发送的第二删除消息,该第二删除消息用于通知第二电子设备停止显示代理消息通知;响应于该第二删除消息,第二电子设备停止显示该代理消息通知。
本申请实施例中,能够在代理消息通知被点击之后,及时清除其他设备上展示的该消息通知或代理消息通知,以避免为用户带来不必要的烦扰,进一步提升用户的使用体验。
第二方面,提供一种任务迁移的方法,该方法包括:第一电子设备在该第一电子设备的屏幕上显示消息通知,并触发在第二电子设备的屏幕上显示代理消息通知,该代理消息通知根据该消息通知生成,与该消息通知具有对应关系;响应于用户点击第二电子设备的屏幕上显示的代理消息通知的操作,第一电子设备创建所述消息通知在所述第一电子设备上对应的应用程序APP页面,该应用程序APP页面用于第二电子设备在该第二电子设备的屏幕上显示。
可选地,第一电子设备和第二电子设备相互绑定,且建立了通信连接。
可选地,代理消息通知的内容与消息通知的内容相同。
本申请实施例中,当用户正在使用第二电子设备时,若第一电子设备上的APP发出消息通知,则第二电子设备能够同步收到该消息通知(代理消息通知),并且,用户能够通过点击第二电子设备上的消息通知触发与第一电子设备之间的任务迁移,从而使得第二电子设备的屏幕上显示该消息通知对应的APP页面,进一步能够实现在第二电子设备上对该消息通知的进一步处理。这样,不仅能够使得用户及时地查看其他设备上的消息通知,还能够以该代理消息通知为入口发起任务迁移流程,提高用户的使用体验。
结合第二方面,在一种可能的实现方式中,方法还包括:第一电子设备接收第二电子设备发送的第一请求消息,该第一请求消息是第二电子设备为响应于用户点击第二电子设备的屏幕上显示的代理 消息通知的操作发送的,该第一请求消息用于请求发起与第一电子设备之间的任务迁移,其中,代理消息通知根据消息通知生成,与该消息通知具有对应关系;响应于该第一请求消息,第一电子设备向第二电子设备发送任务迁移数据,该任务迁移数据用于第二电子设备在该第二电子设备的屏幕上显示消息通知在第一电子设备上对应的应用程序APP页面。
其中,可选地,任务迁移数据包括描述型数据和控制型数据,其中,描述型数据包括用于指示发出该消息通知的APP对应的页面的数据,控制型数据包括用于指示用户点击的坐标位置的数据。
可选地,描述型数据可以包括用于指示发出该消息通知的APP对应页面的画面的数据、用于指示该APP的名称的数据、用于指示该APP的图标的数据、用于指示该APP的版本的数据等。
本申请实施例中,当用户正在使用第二电子设备时,若第一电子设备上的APP发出消息通知,则第二电子设备能够同步收到该消息通知(代理消息通知),并且,用户能够通过点击第二电子设备上的消息通知触发与第一电子设备之间的任务迁移,从而使得第二电子设备的屏幕上显示该消息通知对应的APP页面,进一步能够实现在第二电子设备上对该消息通知的进一步处理。这样,不仅能够使得用户及时地查看其他设备上的消息通知,还能够以该代理消息通知为入口发起任务迁移流程,提高用户的使用体验。
结合第二方面,在一种可能的实现方式中,方法还包括:响应于第一电子设备在该第一电子设备的屏幕上显示消息通知,第一电子设备向第二电子设备发送第一通知消息,该第一通知消息用于第二电子设备在该第二电子设备的屏幕上显示代理消息通知,该第一通知消息包括第一数据,其中,第一数据为与该代理消息通知相关的数据。
可选地,第一通知消息包括第一指示信息,该第一指示信息用于指示有代理消息通知。
可选地,上述第一通知消息用于第二电子设备在该第二电子设备的屏幕上显示该代理消息通知。
本申请实施例中,电子设备在收到消息通知时,在与其绑定的且处于在线状态的其他电子设备上同步展示该消息通知,能够实现多个电子设备之间的消息通知同步,使得用户能够及时接收到与当前所使用的电子设备相互绑定且处于在线状态的其他电子设备上的消息通知,提高了用户的使用体验。
结合第二方面,在一种可能的实现方式中,方法还包括:响应于第一请求消息,第一电子设备停止显示消息通知。
还可以描述为:响应于用户点击代理消息通知的操作,第一电子设备停止显示消息通知。
本申请实施例中,能够在代理消息通知被点击之后,及时清除发出消息通知的设备上展示的该消息通知,以避免为用户带来不必要的烦扰,进一步提升用户的使用体验。
结合第二方面,在一种可能的实现方式中,方法还包括:响应于第一请求消息,第一电子设备向第二电子设备发送第二删除消息,该第二删除消息用于通知第二电子设备停止显示代理消息通知。
还可以描述为:响应于用户点击代理消息通知的操作,第一电子设备向第二电子设备发送第二删除消息,该第二删除消息用于通知第二电子设备停止显示代理消息通知。
本申请实施例中,能够在代理消息通知被点击之后,及时清除其他设备上展示的该代理消息通知,以避免为用户带来不必要的烦扰,进一步提升用户的使用体验。
结合第二方面,在一种可能的实现方式中,第一电子设备向第二电子设备发送任务迁移数据之前,方法还包括:当上述APP在第一电子设备上正处于打开状态时,第一电子设备控制该APP跳转至消息通知对应的APP页面,并显示该APP页面。
结合第二方面,在一种可能的实现方式中,第一电子设备向第二电子设备发送任务迁移数据之前,方法还包括:当上述APP在第一电子设备上未处于打开状态时,第一电子设备打开该APP并跳转至该消息通知对应的APP页面。
其中,电子设备A正处于打开状态是指:电子设备A的显示屏上正在显示该APP相应的操作界面。
其中,电子设备A未处于打开状态是指:电子设备A的显示屏上没有显示该APP相应的操作界面。更具体地,可以是指该APP正在后台运行,还可以是指该APP处于关闭状态,未运行。
本申请实施例中,当用户点击了显示在第二电子设备上的代理消息通知后,第一电子设备控制APP跳转至消息通知指定/对应的APP页面,进一步在第二电子设备上显示该APP页面,使得用户能够在第二电子设备上针对该代理消息通知做进一步操作。
第三方面,提供一种电子设备,该电子设备为第二电子设备,该电子设备包括:第二系统用户界 面模块,用于响应于第一电子设备的屏幕上显示消息通知,在该电子设备的屏幕上显示代理消息通知,该代理消息通知根据该消息通知生成,与该消息通知具有对应关系;第二任务迁移模块,用于响应于用户点击代理消息通知的操作在该电子设备的屏幕上显示消息通知在第一电子设备上对应的应用程序APP页面。
应理解:第一电子设备和该电子设备之间相互绑定,且建立了通信连接。
可选地,第二任务迁移模块具体用于:响应于用户点击代理消息通知的操作,向第一电子设备发送第一请求消息,该第一请求消息用于请求发起与第一电子设备之间的任务迁移;接收该第一电子设备为响应于该第一请求消息发送的任务迁移数据;根据该任务迁移数据在第二电子设备的屏幕上显示该消息通知在第一电子设备上对应的应用程序APP页面。
可选地,该代理消息通知的展示形式和该消息通知的展示形式可以不同,例如:若消息通知的展示形式为弹窗消息通知,则代理消息通知的展示形式还可以是通知栏消息通知、悬浮消息通知等。
可选地,代理消息通知和消息通知的展示形式可以与用户当前使用电子设备的情况相关,例如,若用户当前正在使用电子设备的视频功能,那么该电子设备的消息通知/代理消息通知优选以通知栏的形式展示。
其中,可选地,任务迁移数据包括描述型数据和控制型数据,其中,描述型数据包括用于指示发出该消息通知的APP对应的页面的数据,控制型数据包括用于指示用户点击的坐标位置的数据。
可选地,描述型数据可以包括用于指示发出该消息通知的APP对应页面的画面的数据、用于指示该APP的名称的数据、用于指示该APP的图标的数据、用于指示该APP的版本的数据等。
本申请实施例中,当用户正在使用电子设备时,若第一电子设备上的APP发出消息通知,则该电子设备能够同步收到该消息通知(代理消息通知),并且,用户能够通过点击该电子设备上的消息通知触发与第一电子设备之间的任务迁移,从而使得该电子设备的屏幕上显示该消息通知对应的APP页面,进一步能够实现在该电子设备上对该消息通知的进一步处理。这样,不仅能够使得用户及时地查看其他设备上的消息通知,还能够以该代理消息通知为入口发起任务迁移流程,提高用户的使用体验。
另外,当用户点击正在使用的电子设备上的代理消息通知时,该正在使用的电子设备向发出消息通知的电子设备发送请求消息,基于该请求消息,两电子设备之间开始任务迁移流程,这样,任务迁移流程基于请求消息发起,能够使得进行任务迁移的设备主体更加准确,避免发生设备间不合理的任务迁移。
结合第三方面,在一种可能的实现方式中,该电子设备还包括:确定模块,用于在响应于用户点击代理消息通知的操作之前,确定用户点击的对象是否为代理消息通知;还用于当确定用户点击的对象为代理消息通知时,进一步确定该代理消息通知来源于第一电子设备。
本申请实施例中,在通过用户点击代理消息触发设备间的任务迁移时,先判断用户点击的对象是否为代理消息通知,当确定了点击的对象为代理消息通知时,再进一步确定该代理消息通知的来源设备,这样,能够避免因设备的错误识别而发起的设备间的任务迁移,能够提高迁移过程的安全性能,进一步提升用户的使用体验。
结合第三方面,在一种可能的实现方式中,第二任务迁移模块还具体用于:接收第一电子设备发送的第一通知消息,该第一通知消息包括第一数据,其中,第一数据为与该代理消息通知相关的数据;第二系统用户界面模块具体用于:根据该第一通知消息在该电子设备的屏幕上显示代理消息通知。
可选地,第一通知消息还包括第一指示信息,该第一指示信息用于指示有代理消息通知。
本申请实施例中,电子设备在收到消息通知时,在与其绑定的且处于在线状态的其他电子设备上同步展示该消息通知,能够实现多个电子设备之间的消息通知同步,使得用户能够及时接收到与当前所使用的电子设备相互绑定且处于在线状态的其他电子设备上的消息通知,提高了用户的使用体验。
结合第三方面,在一种可能的实现方式中,第二任务迁移模块还用于:根据第一通知消息创建代理消息通知;该电子设备还包括:第二通知管理模块,用于根据所述代理消息通知生成第二通知消息;第二系统用户界面模块具体用于:根据该第二通知消息,在该电子设备的屏幕上显示代理消息通知。
可选地,该代理消息通知的展示形式和该消息通知的展示形式可以不同,例如:若消息通知的展示形式为弹窗消息通知,则代理消息通知的展示形式还可以是通知栏消息通知、悬浮消息通知等。
可选地,代理消息通知和消息通知的展示形式可以与用户当前使用电子设备的情况相关,例如, 若用户当前正在使用电子设备的视频功能,那么该电子设备的消息通知/代理消息通知优选以通知栏的形式展示。
本申请实施例中,电子设备根据接收到的第一通知消息创建代理消息通知,该代理消息通知的内容与消息通知的内容相同,但是其展示形式可以不同,进一步地,其展示形式可以自动适应于对应的电子设备的具体使用状态,比如,当用户正在使用视频应用时,该电子设备的消息通知/代理消息通知的展示形式优选为通知栏形式,从而尽可能避免对用户的观看体验造成影响,能够进一步提升用户的使用体验。
结合第三方面,在一种可能的实现方式中,第二系统用户界面还用于:响应于用户点击代理消息通知的操作,停止显示该代理消息通知。
可选地,第二系统用户界面还具体用于:接收第一电子设备发送的第二删除消息,该第二删除消息用于通知该电子设备停止显示代理消息通知;响应于该第二删除消息,停止显示代理消息通知。
本申请实施例中,能够在代理消息通知被点击之后,及时清除其他设备上展示的该消息通知或代理消息通知,以避免为用户带来不必要的烦扰,进一步提升用户的使用体验。
第四方面,提供一种电子设备,该电子设备为第一电子设备,该电子设备包括:第一系统用户界面模块,用于在该电子设备的屏幕上显示消息通知,并触发在第二电子设备的屏幕上显示代理消息通知,该代理消息通知根据该消息通知生成,与该消息通知具有对应关系;应用程序APP,用于响应于用户点击第二电子设备的屏幕上显示的代理消息通知的操作,创建该消息通知在第一电子设备上对应的应用程序APP页面,该APP页面用于第二电子设备在该第二电子设备的屏幕上显示。
可选地,该电子设备和第一电子设备相互绑定,且建立了通信连接。
可选地,代理消息通知的内容与消息通知的内容相同。
本申请实施例中,当用户正在使用第二电子设备时,若第一电子设备上的APP发出消息通知,则第二电子设备能够同步收到该消息通知(代理消息通知),并且,用户能够通过点击第二电子设备上的消息通知触发与第一电子设备之间的任务迁移,从而使得第二电子设备的屏幕上显示该消息通知对应的APP页面,进一步能够实现在第二电子设备上对该消息通知的进一步处理。这样,不仅能够使得用户及时地查看其他设备上的消息通知,还能够以该代理消息通知为入口发起任务迁移流程,提高用户的使用体验。
结合第四方面,在一种可能的实现方式中,该电子设备还包括:第一任务迁移模块,用于接收第二电子设备发送的第一请求消息,该第一请求消息是第二电子设备为响应于用户点击该第二电子设备的屏幕上显示的代理消息通知的操作发送的,该第一请求消息用于请求发起与该电子设备之间的任务迁移,该代理消息通知的内容与上述消息通知的内容相同;第一任务迁移模块还用于响应于该第一请求消息,向第二电子设备发送任务迁移数据,该任务迁移数据用于第二电子设备在该第二电子设备的屏幕上显示所述消息通知在该电子设备上对应的应用程序APP页面。
其中,可选地,任务迁移数据包括描述型数据和控制型数据,其中,描述型数据包括用于指示发出该消息通知的APP对应的页面的数据,控制型数据包括用于指示用户点击的坐标位置的数据。
可选地,描述型数据可以包括用于指示发出该消息通知的APP对应页面的画面的数据、用于指示该APP的名称的数据、用于指示该APP的图标的数据、用于指示该APP的版本的数据等。
可选地,该代理消息通知的展示形式和该消息通知的展示形式可以不同,例如:若消息通知的展示形式为弹窗消息通知,则代理消息通知的展示形式还可以是通知栏消息通知、悬浮消息通知等。
可选地,代理消息通知和消息通知的展示形式可以与用户当前使用电子设备的情况相关,例如,若用户当前正在使用电子设备的视频功能,那么该电子设备的消息通知/代理消息通知优选以通知栏的形式展示。
本申请实施例中,当用户正在使用第二电子设备时,若另一电子设备上的APP发出消息通知,则第二电子设备能够同步收到该消息通知(代理消息通知),并且,用户能够通过点击第二电子设备上的消息通知触发与该电子设备之间的任务迁移,从而使得第二电子设备的屏幕上显示该消息通知对应的APP页面,进一步能够实现在第二电子设备上对该消息通知的进一步处理。这样,不仅能够使得用户及时地查看其他设备上的消息通知,还能够以该代理消息通知为入口发起任务迁移流程,提高用户的使用体验。
结合第四方面,在一种可能的实现方式中,第一任务迁移模块还用于:响应于该电子设备在该电子设备的屏幕上显示消息通知,向第二电子设备发送第一通知消息,该第一通知消息用于所述第二电子设备在所述第二电子设备的屏幕上显示所述代理消息通知,该第一通知消息包括第一数据,其中,第一数据为与该代理消息通知相关的数据。
可选地,第一通知消息包括第一指示信息,该第一指示信息用于指示有代理消息通知。
本申请实施例中,电子设备在收到消息通知时,在与其绑定的且处于在线状态的其他电子设备上同步展示该消息通知,能够实现多个电子设备之间的消息通知同步,使得用户能够及时接收到与当前所使用的电子设备相互绑定且处于在线状态的其他电子设备上的消息通知,提高了用户的使用体验。
结合第四方面,在一种可能的实现方式中,第一系统用户界面模块还用于:响应于该第一请求消息,停止显示消息通知。
还可以描述为:第一系统用户界面模块还用于:响应于用户点击该代理消息通知的操作,停止显示消息通知。
本申请实施例中,能够在代理消息通知被点击之后,及时清除发出消息通知的设备上展示的该消息通知,以避免为用户带来不必要的烦扰,进一步提升用户的使用体验。
结合第四方面,在一种可能的实现方式中,第一任务迁移模块还用于:响应于该第一请求消息,向第二电子设备发送第二删除消息,该第二删除消息用于通知该第二电子设备停止显示代理消息通知。
还可以描述为:第一任务迁移模块还用于:响应于用户点击该代理消息通知的操作,向第二电子设备发送第二删除消息,该第二删除消息用于通知该第二电子设备停止显示代理消息通知。
本申请实施例中,能够在代理消息通知被点击之后,及时清除其他设备上展示的该代理消息通知,以避免为用户带来不必要的烦扰,进一步提升用户的使用体验。
第五方面,提供一种电子设备,该电子设备包括存储器和处理器,其中,存储器用于存储计算机程序代码,处理器用于执行存储于存储器中的计算机程序代码,以实现上述第一方面或第一方面中任一种可能实现方式中的方法。
第六方面,提供一种电子设备,该电子设备包括存储器和处理器,其中,存储器用于存储计算机程序代码,处理器用于执行存储于存储器中的计算机程序代码,以实现上述第二方面或第二方面中任一种可能实现方式中的方法。
第七方面,提供一种任务迁移的系统,该系统包括:一个或多个如上述第五方面中所述的电子设备,和,一个或多个如上述第六方面中所述的电子设备。
第八方面,提供了一种芯片,其中存储有指令,当其在设备上运行时,使得所述芯片执行上述第一方面或第一方面中任一种可能实现方式中的方法,或者,使得所述芯片执行上述第二方面或第二方面中任一种可能实现方式中的方法。
第九方面,提供了一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序或指令,当该计算机程序或指令被执行时,实现上述第一方面或第一方面中任一种可能实现方式中的方法,或者,实现上述第二方面或第二方面中任一种可能实现方式中的方法。
第十方面,提供了一种计算机程序产品,当计算机程序产品在电子设备上运行时,使得电子设备执行上述第一方面或第一方面中任一种可能实现方式中的方法,或者,使得电子设备执行上述第二方面或第二方面中任一种可能实现方式中的方法。
附图说明
图1是本申请实施例提供的电子设备的结构示意图;
图2是本申请实施例提供的电子设备的软件结构框图;
图3是本申请实施例提供的一种现有的电子设备之间的任务迁移的操作界面图;
图4是本申请实施例提供的一种电子设备间任务迁移的界面显示图;
图5是本申请实施例提供的又一种电子设备间任务迁移的界面示意图;
图6是本申请实施例提供的一种任务迁移方法的示意性流程图;
图7是本申请实施例提供的一种多个电子设备之间实现消息通知同步的信息交互图;
图8是本申请实施例提供的一种实现电子设备之间的任务迁移的信息交互图;
图9是本申请实施例提供的一种清除消息通知的方法相对应的信息交互图;
图10是本申请实施例提供的一种用于实现设备间的任务迁移的系统的功能模块示意图。
具体实施方式
下面将结合附图,对本申请中的技术方案进行描述。显然,所描述的实施例仅仅是本申请的一部分实施例,而不是全部的实施例。
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。其中,在本申请实施例的描述中,除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B;本文中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,在本申请实施例的描述中,“复数个”或者“多个”是指两个或多于两个。
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。
本申请实施例提供的方法可以应用于手机、平板电脑、可穿戴设备、车载设备、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、个人数字助理(personal digital assistant,PDA)等电子设备上,本申请实施例对电子设备的具体类型不作任何限制。
示例性的,图1示出了电子设备100的结构示意图。电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户身份识别(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。
可以理解的是,本申请实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
其中,控制器可以是电子设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户身份识别(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟 线(derail clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现电子设备100的触摸功能。
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。在一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现电子设备100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现电子设备100的显示功能。
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。
可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,外部存储器,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary  metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行电子设备100的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的App(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器170A收听音乐,或收听免提通话。
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。电子设备100可以设置至少一个麦克风170C。在另一些实施例中,电子设备100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备100根据压力传感器180A检测所述触摸操作强度。电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一 压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。
陀螺仪传感器180B可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定电子设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测电子设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。
气压传感器180C用于测量气压。在一些实施例中,电子设备100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。
磁传感器180D包括霍尔传感器。电子设备100可以利用磁传感器180D检测翻盖皮套的开合。在一些实施例中,当电子设备100是翻盖机时,电子设备100可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。
加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。
距离传感器180F,用于测量距离。电子设备100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备100可以利用距离传感器180F测距以实现快速对焦。
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。电子设备100通过发光二极管向外发射红外光。电子设备100使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定电子设备100附近有物体。当检测到不充分的反射光时,电子设备100可以确定电子设备100附近没有物体。电子设备100可以利用接近光传感器180G检测用户手持电子设备100贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。
环境光传感器180L用于感知环境光亮度。电子设备100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测电子设备100是否在口袋里,以防误触。
指纹传感器180H用于采集指纹。电子设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。
温度传感器180J用于检测温度。在一些实施例中,电子设备100利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,电子设备100执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,电子设备100对电池142加热,以避免低温导致电子设备100异常关机。在其他一些实施例中,当温度低于又一阈值时,电子设备100对电池142的输出电压执行升压,以避免低温导致的异常关机。
触摸传感器180K,也称“触控面板”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器180M也可以设置于耳机中,结合成骨传导耳机。音频模块170可以基于所述骨传导传感器180M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器180M获取的血压跳动信号解析心率信息,实现心率检测功能。
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间 提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备100的接触和分离。电子设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。电子设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,电子设备100采用嵌入式SIM(embedded-SIM,eSIM)卡,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备100中,不能和电子设备100分离。
应理解,本申请实施例中的电话卡包括但不限于SIM卡、eSIM卡、全球用户识别卡(universal subscriber identity module,USIM)、通用集成电话卡(universal integrated circuit card,UICC)等等。
电子设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本申请实施例以分层架构的Android系统为例,示例性说明电子设备100的软件结构。
图2是本申请实施例的电子设备100的软件结构框图。分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。应用程序层可以包括一系列应用程序包。
如图2所示,应用程序包可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等应用程序。
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。
如图2所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。
电话管理器用于提供电子设备100的通信功能。例如通话状态的管理(包括接通,挂断等)。
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。
Android Runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(media libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。
2D图形引擎是2D绘图的绘图引擎。
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。
应理解,本申请实施例中的技术方案可以用于Android、IOS、鸿蒙等系统中。
为了更加清楚地理解本申请实施例提供的方案,以下,先对本申请中所述的任务迁移进行详细介绍:
设备的任务迁移功能为用户提供了一种无缝的跨设备操作体验。举例来说,用户在设备A上操作某个应用(application,APP)时,可以通过触发设备A和设备B之间的任务迁移流程,在设备B上继续操作这个APP,并且在设备B上显示的该APP的界面与触发任务迁移前在设备A上显示的界面一致,相关的数据也同步迁移,用户在此基础上继续操作该APP,能够实现APP操作的无缝衔接,就如同该APP一直运行在设备B上。
其中,上述APP可以没有在设备B中安装。也就是说,设备A安装了第一APP,设备B没有安装该第一APP,通过触发设备A和设备B之间的任务迁移,也能够实现将该第一APP迁移至设备B,进而在设备B上继续操作该APP。
可选地,当设备B上没有安装该第一APP时,触发任务迁移后,设备B上显示的该第一APP的界面样式与该设备A上显示的该APP的界面样式一致。
可选地,当设备B上安装了该第一APP时,触发任务迁移后,设备B上显示的该第一APP的界面样式可以与该设备A上显示的该APP的界面样式一致,也可以与设备B上安装的改啊APP的界面样式一致。
应理解:当设备B没有设备A的账户信息时,也可以实现设备A和设备B之间的任务迁移。
本申请实施例的应用场景可以是用户通过消息通知触发任务迁移流程。
本申请实施例中的电子设备可以是电视机、台式电脑、笔记本电脑,还可以是便携式电子设备,诸如手机、平板电脑、照相机、摄影机、录像机,还可以是5G网络中的电子设备或者未来演进的公用陆地移动通信网络(public land mobile network,PLMN)中的电子设备等,本申请对此不做限定。
图3示出了一种现有的电子设备之间的任务迁移的操作界面图。如图3所示,现有的电子设备之间的任务迁移是以任务中心为入口,当用户希望将电子设备B(或第二电子设备)上正在运行的APP迁移到电子设备A(或第一电子设备)上时,用户首先需要进入电子设备A的任务中心(例如:通过从电子设备A的屏幕底部上滑的手势进入电子设备A的任务中心,如图3中的(a)所示),此时,电子设备A上显示电子设备B上正在运行的APP列表(如图3中的(b)所示),用户通过在该列表上选择需要进行任务迁移的APP(以华为视频APP为例)(如图3中的(b)所示),来触发电子设备A和电子设备B之间的任务迁移,之后,该APP在电子设备A上继续运行。该方法以设备的任务中心为入口,而任务中心只能展示正在运行中的APP列表,大部分消息类APP只通过系统的消息推送服务在通知栏等位置展示消息,不会处于运行状态,因此,对于短信、邮件等有消息通知时用户才会打开的APP,用户在操作设备B时不能及时感知设备A上的新消息通知,不会主动进入设备B的任务中心发起任务迁移流程,从而无法及时操作对应APP。
在另一种现有的电子设备之间的任务迁移方案中,华为运动健康APP可以建立手机与手表或手环之间的绑定关系,并监听手机上各个APP的消息通知,并在监听到消息通知时将这些消息通知及时转发到与手机建立了绑定关系的手表或者手环上,从而实现手机与手表或手环之间的消息同步展示。
该方法的应用场景仅限于将手机上的消息通知同步展示在手表或手环等智能穿戴设备上,无法实现两个或多部手机之间的消息通知同步,设备类型和应用场景有限,并且用户在手表或手环上只能查看消息通知的详细内容,不能直接操作对应的APP。
因此,目前的任务迁移是以任务中心为入口,无法实现大部分消息类APP的任务迁移。
因此,亟需要一种新的任务迁移的方案,以实现大部分消息类APP的任务迁移,提升用户的使用体验。
有鉴于此,本申请提供了一种任务迁移方法和电子设备。该方法能够实现多台电子设备之间的消息通知同步,使得用户在使用一台电子设备时,可以及时查看另一台电子设备上的消息通知,并且,用户可以以该消息通知为入口发起任务迁移流程,不再依赖于任务中心,能够提高用户的使用体验。
以下实施例中所使用的术语只是为了描述特定实施例的目的,而并非旨在作为对本申请的限制。如在本申请的说明书和所附权利要求书中所使用的那样,单数表达形式“一个”、“一种”、“所述”、“上述”、“该”和“这一”旨在也包括例如“一个或多个”这种表达形式,除非其上下文中明确地有相反指示。还应当理解,在本申请以下各实施例中,“至少一个”、“一个或多个”是指一个、两个或两个以上。术语“和/或”,用于描述关联对象的关联关系,表示可以存在三种关系;例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A、B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。
在本说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本申请的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“一个实施例”、“一些实施例”、“另一个实施例”、“另外一些实施例”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。
为了更加清楚地理解本申请实施例提供的方案,在介绍具体方案之前,先对本申请实施例中所涉及到的消息通知和代理消息通知进行详细介绍:
消息通知和代理消息通知:
在一个示例中,电子设备A和电子设备B互相绑定,电子设备A上的短信APP收到一条短信,并在该电子设备A的屏幕上以弹窗的形式展示该短信通知,此时,电子设备B的屏幕上也同样以弹窗的形式展示一条与该短信通知对应的通知。其中,该短信通知即属于消息通知;与该短信通知对应的通知即属于代理消息通知。
消息通知和代理消息通知的关联:
代理消息通知源于消息通知,是根据消息通知生成的,代理消息通知与消息通知具有对应关系,示例性地,代理消息通知的内容和与其对应的消息通知的内容相同。
消息通知和代理消息通知的区别:
代理消息通知和与其对应的消息通知的区别在于显示载体(本实施例中分别为电子设备B和电子设备A)不同,并且,该代理消息通知的展示形式和该消息通知的展示形式可以不同,例如:若消息通知的展示形式为弹窗消息通知,则代理消息通知的展示形式还可以是通知栏消息通知、悬浮消息通知等。其中,具体的展示形式可以根据用户正在使用电子设备的情况确定,例如,当用户正在使用电子设备玩游戏时,展示形式即为通知栏的形式,而不是弹窗的形式。
示例性地,图4示出了本申请实施例提供的一种电子设备间任务迁移的界面显示图。如图4所示,电子设备A和电子设备B互相绑定,用户正在使用电子设备B,电子设备A上的信息APP在收到一个新消息时,以弹窗的形式发出了对应的消息通知(如图4中的(a)所示),此时,电子设备B上也同样以弹窗的形式收到了该消息通知(如图4中的(b)所示),即电子设备A和电子设备B之间实现了消息同步,当用户点击电子设备B上的消息通知时,就能够触发电子设备A和电子设备B之间的任务迁移,即电子设备B上展示该消息通知对应的APP页面(本实施例中的消息通知对应的APP页面为信息页面,如图4中的(c)所示),以便于用户在电子设备B上做进一步操作。其中,当用户点击电子设备B上的消息通知时,会自动触发删除电子设备A和电子设备B上的消息通知的操作。
应理解:电子设备A和电子设备B之间建立了通信连接。
可选地,电子设备A和电子设备B都连接了同一局域网,或者,电子设备A和电子设备B之间建立了WIFI P2P连接,还或者,电子设备A和电子设备B通过其他方式建立了通信连接,本申请对此不作限定。
可选地,电子设备A上的APP发出消息通知的形式还可以是通知栏消息通知,也可以是悬浮消息通知,还可以是其他形式,本申请对此不作限定。
可选地,电子设备B同步展示上述消息通知的形式还可以是通知栏消息通知,也可以是悬浮消息通知,还可以是其他形式,本申请对此不作限定。
可选地,电子设备B上展示消息通知的形式可以是与电子设备A的消息通知展示形式相同的形式,也可以是用户根据实际情况预先设置的偏好形式,还可以是系统根据用户正在使用的场景自动选择的形式,还可以是其他形式,本申请对此不作限定。
其中,在一个示例中,系统根据用户正在使用的场景自动选择展示形式,例如可以是:当电子设备A上收到一条以弹窗的形式展示的消息通知时,用户正在电子设备B上玩游戏,此时电子设备B根据用户正在使用的场景自动选择通知栏或者悬浮窗等不打扰用户的游戏体验的形式展示消息通知。
可选地,以弹窗、通知栏或者其他形式展示的该消息通知可以是展示该消息通知具体的内容,也可以不展示具体内容,而是展示例如“您有一条新信息”、“您有一条新的微信消息”之类的通知。
可选地,电子设备A可以是手机、平板、智能电视、可穿戴智能设备中的任意一项,还可以是其他电子设备,本申请对此不作限定。
同样的,电子设备B可以是手机、平板、智能电视、可穿戴智能设备中的任意一项,还可以是其他电子设备,本申请对此不作限定。
应理解:上述消息通知对应的APP页面,是由电子设备A上的该APP在发出消息通知时指定的,也就是说,电子设备A在其显示屏上展示该消息通知之前,就已经建立了该消息通知与该APP页面之间的对应关系,以使得根据该消息通知能够确定该消息通知对应的APP页面。例如:在本实施例中,发出消息通知的为电子设备A上的信息APP,该消息通知对应的APP页面为信息页面,也可以说,该信息页面是该电子设备A上的信息APP在发出该消息通知时指定的。
应理解:该实施例中,电子设备B上显示的消息通知,也可以称为代理消息通知,该代理消息通知的内容和与其对应的消息通知的内容完全相同,区别在于显示载体(本实施例中分别为电子设备B和电子设备A)不同,并且,该代理消息通知的展示形式和该消息通知的展示形式可以不同,例如:若消息通知的展示形式为弹窗消息通知,则代理消息通知的展示形式还可以是通知栏消息通知、悬浮消息通知等形式。
本申请实施例中,当用户正在使用电子设备B时,若电子设备A上的APP发出消息通知,则与之建立了绑定关系且连接了同一局域网的电子设备B能够同步收到该消息通知,并且,用户能够通过点击电子设备B上的消息通知触发与电子设备A之间的任务迁移,从而使得电子设备B的显示界面显示该消息通知对应的APP页面,进一步能够实现在电子设备B上对该消息通知的进一步处理。这样,能够使得用户及时地查看其他设备上的消息通知,并且能够以该消息通知为入口发起任务迁移流程,提高用户的使用体验。
与图4所示实施例并列的,示例性地,图5示出了本申请实施例提供的又一种电子设备间任务迁移的界面示意图。如图4所示,电子设备A和电子设备B互相绑定,并且电子设备A和电子设备C也互相绑定,用户正在使用电子设备C,电子设备A上的信息APP在收到一个新消息时,以弹窗的形式发出了对应的消息通知(如图5中的(a)所示),此时,电子设备B上也以弹窗的形式收到了该消息通知(如图5中的(b)所示),电子设备C上也同样以弹窗的形式收到了该消息通知(如图5中的(c)所示),即电子设备A和电子设备B之间实现了消息同步,并且,电子设备A和电子设备C之间也实现了消息同步,当用户点击电子设备C上的消息通知时,就能够触发电子设备A和电子设备C之间的任务迁移,即电子设备C上展示该消息通知对应的APP页面(本实施例中的消息通知对应的APP页面为信息页面,如图5中的(d)所示),以便于用户在电子设备C上做进一步操作。
其中,当用户点击电子设备C上的消息通知时,会自动触发删除电子设备A、电子设备B和电子设备C上的消息通知的操作。
可选地,电子设备A上的APP发出消息通知的形式还可以是通知栏消息通知,也可以是悬浮消息通知,还可以是其他形式,本申请对此不作限定。
可选地,电子设备B同步展示上述消息通知的形式还可以是通知栏消息通知,也可以是悬浮消息通知,还可以是其他形式,本申请对此不作限定。
可选地,电子设备C同步展示上述消息通知的形式还可以是通知栏消息通知,也可以是悬浮消息通知,还可以是其他形式,本申请对此不作限定。
可选地,电子设备B或电子设备C上展示消息通知的形式可以是与电子设备A的消息通知展示形式相同的形式,也可以是用户根据实际情况预先设置的偏好形式,还可以是系统根据用户正在使用的 场景自动选择的形式,还可以是其他形式,本申请对此不作限定。
其中,在一个示例中,系统根据用户正在使用的场景自动选择展示形式,例如可以是:当电子设备A上收到一条以弹窗的形式展示的消息通知时,用户正在电子设备B上玩游戏,电子设备C处于锁屏页面,无人使用,此时电子设备B根据用户正在使用的场景自动选择通知栏或者悬浮窗等不打扰用户的游戏体验的形式展示消息通知,而电子设备C可以以弹窗的形式同步展示该消息通知。
可选地,以弹窗、通知栏或者其他形式展示的该消息通知可以是展示该消息通知具体的内容,也可以不展示具体内容,而是展示例如“您有一条新信息”、“您有一条新的微信消息”之类的通知。
其中,已绑定且连接了同一局域网的设备间的消息通知的同步可以通过位于电子设备内部的任务迁移模块实现。
可选地,电子设备间建立绑定关系,可以是通过电子设备的设置入口建立电子设备间的绑定关系,还可以是通过电子设备的超级终端入口建立电子设备间的绑定关系,还可以是通过其他方式建立电子设备间的绑定关系,本申请对此不作限定。
可选地,电子设备A可以是手机、平板、智能电视、可穿戴智能设备中的任意一项,还可以是其他电子设备,本申请对此不作限定。
同样的,电子设备B或电子设备C可以是手机、平板、智能电视、可穿戴智能设备中的任意一项,还可以是其他电子设备,本申请对此不作限定。
应理解:上述消息通知对应的APP页面,是由电子设备A上的该APP在发出消息通知时指定的,例如:在本实施例中,发出消息通知的为电子设备A上的信息APP,该消息通知对应的APP页面为信息页面,也就是说,该信息页面是该电子设备A上的信息APP在发出该消息通知时指定的。
应理解:该实施例中,电子设备B和电子设备C上显示的消息通知,也可以称为代理消息通知,该代理消息通知的内容和与其对应的消息通知的内容完全相同,区别在于显示载体不同,本实施例中,消息通知的载体为电子设备A,代理消息通知的载体为电子设备B和电子设备C,并且,该代理消息通知的展示形式和该消息通知的展示形式可以不同,例如:若消息通知的展示形式为弹窗消息通知,则代理消息通知的展示形式还可以是通知栏消息通知、悬浮消息通知等。
应理解:本申请实施例中与电子设备A绑定的电子设备为电子设备B和电子设备C,但本申请实施例中的电子设备B和电子设备C可以泛指与该电子设备A建立了绑定关系,并且处于上线状态(连接了同一局域网)的所有电子设备,也就是说,若电子设备A与N(N为大于或者等于1的正整数)个电子设备建立了绑定关系且都处于上线状态,那么该电子设备A能够跟该N个电子设备实现消息同步,并且,用户可以通过点击该N个电子设备中的任一个电子设备上的代理消息通知触发与电子设备A之间的任务迁移。
并且,当用户通过点击该N个电子设备中的任一个电子设备上的代理消息通知触发与电子设备A之间的任务迁移时,该电子设备A上展示的消息通知和该N个电子设备上展示的代理消息通知会被自动删除;或,当用户正在使用电子设备A时,用户点击电子设备A上展示的消息通知,也会触发该电子设备A上展示的消息通知和该N个电子设备上展示的代理消息通知的自动删除流程。
本申请实施例中,当电子设备A与多台电子设备之间建立了绑定关系,且都处于上线状态时,当用户正在使用该多台电子设备中的任意一台时,若电子设备A上的APP发出消息通知,则该多台电子设备都能够同步收到该消息通知,并且,用户能够通过点击该多台电子设备中的任意一台电子设备上的消息通知触发与电子设备A之间的任务迁移,从而使得该任意一台电子设备的显示界面显示该消息通知对应的APP页面,进而实现在该任意一台电子设备上对该消息通知的进一步处理,当用户点击该消息通知触发任务迁移后,电子设备A与多台电子设备上的该消息通知会被自动删除。这样,能够使得用户可以及时地查看其他设备上的消息通知,并且能够以该消息通知为入口发起任务迁移流程,使得设备间的任务迁移不再依赖于任务中心入口,在任务迁移流程触发后还会及时删除所有设备上的该消息通知,能够提高用户的使用体验。
图6示出了本申请实施例提供的一种任务迁移的方法600的示意性流程图。如图6所示,该方法600包括:
步骤S601:当第一电子设备的屏幕上显示消息通知时,第二电子设备在其屏幕上显示代理消息通知,该代理消息通知根据该消息通知生成,与该消息通知具有对应关系。
可选地,该代理消息通知的内容与该消息通知的内容相同。
可选地,该代理消息通知的展示形式和该消息通知的展示形式可以不同,例如:若消息通知的展示形式为弹窗形式,则代理消息通知的展示形式还可以是通知栏消息通知、悬浮消息通知等。
可选地,代理消息通知和消息通知的展示形式可以与用户当前使用电子设备的情况相关,例如,若用户当前正在使用电子设备的视频功能,那么该电子设备的消息通知/代理消息通知优选以通知栏的形式展示。
应理解:第一电子设备和第二电子设备之间建立了绑定关系,并且都处于在线状态(连接了同一局域网)。
步骤S602:响应于用户的第一操作,第二电子设备在其屏幕上显示上述消息通知在第一电子设备上对应的应用程序APP页面,其中,第一操作为点击上述代理消息通知的操作。
可选地,在步骤S602之前,还可以包括以下步骤:
第二电子设备确定用户点击的对象是否为上述代理消息通知;
当第二电子设备确定用户点击的对象为上述代理消息通知时,该第二电子设备进一步确定该代理消息通知来源于第一电子设备。
本申请实施例中,当用户正在使用第二电子设备时,若第一电子设备上的APP发出消息通知,则第二电子设备能够同步收到该消息通知(代理消息通知),并且,用户能够通过点击第二电子设备上的消息通知触发与第一电子设备之间的任务迁移,从而使得第二电子设备的屏幕上显示该消息通知对应的APP页面,进一步能够实现在第二电子设备上对该消息通知的进一步处理。这样,不仅能够使得用户及时地查看其他设备上的消息通知,还能够以该代理消息通知为入口发起任务迁移流程,提高用户的使用体验。
在图6所示实施例的基础上,示例性地,图7示出了本申请实施例提供的一种多个电子设备之间实现消息通知同步的信息交互图。如图7所示,以电子设备A和电子设备B之间实现消息通知同步为例,电子设备A包括应用程序APP、第一任务迁移模块、第一分布式设备管理模块、第一系统用户界面模块(第一SystemUI模块)和第一通知管理模块,电子设备B包括第二任务迁移模块、第二系统用户界面模块(第二SystemUI模块)和第二通知管理模块,该消息通知同步流程包括:
步骤S701:第一任务迁移模块向第一分布式设备管理模块发送第一注册消息,该第一注册消息用于第一任务迁移模块向第一分布式设备管理模块注册已绑定电子设备的上下线的监听。
其中,已绑定的电子设备是指与电子设备A建立了绑定关系的电子设备。
步骤S702:第一SystemUI模块向第一通知管理模块发送第二注册消息,该第二注册消息用于第一SystemUI模块向第一通知管理模块注册消息通知的监听。
步骤S703:第一任务迁移模块向第一通知管理模块发送第三注册消息,该第三注册消息用于第一任务迁移模块向第一通知管理模块注册消息通知的监听。
步骤S704:响应于上述第一注册消息,第一分布式设备管理模块向第一任务迁移模块发送第一回复消息,该第一回复消息用于通知第一任务迁移模块电子设备上线和下线的情况。
其中,可选地,电子设备上线可以是指该电子设备与电子设备A建立了绑定关系,并且与电子设备A连接了同一局域网;还可以是指该电子设备与电子设备A建立了绑定关系,并且与电子设备A的距离处于该两设备的蓝牙信号的覆盖范围之内,还可以是指处于其他的该电子设备与电子设备A之间可以相互通信的状态,本申请对此不作限定。
应理解:电子设备之间建立的绑定关系是用户授权建立的一种逻辑上的信任关系,由用户触发、系统实现,是电子设备上线和下线的前提条件。
类似地,电子设备下线是指该电子设备与电子设备A建立有绑定关系,但是无法通过任何介质与电子设备A进行通信的状态。
其中,第一回复消息可以包括上线的电子设备的ID和下线的电子设备的ID。
步骤S705:第一任务迁移模块维护可用设备列表。
其中,可用设备列表是指与电子设备A建立了绑定关系,并且处于上线状态的电子设备列表。
具体地,当第一任务迁移模块通过第一回复消息确定有电子设备上线时,将该上线的电子设备存储到可用设备列表中;当第一任务迁移模块通过第一回复消息确定有电子设备下线时,将该下线的电 子设备从可用设备列表中移除。
应理解:上述步骤S701、步骤S702和步骤S703的执行顺序不限定;并且,步骤S702、步骤S703和步骤S704的执行顺序不限定。
步骤S706:当电子设备A上有APP接收到消息时,创建消息通知,并向第一通知管理模块发送第一消息,该第一消息携带该消息通知。
步骤S707:第一通知管理模块在接收到第一消息后,为响应于第二注册消息,向第一SystemUI模块发送第二回复消息,该第二回复消息用于通知第一SystemUI模块有新的消息通知,并且,该第二回复消息携带该新的消息通知。
可选地,第二回复消息可以包括第一指示信息,该第一指示信息用于指示有新的消息通知。
可选地,该新的消息通知被携带或转发的方式可以是直接被携带或转发,还可以是编码和/或加密之后被携带或转发,还可以是压缩之后被携带或转发,还可以是其他方式,本申请对此不作限定。
步骤S708:第一SystemUI模块接收到第二回复消息后,在电子设备A的屏幕上展示该消息通知。
可选地,展示该消息通知的方式可以是通知栏的方式,还可以是弹窗的方式,还可以是悬浮窗的方式,还可以是其他方式,本申请对此不作限定。
可选地,消息通知显示的内容,例如可以是“您有一条新短信”、“您有一封新邮件”或者“您有一个未接来电”等,还可以是进一步包括该消息通知涉及的通知内容的简述,例如显示新短信的第一行文字,显示新邮件的摘要,显示未接来电的来电联系人等,还可以是该消息通知相关的其他内容,本申请对此不作限定。
步骤S709:与步骤S707并列的,第一通知管理模块在接收到第一消息后,响应于第三注册消息,向第一任务迁移模块发送第三回复消息,该第三回复消息用于通知第一任务迁移模块有新的消息通知,并且,该第三回复消息携带该新的消息通知。
可选地,第三回复消息可以包括第二指示信息,该第二指示信息用于指示有新的消息通知。
可选地,该新的消息通知被携带或转发的方式可以是直接被携带或转发,还可以是编码和/或加密之后被携带或转发,还可以是压缩之后被携带或转发,还可以是其他方式,本申请对此不作限定。
应理解:步骤S707和步骤S709的执行顺序不限定,可以是同时执行,也可以是不同时执行。
步骤S710:第一任务迁移模块接收到第三回复消息后,向第二任务迁移模块发送第一通知消息,该第一通知消息用于通知第二任务迁移模块有代理消息通知,该第一通知消息包括第一数据,该第一数据为与该代理消息通知相关的数据。
可选地,第一任务迁移模块接收到第三回复消息后,可以向服务器发送上述第一通知消息,然后再由服务器向第二任务迁移模块发送该第一通知消息。
可选地,该第一通知消息可以包括第三指示信息,该第三指示信息用于指示有代理消息通知。
可选地,第一数据可以包括以下数据中的一项或者多项:用于指示该代理消息通知的编号的数据、用于指示该代理消息通知的标题的数据、用于指示该代理消息通知的内容的数据和用于指示该代理消息通知的图标的数据,此外,还可以包括用于指示消息通知的其他内容的数据,本申请对此不作限定。
应理解:本申请的所有实施例中所述的代理消息通知的内容,都与其对应的消息通知的内容一样,区别在于其载体不同,并且,该代理消息通知的展示形式和该消息通知的展示形式可以不同,例如:若消息通知的展示形式为弹窗消息通知,则代理消息通知的展示形式还可以是通知栏消息通知、悬浮消息通知等。
应理解:本申请实施例中的电子设备B泛指与电子设备A具有绑定关系,并且处于上线状态的所有电子设备(即可用设备列表中的所有设备)。第一任务迁移模块接收到第三回复消息后,会向可用设备列表中的所有电子设备的任务迁移模块发送上述第一通知消息。
步骤S711:第二任务迁移模块接收到第一通知消息后,对第一通知消息中携带的第一数据进行解析,进而创建出一条与上述消息通知对应的代理消息通知,然后向第二通知管理模块发送第二消息,该第二消息携带该代理消息通知。
应理解:上述代理消息通知的内容和消息通知的内容完全相同,区别在于其载体不同,即:消息通知是原电子设备的屏幕上展示的消息通知,代理消息通知是与源电子设备相互绑定且连接了同一局域网的其他电子设备的屏幕上展示的消息通知,并且,该代理消息通知的展示形式和该消息通知的展 示形式可以不同,例如:若消息通知的展示形式为弹窗消息通知,则代理消息通知的展示形式还可以是通知栏消息通知、悬浮消息通知等。
步骤S712:第二通知管理模块在接收到第二消息后,向第二SystemUI模块发送第二通知消息,该第二通知消息用于通知第二SystemUI模块有代理消息通知,并且,该第二通知消息携带该代理消息通知。
可选地,第二通知消息可以包括第四指示信息,该第四指示信息用于指示有代理消息通知。
可选地,该代理消息通知被携带或转发的方式可以是直接被携带或转发,还可以是编码和/或加密之后被携带或转发,还可以是压缩之后被携带或转发,还可以是其他方式,本申请对此不作限定。
步骤S713:第二SystemUI模块接收到第二通知消息后,在电子设备B的屏幕上展示该第二通知消息携带的代理消息通知。
本申请实施例中,通过电子设备的任务迁移模块的设备上下线监听功能、消息通知监听功能以及其消息通知的转发功能,能够使得电子设备A在收到消息通知时,在与其绑定的且处于在线状态的其他电子设备上同步展示该消息通知,能够实现多个电子设备之间的消息通知同步,使得用户能够及时接收到与当前所使用的电子设备相互绑定且处于在线状态的其他电子设备上的消息通知,提高了用户的使用体验。
在图6所示实施例的基础上,并且与图7所示实施例相承接地,示例性地,图8示出了本申请实施例提供的一种实现电子设备之间的任务迁移的信息交互图。如图8所示,以电子设备A和电子设备B之间的任务迁移为例,该任务迁移流程包括:
步骤S801:当用户点击电子设备B上的代理消息通知时,第二SystemUI模块识别到其展示的代理消息通知被点击。
步骤S802:第二SystemUI模块向第二任务迁移模块发送第三通知消息,该第三通知消息用于通知第二任务迁移模块该代理消息通知被点击。
可选地,该第三通知消息包括该被点击的代理消息通知的标识信息。
步骤S803:第二任务迁移模块接收到第三通知消息后,向第一任务迁移模块发送第一请求消息,该第一请求消息用于向第一任务迁移模块发起任务迁移请求。
步骤S804:第一任务迁移模块接收到第一请求消息后,通知其他电子设备删除该消息通知。
其中,其他电子设备为可用设备列表中的除电子设备A之外的所有电子设备。关于该可用设备列表,在图7所示的实施例中给出了详细说明,为了简洁,在此不再赘述。
步骤S805:第一任务迁移模块向电子设备A上发出该消息通知的APP发送第四通知消息,该第四通知消息用于通知发出该消息通知的APP该消息通知被点击。
应理解:该步骤中所述的消息通知被点击,是指与该消息通知相对应的代理消息通知被点击。
可选地,该第四通知消息包括该被点击的消息通知的标识信息。
其中,该步骤S805中所述的被点击的消息通知是与步骤S802中所述的被点击的代理消息通知相对应的消息通知,两者的内容一致,区别在于其载体不同,并且,该代理消息通知的展示形式和该消息通知的展示形式可以不同,例如:若消息通知的展示形式为弹窗消息通知,则代理消息通知的展示形式还可以是通知栏消息通知、悬浮消息通知等。
步骤S806:响应于接收到的第四通知消息,发出该消息通知的APP跳转至该消息通知指定/对应的APP页面。
该步骤S806还可以是:响应于接收到的第四通知消息/响应于用户点击电子设备B的屏幕上显示的代理消息通知的操作,电子设备A创建该消息通知在电子设备A上对应的应用程序APP页面。
可选地,当上述APP在电子设备A上正处于打开状态时,该电子设备A控制该APP跳转至该消息通知指定/对应的APP页面,并显示该APP页面。
其中,电子设备A正处于打开状态是指:电子设备A的显示屏上正在显示该APP相应的操作界面。
可选地,当上述APP在电子设备A上未处于打开状态时,该电子设备A控制该APP后台跳转至该消息通知指定/对应的APP页面。
其中,电子设备A未处于打开状态是指:电子设备A的显示屏上没有显示该APP相应的操作界面。更具体地,可以是指该APP正在后台运行,还可以是指该APP处于关闭状态,未运行。
例如:当该消息通知为短信通知时,其指定/对应的APP页面为短信页面;当该消息通知为未接来电通知时,其指定/对应的APP页面为通话列表页面。
步骤S807:上述跳转至消息通知指定页面完成后,发出该消息通知的APP向第一任务迁移模块发送跳转完成消息。
应理解:该步骤S807为可选步骤。
可选地,该步骤还可以是:电子设备A向电子设备B发送创建完成通知,该创建完成通知用于触发电子设备B在电子设备B的屏幕上显示上述APP页面。
步骤S808:响应于上述跳转完成消息,第一任务迁移模块向第二任务迁移模块发送任务迁移数据。
其中,可选地,任务迁移数据包括描述型数据和控制型数据,其中,描述型数据包括用于指示发出该消息通知的APP对应的页面的数据,控制型数据包括用于指示用户点击的坐标位置的数据。
可选地,描述型数据可以包括用于指示发出该消息通知的APP对应页面的画面的数据、用于指示该APP的名称的数据、用于指示该APP的图标的数据、用于指示该APP的版本的数据等。
步骤S809:第二任务迁移模块在接收到任务迁移数据之后,基于该任务迁移数据,展示任务迁移后的APP。
应理解:电子设备B所展示的任务迁移后的APP与步骤S806中电子设备A跳转到的消息通知指定/对应的APP页面相同。
可选地,用户在电子设备B上使用完上述APP时,在电子设备B上关闭该APP任务,相应的,电子设备A上,该APP的状态也恢复原状,例如:任务迁移之前,电子设备A上的该APP处于打开状态,此时该APP会返回原有页面;再例如:任务迁移之前,电子设备A上的该APP处于关闭状态,此时该APP的状态恢复为关闭状态。
并且,应理解:虽然用户在电子设备B上完成操作并关闭相应APP后,电子设备A上的该APP状态恢复原样,但是由于用户在电子设备B上操作该APP所更新或者产生的数据会同步到电子设备A上,也就是说,用户可以接着在电子设备A上继续执行操作,就像中途没有更换过设备一样。
还应理解:步骤S804与步骤S805-步骤S809中的任意步骤的执行顺序不限定。
本申请实施例中,当用户在正在使用的电子设备B上接收到与电子设备A的消息通知同步的代理消息通知时,可以通过点击该代理消息通知触发电子设备B和电子设备A之间的任务迁移,既能够及时查看设备A上的消息通知,也能够实现直接在设备B上进一步操作该消息通知对应的APP,提高了用户对于多设备使用的体验。
为了更清楚地理解步骤S804的具体过程,示例性地,图9示出了本申请实施例提供的一种清除消息通知的方法相对应的信息交互图。如图9所示,该方法包括:
步骤S901:当消息通知或代理消息通知被点击之后,发出该消息通知的APP向第一通知模块发送第一删除消息,该第一删除消息用于通知第一通知管理模块删除该消息通知。
可选地,该第一删除消息包括该消息通知的标识信息。
步骤S902:第一通知管理模块接收到上述第一删除消息之后,向第一SystemUI模块转发该第一删除消息。
步骤S903:第一SystemUI模块接收到第一删除消息之后,停止在电子设备A的屏幕上展示该消息通知。
其中,停止在电子设备A的屏幕上展示该消息通知,例如:若该消息通知是以弹窗的形式展示的,那么就是指停止相应的弹窗显示;若该消息通知是以通知栏的形式展示的,那么就是指在通知栏中清除该消息通知的显示。
步骤S904:第一通知管理模块向第一任务迁移模块转发该第一删除消息。
应理解:步骤S902和步骤S904的执行顺序不限定,可以是同时执行,也可以是不同时执行。
步骤S905:第一任务迁移模块接收到第一删除消息后,向第二任务迁移模块发送第二删除消息,该第二删除消息用于通知第二任务迁移模块删除与该消息通知对应的代理消息。
可选地,该第二删除消息包括该代理消息通知的标识信息。
步骤S906:第二任务迁移模块接收到第二删除消息后,向第二通知管理模块转发该第二删除消息。
步骤S907:第二通知管理模块接收到第二删除消息后,向第二SystemUI模块转发该第二删除消 息。
步骤S908:第二SystemUI模块接收到第二删除消息后,停止在电子设备B的屏幕上展示该代理消息通知。
其中,停止在电子设备B的屏幕上展示该代理消息通知,例如:若该代理消息通知是以弹窗的形式展示的,那么就是指停止相应的弹窗显示;若该代理消息通知是以通知栏的形式展示的,那么就是指在通知栏中清除该代理消息通知的显示。
应理解:当上述消息通知或代理消息通知被点击或者删除时,电子设备A会遍历可用设备列表,向该可用设备列表中的每一个电子设备发送第一删除消息或第二删除消息,用于该可用设备列表中的每一个电子设备删除其所展示的消息通知或代理消息通知(即:停止在电子设备的屏幕上展示消息通知或代理消息通知)。
应理解:当用户正在使用电子设备A时,用户点击电子设备A上展示的消息通知,也会触发该电子设备A上展示的消息通知和该N个电子设备上展示的代理消息通知的自动删除流程。
本申请实施例中,能够在消息通知或代理消息通知被点击之后,及时清除其他设备上展示的该消息通知或代理消息通知,以避免为用户带来不必要的烦扰,进一步提升用户的使用体验。
为了更加清楚地理解本申请提供的任务迁移的方法,示例性地,图10示出了本申请实施例提供的一种用于实现设备间的任务迁移的系统1000的功能模块示意图。如图10所示,该任务迁移系统包括电子设备A和电子设备B,其中,电子设备A包括应用程序(APP)1001、第一系统用户界面模块1002、第一通知管理模块1003、第一任务迁移模块1004、第一分布式设备管理模块1005和第一通信模块1006;电子设备B包括第二系统用户界面模块1007、第二通知管理模块1008、第二任务迁移模块1009、第二分布式设备管理模块1010和第二通信模块1011。具体地:
应用程序(APP)1001,用于接收消息和创建消息通知,并向第一通知管理模块发送第一消息,该第一消息携带该消息通知;还用于指定点击该消息通知后需要跳转到的指定通知页面。
应用程序(APP)1001,还用于在接收到第四通知消息后,跳转至消息通知指定/对应的APP页面,该第四通知消息用于通知应用程序(APP)1001该消息通知被点击。
可选地,应用程序(APP)1001还用于在上述跳转至消息通知指定页面完成后,向第一任务迁移模块发送跳转完成消息。
第一系统用户界面模块1002,用于向第一通知管理模块1003发送第二注册消息,该第二注册消息用于第一系统用户界面模块1002向第一通知管理模块1003注册消息通知的监听;还用于接收第一通知管理模块1003发送的第二回复消息,该第二回复消息用于通知第一SystemUI模块有新的消息通知,并且,该第二回复消息携带该新的消息通知。
可选地,第二回复消息可以包括第一指示信息,该第一指示信息用于指示有新的消息通知。
第一系统用户界面模块1002还用于:在接收到第二回复消息后,在电子设备A的屏幕上展示该消息通知。
第一系统用户界面模块1002还用于接收第一通知管理模块发送的第一删除消息,该第一删除消息用于通知第一通知管理模块删除该消息通知;还用于在接收到第一删除消息之后,停止在电子设备A的屏幕上展示该消息通知。其中,关于停止展示消息通知的解释,在步骤S903中做了详细说明,为了简洁,在此不再赘述。
可选地,该第一删除消息包括该消息通知的标识信息。
第一通知管理模块1003,用于为APP提供消息通知的创建和删除接口,以及为第一系统用户界面模块1002、第一任务迁移模块1004等提供消息通知监听接口。具体地:
第一通知管理模块1003,用于接收第一系统用户界面模块1002发送的第二注册消息,还用于接收第一任务迁移模块1004发送的第三注册消息,该第三注册消息用于向第一通知管理模块1003注册消息通知的监听。
第一通知管理模块1003还用于接收应用程序(APP)1001发送的消息通知,并在接收到该消息通知后,响应于第二注册消息,向第一系统用户界面模块1002发送第二回复消息,该第二回复消息用于通知第一系统用户界面模块1002有新的消息通知,并且,该第二回复消息携带该新的消息通知,和/或,响应于第三注册消息,向第一任务迁移模块1004发送第三回复消息,该第三回复消息用于通知第 一任务迁移模块有新的消息通知,并且,该第三回复消息携带该新的消息通知。
该第一通知管理模块1003还用于接收应用程序(APP)1001发送的第一删除消息;并在接收到该第一删除消息之后,向第一系统用户界面模块1002和第一任务迁移模块1004转发该第一删除消息。
第一任务迁移模块1004,用于向第一分布式设备管理模块1005发送第一注册消息,该第一注册消息用于向第一分布式设备管理模块1005注册已绑定电子设备的上下线的监听;还用于响应于上述第一注册消息,接收第一回复消息,该第一回复消息用于通知第一任务迁移模块1004电子设备上线和下线的情况。
第一任务迁移模块1004,还用于向第一通知管理模块1003发送第三注册消息。
第一任务迁移模块1004,还用于维护可用设备列表。
其中,可用设备列表是指与电子设备A建立了绑定关系,并且处于上线状态的电子设备列表。
具体地,当第一任务迁移模块1004通过第一回复消息确定有电子设备上线时,将该上线的电子设备存储到可用设备列表中;当第一任务迁移模块1004通过第一回复消息确定有电子设备下线时,将该下线的电子设备从可用设备列表中移除。
第一任务迁移模块1004,还用于接收第一通知管理模块1003发送的第三回复消息,该第三回复消息用于通知第一任务迁移模块1004有新的消息通知,并且,该第三回复消息携带该新的消息通知;还用于在接收到第三回复消息后,向第二任务迁移模块1009发送第一通知消息,该第一通知消息用于通知第二任务迁移模块1009有代理消息通知,该第一通知消息包括第一数据,该第一数据为与该代理消息通知相关的数据。
可选地,第一数据可以包括以下数据中的一项或者多项:用于指示该代理消息通知的编号的数据、用于指示该代理消息通知的标题的数据、用于指示该代理消息通知的内容的数据和用于指示该代理消息通知的图标的数据,此外,还可以包括用于指示消息通知的其他内容的数据,本申请对此不作限定。
应理解:本申请的所有实施例中所述的代理消息通知的内容,都与其对应的消息通知的内容一样,区别在于其载体不同,并且,该代理消息通知的展示形式和该消息通知的展示形式可以不同,例如:若消息通知的展示形式为弹窗消息通知,则代理消息通知的展示形式还可以是通知栏消息通知、悬浮消息通知等。
应理解:本申请实施例中的电子设备B泛指与电子设备A具有绑定关系,并且处于上线状态的所有电子设备(即可用设备列表中的所有设备)。第一任务迁移模块904接收到第三回复消息后,会向可用设备列表中的所有电子设备的任务迁移模块发送上述第一通知消息。
第一任务迁移模块1004,还用于接收第二任务迁移模块1009发送的第一请求消息,该第一请求消息用于向第一任务迁移模块1004发起任务迁移请求,第一任务迁移模块1004还用于在接收到第一请求消息后,通知其他电子设备删除该消息通知。
第一任务迁移模块1004,还用于向应用程序(APP)1001发送第四通知消息,该第四通知消息用于通知消息通知被点击;还用于在接收到跳转完成通知后,向第二任务迁移模块1009发送任务迁移数据。
其中,可选地,任务迁移数据包括描述型数据和控制型数据,其中,描述型数据包括用于指示发出该消息通知的APP对应的页面的数据,控制型数据包括用于指示用户点击的坐标位置的数据。
可选地,描述型数据可以包括用于指示发出该消息通知的APP对应页面的画面的数据、用于指示该APP的名称的数据、用于指示该APP的图标的数据、用于指示该APP的版本的数据等。
可选地,该第四通知消息包括该被点击的消息通知的标识信息。
第一任务迁移模块1004,还用于接收第一通知管理模块1003发送的第一删除消息,并在接收到该第一删除消息后,向第二任务迁移模块1009发送第二删除消息,该第二删除消息用于通知第二任务迁移模块删除与该消息通知对应的代理消息。
可选地,该第二删除消息包括该代理消息通知的标识信息。
第一分布式设备管理模块1005,用于与电子设备B的信任关系绑定,为电子设备A提供设备上下线监听接口。具体地,用于接收第一任务迁移模块1004发送的第一注册消息;还用于响应于上述第一注册消息,向第一任务迁移模块1004发送第一回复消息,该第一回复消息用于通知第一任务迁移模块1004电子设备上线和下线的情况。
第一通信模块1006,用于实现与电子设备B之间的数据通信。
可选地,该第一通信模块1006可以是蓝牙模块,还可以是WIFI模块。也就是说,电子设备A可以通过蓝牙与电子设备B通信,也可以通过WIFI与电子设备B通信。
第二系统用户界面模块1007,用于接收第二通知管理模块1008发送的第二通知消息,该第二通知消息用于通知第二系统用户界面模块1007有代理消息通知,并且,该第二通知消息携带该代理消息通知;还用于在接收到该第二通知消息后,在电子设备B的屏幕上展示该第二通知消息携带的代理消息通知。
第二系统用户界面模块1007还用于向第二任务迁移模块1009发送第三通知消息,该第三通知消息用于通知第二任务迁移模块1009该代理消息通知被点击。
可选地,该第三通知消息包括该被点击的代理消息通知的标识信息。
第二系统用户界面模块1007还用于接收第二删除消息;还用于在接收到该第二删除消息后,停止在电子设备B的屏幕上展示该代理消息通知。
第二通知管理模块1008,用于接收第二任务迁移模块1009发送的第二消息,该第二消息携带代理消息通知;还用于在接收到该该第二消息后,向第二系统用户界面模块1007发送第二通知消息。
第二通知管理模块1008还用于接收第二任务迁移模块1009发送的第二删除消息;还用于在接收到该第二删除消息后,向第二系统用户界面模块1007转发该第二删除消息。
第二任务迁移模块1009,用于接收第一任务迁移模块1004发送的第一通知消息;还用于在接收到该第一通知消息后,对该第一通知消息中携带的第一数据进行解析,进而创建出一条代理消息通知,然后向第二通知管理模块1008发送第二消息,该第二消息携带该代理消息通知。
第二任务迁移模块1009还用于接收第二系统用户界面模块1007发送的第三通知消息,该第三通知消息用于通知第二任务迁移模块该代理消息通知被点击;还用于在接收到第三通知消息后,向第一任务迁移模块1004发送第一请求消息,该第一请求消息用于向第一任务迁移模块1004发起任务迁移请求。
第二任务迁移模块1009还用于接收第一任务迁移模块1004发送的任务迁移数据;还用于在接收到该任务迁移数据之后,基于该任务迁移数据,展示任务迁移后的APP。
第二任务迁移模块1009还用于接收第一任务迁移模块1004发送的第二删除消息,该第二删除消息用于指示删除该代理消息通知;还用于在接收到该第二删除消息后,向第二通知管理模块1008转发该第二删除消息。
该第二删除消息用于通知第二任务迁移模块1009删除与该消息通知对应的代理消息。
可选地,该第二删除消息包括该代理消息通知的标识信息。
第二分布式设备管理模块1010,用于与电子设备A的信任关系绑定,并且为电子设备B提供设备的上下线监听接口。
第二通信模块1011,用于实现与电子设备A之间的数据通信。
可选地,该第二通信模块1011可以是蓝牙模块,还可以是WIFI模块。也就是说,电子设备B可以通过蓝牙与电子设备A通信,也可以通过WIFI与电子设备A通信。
可选地,该电子设备还包括:确定模块,用于在响应于用户点击代理消息通知的操作之前,确定用户点击的对象是否为代理消息通知;还用于当确定用户点击的对象为代理消息通知时,进一步确定该代理消息通知来源于第一电子设备。
应理解:本申请实施例中的电子设备A可以指发出消息通知的原电子设备,电子设备B泛指与原电子设备具有绑定关系,并且处于上线状态的其他电子设备。
本申请实施例中,对任务迁移模块进行了扩展,使其具有设备的上下线监听和消息通知监听的功能,还具有转发和代理消息通知的能力,这样,即使电子设备A上的未处于运行状态的应用收到消息通知时,电子设备B上同样会同步收到该消息通知(代理消息通知),从而实现多个电子设备间的消息同步,使得用户在使用电子设备B时也能够及时查看设备A上的消息通知;并且,用户可以通过点击电子设备B上展示的代理消息通知触发其与电子设备A之间的任务迁移,能够直接在电子设备B上进一步操作该消息通知对应的APP,这也使得设备间的任务迁移功能的入口不再局限于任务中心,提高了用户对于多设备使用的体验;另外,还能够在消息通知或代理消息通知被点击之后,及时清除其 他电子设备上展示的该消息通知或代理消息通知,以避免为用户带来不必要的烦扰,进一步提升用户的使用体验。
并且,本申请实施例中,在通过用户点击代理消息触发设备间的任务迁移时,先判断用户点击的对象是否为代理消息通知,当确定了点击的对象为代理消息通知时,再进一步确定该代理消息通知的来源设备,这样,能够避免因设备的错误识别而发起的设备间的任务迁移,能够提高迁移过程的安全性能,进一步提升用户的使用体验。
本文中所描述的模块或单元的一个或多个可以软件、硬件或二者结合来实现。当以上任一模块或单元以软件实现的时候,所述软件以计算机程序指令的方式存在,并被存储在存储器中,处理器可以用于执行所述程序指令并实现以上方法流程。所述处理器可以包括但不限于以下至少一种:中央处理单元(central processing unit,CPU)、微处理器、数字信号处理器(DSP)、微控制器(microcontroller unit,MCU)、或人工智能处理器等各类运行软件的计算设备,每种计算设备可包括一个或多个用于执行软件指令以进行运算或处理的核。该处理器可以内置于SoC(片上系统)或专用集成电路(application specificintegrated circuit,ASIC),也可是一个独立的半导体芯片。该处理器内处理用于执行软件指令以进行运算或处理的核外,还可进一步包括必要的硬件加速器,如现场可编程门阵列(field programmable gate array,FPGA)、PLD(可编程逻辑器件)、或者实现专用逻辑运算的逻辑电路。
当本文中所描述的模块或单元以硬件实现的时候,该硬件可以是CPU、微处理器、DSP、MCU、人工智能处理器、ASIC、SoC、FPGA、PLD、专用数字电路、硬件加速器或非集成的分立器件中的任一个或任一组合,其可以运行必要的软件或不依赖于软件以执行以上方法流程。
当本文中所描述的模块或单元使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本发明实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘(solid statedisk,SSD))等。
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及方法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分 或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。

Claims (28)

  1. 一种任务迁移的方法,其特征在于,所述方法包括:
    响应于第一电子设备的屏幕上显示消息通知,第二电子设备在所述第二电子设备的屏幕上显示代理消息通知,所述代理消息通知根据所述消息通知生成,与所述消息通知具有对应关系;
    响应于用户点击所述代理消息通知的操作,所述第二电子设备在所述第二电子设备的屏幕上显示所述消息通知在所述第一电子设备上对应的应用程序APP页面。
  2. 根据权利要求1所述的方法,其特征在于,所述响应于用户点击所述代理消息通知的操作,所述第二电子设备在所述第二电子设备的屏幕上显示所述消息通知在所述第一电子设备上对应的应用程序APP页面,包括:
    响应于用户点击所述代理消息通知的操作,所述第二电子设备向所述第一电子设备发送第一请求消息,所述第一请求消息用于请求发起与所述第一电子设备之间的任务迁移;
    所述第二电子设备接收所述第一电子设备为响应于所述第一请求消息发送的任务迁移数据;
    所述第二电子设备根据所述任务迁移数据在所述第二电子设备的屏幕上显示所述消息通知在所述第一电子设备上对应的应用程序APP页面。
  3. 根据权利要求1或2所述的方法,其特征在于,在所述响应于用户点击所述代理消息通知的操作,所述第二电子设备在所述第二电子设备的屏幕上显示所述消息通知在所述第一电子设备上对应的应用程序APP页面之前,所述方法还包括:
    所述第二电子设备确定所述用户点击的对象是否为所述代理消息通知;
    当所述第二电子设备确定所述用户点击的对象为所述代理消息通知时,所述第二电子设备进一步确定所述代理消息通知来源于所述第一电子设备。
  4. 根据权利要求1至3中任一项所述的方法,其特征在于,所述第二电子设备在所述第二电子设备的屏幕上显示代理消息通知,包括:
    所述第二电子设备接收所述第一电子设备发送的第一通知消息,所述第一通知消息包括第一数据,所述第一数据为与所述代理消息通知相关的数据;
    所述第二电子设备根据所述第一通知消息在所述第二电子设备的屏幕上显示所述代理消息通知。
  5. 根据权利要求4所述的方法,其特征在于,所述第一通知消息包括第一指示信息,所述第一指示信息用于指示有所述代理消息通知。
  6. 根据权利要求1至5中任一项所述的方法,其特征在于,所述方法还包括:
    响应于所述用户点击所述代理消息通知的操作,所述第二电子设备停止显示所述代理消息通知。
  7. 根据权利要求6所述的方法,其特征在于,所述第二电子设备停止显示所述代理消息通知,包括:
    所述第二电子设备接收所述第一电子设备发送的第二删除消息,所述第二删除消息用于通知所述第二电子设备停止显示所述代理消息通知;
    响应于所述第二删除消息,所述第二电子设备停止显示所述代理消息通知。
  8. 根据权利要求1至7中任一项所述的方法,其特征在于,所述第一电子设备和所述第二电子设备相互绑定,且建立了通信连接。
  9. 根据权利要求1至8中任一项所述的方法,其特征在于,所述代理消息通知的内容与所述消息通知的内容相同。
  10. 根据权利要求2至9中任一项所述的方法,其特征在于,所述任务迁移数据包括描述型数据和控制型数据,所述描述型数据包括用于指示所述APP页面的数据,所述控制型数据包括用于指示所述用户点击的坐标位置的数据。
  11. 一种任务迁移的方法,其特征在于,所述方法包括:
    第一电子设备在所述第一电子设备的屏幕上显示消息通知,并触发在第二电子设备的屏幕上显示代理消息通知,所述代理消息通知根据所述消息通知生成,与所述消息通知具有对应关系;
    响应于用户点击所述代理消息通知的操作,所述第一电子设备创建所述消息通知在所述第一电子 设备上对应的应用程序APP页面,所述APP页面用于所述第二电子设备在所述第二电子设备的屏幕上显示。
  12. 根据权利要求11所述的方法,其特征在于,所述方法还包括:
    所述第一电子设备接收所述第二电子设备发送的第一请求消息,所述第一请求消息是所述第二电子设备为响应于所述用户点击所述第二电子设备的屏幕上显示的代理消息通知的操作发送的,所述第一请求消息用于请求发起与所述第一电子设备之间的任务迁移;
    响应于所述第一请求消息,所述第一电子设备向所述第二电子设备发送任务迁移数据,所述任务迁移数据用于所述第二电子设备在所述第二电子设备的屏幕上显示所述消息通知在所述第一电子设备上对应的应用程序APP页面。
  13. 根据权利要求11或12所述的方法,其特征在于,所述方法还包括:
    响应于所述第一电子设备在所述第一电子设备的屏幕上显示所述消息通知,所述第一电子设备向所述第二电子设备发送第一通知消息,所述第一通知消息用于所述第二电子设备在所述第二电子设备的屏幕上显示所述代理消息通知,所述第一通知消息包括第一数据,所述第一数据为与所述代理消息通知相关的数据。
  14. 根据权利要求13所述的方法,其特征在于,所述第一通知消息包括第一指示信息,所述第一指示信息用于指示有所述代理消息通知。
  15. 根据权利要求11至14中任一项所述的方法,其特征在于,所述方法还包括:
    响应于用户点击所述代理消息通知的操作,所述第一电子设备停止显示所述消息通知。
  16. 根据权利要求11至15中任一项所述的方法,其特征在于,所述方法还包括:
    响应于用户点击所述代理消息通知的操作,所述第一电子设备向所述第二电子设备发送第二删除消息,所述第二删除消息用于通知所述第二电子设备停止显示所述代理消息通知。
  17. 根据权利要求12至16中任一项所述的方法,其特征在于,所述第一电子设备向所述第二电子设备发送任务迁移数据之前,所述方法还包括:
    当所述APP在所述第一电子设备上正处于打开状态时,所述第一电子设备控制所述APP跳转至所述消息通知对应的APP页面,并显示所述APP页面。
  18. 根据权利要求12至17中任一项所述的方法,其特征在于,所述第一电子设备向所述第二电子设备发送任务迁移数据之前,所述方法还包括:
    当所述APP在所述第一电子设备上未处于打开状态时,所述第一电子设备打开所述APP并跳转至所述消息通知对应的APP页面。
  19. 根据权利要求11至18中任一项所述的方法,其特征在于,所述第一电子设备和所述第二电子设备相互绑定,且建立了通信连接。
  20. 根据权利要求11至19中任一项所述的方法,其特征在于,所述代理消息通知的内容与所述消息通知的内容相同。
  21. 根据权利要求12至20中任一项所述的方法,其特征在于,所述任务迁移数据包括描述型数据和控制型数据,所述描述型数据包括用于指示所述APP页面的数据,所述控制型数据包括用于指示所述用户点击的坐标位置的数据。
  22. 一种电子设备,其特征在于,所述电子设备包括:
    第二系统用户界面模块,用于响应于第一电子设备的屏幕上显示消息通知,在所述电子设备的屏幕上显示代理消息通知,所述代理消息通知根据所述消息通知生成,与所述消息通知具有对应关系;
    第二任务迁移模块,用于响应于用户点击所述代理消息通知的操作,在所述电子设备的屏幕上显示所述消息通知在所述第一电子设备上对应的应用程序APP页面。
  23. 根据权利要求22所述的电子设备,其特征在于,所述电子设备还包括:
    确定模块,用于在响应于用户点击所述代理消息通知的操作之前,确定所述用户点击的对象是否为所述代理消息通知;
    所述确定模块,还用于当确定所述用户点击的对象为所述代理消息通知时,进一步确定所述代理消息通知来源于所述第一电子设备。
  24. 一种电子设备,其特征在于,所述电子设备包括:
    第一系统用户界面模块,用于在所述电子设备的屏幕上显示消息通知,并触发在第二电子设备的屏幕上显示代理消息通知,所述代理消息通知根据所述消息通知生成,与所述消息通知具有对应关系;
    应用程序APP,用于响应于用户点击所述代理消息通知的操作,创建所述消息通知在所述第一电子设备上对应的应用程序APP页面,所述APP页面用于所述第二电子设备在所述第二电子设备的屏幕上显示。
  25. 根据权利要求24所述的电子设备,其特征在于,所述电子设备还包括:
    第一任务迁移模块,用于接收所述第二电子设备发送的第一请求消息,所述第一请求消息是所述第二电子设备为响应于用户点击所述第二电子设备的屏幕上显示的代理消息通知的操作发送的,所述第一请求消息用于请求发起与所述电子设备之间的任务迁移;
    所述第一任务迁移模块还用于响应于所述第一请求消息,向所述第二电子设备发送任务迁移数据,所述任务迁移数据用于所述第二电子设备在所述第二电子设备的屏幕上显示所述消息通知在所述电子设备上对应的应用程序APP页面。
  26. 一种任务迁移的系统,其特征在于,所述系统包括:
    一个或多个如权利要求22或23所述的电子设备;和,
    一个或多个如权利要求23或24所述的电子设备。
  27. 一种电子设备,其特征在于,包括:
    一个或多个处理器;
    一个或多个存储器;
    以及一个或多个计算机程序,其中所述一个或多个计算机程序被存储在所述一个或多个存储器中,所述一个或多个计算机程序包括指令,当所述指令被所述一个或多个处理器执行时,使得所述电子设备执行如权利要求1至10中任一项所述的方法,或,执行如权利要求11至21中任一项所述的方法。
  28. 一种计算机可读存储介质,其特征在于,所述存储介质中存储有程序或指令,当所述程序或指令被运行时,实现如权利要求1至10中任一项所述的方法,或,实现如权利要求11至21中任一项所述的方法。
PCT/CN2023/106098 2022-07-13 2023-07-06 任务迁移的方法、电子设备和系统 WO2024012346A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210821297.2A CN117435309A (zh) 2022-07-13 2022-07-13 任务迁移的方法、电子设备和系统
CN202210821297.2 2022-07-13

Publications (1)

Publication Number Publication Date
WO2024012346A1 true WO2024012346A1 (zh) 2024-01-18

Family

ID=89535534

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/106098 WO2024012346A1 (zh) 2022-07-13 2023-07-06 任务迁移的方法、电子设备和系统

Country Status (2)

Country Link
CN (1) CN117435309A (zh)
WO (1) WO2024012346A1 (zh)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130097239A1 (en) * 2011-10-17 2013-04-18 Research In Motion Limited Enabling content interaction at a connected electronic device
WO2018049881A1 (zh) * 2016-09-14 2018-03-22 广东欧珀移动通信有限公司 一种数据迁移方法及装置
CN111404802A (zh) * 2020-02-19 2020-07-10 华为技术有限公司 通知处理系统、方法以及电子设备
CN113885759A (zh) * 2021-06-25 2022-01-04 荣耀终端有限公司 通知消息处理方法、设备、系统及计算机可读存储介质
CN114741008A (zh) * 2020-12-24 2022-07-12 华为技术有限公司 分布式跨设备协同方法、电子设备及通信系统

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130097239A1 (en) * 2011-10-17 2013-04-18 Research In Motion Limited Enabling content interaction at a connected electronic device
WO2018049881A1 (zh) * 2016-09-14 2018-03-22 广东欧珀移动通信有限公司 一种数据迁移方法及装置
CN111404802A (zh) * 2020-02-19 2020-07-10 华为技术有限公司 通知处理系统、方法以及电子设备
CN114741008A (zh) * 2020-12-24 2022-07-12 华为技术有限公司 分布式跨设备协同方法、电子设备及通信系统
CN113885759A (zh) * 2021-06-25 2022-01-04 荣耀终端有限公司 通知消息处理方法、设备、系统及计算机可读存储介质

Also Published As

Publication number Publication date
CN117435309A (zh) 2024-01-23

Similar Documents

Publication Publication Date Title
KR102470275B1 (ko) 음성 제어 방법 및 전자 장치
WO2021052263A1 (zh) 语音助手显示方法及装置
WO2020259452A1 (zh) 一种移动终端的全屏显示方法及设备
WO2021103981A1 (zh) 分屏显示的处理方法、装置及电子设备
WO2021000807A1 (zh) 一种应用程序中等待场景的处理方法和装置
CN113645351B (zh) 应用界面交互方法、电子设备和计算机可读存储介质
WO2020000448A1 (zh) 一种柔性屏幕的显示方法及终端
WO2021036770A1 (zh) 一种分屏处理方法及终端设备
WO2019072178A1 (zh) 一种通知处理方法及电子设备
WO2022068819A1 (zh) 一种界面显示方法及相关装置
WO2020088633A1 (zh) 支付方法、装置和用户设备
WO2021052139A1 (zh) 手势输入方法及电子设备
WO2020024108A1 (zh) 一种应用图标的显示方法及终端
WO2021218429A1 (zh) 应用窗口的管理方法、终端设备及计算机可读存储介质
WO2021143391A1 (zh) 基于视频通话的共享屏幕方法及移动设备
CN113452945A (zh) 分享应用界面的方法、装置、电子设备及可读存储介质
CN113805797A (zh) 网络资源的处理方法、电子设备及计算机可读存储介质
WO2023273543A1 (zh) 一种文件夹管理方法及装置
WO2023207667A1 (zh) 一种显示方法、汽车和电子设备
WO2023011289A1 (zh) 一种基于位置信息的Wi-Fi连接方法及装置
WO2023020012A1 (zh) 设备之间的数据通信方法、设备、存储介质及程序产品
US20240098354A1 (en) Connection establishment method and electronic device
WO2022166435A1 (zh) 分享图片的方法和电子设备
WO2024012346A1 (zh) 任务迁移的方法、电子设备和系统
WO2023124829A1 (zh) 语音协同输入方法、电子设备及计算机可读存储介质

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: 23838838

Country of ref document: EP

Kind code of ref document: A1