Widget display method and electronic device

The electronic device intelligently manages widgets on the home screen by automatically displaying and adjusting them based on application tasks, improving user experience by reducing clutter and enhancing interaction.

JP2025160165APending Publication Date: 2025-10-22HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
JP2025106028
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2021-01-18
Filing Date
2025-06-23
Publication Date
2025-10-22

AI Technical Summary

Technical Problem

The manual addition of widgets to a mobile device's home screen results in redundant operations and poor user experience due to the need for manual placement and cluttered screen space.

Method used

An electronic device automatically displays a widget of an ongoing application in a predefined area of the home screen, adjusting its size and content based on detected tasks or conditions, allowing for intelligent widget management and reuse of screen space.

Benefits of technology

This approach enhances user experience by providing relevant information automatically, reducing clutter, and enabling intelligent widget interaction and management without manual intervention.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2025160165000001_ABST
    Figure 2025160165000001_ABST
Patent Text Reader

Abstract

To help improvement of user experience by providing a widget display method applied to an electronic device.SOLUTION: Provided is a method that includes: a step of displaying a first widget having a first size in a first area of a first page of a home screen; and a step of simultaneously displaying a widget of a first application and the reduced-size first widget in the first area in response to detecting that a task is in progress in the first application. The widget of the first application displays first content, and the widget of the first application has a second size, the second size being smaller than the first size.SELECTED DRAWING: Figure 7
Need to check novelty before this filing date? Find Prior Art

Description

[Technical Field]

[0001] This application claims priority to Chinese Patent Application No. 202110063910.4, entitled "WIDGET DISPLAY METHOD AND ELECTRONIC DEVICE," filed with the State Intellectual Property Office of the People's Republic of China on January 18, 2021, which is incorporated herein by reference in its entirety.

[0002] The present application relates to the field of electronic devices, and more particularly to a widget display method and an electronic device. [Background technology]

[0003] A mobile phone is used as an example. Widgets can improve the home screen of a mobile phone and provide information required by a user, thereby making effective use of the spatial location of the touch screen. For example, a user can add a music widget on the home screen of a mobile phone, and by using the music widget on the home screen, the user can control music playback, music pause, previous song playback, next song playback, etc. A user can also add a calendar widget to the home screen if the user intends to know calendar information. However, the user needs to manually add a widget to the home screen each time, which results in redundant and complicated operations and poor user experience. Summary of the Invention

[0004] The present application provides a widget display method and electronic device to help improve user experience.

[0005] According to a first aspect, there is provided a widget display method applicable to an electronic device, the method comprising: displaying a first widget having a first size in a first area of ​​a first page of a home screen; in response to detecting an ongoing task in a first application, simultaneously displaying a widget of the first application and the first widget with the reduced size in the first area, where the widget of the first application displays first content, the widget of the first application has a second size, and the second size is smaller than the first size; and in response to the electronic device satisfying a preset condition, adjusting the size of the widget of the first application from the second size to the first size, where the widget of the first application and having the first size displays second content, the second content being more than the first content, and the second content including the first content.

[0006] When detecting that a first application has an ongoing task, the electronic device can automatically display a widget of the first application on the device's home screen, displaying the widget in an area on the graphical interface where the first is displayed. This implements automatic widget addition, and the location of the first display can also be reused. The screen space of the electronic device is limited. The location of the first widget is reused, thereby making the home screen clean and uncluttered, and the widget does not need to be added in a new location, and information requested by the user and having a higher priority can be provided to the user.

[0007] The electronic device may detect the scenario change in order to adjust the size of the widget and / or the content displayed by the widget, and / or the layout of the content displayed by the widget, to provide more information to the user, facilitate user interaction, and improve the user experience.

[0008] Referring to the first aspect, in some possible implementations of the first aspect, when the first application is a schedule application, the manner of detecting that there is an ongoing task in the first application is one or a combination of several of the following manners: by identifying schedule content in the schedule application, determining that a time difference between a system time of the electronic device and a time in the schedule content is less than a first time threshold; or by identifying schedule content in the schedule application, determining that a distance difference between a geographical location of the electronic device and a geographical location in the schedule content is less than a first distance threshold.

[0009] Referring to the first aspect, in some possible implementations of the first aspect, the pre-set condition is one or a combination of a plurality of the following conditions: determining that the time difference between the system time of the electronic device and the time in the schedule content is smaller than a second time threshold, where the second time threshold is smaller than the first time threshold; or determining that the distance difference between the geographical location of the electronic device and the geographical location in the schedule content is smaller than a second distance threshold, where the second distance threshold is smaller than the first distance threshold.

[0010] Referring to the first aspect, in some possible implementations of the first aspect, when the widget of the first application and the first widget with the reduced size are displayed simultaneously, the method further includes: detecting a pinch gesture, wherein a first contact point of the pinch gesture is in contact with the widget of the first application and a second contact point of the pinch gesture is in contact with the first widget; and in response to the pinch gesture, combining the widget of the first application and the first widget into a first composite widget for display in the first area.

[0011] A user may perform function fusion on different widgets by using a composite widget. When any widget meets the trigger condition for displaying on the home screen, the home screen displays the composite widget, and the user does not need to manually trigger the creation of another widget. The electronic device can intelligently push widgets to the user based on user actions (pinching and combining widgets), which is more intelligent.

[0012] Referring to the first aspect, in some possible implementations of the first aspect, when the widget of the first application and the first widget with a reduced size are displayed simultaneously, the method further comprises: detecting that there is an ongoing task in a media application, stopping the display of the first widget, and simultaneously displaying the widget of the first application and the widget of the media application in the first area.

[0013] After detecting that a media application is playing in the background, a widget generated by the media application is displayed on the home screen, and the user can directly interact with the application's widget.

[0014] Referring to the first aspect, in some possible implementations of the first aspect, the method further includes: detecting that the system time of the electronic device exceeds an end time in the schedule content, stopping display of the widget that belongs to the first application and has the first size, and displaying the first widget having the first size in the first area.

[0015] The electronic device may stop displaying the schedule widget based on the end time of the schedule and display another widget on the home screen. The widgets displayed on the home screen may be intelligently changed based on user requirements to provide the user with content that is more relevant to the user, thereby improving the user experience.

[0016] Referring to the first aspect, in some possible implementations of the first aspect, the step of detecting that there is an ongoing task in the schedule application is specifically a step of detecting that there is an ongoing task in the schedule application by using a broadcast receivers component in the schedule application.

[0017] Referring to the first aspect, in some possible implementations of the first aspect, the step of detecting that an ongoing task exists in a first application is specifically a step of: detecting that the ongoing task exists in the first application on another electronic device to which the same user account is logged on; or detecting that the ongoing task exists in the first application on another electronic device after the electronic device is paired with the other electronic device.

[0018] A user can continue a task in different locations by creating a widget for the application across devices. An electronic device may receive an ongoing task in an application on another electronic device and display the widget for the application on its home screen. A user can interact with the application across different electronic devices, thereby improving the user experience.

[0019] Referring to the first aspect, in some possible implementations of the first aspect, the first page is a homepage of the home screen; or the first widget is a time weather widget or a calendar widget; or both a 4G signal identifier and a 5G signal identifier are displayed in a notification bar of the screen; or the first area is at the top of the first page; or the first widget is transparent or semi-transparent; or the first application is a calendar application, a notes application, or a reminder application; or the first application is an audio application or a video application; or the ongoing task is playing music, and the first content is a song name, a singer, a play / pause control, a play next song control, and a play previous song control, and the second content is the song name, the singer, the play / pause control, the play next song control, and the play previous song control, a favorites control, and a playback mode switching control; or the ongoing task is a travel task, and the first content is a departure time, a train number, a departure station, and an arrival station, and the second content is the departure time, the arrival time, the train number, the departure station, the arrival station, and a seat number; or the ongoing task is an express delivery task, and the first content is a pickup location and a pickup time, and the second content is the pickup location, the pickup time, and a pickup code; or the ongoing task is a movie task, and the first content is a cinema location and a movie showtime, and the second content is the cinema location, the movie showtime, and a seat number; or the ongoing task is a meeting task, and the first content is a meeting time and a meeting location, and the second content is the meeting time, the meeting location, and a meeting list.

[0020] When detecting that a first application has an ongoing task, the electronic device can automatically display the widget of the first application on the device's home screen, displaying the widget in the area of ​​the graphical interface where the time weather widget is displayed. This implements automatic widget addition, and the location of the time weather widget can also be reused. There are many places where time is displayed and viewed on an electronic device, and the device displays a weather time widget on the home screen, but users do not use the weather time widget in most cases. Therefore, by using the technical solution in this embodiment, the location of the weather time widget can be reused to display the widget of an application including an ongoing task. The screen space of an electronic device is limited. The location of the time weather widget is reused, which can make the home screen clean and tidy, and widgets do not need to be added in new locations, and can provide users with information requested by the user and with higher priority.

[0021] According to a second aspect, there is provided an electronic device comprising a display, a memory, and one or more processors, the memory comprising instructions that, when executed by the one or more processors, enable the electronic device to perform the widget display method according to the first aspect and possible implementations thereof.

[0022] According to a third aspect, there is provided a computer storage medium comprising computer instructions that, when executed on an electronic device, enable the electronic device to perform a widget display method according to any possible implementation of any one of the preceding aspects.

[0023] According to a fourth aspect, there is provided a computer program product, which, when executed on an electronic device, enables the electronic device to perform a widget display method according to any possible implementation of any one of the preceding aspects. [Brief explanation of the drawings]

[0024] [Figure 1] 1 is a schematic diagram of the structure of an electronic device according to an embodiment of the present application;

[0025] [Figure 2] FIG. 2 is a block diagram of the software architecture of an electronic device according to an embodiment of the present application.

[0026] [Figure 3A] 1 is a schematic diagram of one graphical user interface of a group of graphical user interfaces according to an embodiment of the present application; [Figure 3B] 1 is a schematic diagram of one graphical user interface of a group of graphical user interfaces according to an embodiment of the present application; [Figure 3C-1] 1 is a schematic diagram of one graphical user interface of a group of graphical user interfaces according to an embodiment of the present application; [Figure 3C-2] 1 is a schematic diagram of one graphical user interface of a group of graphical user interfaces according to an embodiment of the present application; [Figure 3D-1] 1 is a schematic diagram of one graphical user interface of a group of graphical user interfaces according to an embodiment of the present application; [Figure 3D-2] 1 is a schematic diagram of one graphical user interface of a group of graphical user interfaces according to an embodiment of the present application; [Figure 3E-1]1 is a schematic diagram of one graphical user interface of a group of graphical user interfaces according to an embodiment of the present application; [Figure 3E-2] 1 is a schematic diagram of one graphical user interface of a group of graphical user interfaces according to an embodiment of the present application; [Figure 3FA-1] 1 is a schematic diagram of one graphical user interface of a group of graphical user interfaces according to an embodiment of the present application; [Figure 3FA-2] 1 is a schematic diagram of one graphical user interface of a group of graphical user interfaces according to an embodiment of the present application; [Figure 3FB-1] 1 is a schematic diagram of one graphical user interface of a group of graphical user interfaces according to an embodiment of the present application; [Figure 3FB-2] 1 is a schematic diagram of one graphical user interface of a group of graphical user interfaces according to an embodiment of the present application; [Figure 3FC-1] 1 is a schematic diagram of one graphical user interface of a group of graphical user interfaces according to an embodiment of the present application; [Figure 3FC-2] 1 is a schematic diagram of one graphical user interface of a group of graphical user interfaces according to an embodiment of the present application; [Figure 3FD-1] 1 is a schematic diagram of one graphical user interface of a group of graphical user interfaces according to an embodiment of the present application; [Figure 3FD-2] 1 is a schematic diagram of one graphical user interface of a group of graphical user interfaces according to an embodiment of the present application; [Figure 3G-1] 1 is a schematic diagram of one graphical user interface of a group of graphical user interfaces according to an embodiment of the present application; [Figure 3G-2]1 is a schematic diagram of one graphical user interface of a group of graphical user interfaces according to an embodiment of the present application; [Figure 3G-3] 1 is a schematic diagram of one graphical user interface of a group of graphical user interfaces according to an embodiment of the present application; [Figure 3HA-1] 1 is a schematic diagram of one graphical user interface of a group of graphical user interfaces according to an embodiment of the present application; [Figure 3HA-2] 1 is a schematic diagram of one graphical user interface of a group of graphical user interfaces according to an embodiment of the present application; [Figure 3HB-1] 1 is a schematic diagram of one graphical user interface of a group of graphical user interfaces according to an embodiment of the present application; [Figure 3HB-2] 1 is a schematic diagram of one graphical user interface of a group of graphical user interfaces according to an embodiment of the present application; [Figure 3I-1] 1 is a schematic diagram of one graphical user interface of a group of graphical user interfaces according to an embodiment of the present application; [Figure 3I-2] 1 is a schematic diagram of one graphical user interface of a group of graphical user interfaces according to an embodiment of the present application; [Figure 3J-1] 1 is a schematic diagram of one graphical user interface of a group of graphical user interfaces according to an embodiment of the present application; [Figure 3J-2] 1 is a schematic diagram of one graphical user interface of a group of graphical user interfaces according to an embodiment of the present application; [Figure 3K-1] 1 is a schematic diagram of one graphical user interface of a group of graphical user interfaces according to an embodiment of the present application; [Figure 3K-2]1 is a schematic diagram of one graphical user interface of a group of graphical user interfaces according to an embodiment of the present application; [Figure 3L-1] 1 is a schematic diagram of one graphical user interface of a group of graphical user interfaces according to an embodiment of the present application; [Figure 3L-2] 1 is a schematic diagram of one graphical user interface of a group of graphical user interfaces according to an embodiment of the present application; [Figure 3M-1] 1 is a schematic diagram of one graphical user interface of a group of graphical user interfaces according to an embodiment of the present application; [Figure 3M-2] 1 is a schematic diagram of one graphical user interface of a group of graphical user interfaces according to an embodiment of the present application;

[0027] [Figure 4A] FIG. 10 is a schematic diagram of one graphical user interface of another group of graphical user interfaces according to an embodiment of the present application. [Figure 4BA-1] FIG. 10 is a schematic diagram of one graphical user interface of another group of graphical user interfaces according to an embodiment of the present application. [Figure 4BA-2] FIG. 10 is a schematic diagram of one graphical user interface of another group of graphical user interfaces according to an embodiment of the present application. [Figure 4BB-1] FIG. 10 is a schematic diagram of one graphical user interface of another group of graphical user interfaces according to an embodiment of the present application. [Figure 4BB-2] FIG. 10 is a schematic diagram of one graphical user interface of another group of graphical user interfaces according to an embodiment of the present application. [Figure 4C-1]FIG. 10 is a schematic diagram of one graphical user interface of another group of graphical user interfaces according to an embodiment of the present application. [Figure 4C-2] FIG. 10 is a schematic diagram of one graphical user interface of another group of graphical user interfaces according to an embodiment of the present application. [Figure 4D-1] FIG. 10 is a schematic diagram of one graphical user interface of another group of graphical user interfaces according to an embodiment of the present application. [Figure 4D-2] FIG. 10 is a schematic diagram of one graphical user interface of another group of graphical user interfaces according to an embodiment of the present application. [Figure 4E-1] FIG. 10 is a schematic diagram of one graphical user interface of another group of graphical user interfaces according to an embodiment of the present application. [Figure 4E-2] FIG. 10 is a schematic diagram of one graphical user interface of another group of graphical user interfaces according to an embodiment of the present application. [Figure 4E-3] FIG. 10 is a schematic diagram of one graphical user interface of another group of graphical user interfaces according to an embodiment of the present application. [Figure 4F-1] FIG. 10 is a schematic diagram of one graphical user interface of another group of graphical user interfaces according to an embodiment of the present application. [Figure 4F-2] FIG. 10 is a schematic diagram of one graphical user interface of another group of graphical user interfaces according to an embodiment of the present application. [Figure 4G-1] FIG. 10 is a schematic diagram of one graphical user interface of another group of graphical user interfaces according to an embodiment of the present application. [Figure 4G-2] FIG. 10 is a schematic diagram of one graphical user interface of another group of graphical user interfaces according to an embodiment of the present application.

[0028] [Figure 5A] FIG. 10 is a schematic diagram of one graphical user interface of another group of graphical user interfaces according to an embodiment of the present application. [Figure 5BA-1] FIG. 10 is a schematic diagram of one graphical user interface of another group of graphical user interfaces according to an embodiment of the present application. [Figure 5BA-2] FIG. 10 is a schematic diagram of one graphical user interface of another group of graphical user interfaces according to an embodiment of the present application. [Figure 5BB-1] FIG. 10 is a schematic diagram of one graphical user interface of another group of graphical user interfaces according to an embodiment of the present application. [Figure 5BB-2] FIG. 10 is a schematic diagram of one graphical user interface of another group of graphical user interfaces according to an embodiment of the present application. [Figure 5BC-1] FIG. 10 is a schematic diagram of one graphical user interface of another group of graphical user interfaces according to an embodiment of the present application. [Figure 5BC-2] FIG. 10 is a schematic diagram of one graphical user interface of another group of graphical user interfaces according to an embodiment of the present application. [Figure 5C-1] FIG. 10 is a schematic diagram of one graphical user interface of another group of graphical user interfaces according to an embodiment of the present application. [Figure 5C-2] FIG. 10 is a schematic diagram of one graphical user interface of another group of graphical user interfaces according to an embodiment of the present application. [Figure 5D] FIG. 10 is a schematic diagram of one graphical user interface of another group of graphical user interfaces according to an embodiment of the present application. [Figure 5EA-1]FIG. 10 is a schematic diagram of one graphical user interface of another group of graphical user interfaces according to an embodiment of the present application. [Figure 5EA-2] FIG. 10 is a schematic diagram of one graphical user interface of another group of graphical user interfaces according to an embodiment of the present application. [Figure 5EB-1] FIG. 10 is a schematic diagram of one graphical user interface of another group of graphical user interfaces according to an embodiment of the present application. [Figure 5EB-2] FIG. 10 is a schematic diagram of one graphical user interface of another group of graphical user interfaces according to an embodiment of the present application. [Figure 5EC-1] FIG. 10 is a schematic diagram of one graphical user interface of another group of graphical user interfaces according to an embodiment of the present application. [Figure 5EC-2] FIG. 10 is a schematic diagram of one graphical user interface of another group of graphical user interfaces according to an embodiment of the present application.

[0029] [Figure 6A-1] FIG. 10 is a schematic diagram of one graphical user interface of another group of graphical user interfaces according to an embodiment of the present application. [Figure 6A-2] FIG. 10 is a schematic diagram of one graphical user interface of another group of graphical user interfaces according to an embodiment of the present application. [Figure 6B-1] FIG. 10 is a schematic diagram of one graphical user interface of another group of graphical user interfaces according to an embodiment of the present application. [Figure 6B-2] FIG. 10 is a schematic diagram of one graphical user interface of another group of graphical user interfaces according to an embodiment of the present application. [Figure 6CA-1]FIG. 10 is a schematic diagram of one graphical user interface of another group of graphical user interfaces according to an embodiment of the present application. [Figure 6CA-2] FIG. 10 is a schematic diagram of one graphical user interface of another group of graphical user interfaces according to an embodiment of the present application. [Figure 6CB-1] FIG. 10 is a schematic diagram of one graphical user interface of another group of graphical user interfaces according to an embodiment of the present application. [Figure 6CB-2] FIG. 10 is a schematic diagram of one graphical user interface of another group of graphical user interfaces according to an embodiment of the present application. [Figure 6D-1] FIG. 10 is a schematic diagram of one graphical user interface of another group of graphical user interfaces according to an embodiment of the present application. [Figure 6D-2] FIG. 10 is a schematic diagram of one graphical user interface of another group of graphical user interfaces according to an embodiment of the present application. [Figure 6EA-1] FIG. 10 is a schematic diagram of one graphical user interface of another group of graphical user interfaces according to an embodiment of the present application. [Figure 6EA-2] FIG. 10 is a schematic diagram of one graphical user interface of another group of graphical user interfaces according to an embodiment of the present application. [Figure 6EB-1] FIG. 10 is a schematic diagram of one graphical user interface of another group of graphical user interfaces according to an embodiment of the present application. [Figure 6EB-2] FIG. 10 is a schematic diagram of one graphical user interface of another group of graphical user interfaces according to an embodiment of the present application. [Figure 6FA-1] FIG. 10 is a schematic diagram of one graphical user interface of another group of graphical user interfaces according to an embodiment of the present application. [Figure 6FA-2] FIG. 10 is a schematic diagram of one graphical user interface of another group of graphical user interfaces according to an embodiment of the present application. [Figure 6FB-1] FIG. 10 is a schematic diagram of one graphical user interface of another group of graphical user interfaces according to an embodiment of the present application. [Figure 6FB-2] FIG. 10 is a schematic diagram of one graphical user interface of another group of graphical user interfaces according to an embodiment of the present application. [Figure 6G] FIG. 10 is a schematic diagram of one graphical user interface of another group of graphical user interfaces according to an embodiment of the present application.

[0030] [Figure 7] 1 is a schematic flowchart of a widget display method according to an embodiment of the present application; DETAILED DESCRIPTION OF THE INVENTION

[0031] The following describes the technical solutions in the embodiments of the present application with reference to the accompanying drawings in the embodiments of the present application. In the description in the embodiments of the present application, unless otherwise specified, " / " means "or". For example, A / B may refer to A or B. The term "and / or" in this specification is simply an association relationship for describing associated objects, and indicates that three relationships may exist. For example, A and / or B may refer to the following three cases: only A exists, both A and B exist, and only B exists. In addition, in the description in the embodiments of the present application, "multiple" means two or more.

[0032] Terms such as "first" and "second" referred to below are intended for descriptive purposes only and shall not be understood as an indication or implication of relative importance or the number of technical features shown. Thus, a feature qualified by "first" or "second" may explicitly or implicitly include one or more features. In the description of the embodiments, unless otherwise specified, "plurality" means two or more.

[0033] The terms used in the description of the technical solutions in this specification are merely intended to describe specific embodiments, and are not intended to limit the present application.

[0034] FIG. 1 is a schematic diagram of the structure of an electronic device 100 .

[0035] The electronic device 100 may include at least one of a mobile phone, a foldable electronic device, a tablet computer, a homescreen computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a mobile phone, a personal digital assistant (PDA), an augmented reality (AR) device, a virtual reality (VR) device, an artificial intelligence (AI) device, a wearable device, an in-vehicle device, a smart home device, or a smart city device. The specific type of the electronic device 100 is not particularly limited in this embodiment of the present application. The widget display method provided in the embodiment of the present application may be applied to the electronic device 100.

[0036] The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) port 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headset jack 170D, a sensor module, buttons 190, a motor 191, an indicator 192, a camera module 193, a display 194, a subscriber identification module (SIM) card interface 195, and the like. The sensor module may include a pressure sensor (not shown), a gyro sensor 180B, an air pressure sensor (not shown), a magnetic sensor (not shown), an acceleration sensor 180E, a distance sensor 180F, an optical proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor (not shown), a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.

[0037] It may be understood that the structure shown in this embodiment of the present application does not constitute a specific limitation on the electronic device 100. In some other embodiments of the present application, the electronic device 100 may include more or fewer components than those shown in the figures, may combine some components, may split some components, or may have a different component arrangement (e.g., the electronic device 100 may include a Lightning interface instead of the USB port 130). The components shown in the figures may be implemented by hardware, software, or a combination of software and hardware.

[0038] Processor 110 may include one or more processing units. For example, processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). The different processing units may be separate components or may be integrated into one or more processors.

[0039] The processor 110 may generate operation control signals based on the instruction operation code and the time sequence signal to complete the control of instruction fetching and instruction execution.

[0040] A memory may also be located within the processor 110 and configured to store instructions and data. In some embodiments, the memory in the processor 110 may be a cache. The memory may store instructions or data that have been used or frequently used by the processor 110. When the processor 110 needs to use instructions or data, the processor 110 may retrieve the instructions or data directly from the memory. This avoids repeated accesses, reduces the wait time of the processor 110, and improves system efficiency.

[0041] In some embodiments, processor 110 may include one or more interfaces. The interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identification module (SIM) interface, a universal serial bus (USB) port, etc. Processor 110 may be connected to modules such as a touch sensor, an audio module, a wireless communication module, a display, and a camera through at least one of the aforementioned interfaces.

[0042] It may be understood that the interfacing relationships between modules shown in this embodiment of the present application are merely an example for illustrative purposes and do not constitute limitations on the structure of the electronic device 100. In some other embodiments of the present application, the electronic device 100 may alternatively use an interfacing scheme different from that of the foregoing embodiment, or may use a combination of interfacing schemes.

[0043] The USB port 130 is a port conforming to USB specifications and may be configured to connect to the electronic device 100 and peripheral devices. Specifically, the USB port 130 may be a mini USB port, a micro USB port, a USB Type-C port, or the like. The USB port 130 may be configured to connect to a charger so that the charger can charge the electronic device 100, or to connect to another electronic device to implement data transmission between the electronic device 100 and the other device. Alternatively, the USB port 130 may be configured to connect to a headset to output audio stored on the electronic device through the headset. Alternatively, the port may be configured to connect to another electronic device, such as a VR device. In some embodiments, the Universal Serial Bus specifications may be USB 1.x, USB 2.0, USB 3.x, and USB 4.

[0044] The charging management module 140 is configured to receive a charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive the charging input from the wired charger through the USB port 130. In some wireless charging embodiments, the charging management module 140 may receive the wireless charging input by using a wireless charging coil of the electronic device 100. The charging management module 140 provides power to the electronic device by using the power management module 141 while charging the battery 142.

[0045] Power management module 141 is configured to connect to battery 142, charging management module 140, and processor 110. Power management module 141 receives input from battery 142 and / or charging management module 140 and provides power to processor 110, internal memory 121, display 194, camera module 193, wireless communication module 160, etc. Power management module 141 may be further configured to monitor parameters such as battery capacity, battery cycle count, and battery health status (electrical leakage or impedance). In some other embodiments, power management module 141 may alternatively be located in processor 110. In some other embodiments, power management module 141 and charging management module 140 may alternatively be located in the same device.

[0046] The wireless communication function of the electronic device 100 may be implemented by using antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, a modem processor, a baseband processor, and the like.

[0047] Antenna 1 and Antenna 2 are configured to transmit and receive electromagnetic signals. Each antenna in electronic device 100 may be configured to cover one or more communication frequency bands. Different antennas may be further multiplexed to improve antenna utilization. For example, Antenna 1 may be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, antennas may be used in combination with tuning switches.

[0048] Mobile communication module 150 may provide wireless communication solutions including 2G / 3G / 4G / 5G, etc., and applied to electronic device 100. Mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. Mobile communication module 150 may receive electromagnetic waves by using antenna 1, perform processing such as filtering or amplification on the received electromagnetic waves, and send the electromagnetic waves to a modem processor for demodulation. Mobile communication module 150 may further amplify signals modulated by the modem processor and convert the signals into electromagnetic waves by using antenna 1 for radiation. In some embodiments, at least some functional modules of mobile communication module 150 may be located in processor 110. In some embodiments, at least some functional modules of mobile communication module 150 may be located in the same device as at least some modules of processor 110.

[0049] The modem processor may include a modulator and a demodulator. The modulator is configured to modulate a low-frequency baseband signal to be transmitted into a medium- to high-frequency signal. The demodulator is configured to demodulate a received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the low-frequency baseband signal obtained through demodulation to the baseband processor for processing. The low-frequency baseband signal is processed by the baseband processor and then transmitted to the application processor. The application processor outputs a sound signal by using an audio device (such as, but not limited to, speaker 170A, receiver 170B, etc.) or displays an image or video by using display 194. In some embodiments, the modem processor may be an independent device. In some other embodiments, the modem processor may be independent from processor 110 and located in the same device as mobile communication module 150 or another functional module.

[0050] The wireless communication module 160 may provide wireless communication solutions including wireless local area networks (WLANs) (e.g., wireless fidelity (Wi-Fi) networks), Bluetooth (BT), Bluetooth low energy (BLE), ultra-wideband (UWB), global navigation satellite systems (GNSS), frequency modulation (FM), near field communication (NFC) technology, infrared (IR) technology, etc., and may be applied to the electronic device 100. The wireless communication module 160 may be one or more components integrating at least one communication processor module. The wireless communication module 160 receives electromagnetic waves through the antenna 2, performs frequency modulation and filtering processes on the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 may further receive signals to be transmitted from the processor 110, perform frequency modulation and amplification on the signals, and convert the signals into electromagnetic waves for radiation through the antenna 2.

[0051] In some embodiments, in electronic device 100, antenna 1 and mobile communication module 150 are coupled, and antenna 2 and wireless communication module 160 are coupled, thereby enabling electronic device 100 to communicate with a network and other devices by using a 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), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, IR technology, etc. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a BeiDou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS), and / or a satellite-based augmentation system (SBAS).

[0052] The electronic device 100 implements display functionality by using a GPU, a display 194, an application processor, etc. The GPU is a microprocessor for image processing and is connected to the display 194 and the application processor. The GPU is configured to perform mathematical and geometric calculations and render images. The processor 110 may include one or more GPUs that execute program instructions to generate or modify display information.

[0053] Display 194 is configured to display images, videos, etc. Display 194 includes a display panel. The display panel may be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a mini-LED, a micro-LED, a micro-OLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, electronic device 100 may include one or more displays 194.

[0054] The electronic device 100 may implement the photographing function by using a camera module 193, an ISP, a video codec, a GPU, a display 194, an application processor AP, a neural network processing unit NPU, and the like.

[0055] The camera module 193 may be configured to collect color image data and depth data of the photographed object. The ISP may be configured to process the color image data collected by the camera module 193. For example, during photography, a shutter is opened and light is transferred through a lens to the camera's photosensitive elements. The light signal is converted into an electrical signal, which the camera's photosensitive elements transmit to the ISP for processing to convert the electrical signal into a visible image. The ISP may further perform algorithmic optimization for image noise, brightness, and color. The ISP may further optimize parameters such as exposure and color temperature for the photography scenario. In some embodiments, the ISP may be located in the camera module 193.

[0056] In some embodiments, the camera module 193 may include a color camera module and a 3D sensing module.

[0057] In some embodiments, the photosensitive elements of the cameras in the color camera module may be charge coupled devices (CCDs) or complementary metal-oxide-semiconductor (CMOS) optoelectronic transistors. The photosensitive elements convert optical signals into electrical signals, which are then sent to an ISP, which converts the electrical signals into digital image signals. The ISP outputs the digital image signals to a DSP for processing. The DSP converts the digital image signals into image signals in a standard format, such as RGB or YUV.

[0058] In some embodiments, the 3D sensing module may be a time-of-flight (TOF) 3D sensing module or a structured light 3D sensing module. Structured light 3D sensing is an active depth sensing technology, and the basic components of the structured light 3D sensing module may include an infrared transmitter, an IR camera module, etc. The working principle of the structured light 3D sensing module is to first transmit light spots of a specific pattern to the photographed object, then receive the coding (photocoding) of the light spots of the pattern on the surface of the object, compare the light spots with the original projected light spots in terms of similarity and difference, and calculate the three-dimensional coordinates of the object according to the principles of trigonometry. The three-dimensional coordinates include the distance between the electronic device 100 and the photographed object. TOF 3D sensing may be an active depth sensing technology. The basic components of the TOF 3D sensing module may include an infrared transmitter, an IR camera module, etc. The working principle of the TOF 3D sensing module is to calculate the distance (i.e., depth) between the TOF 3D sensing module and the photographed object by using the time of infrared refraction to obtain a 3D depth-of-field image.

[0059] The structured light 3D sensing module may be further applied in fields such as face recognition, somatic game consoles, and industrial machine vision detection, etc. The TOF 3D sensing module may be further applied in fields such as game consoles and augmented reality (AR) / virtual reality (VR), etc.

[0060] In some other embodiments, the camera module 193 may further include two or more cameras. The two or more cameras may include color cameras configured to collect color image data of the photographed object. The two or more cameras may collect depth data of the photographed object by using stereo vision technology. Stereo vision technology is based on the principle of parallax in the human eye. Under natural light sources, two or more cameras are used to capture images of the same object from different angles, and then operations such as triangulation are performed to obtain distance information, i.e., depth information, between the electronic device 100 and the photographed object.

[0061] In some embodiments, electronic device 100 may include one or more camera modules 193. Specifically, electronic device 100 may include one front camera module 193 and one rear camera module 193. The front camera module 193 may generally be configured to collect color image data and depth data of a photographer facing a display 194, and the rear camera module may be configured to collect color image data and depth data of a photographed object (such as a character or a scene) facing the photographer.

[0062] In some embodiments, a CPU, GPU, or NPU in the processor 110 may process the color image data and depth data collected by the camera module 193. In some embodiments, the NPU may identify the color image data collected by the camera module 193 (specifically, the color camera module) and determine skeleton points of the photographed character by using a neural network algorithm based on a skeleton point identification technique, for example, a convolutional neural network (CNN) algorithm. The CPU or GPU may also execute the neural network algorithm to determine skeleton points of the photographed character based on the color image data. In some embodiments, the CPU, GPU, or NPU may be further configured to: determine the appearance of the photographed character (e.g., the body shape and the degree of obesity and thinness of body parts between the skeleton points) based on the depth data collected by the camera module 193 (which may be a 3D sensing module) and the identified skeleton points; further determine body beautification parameters for the photographed character; and finally, process the photographed image of the photographed character based on the body beautification parameters, such that the body shape of the photographed character in the photographed image is beautified. In subsequent embodiments, how to perform body shaping processing on the photographed image of the character based on the color image data and depth data collected by the camera module 193 will be described in detail. The details will not be described herein.

[0063] The digital signal processor is configured to process the digital signal and may further process another digital signal, for example, if the electronic device 100 selects a frequency, the digital signal processor may be configured to perform a Fourier transform on the frequency energy, etc.

[0064] A video codec is configured to compress or decompress digital video. Electronic device 100 may support one or more video codecs. In this manner, electronic device 100 may play or record video in multiple coding formats, such as Moving Picture Experts Group (MPEG)-1, MPEG-2, MPEG-3, and MPEG-4.

[0065] The NPU is a neural network (NN) computing processor, which can rapidly process input information and continuously perform self-learning by referring to the structure of a biological neural network, for example, referring to the transfer mode between human brain neurons. Applications such as intelligent cognition of the electronic device 100 can be implemented by using the NPU, for example, image recognition, face recognition, speech recognition, and text understanding.

[0066] The external memory interface 120 may be used to connect to an external storage card, such as a microSD card, to expand the storage capabilities of the electronic device 100. The external storage card communicates with the processor 110 through the external memory interface 120 to implement data storage functions. For example, files such as music and video may be stored on the external storage card, or files such as music and video may be transmitted from the electronic device to the external storage card.

[0067] The internal memory 121 may be configured to store computer-executable program code. The executable program code includes instructions. The internal memory 121 may include a program storage area and a data storage area. The program storage area may store an operating system, applications required by at least one function (e.g., a sound playback function and an image playback function), etc. The data storage area may store data created during use of the electronic device 100 (e.g., audio data and an address book), etc. Additionally, the internal memory 121 may include high-speed random access memory and may further include non-volatile memory, such as at least one magnetic disk storage device, flash storage device, universal flash storage (UFS), etc. The processor 110 executes instructions stored in the internal memory 121 and / or instructions stored in memory located within the processor to perform various functions and data processes of the electronic device 100.

[0068] The electronic device 100 may implement audio functionality, such as music playback or recording, by using an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headset jack 170D, an application processor, and the like.

[0069] Audio module 170 is configured to convert digital audio information into analog audio signals for output, and is also configured to convert analog audio input into digital audio signals. Audio module 170 may be further configured to: encode and decode audio signals. In some embodiments, audio module 170 may be located in processor 110, or some functional modules in audio module 170 may be located in processor 110.

[0070] The speaker 170A, also referred to as a "horn," is configured to convert an audio electrical signal into a sound signal. The electronic device 100 may listen to music or output an audio signal for hands-free calling by using the speaker 170A.

[0071] Receiver 170B, also referred to as an "earpiece," is configured to convert an audio electrical signal into a sound signal. When a call is answered or voice information is received by using electronic device 100, receiver 170B can be placed near a person's ear to listen to the voice.

[0072] Microphone 170C, also referred to as a "mike" or "mic," is configured to convert sound signals into electrical signals. When making a call or transmitting voice information, a user may emit a sound through the user's mouth near microphone 170C to input the sound signal into microphone 170C. At least one microphone 170C may be disposed on electronic device 100. In some other embodiments, two microphones 170C may be disposed on electronic device 100 to collect sound signals and further implement noise reduction functionality. In some other embodiments, three, four, or more microphones 170C may alternatively be disposed on electronic device 100 to collect sound signals, reduce noise, further identify sound sources, implement directional recording functionality, etc.

[0073] The headset jack 170D is configured to connect to a wired headset and may be a USB port 130 or a 3.5 mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.

[0074] The pressure sensor 180A is configured to detect a pressure signal and may convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be disposed on the display 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors. A capacitive pressure sensor may include at least two parallel plates made of a conductive material. When a force is applied to the pressure sensor 180A, a capacitance between the electrodes changes. The electronic device 100 determines the pressure intensity based on the change in capacitance. When a touch operation is performed on the display 194, the electronic device 100 detects the intensity of the touch operation by using the pressure sensor 180A. The electronic device 100 may calculate the touch location based on the detection signal of the pressure sensor 180A. In some embodiments, touch operations performed at the same touch location but with different touch operation intensities may correspond to different operation commands. For example, when a touch operation with a touch operation intensity less than a first pressure threshold is performed on a message application icon, an instruction to view SMS messages is executed. When a touch action having a touch action strength greater than or equal to a first pressure threshold is performed on the message application icon, an instruction to compose a new SMS message is executed.

[0075] The gyro sensor 180B may be configured to determine the motion attitude of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around three axes (i.e., axes x, y, and z) may be determined by using the gyro sensor 180B. The gyro sensor 180B may be configured to implement image stabilization during photography. For example, when the shutter is pressed, the gyro sensor 180B detects the angle at which the electronic device 100 jitters, and through calculations based on the angle, obtains the distance that the lens module needs to compensate for, and controls the inverse motion of the lens to offset the jitter of the electronic device 100, thereby implementing image stabilization. The gyro sensor 180B may further be used in navigation and somatic gaming scenarios.

[0076] The barometric pressure sensor 180C is configured to measure barometric pressure. In some embodiments, the electronic device 100 calculates altitude based on the barometric pressure values ​​measured by the barometric pressure sensor 180C to assist in positioning and navigation.

[0077] The magnetic sensor 180D includes a Hall sensor. The electronic device 100 may detect the opening and closing of the flip cover by using the magnetic sensor 180D. If the electronic device is a foldable electronic device, the magnetic sensor 180D may be configured to detect the folding or unfolding of the electronic device, or the folding angle. In some embodiments, if the electronic device 100 is a flip phone, the electronic device 100 may detect the opening and closing of the flip cover based on the magnetic sensor 180D, and may further set a function, such as automatic unlocking of the flip cover, based on the detected open or closed state of the flip cover.

[0078] The acceleration sensor 180E may detect acceleration in various directions (typically on three axes) of the electronic device 100 and may detect the magnitude and direction of gravity when the electronic device 100 is stationary. The acceleration sensor 180E may further be configured to identify the orientation of the electronic device, for use in applications such as switching between landscape and portrait modes or as a pedometer.

[0079] The distance sensor 180F is configured to measure distance. The electronic device 100 may measure distance using an infrared method or a laser method. In some embodiments, in a photography scenario, the electronic device 100 may measure distance through the distance sensor 180F to implement rapid focusing.

[0080] The optical proximity sensor 180G may include, for example, a light-emitting diode (LED) and a photodetector, such as a photodiode. The light-emitting diode may be an infrared light-emitting diode. The electronic device 100 emits infrared light by using the light-emitting diode. The electronic device 100 detects infrared light reflected from a nearby object by using the photodiode. If the intensity of the detected reflected light is greater than a threshold, it may be determined that an object is present near the electronic device 100. If the intensity of the detected reflected light is less than the threshold, the electronic device 100 may determine that no object is present near the electronic device 100. The electronic device 100 may use the optical proximity sensor 180G to detect when a user is holding the electronic device 100 close to their ear for a call and automatically turn off the screen to save power. The optical proximity sensor 180G may be used in smart cover mode or pocket mode to automatically unlock or lock the screen.

[0081] The ambient light sensor 180L may be configured to detect ambient light intensity. The electronic device 100 may adaptively adjust the brightness of the display 194 based on the detected ambient light intensity. The ambient light sensor 180L may also be configured to automatically adjust white balance during capture. The ambient light sensor 180L may cooperate with the optical proximity sensor 180G to detect whether the electronic device 100 is blocked. For example, the electronic device is in a pocket. When the electronic device is detected to be blocked or in a pocket, some functions (e.g., touch functions) may be disabled to prevent malfunction.

[0082] Fingerprint sensor 180H is configured to collect fingerprints, and electronic device 100 may use collected fingerprint characteristics to implement fingerprint-based unlocking, application lock access, fingerprint-based photography, fingerprint-based call answering, etc.

[0083] Temperature sensor 180J is configured to detect temperature. In some embodiments, electronic device 100 executes a temperature handling policy based on the temperature detected by temperature sensor 180J. For example, if the temperature detected by temperature sensor 180J exceeds a threshold, electronic device 100 reduces processor performance to reduce power consumption of the electronic device and implement thermal protection. In some other embodiments, if the temperature detected by temperature sensor 180J is less than another threshold, electronic device 100 heats battery 142. In some other embodiments, if the temperature is less than yet another threshold, electronic device 100 may boost the output voltage of battery 142.

[0084] Touch sensor 180K is also referred to as a "touch device." Touch sensor 180K may be disposed on display 194, with touch sensor 180K and display 194 forming a touch screen, also referred to as a "touch screen." Touch sensor 180K is configured to detect touch actions performed on or near touch sensor 180K. The touch sensor may forward the detected touch actions to an application processor to determine the type of touch event. Display 194 may be used to provide a visual output related to the touch action. In some other embodiments, touch sensor 180K may be disposed on a surface of electronic device 100 at a location different from the location of display 194.

[0085] The bone conduction sensor 180M may acquire vibration signals. In some embodiments, the bone conduction sensor 180M may acquire vibration signals from the vibrating bones of the human vocal cord region. The bone conduction sensor 180M may contact the body's pulse to receive blood pressure pulse signals. In some embodiments, the bone conduction sensor 180M may be disposed in a headset to obtain a bone conduction headset. The audio module 170 may analyze voice signals based on the vibration signals from the vibrating bones of the vocal cord region acquired by the bone conduction sensor 180M to implement a voice function. The application processor may analyze heart rate information based on the blood pressure pulse signals acquired by the bone conduction sensor 180M to implement a heart rate detection function.

[0086] Buttons 190 may include a power button, a volume button, etc. Buttons 190 may be mechanical buttons or touch buttons. Electronic device 100 may receive key inputs and generate key signal inputs related to user settings and function control of electronic device 100.

[0087] The motor 191 may generate a vibration prompt. The motor 191 may be configured to provide an incoming call vibration prompt or to provide touch vibration feedback. For example, touch actions performed on different applications (e.g., taking pictures and playing audio) may correspond to different vibration feedback effects. The motor 191 may also correspond to different vibration feedback effects for touch actions performed on different areas of the display 194. Different application scenarios (e.g., time reminders, receiving information, alarm clocks, and games) may correspond to different vibration feedback effects. The touch vibration feedback effects may be further customized.

[0088] The indicator 192 may be an indicator light and may be configured to indicate charging status and power changes, or may be configured to indicate messages, missed calls, notifications, etc.

[0089] The SIM card interface 195 is configured to connect to a SIM card. The SIM card may be inserted into or removed from the SIM card interface 195 to implement connection to or disconnection from the electronic device 100. The electronic device 100 may support one or more SIM card interfaces. The SIM card interface 195 may support a nano-SIM card, a micro-SIM card, a SIM card, etc. Multiple cards may be inserted into the same SIM card interface 195 at the same time. The multiple cards may be of the same type or different types. The SIM card interface 195 may be compatible with different types of SIM cards. The SIM card interface 195 may also be compatible with an external storage card. The electronic device 100 interacts with a network through the SIM card to implement functions such as voice and data communication. In some embodiments, the electronic device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card may be embedded in the electronic device 100 and cannot be separated from the electronic device 100.

[0090] The software system of the electronic device 100 may use a layered architecture, an event-driven architecture, a microkernel architecture, a microservices architecture, or a cloud architecture, and may be an Android system, a Linux system, a Windows system, a HarmonyOS system, an iOS system, etc.

[0091] In the embodiment of the present application, the Android system, which has a layered architecture, is used as an example to describe the software structure of the electronic device 100.

[0092] 2 is a block diagram of the software structure of electronic device 100 according to one embodiment of the present application. In a layered architecture, the software is divided into several layers, each with a distinct role and task. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into five layers: from top to bottom, the application layer, the application framework layer, the Android runtime and system libraries, the hardware abstraction layer, and the kernel layer.

[0093] The application layer may include a series of application packages.

[0094] As shown in FIG. 2, the application package may include applications such as music, calendar, message, note, Meetime, browser, video, mail, Bluetooth, and maps.

[0095] In this embodiment of the present application, for a media application (e.g., a music application or a video application shown in FIG. 2), electronic device 100 may detect that there is an ongoing task in the media application (e.g., a music application or a video application) on electronic device 100 and display a media widget on the home screen.

[0096] In some embodiments, electronic device 100 may further detect a scenario change (e.g., a change in the system time or geographic location of electronic device 100) and adjust the size of a media widget displayed on the home screen and / or the content displayed by the media widget, and / or the layout of the content displayed by the media widget.

[0097] In the Android operating system, an Android application may be built with at least one of the following components:

[0098] An Activity may be referred to as an "activity" in some embodiments. An Activity is an interface for interaction between the system and the user and can be a user interface (visible to the user) on a single screen. For example, an email application may have an Activity that displays a list of new emails, an Activity that writes emails, and an Activity that reads emails. Each Activity exists independently of other Activities. In addition, another application can start any of the Activities (if the email application allows the other application to start any of the Activities). For example, a camera application may start an Activity within the email application that writes a new email so that the user can share a photo. Activities facilitate complete critical interactions between the system and applications. The system can use Activities to keep track of the content the user is currently involved in (e.g., the content displayed on the screen) to ensure that the system continues to execute the process that hosts the Activity.

[0099] A Service may be referred to as a "service" in some embodiments. A Service is an application component that can run for long periods of time in the background without providing an interface. A service can be started by another application component (e.g., an Activity), and the service continues to run in the background even if the user switches to another application. For example, if a user uses an email application, a service may play music in the background or fetch data over the network, but this does not block interaction between the user and the email application (e.g., an Activity writing an email).

[0100] Services can be classified as foreground and background services. If an application has a service, but the service is visible to the user while it is running, the service is a foreground service. For example, for a music application, music playback is a service that can be directly perceived by the user, so the music application may send a notification to the user indicating that the music application is going to appear in the foreground (to avoid being closed in the background) to notify the system. In this case, the system understands that it should not expend effort to keep the service process running, as the process's disappearance would annoy the user.

[0101] The Broadcast Receiver may be referred to as a "broadcast receiver" in some embodiments. The broadcast receiver component allows the system to deliver events to applications, enabling applications to respond to broadcast notifications within the system. Because the broadcast receiver is another well-defined application entity, the system can also deliver broadcasts to applications that are not currently running. For example, the system can send a broadcast, and when an application receives the broadcast, the application can issue a notification by using a notification manager (the notification manager in the application framework layer shown in FIG. 2) to notify the user of the upcoming event. It should be understood that a broadcast may be initiated by the system. For example, the system may send a broadcast notifying that the screen is turned off, the battery level is low, or that a photo has been taken. A broadcast may also be initiated by an application. For example, if a user intends to enter an interface for writing an email when receiving an SMS message, the user may send a broadcast event by using a message application. After receiving the broadcast, the email application's Broadcast Receiver triggers the creation of an Activity that writes the email. It should be understood that the Broadcast Receiver does not appear on the user interface, but may create a status bar notification and remind the user when a broadcast event occurs by using the notification manager.

[0102] A Content Provider may be referred to as a "content provider" in some embodiments. A content provider can store and retrieve data across multiple applications and may be equivalent to a database. For application A that includes a Content Provider, another application can query or modify data in application A by using the content provider (assuming the Content Provider allows the other application to query or modify data in application A by using the Content Provider). For example, a contacts application includes a Content Provider that manages contact information. Thus, any application with appropriate permissions can query, read, and write information related to contacts.

[0103] It should be understood that starting an Activity or an interaction between Activities is implemented by using messages. For example, starting an Activity or another Activity within an Activity may be triggered by sending an Intent message.

[0104] It should be further understood that in the Android system, an application is similar to a container and may contain multiple Activities, multiple Services, or multiple Broadcast Receivers. Activities, Services, and Broadcast Receivers are independent of each other. Interactions between Activities, Services, and Broadcast Receivers can be triggered by Intent messages.

[0105] The application framework layer provides an application programming interface (API) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions.

[0106] As shown in FIG. 2, the application framework layer may include a window manager, a content provider, a view system, a resource manager, a notification manager, an activity manager, an input manager, and the like.

[0107] The window manager provides a Window Manager Service (WMS), which can be used for window management, window animation management, surface management, and as a relay point for the input system.

[0108] Content providers are configured to: store and retrieve data and make the data accessible by applications. Data may include video, images, audio, calls made and received, browsing history and bookmarks, address books, etc.

[0109] The view system includes visualization controls, such as controls for displaying text and controls for displaying images. The view system may be configured to build applications. A display interface may include one or more views. For example, a display interface that includes a message notification icon may include a text display view and an image display view.

[0110] In this embodiment of the present application, a widget displayed on the home screen of electronic device 100 may include one or more views, and a widget may include a view for displaying text and a view for displaying photos, for example, a music widget includes a view for displaying lyrics and a view for displaying a photo of the singer.

[0111] The resource manager provides various resources for an application, such as localized strings, icons, images, layout files, and video files.

[0112] The notification manager may be configured to allow applications to display notification information in the status bar and to communicate notification messages. The notification manager may automatically disappear after a short pause without user interaction. For example, the notification manager may be configured to notify of download completion, provide message notifications, etc. The notification manager may alternatively be a notification that appears in the system's top status bar in the form of a graph or scrollbar text, e.g., a notification of an application running in the background, or a notification that appears on the display in the form of a dialog window. For example, text information may be displayed in the status bar, an alert sound may be played, the electronic device may vibrate, or an indicator light may flash.

[0113] The Activity Manager can provide an Activity Manager Service (AMS), which can be used to launch, switch, and schedule system components (e.g., activities, services, content providers, broadcast receivers), and manage and schedule application processes.

[0114] The Input Manager can provide an Input Manager Service (IMS), which can be used for system input management, such as touchscreen input, key input, and sensor input. The IMS receives events from input device nodes and distributes the events to appropriate windows through interaction with the WMS.

[0115] The Android runtime includes core libraries and the Android runtime. The Android runtime is responsible for converting source code into machine code. The Android runtime mainly includes ahead-of-time (AOT) compilation technology and just-in-time (JIT) compilation technology.

[0116] The core library is mainly used to provide the functions of basic Java libraries, such as basic data structure library, math library, I / O library, tool library, database, and network library. The core library provides APIs for users to develop Android applications.

[0117] The native C / C++ library may include multiple functional modules, such as a surface manager, a Media Framework, libc, OpenGL ES, SQLite, and Webkit.

[0118] The surface manager is configured to manage the display subsystem and provide a blend of 2D and 3D layers for multiple applications. The media framework supports playback and recording of multiple commonly used formats of audio and video, as well as still image files. The media library may support multiple audio and video coding formats, such as MPEG-4, H.264, MP3, AAC, AMR, JPG, and PNG. OpenGL ES provides 2D and 3D graphics drawing and manipulation for applications. SQLite provides a lightweight relational database for applications on the electronic device 100.

[0119] The hardware abstraction layer runs in user space, encapsulates the drivers of the kernel layer, and provides a calling interface for the upper layers.

[0120] The kernel layer is a layer between the hardware and the software, and includes at least a display driver, a camera driver, an audio driver, a Bluetooth driver, and a sensor driver.

[0121] The following describes an example of the operating process of the software and hardware of the electronic device 100 with reference to a capture shooting scenario.

[0122] When the touch sensor 180K receives a touch operation, a corresponding hardware interrupt is sent to the kernel layer. The kernel layer processes the touch operation into an original input event (including information such as the touch coordinates and timestamp of the touch operation). The original input event is stored in the kernel layer. The application framework layer obtains the original input event from the kernel layer and identifies a control corresponding to the input event. For example, the touch operation is a single-tap touch operation, and the control corresponding to the single-tap operation is a control of a camera application icon. The camera application calls an interface in the application framework layer to open the camera application, then enables the camera driver by calling the kernel layer, and captures still images or videos by using the camera module 193.

[0123] Before describing the technical solutions in the embodiments of the present application, the nouns in the embodiments of the present application will be described first.

[0124] The following uses Android as an example to explain the concept of foreground and background applications.

[0125] Foreground application: The application's interface is visible to the current user and can be interacted with by the user.

[0126] Background application: The application does not have any interface with which the user can interact.

[0127] The user opens a music application, and electronic device 100 presents the interface of the music application. In this case, the music application belongs to the foreground application, but in this case, the music application does not have an ongoing task. If the user plays audio, plays video, downloads audio, or downloads video on the music application interface, the music application has an ongoing task in the foreground (e.g., in a specific implementation of the Android system, the music application invokes or creates an activity). If the user stops audio playback, stops video playback, or stops a download task on the music application interface, electronic device 100 considers the music application to have no ongoing task.

[0128] If a user switches from a music application interface to another graphical user interface of electronic device 100 and the music application is still playing audio, downloading audio, or downloading video, electronic device 100 considers the music application to have an ongoing task in the background (e.g., in certain implementations of the Android system, music invokes or creates a background task).

[0129] If a user switches from a music application interface to another graphical user interface of electronic device 100 and the music application is still playing audio, downloading audio, or downloading video, but electronic device 100 displays a notification card for the music application, electronic device 100 considers the music application to have an ongoing task in the foreground (e.g., in certain implementations of the Android system, music invokes or creates a foreground task).

[0130] When the device detects a predefined gesture action of the user, the device switches from the interface of the music application to another graphical user interface of the electronic device, and the music application does not play audio in the background or has no download tasks, the music application does not have any tasks that run continuously in the background.

[0131] For a media application, an "ongoing task" may be an "ongoing task of a foreground application" or an "ongoing task of a background application" of the electronic device.

[0132] It should be understood that an "ongoing task of a foreground application" in this specification means that the foreground application has visible activity. For example, if a user opens a music application and is playing audio, playing video, downloading audio, or downloading video in the music application interface, and the screen of the electronic device is currently displaying the music application interface, the music application has an ongoing task in the foreground. It should be understood that an "ongoing task in the background" in this specification is a task that is currently running continuously in the background (e.g., this may be a Service component of a media application, which runs continuously in the background). For example, if a user switches from the interface of the music application to another graphical user interface of electronic device 100, and the music application is playing audio, downloading audio, or downloading video in the background, the music application has an ongoing task in the background. When a user stops audio playback, stops video playback, or stops a download task on the interface of a music application, and the device detects a predefined gesture action of the user, and the device switches from the interface of the music application to another graphical user interface of the electronic device, and the music application does not play audio in the background or has no download task, the music application does not have any tasks that run continuously in the background.

[0133] In some embodiments, a "task in progress" may be a task that a user has not completed. For example, a user processes a slide task on electronic device 100. In this case, if the user leaves and does not close the application associated with the slide, the slide task that has not been completed by the user is a "task in progress."

[0134] In some embodiments, the "ongoing task" may alternatively be a schedule, where the schedule includes time information and / or geographic location information. For example, if a user adds a schedule "Go shopping, time: September 1, 2020, and location: Beijing Shopping Mall" to a calendar application, the schedule added by the user may be an "ongoing task." In some other embodiments, electronic device 100 detects that a travel task exists in a schedule application (e.g., calendar, notes, reminders, email, and messages) on electronic device 100, and electronic device 100 detects that the geographic location of electronic device 100 is close to the departure station or the system time of electronic device 100 is close to the departure time. In this case, electronic device 100 determines the travel task as an "ongoing task."

[0135] Widget: In embodiments of the present application, a widget may be a micro-application view that is embedded in another application (e.g., a home screen, a messaging application, or an email application) and receives periodic updates. For example, a widget may be an application widget that is displayed on the home screen. In some embodiments, a widget may alternatively be a card that is displayed on the left-most screen. In some embodiments, a widget may be a notification card in a lock screen interface.

[0136] An application widget on a home screen is used as an example. A user can customize the home screen by using the application widget. In addition, a user can enter the application associated with the application widget by tapping the application widget, and the user can move or adjust the size of the widget.

[0137] Application widgets may include message widgets, control widgets, and hybrid widgets.

[0138] A message widget may periodically update the displayed message to provide different content to the user. For example, a weather widget may update weather information over time. For example, a schedule widget in an embodiment of the present application may provide messages to the user, and as the scenario (e.g., the system time or geographic location of the electronic device) changes, the schedule widget may display more messages.

[0139] A control widget may provide a control for a user to operate to implement control of an application associated with the widget. For example, a music widget described in an embodiment of the present application may include a play / pause control, and a user may tap the control to play / pause the music.

[0140] A hybrid widget may have the functionality of both a message widget and a control widget, for example, a music widget in an embodiment of the present application may include controls and dynamically displayed lyrics.

[0141] It should be understood that the widgets in the embodiments of the present application may be further referred to as small components, small tools, or cards. The specific names of the widgets are not limited in the present application.

[0142] 3A-3M-1 and 3M-2 show a set of example graphical user interfaces (GUIs) in which electronic device 100 detects that an ongoing task exists in a media application (e.g., a music application or a video application) on electronic device 100 and displays a media widget on the home screen.

[0143] 3A is an example graphical user interface 3000 displayed on display 194 on electronic device 100. In some embodiments, graphical user interface 3000 may be referred to as a lock screen interface. Graphical user interface 3000 may include one or a combination of the following elements:

[0144] Application Widget 304-0: In some embodiments, the application widget 304-0 may be located at the top of the screen. It should be understood that "top" refers to an area that is higher than half the height of the screen. In some embodiments, the content displayed by the application widget 304-0 may include one or a combination of time information, weather information, or location information. In some embodiments, the application widget 304-0 may include at least one location and time information and weather information corresponding to the location. For example, the application widget 304-0 may include time information for Beijing, weather information for Beijing, time information for London, and weather information for London. In some embodiments, the application widget 304-0 may include two application widgets (e.g., a music widget and a time and weather widget displayed simultaneously). It should be understood that the size (including width and height) of the application widget 304-0 is not specifically limited in this embodiment of the present application. In some embodiments, the size of the application widget 304-0 may be small. It should be understood that "small size" in this embodiment of the present application may mean that the width of the widget does not reach the maximum width of a widget that can be displayed on the home screen of electronic device 100. In some embodiments, application widget 304-0 may be a time weather widget or a calendar widget. It should be understood that in some embodiments, the time weather widget may alternatively be referred to as a weather application widget.

[0145] Icon 315: Icon 315 is a fingerprint recognition icon. In some embodiments, icon 315 may be switched between a transparent display and an opaque display.

[0146] Icon 316: Icon 316 is a camera icon. A user can quickly access the camera application interface by tapping the camera icon.

[0147] System Status Bar 302: The system status bar 302 may include a battery level indicator, a time indicator (e.g., 8:00 shown in the figure), and a signal strength indicator for the user's wireless communication (e.g., 4G and 5G). It should be understood that in some embodiments, the content displayed in the system status bar 302 is not limited thereto. For example, the system status bar 302 may further display a Bluetooth indicator, an alarm clock indicator, etc. It should be understood that the placement location of the content displayed in the system status bar 302 is not limited in this embodiment. For example, in some embodiments, the location of the time indicator may be in the center.

[0148] It should be understood that the display location and number of elements included in the graphical user interface 3000 are not specifically limited in this embodiment of the present application.

[0149] It should be understood that in some embodiments, the graphical user interface 3000 may further include more elements.

[0150] In some embodiments, GUI 3000 may further include a lock screen wallpaper (not shown). In some embodiments, the lock screen wallpaper displayed in GUI 3000 may be different each time the screen is turned on (e.g., the home button is activated).

[0151] 3B illustrates an example graphical user interface 3001-2 displayed on the display 194 of the electronic device 100. The example graphical user interface 3001-2 may be referred to as a home screen, and it should be understood that the name of the graphical user interface 3001-2 is not specifically limited in this embodiment of the present application. In some embodiments, the graphical user interface 3001-2 may be a home screen homepage (home screen). Upon detecting a predefined gesture on another page on the home screen (e.g., sliding up from the bottom of the screen), the electronic device may quickly switch to the home screen homepage. In this embodiment of the present application, it should be understood that the name "home screen homepage" is used as an example for explanation purposes and does not indicate a specific limitation on the name of the example graphical user interface 3001-2. In some embodiments, the example graphical user interface 3001-2 may include one or a combination of several of the following elements:

[0152] Status bar 302: The description of the status bar 302 refers to the description of the status bar in Fig. 3A. Details will not be described in this specification.

[0153] Dock bar (favorites tray) 308: The dock bar 308 may contain application icons such as camera, contacts, phone, and messages. In some embodiments, a user may manually change the application icons displayed in the dock bar 308.

[0154] Homescreen page mark 310: The homescreen page mark 310 indicates the number of pages included in the homescreen and is used to identify the current page. For example, in GUI 3001-2 shown in FIG. 3B, the homescreen page mark 310 indicates that electronic device 100 includes at least two homescreen pages. In some embodiments, the leftmost screen may also be referred to as a homescreen page. After detecting a page switch command, the electronic device may switch between different homescreen pages (e.g., as shown in FIGS. 3C-1 and 3C-2, electronic device 100 detects input left slide predefined gesture 3091, and electronic device 100 switches from the homescreen home page to homescreen page GUI 3001-1 for display). In some embodiments, a user may adjust the display order of the homescreen home page and another homescreen page (e.g., adjust the display order of GUI 3001-2 and GUI 3001-1).

[0155] Application Icon 306: The application icon 306 may include at least one application icon. The application icon 306 may include at least one or a combination of the following applications: "HUAWEI Video" 3061, "Health" 3062, "Weather" 3063, "Music" 3064, "AI Life," "Settings," "Recorder," "Vmall," "Camera," "Contacts," "Phone," and "Messages." In some embodiments, the application icons displayed by the application icon 306 may be different. For example, the number of application icons may increase or decrease, and the types of icons may also be different.

[0156] Application Widget 304-1: For a description of application widget 304-1, please refer to the description of application widget 304-0 in the embodiment in FIG. 3A. Details will not be described herein. Note that application widget 304-1 may also be any widget manually added to the home screen of electronic device 100 by a user. For example, in some embodiments, the first application widget 304-1 may be a time-weather widget or a calendar widget.

[0157] It should be understood that in some embodiments, there may be different terms or names for the status bar 302, widget 304-1, application icon 306, dock bar (favorites tray) 308, and home screen page mark 310. In some embodiments, application icon 306 may be referred to as an application shortcut, etc. The terminology in this embodiment is merely an example.

[0158] It should be further understood that the display positions of elements in the graphical user interface 3001-2 are examples and that other arrangements may be used in some other embodiments. It should be further understood that more types of elements may be present in the graphical user interface 3001-2.

[0159] According to the present invention, the widget 304-1 in that location exists since the delivery and activation of the electronic device 100, and the user does not delete the widget. However, the widget occupies a large area of ​​the screen and wastes screen space. Therefore, according to the technical solution provided in this application, another widget can be intelligently displayed by using the widget's area to provide more useful information for the user and improve the utilization rate of the home screen.

[0160] In some embodiments, electronic device 100 displays application widget 304-1 on the home screen. It should be understood that application widget 304-1 may be a time / weather widget, a calendar widget, or another application widget. Electronic device 100 may detect an ongoing task within a media application (e.g., a music application or a video application) on electronic device 100 and display a media widget on the home screen. In some embodiments, the media widget may be displayed on the home screen in the same area where application widget 304-1 is displayed. In some embodiments, the same area may be an area on the home screen of the home screen.

[0161] The following uses a music application as an example to outline the media widget creation process.

[0162] The application widget 304-1 displayed on the home screen is a time weather widget 304-1 (as shown in FIG. 3B). It should be understood that in some embodiments, the application widget 304-1 may alternatively be a widget as described in the embodiments of FIGS. 4A-4E-1-4E-3, a schedule widget as described in the embodiments of FIGS. 5A-5EC-1 and 5EC-2, or an instant messaging application widget as described in the embodiments of FIGS. 6A-1 and 6A-2-6G.

[0163] It should be understood that the music application in this embodiment of the present application may alternatively be replaced by another media application (e.g., HUAWEI Video, Tencent Video, YOUTUBE®, Sportify, iTunes®, Himalaya FM, NetEase Cloud Music, and QQ Music). It should be understood that the media application includes an application whose main function is to play video and / or whose main function is to play audio. The specific name of the media application is not limited in this embodiment of the present application.

[0164] After electronic device 100 detects an instruction to activate the music application, electronic device 100 responds to the instruction, and the music application is activated. For example, after electronic device 100 detects a gesture of tapping a music application icon button 3064 on GUI 3001-2 displayed on the home screen in FIGS. 3D-1 and 3D-2 with a user's finger (not drawn to scale in the figures), electronic device 100 responds to the gesture, and music application interface 3002 is displayed on the display of electronic device 100. In some embodiments, the location of music application icon button 3064 may be in a folder (not shown) on the home screen page. In some embodiments, the manner in which the music application is activated by the user may alternatively be a stylus tap, voice control, floating control, etc. In GUI 3002, the music application interface may include the name of the song "TV" 312-2, a photo of the singer 312-1, the singer "Tom Lee" 312-3, some lyrics 312-4, controls 312-5, etc. In some embodiments, the content displayed on music application interface 3002 may further include, but is not limited to, the lyricist, album name, arranger, etc.

[0165] After detecting that the music playback control has been activated (e.g., the user taps the music playback control as shown in FIGS. 3E-1 and 3E-2), the electronic device 100 displays an interface in which music is being played.

[0166] When there is a song playing in the music application, after the electronic device 100 detects an input predefined gesture (e.g., making an upward sliding gesture at the bottom of the screen), the electronic device 100 may switch from the displayed music application interface GUI 3002 to the home screen. It should be understood that the function of the action "making an upward sliding gesture at the bottom of the screen" allows the electronic device 100 to switch to the home screen of the electronic device 100. It should be noted that the gesture action that allows the electronic device to return to the home screen of the electronic device is not limited to sliding up from the bottom of the screen. The gesture action may be the user tapping a home button (not shown) or the user tapping a return button (not shown). This is not specifically limited in this embodiment of the present application.

[0167] Optionally, after electronic device 100 switches from the displayed music application interface GUI 3002 to the home screen, the home screen may simultaneously display music widget 314-2 and widget 304-2 (reduced-size application widget 304-1).

[0168] For example, the home screen may display a graphical user interface 3003-2 as shown in FIGS. 3FA-1 and 3FA-2. The graphical user interface 3003-2 may include a music widget 314-2 and a timed weather widget 304-2. The electronic device 100 displays the music widget 314-2 and the timed weather widget 304-2 on the home screen in the area where the timed weather widget 304-1 is displayed. Optionally, the music widget 314-2 and the timed weather widget 304-2 have the same size. In some embodiments, the sizes of the music widget 314-2 and the timed weather widget 304-2 may be different. In some embodiments, the timed weather widget 304-2 may display less content than the timed weather widget 304-1. In some embodiments, the content displayed by the music widget 314-2 may include the widget name "Music," the song name "TV," the singer "Tom Lee," and operational controls. In some embodiments, the content displayed by the music widget 314-2 may further include lyrics, album names, etc. It should be understood that the location layout of the content displayed by the music widget 314-2 is an example.

[0169] When detecting that a media application has an ongoing task, electronic device 100 can automatically display the application's widget in the area on the home screen of electronic device 100 where widget 304-1 is displayed. This implements automatic widget addition, and the location of widget 304-1 can also be reused. Screen space on electronic devices is limited. Reusing the location of another widget can make the home screen clean and uncluttered, and widgets do not need to be added in new locations, providing more information to the user.

[0170] It should be understood that the order in which widgets are sorted in the graphical user interface 3003-2 is an example. In some embodiments, the music widget 314-2 is displayed to the left of the hourly weather widget 304-2 as a higher priority widget. In some embodiments, the electronic device may arrange the higher priority widgets to the right. In some embodiments, the music widget 314-2 and hourly weather widget 304-2 may be arranged one above the other (not shown).

[0171] Optionally, electronic device 100 detects that there is an ongoing task in the music application, and electronic device 100 displays only music widget 314-2 on the home screen in the area where time-weather widget 304-1 is displayed, as shown in FIGS. 3FB-1 and 3FB-2. Music widget 314-2 may have a smaller size than time-weather widget 304-1. In some embodiments, electronic device 100 may display another widget (e.g., a common service widget, which may include a scan control, a ride code control, or a payment code control, and a user may quickly enter the application interface by tapping the scan control, the ride code control, or the payment code control) while displaying music widget 314-2 on the home screen, as shown in FIGS. 3FD-1 and 3FD-2. It should be understood that the location layout of the content displayed by music widget 314-2 is an example.

[0172] Optionally, electronic device 100 detects that there is a task in progress in the music application, and electronic device 100 replaces the music widget 314-1 displayed on graphical user interface 3003 in the same area where the time-weather widget 304-1 is displayed. The music widget 314-1 has the same size as the time-weather widget 304-1. For example, electronic device 100 displays the GUI shown in FIGS. 3FC-1 and 3FC-2. The content displayed by the music widget 314-1 may include the widget name "Music," the song name "TV," the singer "Tom Lee," and action controls. In some embodiments, the content displayed by the music widget 314-1 may further include content such as lyrics and album name. In some embodiments, the music widget 314-1 may display more or the same content as the music widget 314-2 in FIGS. 3FA-1 and 3FA-2 or 3FB-1 and 3FB-2. It should be understood that the location layout of the content displayed by music widget 314-2 is an example.

[0173] When detecting that a media application has an ongoing task, the electronic device 100 can automatically display a media widget on the device's home screen and display the widget in the area of ​​the graphical interface where the time-weather widget is displayed. This implements automatic widget addition, and the location of the time-weather widget can also be reused. There are many places where time is displayed and viewed on an electronic device, and although the device displays a weather-time widget on the home screen, users do not use the weather-time widget in most cases. Therefore, by using the technical solution in this embodiment, the location of the weather-time widget can be reused to display the widget of an application that includes an ongoing task. The screen space of an electronic device is limited. The location of the time-weather widget is reused, which can make the home screen clean and uncluttered, and widgets do not need to be added in new locations, providing users with information requested by the user and having higher priority.

[0174] In some embodiments, electronic device 100 may detect an input predefined gesture and change the order of widgets displayed on the home screen. It should be understood that widgets may include all widgets described in the embodiments of the present application. For example, widgets may include the cross-device widget described in the embodiments of FIGS. 4A-4F-1 and 4F-2, the schedule widget described in the embodiments of FIGS. 5A-5EC-1 and 5EC-2, and the instant messaging application widget described in the embodiments of FIGS. 6A-1 and 6A-2 to 6G. For example, as shown in FIGS. 3G-1 to 3G-3, electronic device 100 adjusts the display order of the time weather widget and the music widget after detecting a gesture action performed by a user's finger to press the music widget and drag the music widget to the right. In some embodiments, the order is related to priority. Changing the arrangement order of widgets means changing the priority of the widgets.

[0175] In some embodiments, electronic device 100 may detect an input predefined gesture and adjust the size of a widget displayed on the home screen and / or the size of content displayed by the widget. It should be understood that widgets may include all widgets described in the embodiments of the present application. For example, widgets may include the cross-device widget described in the embodiments of FIGS. 4A-4F-1 and 4F-2, the schedule widget described in the embodiments of FIGS. 5A-5EC-1 and 5EC-2, and the instant messaging application widget described in the embodiments of FIGS. 6A-1 and 6A-2 to 6G. In some embodiments, electronic device 100 may detect an input predefined gesture and change the layout of content displayed by the widget.

[0176] For example, as shown in FIGS. 3HA-1 and 3HA-2, electronic device 100 detects that a user's finger touches and holds the edge of music widget 314-2, causing music widget 314-2 to enter an editable state. After electronic device 100 detects a gesture action performed by the user of touching and holding the right edge of the widget and dragging the widget to the right, electronic device 100 switches to displaying graphical user interface 3003-1. Compared to music widget 314-2 in graphical user interface 3003-2, graphical user interface 3003-1 does not display widget 3003-2 and displays only the music widget. Additionally, the displayed music widget 314-1 is enlarged in size. In some embodiments, the width of music widget 314-1 displayed on graphical user interface 3003-1 is the maximum width of a widget that can be displayed on the home screen by electronic device 100. In some embodiments, the enlarged widget may display more content. For example, compared to music widget 314-2, the content displayed by increased-size widget 314-1 may further include portions of song lyrics. In some embodiments, the layout of the content (including, but not limited to, widget name, song name, singer, and action controls) displayed by music widget 314-1 may be different compared to music widget 314-2. It should be understood that after detecting an input predefined gesture (e.g., a gesture action of touching and holding the right edge of the widget and dragging the widget to the left), electronic device 100 may reduce the size of the widget. For example, in FIGS. 3HA-1 and 3HA-2, after detecting an input predefined gesture (e.g., a gesture action of touching and holding the right edge of widget 314-1 and dragging the widget to the left), electronic device 100 reduces the size of widget 314-1, and, for example, reduced-size widget 314-1 may appear like widget 314-2.

[0177] After detecting the user's predefined gesture, the electronic device 100 adjusts the size of the widgets displayed on the home screen, thereby efficiently using the limited space on the screen and allowing the user to view and interact with different widgets, improving interaction efficiency.

[0178] In some embodiments, electronic device 100 may further detect a scenario change and adjust the size of a media widget displayed on the home screen and / or the content displayed by the media widget, and / or the layout of the content displayed by the media widget.

[0179] In some embodiments, a media widget may have a time tag and / or a geographic location tag. The time tag and / or the geographic location tag may be added manually by a user or may be generated by electronic device 100 based on the user's usage habits for the media application. For example, if a user often listens to music before going to bed at 10:00 p.m., electronic device 100 collects statistics on the time and frequency of use of the music application by the user to add a time tag to the music application. The time tag is 10:00 p.m. For example, if a user often listens to music at home, electronic device 100 collects statistics on the geographic location and frequency of use of the music application by the user to add a geographic location tag to the music application. The geographic location tag is home.

[0180] If electronic device 100 detects that the difference between the electronic device's system time and the time tag "22:00" is less than a preset time threshold, and / or if electronic device 100 detects that the distance difference between the device's geographic location and the geographic location tag "home" is less than a preset distance threshold, electronic device 100 adjusts the size of the music widget on the home screen and / or the content displayed by the music widget. In some embodiments, electronic device 100 may increase the size of the music widget. In some embodiments, the content displayed by the increased-sized music widget may increase. For example, as shown in FIGS. 3HB-1 and 3HB-2, electronic device 100 displays music widget 314-2 on the home screen, and electronic device 100 detects a change in the time and / or geographic location and switches to displaying GUI 3003-1. In comparison to widget 314-2 displayed on GUI 3003-2, content added for display on music widget 314-1 displayed on GUI 3003-1 may include the phrase "I love watching TV," action controls (e.g., shuffle or favorite buttons), etc.

[0181] In some embodiments, electronic device 100 may further detect ambient light intensity by using an ambient light sensor to determine a scenario change, so as to automatically adjust the size of a media widget and / or the content displayed by the media widget and / or the layout of the content displayed by the media widget. For example, if a user moves from a brightly lit location into a dimly lit environment, the user may not be able to see the text presented by the widget if the widget is still a small-sized widget. Therefore, to meet user requirements, the size of the widget may automatically adjust for a large-sized display, and the displayed font may be enlarged. Optionally, the displayed controls may also be enlarged. Electronic device 100 may detect a scenario change, so as to adjust the size of a media widget and / or the content displayed by the media widget and / or the layout of the content displayed by the media widget to provide more information to the user, facilitate user interaction, and improve the user experience.

[0182] In some embodiments, electronic device 100 detects a scenario change (e.g., electronic device 100 detects that the user determines that the scenario has changed by detecting that the time difference between electronic device 100's system time and the scenario time is greater than a preset time threshold and / or that the distance difference between electronic device 100's geographic location and the scenario geographic location is greater than a preset distance threshold to determine that the scenario has changed) and may adjust the size of the media widget and / or the content displayed by the media widget and / or the layout of the content displayed by the media widget. After again detecting the change in the user's scenario, electronic device 100 may restore the media widget to its display format before the status adjustment. The status adjustment includes adjusting the size of the media widget and / or the content displayed by the media widget and / or the layout of the content displayed by the media widget.

[0183] In some embodiments, music widget 314-1 is displayed on the home screen of electronic device 100, the width of music widget 314-1 is approximately equal to the width of the screen, and lyrics of the song being played are displayed on music widget 314-1. When electronic device 100 switches to displaying another page on the home screen or enters another application interface, electronic device 100 displays music widget 314-1 in a floating widget state, as shown in Figures 3J-1 and 3J-2, where the widget is in a transparent state and displays only the lyrics. Optionally, after electronic device 100 detects a predefined gesture (e.g., a single tap) on the widget, the widget is displayed in a semi-transparent state, and the widget displays operation controls.

[0184] In some embodiments, after electronic device 100 detects a predefined gesture input by a user (e.g., activating a pause control on a widget, sliding a widget, or activating a delete control on a widget), electronic device 100 stops displaying the media widget on the home screen and displays application widget 304-1.

[0185] 3K-1 and 3K-2, music widget 314-1 is displayed on the home screen of electronic device 100. After electronic device 100 detects that a user taps the pause button on the music widget, electronic device 100 switches to displaying GUI 3002-1, and electronic device 100 stops displaying the music widget. The widget displayed on the home screen of electronic device 100 is time weather widget 304-1.

[0186] The electronic device 100 detects that the user has performed a predefined action on the media widget (e.g., tapping the pause control, tapping the delete control, or a slide gesture), and the electronic device 100 stops displaying the media widget on the home screen and displays another widget in the limited screen space to facilitate interaction between the user and the other widget.

[0187] In some embodiments, at least two application widgets are displayed on the home screen of the electronic device 100. For example, as shown in FIGS. 3L-1 and 3L-2, the GUI 5001 includes a first application widget and a second application widget. It should be understood that in some embodiments, the first application widget may alternatively be one of the following widgets: a time / weather widget, a slide widget, an instant messaging application widget, or a schedule widget. The slide widget may be obtained according to the technical solutions recorded in the embodiments of FIGS. 4A-4F-1 and 4F-2, the message widget may be obtained according to the technical solutions recorded in the embodiments of FIGS. 6A-1 and 6A-2 to 6G, and the schedule widget may be obtained according to the technical solutions recorded in FIGS. 5A-5EC-1 and 5EC-2. The content of the first application widget may be cited for the description of the second application widget. Details will not be described herein.

[0188] Optionally, electronic device 100 may detect that there is an ongoing task in a media application (e.g., a music application or a video application) on electronic device 100 and display the media widget and the first application widget on the home screen. For example, electronic device 100 may display a widget with a higher priority on the left. The newly created media widget has the highest priority, and the media widget is positioned at the left edge. The second application widget is no longer displayed due to its lowest priority, as shown in FIGS. 3L-1 and 3L-2.

[0189] 3M-1 and 3M-2, a schedule widget 502-2 and a time and weather widget 304-2 are displayed on the home screen of electronic device 100. Electronic device 100 detects that there is an ongoing task in the music application and displays a music widget 314-2 and a schedule widget 502-2 on the home screen, with the music widget 314-2 positioned to the left of the schedule widget 502-2.

[0190] Optionally, electronic device 100 may detect that there is an ongoing task in a media application (e.g., a music application or a video application) on electronic device 100 and display a media widget and a second application widget on the home screen.

[0191] The above-described embodiments describe technical solutions for displaying widgets on the home screen. In some embodiments, the electronic device 100 may further display widgets on the lock screen interface by using the technical solutions described in the above-described embodiments. It should be understood that the widgets include all widgets described in the embodiments of the present application. For example, the widgets may include the cross-device widgets described in the embodiments of FIGS. 4A-4F-1 and 4F-2, the schedule widgets described in the embodiments of FIGS. 5A-5EC-1 and 5EC-2, and the instant messaging application widgets described in the embodiments of FIGS. 6A-1 and 6A-2 to 6G.

[0192] 3I-1 and 3I-2, electronic device 100 may display GUI 3003-1, and after detecting a screen lock command input by a user, electronic device 100 may switch to displaying lock screen interface GUI 3004. Lock screen interface GUI 3004 displays music widget 314-1 in the same area where time and weather widget 314-0 is displayed. After detecting a screen unlock command input by a user, electronic device 100 may switch to displaying lock screen interface GUI 3003-1. In some embodiments, if the widgets displayed on lock screen interface 3004 do not include time information, electronic device 100 may display time information in taskbar 302.

[0193] Widgets displayed on the lock screen interface allow the user to interact with the widgets without unlocking, thereby improving the user experience.

[0194] In some embodiments, electronic device 100 may detect that there is an ongoing task in a media application (e.g., a music application or a video application) on electronic device 100 and display a media widget on the lock screen page. The display manner of the media widget on the home screen may be cited for the display manner of the media widget and the mode and beneficial effect in which the media widget interacts with the user on the lock screen page (e.g., after the user taps the pause control, the display of the music widget stops and the display of the time weather widget is switched on). Details will not be described herein.

[0195] 4A-4F-1 and 4F-2 show a group of example graphical user interfaces for creating application widgets across devices.

[0196] With a task in progress in an application on another electronic device, the user "walks away" from the other electronic device and the electronic device 100 displays an application widget associated with the application.

[0197] It should be understood that the applications on the other electronic device may include office applications, which may include word processing applications (e.g., Microsoft Office Word, Microsoft Office Powerpoint, Microsoft Office Excel, and PDF Reader), image processing applications, online conferencing applications, browser applications, and email applications.

[0198] In some embodiments, electronic device 100 displays application widget 304-1 on the home screen.

[0199] It should be understood that application widget 304-1 may alternatively be a media widget as described in the embodiments of Figures 3A-3M-1 and 3M-2, a schedule widget as described in the embodiments of Figures 5A-5EC-1 and 5EC-2, or an instant messaging application widget as described in the embodiments of Figures 6A-1 and 6A-2 to 6G.

[0200] Electronic device 100 may receive a "task in progress" that exists in an application on another electronic device and display an application widget for the application on the home screen. In some embodiments, the application widget for the application may be displayed on the home screen in the same area where application widget 304-1 is displayed. In some embodiments, the same area may be on the home page of the home screen.

[0201] For purposes of explanation, the following uses an example in which the electronic device 102 is used as another electronic device and there is an ongoing task in a slide application on the electronic device 102 .

[0202] It should be understood that in some embodiments, the electronic device 102 may be an electronic device such as a mobile phone, a tablet computer, a wearable device, an in-vehicle device, an augmented reality (AR) device / virtual reality (VR) device, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA).

[0203] In some embodiments, upon detecting that there is an ongoing task in the slides application and detecting that the user has "left" electronic device 102, electronic device 102 may upload the "ongoing task" to cloud server device 180, as shown in Figures 4BA-1 and 4BA-2. Electronic device 102 may upload the ongoing task to cloud server device 180 by using a cellular network or a wireless local area network (WLAN).

[0204] The manner in which the electronic device 102 detects and determines that the user has “left” the electronic device 102 may be that a sensor of the electronic device 102 detects that the user has left the electronic device 102, or that the electronic device 102 detects that the user has not operated the electronic device 102 for a period of time greater than a preset time value, etc. In some embodiments, the electronic device 102 detects and determines that the user has left the device 102 may alternatively be that the user minimizes a window of an application displayed by the electronic device 102. As shown in FIG. 4A , after the user taps the minimize button 402 in the GUI 4001, the user returns to the home screen of the electronic device 102, and the electronic device 102 also determines that the user has “left” the electronic device 102. In some embodiments, the electronic device 102 may further determine that the user has “left” the electronic device 102 when the screen of the electronic device 100 is locked. The specific determination manner is not limited in this embodiment.

[0205] In some embodiments, the electronic device 102 may alternatively upload a task to the cloud server by detecting a predefined input action of a user on the electronic device 102. For example, in FIGS. 4BB-1 and 4BB-2, a slide being edited by a user is displayed on the electronic device 102, and the ongoing task in the slide application is "Research Report." After the electronic device 102 detects that the user taps the PowerPoint icon on the slide application interface, the electronic device 102 displays a window. The window may include options such as "Push to electronic device 100," "Push to electronic device 103," "Push to electronic device 104," and "Close window." It should be understood that in some embodiments, the GUI 4001 may display a "Push to electronic device" control or icon, and after detecting that the control or icon is activated, the electronic device 102 may display options such as "Push to electronic device 100," "Push to electronic device 103," and "Push to electronic device 104." The electronic device 102 may detect that the user tapped the option "Push to electronic device 100," and the electronic device 102 may upload the slide task "Research Report" to the cloud server by using a cellular network or a wireless local area network (WLAN). For example, the newly processed task in the slide application is "Research Report," and the electronic device 102 may send the task "Research Report" to the cloud server device 180.

[0206] After electronic device 100 detects that the account logged on to electronic device 100 by the user and the account logged on to electronic device 102 are the same account, cloud server device 180 pushes the ongoing task to electronic device 100, and application widget 404-2 associated with the application is displayed on the home screen of electronic device 100, as shown in Figures 4BA-1 and 4BA-2.

[0207] In some embodiments, electronic device 102 displays the application interface of the application (e.g., an email application interface or a browser application interface). After electronic device 100 completes pairing with electronic device 102, electronic device 102 pushes ongoing tasks to electronic device 100 (e.g., pairing via Bluetooth or sending data via a Wi-Fi direct connection). The application widget is displayed on the home screen of electronic device 100, as shown in FIGS. 4BA-1 and 4BA-2.

[0208] In some embodiments, cloud server device 180 or electronic device 102 pushes the task to electronic device 100. The task file may be very large, and electronic device 100's current network connection is weak. Therefore, before receiving the ongoing task, electronic device 100 may ask the user whether they agree to receive the task. After detecting a predefined action input by the user (e.g., tapping the control "Yes"), electronic device 100 receives the ongoing task and displays an application widget associated with the ongoing task on the home screen.

[0209] The electronic device 100 displays an application widget 304-1 on the home screen, and the electronic device 100 receives an ongoing task from the server or the electronic device 102, and the electronic device 100 displays the application widget of the application on the home screen. The contents in Figures 3FA-1 and 3FA-2 to 3FC-1 and 3FC-2 may be cited for the method of displaying the widget. Details will not be described in this specification.

[0210] The electronic device 100 may receive "tasks in progress" within an application on another electronic device and display an application widget for the application on the home screen, allowing the user to interact with the application across different electronic devices, thereby improving the user experience.

[0211] 4A-4BB-1 and 4BB-2 is a time weather widget. It should be understood that widget 304-1 may alternatively be any widget described in the embodiments. For example, widget 304-1 may be a widget described in the embodiments of FIGS. 3A-3M-1 and 3M-2.

[0212] 4C-1 and 4C-2, the application widget 304-1 displayed on the home screen of the electronic device 100 is a music widget. The electronic device 100 receives an ongoing task from the server or the electronic device 102, and the electronic device 100 simultaneously displays the PPT application widget 404-2 and the reduced-size music widget 314-2.

[0213] In some embodiments, when the electronic device detects that a task exists in an office application and the task in the office application is not completed, the user may return to the home screen, and the electronic device may display an application widget for the application on the home screen. The contents in Figures 3FA-1 and 3FA-2 to 3FC-1 and 3FC-2 may be cited for methods of displaying widgets. Details will not be described herein. For example, when a user edits a document in a PPT (PowerPoint) application on electronic device 100, after the user taps the home button to return to the home screen, electronic device 100 displays the PPT application widget on the home screen.

[0214] The electronic device 100 may receive an ongoing task that exists in an application on another electronic device, display an application widget for the application on the home screen, and display the widget in an area on the home screen where the time weather widget is displayed. This implements automatic widget addition, and the location of the time weather widget can also be reused. The screen space of an electronic device is limited. The location of the time weather widget is reused, which allows the home page of the home screen to be clean and uncluttered, and widgets do not need to be added in new locations, and can provide the user with the information requested by the user.

[0215] In some embodiments, at least two application widgets are displayed on the home screen of electronic device 100. For example, a first application widget and a second application widget may be included. It should be understood that in some embodiments, the first application widget may alternatively be one of the following widgets: a time / weather widget, a music widget, an instant messaging application widget, or a schedule widget. The music widget may be obtained according to the technical solutions recorded in the embodiments of FIGS. 3A-3M-1 and 3M-2, the message widget may be obtained according to the technical solutions recorded in the embodiments of FIGS. 6A-1 and 6A-2 to 6G, and the schedule widget may be obtained according to the technical solutions recorded in FIGS. 5A-5EC-1 and 5EC-2. The content of the first application widget may be cited for the description of the second application widget. Details will not be described herein.

[0216] The electronic device 100 may receive an ongoing task that exists in an application on another electronic device and display an application widget of the application on the home screen. Optionally, the contents of the embodiments of Figures 3L-1 and 3L-2 to 3M-1 and 3M-2 may be cited for the manner in which the electronic device 100 displays the application widget of the application.

[0217] 4D-1 and 4D-2, a music widget 314-2 (which may be referred to as a first application widget) and a time / weather widget 304-2 (which may be referred to as a second application widget) are displayed on the home screen of electronic device 100. When electronic device 100 receives an ongoing task in a slides application on another electronic device, electronic device 100 displays slides widget 404-2 and music widget 314-2 (which may be referred to as a first application widget) on the home screen. In addition, slides widget 404-2 is positioned to the left of music widget 314-2.

[0218] In some embodiments, electronic device 100 may detect an input predefined gesture (e.g., sliding left and right or sliding up and down) to display a different widget. For example, as shown in FIGS. 4E-1 through 4E-3, electronic device 100 displays slide widget 404-2 and music widget 314-2. Electronic device 100 detects that a user's finger slides left on a widget (e.g., slide widget 404-2) and switches to displaying GUI 4005. GUI 4005 displays a portion of slide widget 404-2, music widget 314-2, and a portion of hourly weather widget 304-2. Electronic device 100 detects that the user's finger continues to slide left on a widget (e.g., music widget 314-2) and switches to displaying GUI 3003-2. Electronic device 100 displays music widget 314-2 and hourly weather widget 304-2 on the home screen. It should be understood that the hourly weather widget 304-2 may be freshly pushed by the system or may always run in the background but not be displayed.

[0219] 4F-1 and 4F-2, electronic device 100 displays slide application widget 404-1. After electronic device 100 detects an input predefined gesture (e.g., a finger tapping on the slide widget), electronic device 100 switches to displaying an application interface GUI 4003 of the application associated with the application widget. In some embodiments, after electronic device 100 detects that the action area of ​​the input predefined gesture (e.g., a finger tapping on the slide widget) is different, the application interface GUI 4003 that electronic device 100 switches to displaying may be different.

[0220] In some embodiments, electronic device 100 may detect an input predefined gesture and change the order of widgets displayed on the home screen. The contents in Figures 3G-1 to 3G-3 may be cited for the contents of changing the order of widgets displayed on the home screen. Details will not be described herein.

[0221] In some embodiments, electronic device 100 receives an ongoing task in an office application on another electronic device, and electronic device 100 displays an office application widget on the home screen. Electronic device 100 may further detect a scenario change to adjust the size of the office application widget and / or the content displayed by the office application widget and / or the layout of the content displayed by the office application widget, as shown in FIGS. 4G-1 and 4G-2.

[0222] For example, an office application widget may have a scenario time and / or a scenario geographic location. The scenario time and / or the scenario geographic location may be added manually by a user or may be generated by the electronic device 100 based on the user's usage habits for the office application. For example, if a user often processes unfinished office tasks at home and the time is 8:00 p.m., or if the user often turns on the electronic device at 5:00 p.m. to process unfinished office tasks during a subway commute after work, the electronic device may determine, after collecting statistics, that the scenario time of the slide widget is 8:00 p.m. and / or 5:00 p.m., and that the scenario geographic location of the application widget is home or a specific subway station.

[0223] If the electronic device 100 detects that the difference between the electronic device's system time and the scenario time is less than a preset time threshold, and / or if the electronic device 100 detects that the distance difference between the device's geographic location and the scenario geographic location is less than a preset distance threshold, the electronic device 100 adjusts the size of the office application widget on the home screen and / or the content of the office application widget and / or the layout of the content displayed by the office application widget.

[0224] In some embodiments, electronic device 100 may further detect ambient light intensity by using an ambient light sensor to determine scenario changes so as to automatically adjust the size of an application widget and / or the content displayed by the application widget, and / or the layout of the content displayed by the application widget.

[0225] The electronic device 100 detects the scenario change to adjust the size of the office application widget and / or the content displayed by the office application widget and / or the layout of the content displayed by the office application widget, for which beneficial effects the related content in the embodiments of Figures 3A-3M-1 and 3M-2 may be cited.

[0226] 5A-5EC-1 and 5EC-2 show a group of example graphical user interfaces in which electronic device 100 generates a widget by identifying schedule content and detecting the presence of an ongoing task in the schedule of electronic device 100 based on the system time and / or geographic location of electronic device 100.

[0227] In some embodiments, electronic device 100 displays application widget 304-1 shown in FIG. 3A on the home screen.

[0228] It should be understood that application widget 304-1 may alternatively be a media widget as described in the embodiments of Figures 3A-3M-1 and 3M-2, an application widget as described in the embodiments of Figures 4A-4F-1 and 4F-2, or an instant messaging application widget as described in the embodiments of Figures 6A-1 and 6A-2 to 6G.

[0229] Electronic device 100 may generate a schedule widget for display on the home screen by identifying schedule content and detecting the presence of an ongoing task in the schedule of electronic device 100 based on the system time and / or geographic location of electronic device 100. In some embodiments, the schedule widget may be on a home screen page and displayed in the same area where application widget 304-1 is displayed. In some embodiments, the home screen page may be on the home page of the home screen.

[0230] It should be understood that schedule content may be added manually by a user, or electronic device 100 may automatically identify schedule content in a schedule application (e.g., an application such as messages, email, notes, or reminders) and add the schedule content to the user's schedule (e.g., a schedule in a calendar application).

[0231] For example, the electronic device 100 may automatically identify that content related to a ticket itinerary (including, but not limited to, departure station, arrival station, departure time, arrival time, passenger information, ticket gate, etc.) exists in the message application. It should be appreciated that the electronic device 100 may use an SMS message template to identify which SMS messages are itinerary-related SMS messages and add the ticket itinerary content to the schedule.

[0232] For example, the electronic device 100 may detect that express delivery content (including, but not limited to, express company information, the geographic location of the express delivery pickup locker, a pickup code, a pickup time, etc.) is present in the message application, and the electronic device 100 may add the express delivery content to the schedule.

[0233] 5A shows an example graphical user interface 5000 of a message application of electronic device 100. The SMS message content includes ticket travel information, where the SMS message content includes a departure date, a train number, a seat number, a departure station, and a departure time. It should be understood that the SMS message content may include more information, such as an arrival station, an arrival time, and a passenger name. In some embodiments, the SMS message content may alternatively be movie information (e.g., movie showing times and the cinema's geographic location) or shopping mall information (e.g., the mall's location and the time the user intends to go shopping).

[0234] The electronic device 100 may identify the schedule content to determine that a difference between the system time of the electronic device 100 and the time in the schedule content is less than a time threshold and / or a distance between the geographic location of the electronic device 100 and the geographic location in the schedule content is less than a distance threshold, so as to determine that an ongoing task exists in the schedule content.

[0235] For example, the electronic device 100 may detect current geographic location information of the electronic device 100 through one or more positioning methods, such as GPS positioning, Wi-Fi positioning, and cell tower positioning, and then calculate geographic location information of the departure location of the itinerary and the user's current geographic location. If the electronic device 100 detects that the distance between the user's current geographic location and the geographic location of the departure station in the travel schedule content is less than (or less than or equal to) a preset distance threshold value D1, the electronic device 100 determines that the ticket itinerary in the schedule application is an ongoing task and displays a schedule widget on the home screen homepage. In some embodiments, the electronic device 100 may further detect that the difference between the system time of the electronic device 100 and the departure time of the ticket itinerary in the schedule content is less than a preset time threshold value T1, and the electronic device 100 determines that the ticket itinerary in the schedule application is an ongoing task and displays a schedule widget associated with the schedule application on the home screen homepage.

[0236] For example, the electronic device 100 identifies a ticket itinerary in the schedule content, detects that the difference between the system time of the electronic device 100 and the departure time in the schedule content is less than or equal to a time threshold, and displays a schedule widget associated with the schedule content on the home screen.

[0237] 5BA-1 and 5BA-2, if electronic device 100 detects that ticket itinerary information exists in the schedule content of electronic device 100, electronic device 100 identifies the ticket itinerary information in the schedule (e.g., passengers, departure station, arrival station, departure time, and arrival time) and determines that the difference between electronic device 100's system time of 08:00 A.M. and the train's departure time of 08:26 A.M. is less than a time threshold and / or the distance between electronic device 100's current geographic location and the geographic location of the train's departure station, Beijing, in the schedule content is less than a distance threshold. In this case, it is determined that ticket itinerary in the schedule content is an ongoing task, and electronic device 100 displays schedule widget 502-2 and time and weather widget 304-2 on the home page of the home screen.

[0238] The related descriptions in Figures 3FA-1 and 3FA-2 to Figures 3FC-1 and 3FC-2 may be cited for the manner in which electronic device 100 displays application widget 304-1 on the home screen, identifies schedule content, and generates a schedule widget for display on the home screen by detecting the presence of an ongoing task in the schedule of electronic device 100 based on the system time and / or geographic location of electronic device 100.

[0239] In some embodiments, electronic device 100 may display multiple schedule widgets simultaneously (e.g., multiple ticket itineraries simultaneously present in a schedule application). In some embodiments, multiple schedule widgets may be stacked for display.

[0240] In some embodiments, electronic device 100 may switch from displaying widget 304-1 on the home screen to simultaneously displaying schedule widget 502-2 and common service widget 503-2, which may include controls such as a ride code, scan, or payment code, as shown in FIGS. 5BB-1 and 5BB-2. It should be understood that common service widget is merely an example name and does not imply any limitation on the name of the common service widget. A user does not need to board a subway or bus on the way to a station. Therefore, different widgets are intelligently pushed to users to meet their requirements in different scenarios.

[0241] In some embodiments, electronic device 100 may display a music widget while displaying a schedule widget on the home screen. As shown in Figures 5BC-1 and 5BC-2, the music widget may be automatically pushed by electronic device 100 after collecting statistics on the frequency of music listening by users at stations. Alternatively, the music widget may be automatically pushed by electronic device 100 after a user associates the music widget with a schedule widget. In this case, it should be understood that the music widget is in a paused state, which is different from the music widget described in the embodiments of Figures 3A-3M-1 and 3M-2.

[0242] Since the user has a requirement to listen to music on the way to the train station, the music widget is displayed while the schedule widget is displayed. If the user intends to listen to music, the user may tap the control on the music widget to play music.

[0243] The electronic device 100 can display a schedule widget on the home screen while displaying another widget, thereby intelligently providing different information to the user based on the associated scenario, thereby improving the user experience.

[0244] In some embodiments, electronic device 100 may detect an input predefined gesture (e.g., pinching, with two points of the pinch each touching a different widget), and electronic device 100 responds by combining the two widgets into a composite widget.

[0245] For example, as shown in GUI 5001 in FIGS. 5C-1 and 5C-2, electronic device 100 displays schedule widget 502-2 and music widget 314-2. When electronic device 100 detects a user's predefined gesture, electronic device 100 displays GUI 5003 shown in FIGS. 5C-1 and 5C-2, in response to which electronic device 100 displays composite widget 502-3. It should be understood that content displayed by composite widget 502-3 may include content displayed by schedule widget 502-2 and music widget 314-2. It should further be understood that composite widget 502-3 may display more or less content related to the schedule widget than schedule widget 502-2. It should further be understood that composite widget 502-3 may display more or less content related to the music widget than music widget 314-2.

[0246] In some embodiments, electronic device 100 may detect an input predefined command (e.g., a pinching gesture), and electronic device 100 may combine three or more widgets into a composite widget. The number of widgets used for combination is not specifically limited in this embodiment of the present application.

[0247] If the electronic device 100 detects that an application associated with any widget of the composite widget has an ongoing task, the electronic device may display the composite widget on the home page of the home screen.

[0248] For example, a user pinches a music widget and a schedule widget to a composite widget. If the electronic device detects that there is an ongoing task in the music application, the electronic device 100 displays the composite widget on the home screen home page. Alternatively, if the electronic device 100 detects that there is an ongoing task in the schedule, the electronic device 100 displays the composite widget on the home screen home page.

[0249] After a user combines two widgets into one composite widget, the composite widget will automatically appear the next time the user enters the same scenario, and the user does not need to manually switch two separate widgets on the display 194 for display, thereby improving the user experience (for example, ticket travel information is present in the user's schedule and the user intends to listen to music at the station, so the user combines the music widget and the schedule widget into a composite widget at the station; the next time the user enters the station scenario, the electronic device 100 will automatically display the composite widget, where the widget content includes the schedule widget content and the music widget content).

[0250] In some embodiments, electronic device 100 may detect an input predefined gesture and adjust the size of a widget and / or the content displayed by the widget. The contents in Figures 3HA-1 and 3HA-2 may be cited for related descriptions of detecting an input predefined gesture and adjusting the size of a widget and the content displayed by the widget by electronic device 100. Details will not be described here again.

[0251] In some embodiments, electronic device 100 displays a schedule widget on the home screen. Electronic device 100 may detect a scenario change and adjust the schedule widget. For example, electronic device 100 may adjust the size of the schedule widget and / or adjust the content displayed by the schedule widget.

[0252] For example, if the electronic device 100 detects that the distance between the current geographic location of the electronic device 100 and the geographic location of the departure station in the schedule content is less than (or less than or equal to) a preset distance threshold value D2, where D2 is also less than D1, and / or if the electronic device 100 detects that the difference between the device's system time and the departure time in the schedule content is less than a preset time threshold value T2, where T2 is less than T1, the electronic device 100 adjusts the size of the schedule widget and / or adjusts the content displayed by the schedule widget.

[0253] For example, as shown in FIG. 5D, the user is 200 meters away from the train station, the user's electronic device displays a schedule widget 502-2 (e.g., schedule widget 502-2 in FIGS. 5BA-1 and 5BA-2), and the difference between the system time of the electronic device 100 and the departure time (e.g., 8:26 a.m. shown in schedule widget 502-2) is 11 minutes. When the electronic device 100 detects that the difference between the time of the electronic device 100 and the departure time is less than a preset value (e.g., the preset value may be set to a specific value less than or equal to 11 minutes), and / or the electronic device detects that the distance difference between the geographical location information of the electronic device 100 and the geographical location of the departure station is less than a preset value (e.g., the preset value may be set to a specific value less than or equal to 200 meters), the electronic device switches to displaying GUI 5001 on the home screen, as shown in FIGS. 5EA-1 and 5EA-2. The content displayed by the schedule widget 502-2 shown in GUI 5001 includes the schedule theme “Tickets,” the train number “High-Speed ​​Rail G80,” the departure station “Beijing Railway Station,” and the arrival station “Shanghai Railway Station,” and the electronic device 100 switches to GUI 5002. The widget displayed on GUI 5002 is the schedule widget 502-1. The size of schedule widget 502-1 may be larger than the size of widget 502-2, and the content displayed by schedule widget 502-1 may be increased compared to the content of widget 502-2. In some embodiments, the added information may include passenger names, seat number information, ticket gate information, etc. In some embodiments, the added content for display may further include a map thumbnail of the current location of electronic device 100.The map thumbnail may display services near the current location of the electronic device 100, which may include information such as dining, parking, luggage storage, and hotels, as shown in FIGS. 5EB-1 and 5EB-2.

[0254] For example, a schedule widget is displayed on the home screen of electronic device 100. The schedule widget includes express delivery information, which includes the name of the express delivery company, the location where the express delivery will be made (or the location of the express delivery pickup locker), and the express delivery pickup time. Before the user arrives at the express delivery pickup location, there is not much message content relevant to the user. Therefore, the schedule widget does not display much content related to the express delivery. When the user is about to arrive at the express delivery pickup location, the user needs to know the pickup code and obtain more information. If the user's electronic device 100 detects that the distance difference between the geographic location of electronic device 100 and the location of the express delivery pickup locker is less than the distance threshold, the electronic device 100 expands the schedule widget to display more content, and the newly added content may include the express delivery pickup code, etc.

[0255] In some embodiments, the composite widget is displayed on the home screen of electronic device 100, and the composite widget is obtained by combining schedule widgets, e.g., FIGS. 5EC-1 and 5EC-2. When electronic device 100 detects that the distance between the current geographic location of electronic device 100 and the geographic location of the departure station in the itinerary is less than (or less than or equal to) a preset distance threshold value D2, where D2 is less than D1, and / or when electronic device 100 detects that the difference between the system time of electronic device 100 and the departure time in the ticket itinerary is less than a preset time threshold value T2, where T2 is less than T1, electronic device 100 switches to displaying a schedule widget with adjusted size and / or content on the home screen.

[0256] In some embodiments, if electronic device 100 detects that the system time on the user's electronic device 100 has passed a specific point in the schedule content, electronic device 100 stops displaying the schedule widget.

[0257] For example, the departure time for a ticket travel task in a schedule is 8:26 a.m. If electronic device 100 detects that the system time of electronic device 100 is greater than or equal to the departure time, electronic device 100 stops displaying the schedule widget. In some embodiments, specific points in the schedule content further include movie showtimes, meeting end times, etc.

[0258] In some embodiments, at least two application widgets are displayed on the home screen of electronic device 100. The electronic device may generate the schedule widget for display on the home screen by identifying schedule content and detecting whether there are ongoing tasks in the schedule of the electronic device based on the system time and / or geographic location of the electronic device. The display manners of the media widgets in Figures 3L-1 and 3L-2 to 3M-1 and 3M-2 may be cited for the manner in which the schedule widget is displayed on the home screen.

[0259] In some embodiments, the electronic device may generate a schedule widget for display on the lock screen page by identifying schedule content and detecting whether there is an ongoing task in the schedule of the electronic device based on the system time and / or geographic location of the electronic device. The display manner of the schedule widget on the home screen may be cited for the display manner and beneficial effect of displaying the schedule widget on the lock screen page. The details will not be described here again.

[0260] In some embodiments, after the user's electronic device 100 is connected to the in-vehicle device (e.g., via Bluetooth), the in-vehicle device may display the schedule widgets shown in Figures 5A-5EC-1 and 5EC-2 (including the express delivery content schedule widget and the ticket travel task schedule widget) displayed on the electronic device 100.

[0261] 6A-1 and 6A-2 to 6G show a group of example graphical user interfaces in which the electronic device 100 may display an instant messaging application widget on the home screen after detecting a user's predefined gesture on the instant messaging application interface.

[0262] In some embodiments, electronic device 100 displays application widget 304-1 on a home screen page, and the associated content in FIGS. 5A-5EC-1 and 5EC-2 may be referenced for application widget 304-1.

[0263] It should be noted that application widget 304-1 may alternatively be a media widget as described in the embodiments of Figures 3A-3M-1 and 3M-2, a schedule widget as described in the embodiments of Figures 5A-5EC-1 and 5EC-2, or an application widget as described in the embodiments of Figures 4A-4F-1 and 4F-2.

[0264] Electronic device 100 may display an instant messaging application widget on a home screen page after detecting a user's predefined input gesture on the instant messaging application interface. The instant messaging application interface may include chat window pages (including chat windows with single contacts and group chat windows). In some embodiments, the instant messaging application widget may be on the home screen and displayed in the same area where application widget 304-1 is displayed. In some embodiments, the home screen may be on a home page of the home screen.

[0265] The following uses a messaging application as an example for general explanation.

[0266] It should be understood that the message application in this embodiment of the present application may alternatively be replaced by another instant messaging application (e.g., WeChat®, QQ, Meetime, WhatsApp, Messenger, Line, and iMessage).

[0267] 6A-1 and 6A-2, the GUI 3001-2 shown in FIG. 3B is displayed on the electronic device 100, and the time weather widget 304-1 is displayed on the home screen. In some embodiments, after the electronic device 100 detects the user's message application icon, the electronic device 100 displays the application interface GUI 6001 of the message application shown in FIGS. 6A-1 and 6A-2. It should be understood that content displayed on the GUI 6001 may include the status bar 302, a message display window 602, a message reply window 604, etc. It should further be understood that the message content 602 may include, but is not limited to, text, photos, videos, emojis, etc.

[0268] Optionally, after electronic device 100 detects an input predefined gesture on application interface 6001 (e.g., a user sliding inward on a corner of user interface 6001), electronic device 100 may respond by displaying a message application widget on the home screen homepage.

[0269] Optionally, after electronic device 100 detects a predefined gesture action performed by a user at a corner of the screen (e.g., sliding from the upper right corner to the lower left corner), electronic device 100 may respond by displaying a "Create a widget" control in the upper right corner of message window 602, as shown in FIGS. 6B-1 and 6B-2. After electronic device 100 detects that the "Create a widget" control has been activated on an application interface (e.g., the user taps the control once with a finger), electronic device 100 responds by displaying a message application widget on the home page of the home screen of electronic device 100. As shown in FIGS. 6CA-1 and 6CA-2, after electronic device 100 detects a predefined gesture input on application interface 6001, electronic device 100 responds by displaying message widget 608-1 on the home page of the home screen.

[0270] In some embodiments, message widget 608-1 may display a portion of the message content. In some embodiments, the content displayed by message widget 608-1 may include a newly updated message. In some embodiments, message widget 608-1 may display the update time 612 of the message. For example, as shown in FIGS. 6CA-1 and 6CA-2, the update time of the message displayed in message widget 608-1 is "today." It should be understood that the update time of the message displayed by message widget 608-1 may change dynamically and may be, for example, "now" or "1 day ago."

[0271] In some embodiments, if electronic device 100 detects a predefined gesture input on a message application widget (e.g., a finger sliding up and down on the widget), electronic device 100 may adjust the message content (not shown) displayed by the message application widget.

[0272] In some embodiments, message widget 608-1 may further include an up / down slide control, as shown in Figures 6CB-1 and 6CB-2. In some embodiments, message widget 608-1 displayed on the home page of the home screen of electronic device 100 may further include message reply window 604.

[0273] Optionally, if the message widget 608-1 further includes an up / down slide control, when the electronic device 100 detects that the up / down slide control 605 is being slid up, the message widget 608-1 may stop displaying the message reply window 604 and display more history messages in a limited space, as shown in FIGS. 6D-1 and 6D-2.

[0274] In some embodiments, when electronic device 100 detects a predefined gesture input on message widget 608-1 (e.g., tapping the message reply window once or dragging the bottom edge of the widget down), electronic device 100 may display soft keyboard 610, and the user may input content into message reply window 604 for sending, as shown in FIGS. 6EA-1 and 6EA-2. Optionally, while displaying soft keyboard 610, electronic device 100 may expand the size of the message application widget to display more content to the user, as shown in FIGS. 6EB-1 and 6EB-2. It should be understood that content input by the user in message reply window 604 includes, but is not limited to, voice, text, emoji, photos, videos, etc. Optionally, the sent message may further include a sealed message (content is hidden, not directly displayed, and not screenshotted or recorded).

[0275] Since the user can reply to the message directly on the message widget, the user does not need to access the "Messages" application interface by tapping the icon after finding the "Messages" application icon again, thereby allowing the user to receive and send messages more conveniently and quickly.

[0276] In some embodiments, electronic device 100 may further refresh the content displayed by the message application widget after receiving the message.

[0277] Optionally, electronic device 100 may add a marking point (e.g., a red dot) to the end of the newly received message to remind the user. After detecting an input predefined gesture (e.g., a user tapping on a message application widget), electronic device 100 stops displaying the marking point.

[0278] Optionally, the method of reminding the user may alternatively be a method such as widget jitter.

[0279] Optionally, the manner of reminding the user may alternatively be as follows: electronic device 100 sets a message application widget to display with a particular transparency and highlights the newly received message above the message application widget, as shown in FIG. 6G. In some embodiments, electronic device 100 may display a control (e.g., a "Reply" control) while highlighting the newly received message above the message application widget. electronic device 100 detects that the "Reply" control has been activated and displays a message reply interface, e.g., GUI 6006 in FIGS. 6EA-1 and 6EA-2 or GUI 6006 in FIGS. 6EB-1 and 6EB-2.

[0280] In some embodiments, electronic device 100 may detect a user's predefined gestures (eg, touch and hold) on a message to copy, delete, forward, and reply to the message.

[0281] In some embodiments, the instant messaging application widget displayed by electronic device 100 includes a voice message. When playing the voice message, electronic device 100 may detect an input predefined gesture (e.g., a user dragging a progress bar) and adjust the playback progress.

[0282] In some embodiments, when electronic device 100 detects a predefined gesture input on message application widget 608-1 (e.g., sliding inward from the top right corner of message widget 608-1 or double-tapping the widget), electronic device 100 may display a control on the message widget (e.g., at least one of a full screen control, a delete control, a pin control, etc.).

[0283] Optionally, the electronic device 100 may display widget controls on the corners of the widget, as shown in FIGS. 6FA-1 and 6FA-2.

[0284] Optionally, after detecting a predefined gesture input on the message widget 608-1, the electronic device 100 may set the widget to display with a specific transparency and display widget controls on the widget, as shown in Figures 6FB-1 and 6FB-2. It should be understood that Figures 6FB-1 and 6FB-2 are merely illustrative examples, and the display location of the widget is not limited in this embodiment of the present application.

[0285] The electronic device 100 displays the application widget 304-1 on the home screen, and after detecting the predefined input action, the electronic device 100 displays an instant messaging application widget on the home page of the home screen. The contents in Figures 3FA-1 and 3FA-2 to 3FC-1 and 3FC-2 may be cited for the manner of displaying the instant messaging application widget on the home page of the home screen. The details will not be described here again.

[0286] In some embodiments, at least two application widgets are displayed on the home screen of electronic device 100, and after detecting a predefined input action, electronic device 100 displays an instant messaging application widget on the home screen. The display manners of media widgets in Figures 3L-1 and 3L-2 to 3M-1 and 3M-2 may be cited for the manners in which electronic device 100 displays an instant messaging application widget on the home screen. Details will not be described here or elsewhere.

[0287] In some embodiments, electronic device 100 may display an instant messaging application widget on the lock screen interface after detecting a user's predefined input gesture on the instant messaging application interface. The display manner of the instant messaging application widget on the home screen may be cited for the display manner and beneficial effects of the instant messaging application widget on the lock screen page. The details will not be described here again.

[0288] The method of tapping the screen with the user's finger in all the above-mentioned embodiments may be replaced in some embodiments with methods such as stylus input, floating touch, and voice input.

[0289] FIG. 7 is a schematic flow chart of some embodiments according to the present application.

[0290] S701: Display a first widget having a first size in a first area of ​​a first page of a home screen.

[0291] For example, as shown in FIG. 3B, electronic device 100 displays a time weather widget on the home screen.

[0292] S702: In response to detecting that a task in progress exists in a first application, simultaneously display a widget of the first application and a first widget with a reduced size in a first area, where the widget of the first application displays first content, the widget of the first application has a second size, and the second size is smaller than the first size.

[0293] For example, as shown in FIGS. 3FA-1 and 3FA-2, after detecting that a music playback control has been activated (e.g., a user taps the music playback control as shown in FIGS. 3E-1 and 3E-2), electronic device 100 displays an interface in which music is being played. When there is a song playing in the music application, after electronic device 100 detects an input predefined gesture (e.g., performing an upward sliding gesture at the bottom of the screen), electronic device 100 may switch from the displayed music application interface GUI 3002 to the home screen. After electronic device 100 switches from the displayed music application interface GUI 3002 to the home screen, the home screen may simultaneously display music widget 314-2 and widget 304-2 (reduced-size application widget 304-1).

[0294] 5BA-1 and 5BA-2, if electronic device 100 detects that ticket itinerary information exists in the schedule content of electronic device 100, electronic device 100 identifies the ticket itinerary information in the schedule (e.g., passengers, departure station, arrival station, departure time, and arrival time) and determines that the difference between the system time of electronic device 100 of 08:00 A.M. and the train's departure time of 08:26 A.M. is less than a time threshold and / or the distance between the current geographic location of electronic device 100 and the geographic location of the train's departure station, Beijing, in the schedule content is less than a distance threshold. In this case, it is determined that ticket itinerary in the schedule content is an ongoing task, and electronic device 100 displays schedule widget 502-2 and time and weather widget 304-2 on the home page of the home screen.

[0295] S703: In response to the electronic device satisfying a preset condition, adjust a size of a widget of a first application from a second size to a first size, where the widget of the first application and having the first size displays second content, the second content is more than the first content, and the second content includes the first content.

[0296] It should be understood that in all embodiments of the present application, the electronic device 100 may detect an input predefined gesture and change the order of widgets displayed on the home screen or lock screen interface. It should be understood that the widgets include all widgets described in the embodiments of the present application. For example, as shown in Figures 3G-1 to 3G-3, the electronic device 100 adjusts the display order of the time weather widget and the music widget after detecting a gesture action of pressing the music widget and dragging the music widget to the right, performed by a user's finger.

[0297] For all embodiments of the present application, it should be understood that the electronic device 100 may detect an input predefined gesture and adjust the size of a widget displayed on a home screen or lock screen interface and / or the content displayed by the widget. It should be understood that a widget includes all widgets described in the embodiments of the present application. In some embodiments, the electronic device 100 may detect an input predefined gesture and change the layout of the content displayed by the widget.

[0298] It should be understood that for all embodiments of the present application, the electronic device 100 may detect a scenario change (e.g., to determine that a scenario has changed, the time difference between the system time of the electronic device 100 and the scenario time is less than a preset time threshold value, and / or the distance difference between the geographic location of the electronic device 100 and the scenario geographic location is less than a preset distance threshold value) to adjust the size of a widget displayed on a home screen page or a lock screen interface and / or the content displayed by the widget, and / or the layout of the content displayed by the widget. Related content in Figures 3HB-1 and 3HB-2 may be cited for specific methods and beneficial effects. Details will not be described here or herein. It should be understood that the widgets include all the widgets described in the embodiments of Figures 3A to 3M-1 and 3M-2, the application widgets described in the embodiments of Figures 4A to 4F-1 and 4F-2, the schedule widgets described in the embodiments of Figures 5A to 5EC-1 and 5EC-2, and the instant messaging application widgets described in the embodiments of Figures 6A-1 and 6A-2 to 6G.

[0299] It should be understood that for all embodiments of the present application, the electronic device 100 may detect an input predefined gesture (e.g., pinching, where two points of the pinching are respectively touching different widgets), and the electronic device 100 responds by combining two widgets on the home screen or lock screen interface (two widgets on the same page at the same time, e.g., two widgets on the home screen at the same time) into a composite widget. The contents in Figures 5C-1 and 5C-2 may be cited for specific methods. It should be understood that the widget includes all widgets described in the embodiments of the present application.

[0300] For all embodiments of the present application, it should be understood that the electronic device 100 detects an input predefined gesture (e.g., a single tap with a finger) when displaying a widget on the home screen. In this case, the electronic device 100 may display an application interface of the widget. The contents in Figures 4F-1 and 4F-2 may be cited for specific methods.

[0301] For all embodiments of the present application, it should be understood that when displaying a widget on the lock screen interface, electronic device 100 may detect an input predefined gesture (e.g., a single tap with a finger) and an unlock request may be sent. When detecting an unlock action input by a user (e.g., facial recognition, touching and holding icon 315 in FIG. 3A , or entering a password), electronic device 100 displays the widget's application interface.

[0302] It should be further understood that "simultaneous display" in the embodiments of the present application refers to simultaneous presentation of results, not synchronization of display processes. For example, displaying both a music widget and a timed weather widget on the home screen of electronic device 100 means that a user can view the music widget and the timed weather widget on the home screen of electronic device 100 at the same moment, but does not mean that the music widget and the timed weather widget appear on the home screen of electronic device 100 at the same moment.

[0303] It may be understood that to implement the aforementioned functions, the electronic device includes corresponding hardware and / or software modules that perform the functions. With reference to the exemplary algorithm steps described in the embodiments disclosed herein, the present application can be implemented by hardware or a combination of hardware and computer software. Whether the functions are performed by hardware or by hardware driven by computer software depends on the specific application and design constraints of the technical solution. With reference to the embodiments, a person skilled in the art may use multiple different methods to implement the described functions for each specific application, but such implementation should not be considered to go beyond the scope of the present application.

[0304] In an embodiment, an electronic device may be divided into multiple functional modules based on the above-described exemplary method. For example, each functional module corresponding to each function may be obtained through division, or two or more functions may be integrated into one processing module. The integrated module may be implemented in the form of hardware. It should be noted that in an embodiment, the division into multiple modules is an example and is merely a logical functional division, and other divisions may be used in actual implementation.

[0305] When an integrated unit is used, the electronic device may include a processing module, a storage module, and a communication module. The processing module may be configured to control and manage actions of the electronic device, for example, to support the electronic device in executing steps performed by the receiving unit, the detecting unit, and the display unit. The storage module may be configured to support the electronic device in storing program code, data, etc. The communication module may be configured to support communication between the electronic device and another device.

[0306] The processing module may be a processor or a controller. The processing module may implement or execute various exemplary logical blocks, modules, and circuits described with reference to the content disclosed herein. Alternatively, the processor may be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a digital signal processor (DSP) and a microprocessor, etc. The storage module may be a memory. The communication module may specifically be a device that interacts with another electronic device, such as a radio frequency circuit, a Bluetooth chip, a Wi-Fi chip, etc.

[0307] In one embodiment, when the processing module is a processor and the storage module is a memory, the electronic device in the embodiment may be a device having the structure shown in FIG.

[0308] One embodiment further provides a computer storage medium storing computer instructions that, when executed on an electronic device, enable the electronic device to perform associated method steps to implement the widget display method in the aforementioned embodiment.

[0309] An embodiment further provides a computer program product, which, when executed on a computer, enables the computer to perform associated steps to implement the widget display method in the aforementioned embodiment.

[0310] In addition, an embodiment of the present application further provides an apparatus. The apparatus may specifically be a chip, a component, or a module. The apparatus may include a processor and a memory connected thereto. The memory is configured to store computer-executable instructions, and when the apparatus is executed, the processor may execute the computer-executable instructions stored in the memory, thereby causing the chip to perform the widget display method in the above-mentioned method embodiment.

[0311] The electronic device, computer storage medium, computer program product, or chip provided in the embodiments is configured to execute the corresponding method provided above. Therefore, for the beneficial effects that can be achieved by the electronic device, computer storage medium, computer program product, and chip, please refer to the beneficial effects in the corresponding method provided above. Details will not be described here either.

[0312] Based on the above implementation description, those skilled in the art can understand that for the purpose of simple and easy description, the above division into multiple functional modules is only used as an example for description. In actual application, the above functions can be allocated to different functional modules and implemented based on requirements, that is, the internal structure of the device is divided into different functional modules to implement all or part of the above-described functions.

[0313] In some embodiments provided herein, it should be understood that the disclosed devices and methods may be implemented in other ways. For example, the described device embodiments are merely examples. For example, the division into multiple modules or units is merely a logical division of function, and other divisions may occur in actual implementation. For example, multiple units or components may be combined or integrated into another device, or some features may be omitted or not implemented. In addition, the shown or discussed mutual couplings or direct couplings or communication connections may be implemented through some interfaces. Indirect couplings or communication connections between devices or units may be implemented in electronic, mechanical, or other forms.

[0314] The units described as separate components may or may not be physically separate, and the components shown as units may be one or more physical units, located in one place, or distributed in different places. Some or all of the units may be selected based on actual requirements for achieving the objectives of the solutions of the embodiments.

[0315] In addition, multiple functional units in the embodiments of the present application may be integrated into one processing unit, and each of these units may exist physically alone, or two or more units may be integrated into one unit. The integrated unit may be implemented in the form of hardware or in the form of a software functional unit.

[0316] When an integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, the integrated unit may be stored in a readable storage medium. Based on this understanding, the technical solutions of the embodiments of the present application may be essentially implemented in the form of a software product, or a part of the technical solutions may be implemented in the form of a software product. The software product is stored in a storage medium and includes some instructions for instructing a device (which may be a single-chip microcomputer, a chip, etc.) or a processor to perform all or part of the steps of the methods described in the embodiments of the present application. The aforementioned storage medium includes any medium capable of storing program code, such as a USB flash drive, a removable hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0317] The above description is merely a specific implementation of the present application and is not intended to limit the scope of protection of the present application. Any modifications or replacements that can be easily thought of by those skilled in the art within the technical scope disclosed in the present application shall fall within the scope of protection of the present application. Therefore, the scope of protection of the present application shall be subject to the scope of protection of the claims. [Other possible items] [Item 1] 1. A widget display method for application to an electronic device, comprising: displaying a first widget having a first size in a first area of ​​a first page of the home screen; In response to detecting that a task in progress exists in a first application, simultaneously displaying a widget of the first application and the first widget with a reduced size in the first area, where the widget of the first application displays first content, the widget of the first application has a second size, and the second size is smaller than the first size; and adjusting the size of the widget of the first application from the second size to the first size in response to the electronic device satisfying a preset condition, wherein the widget of the first application and having the first size displays second content, the second content being more than the first content, and the second content including the first content. A method comprising: [Item 2] When the first application is a schedule application, the manner of detecting that there is an ongoing task in the first application can be: identifying schedule content in the schedule application to determine that a time difference between a system time of the electronic device and a time in the schedule content is less than a first time threshold; or determining, by identifying schedule content in the schedule application, that a distance difference between a geographic location of the electronic device and a geographic location in the schedule content is less than a first distance threshold; Item 1, the method according to item 1, wherein the combination is one or several of the following: [Item 3] The preset conditions include a plurality of the following conditions: determining that the time difference between the system time of the electronic device and the time in the schedule content is less than a second time threshold, where the second time threshold is less than the first time threshold; or determining that the distance difference between the geographic location of the electronic device and the geographic location in the schedule content is less than a second distance threshold, wherein the second distance threshold is less than the first distance threshold; 3. The method according to item 2, wherein the method is one or a combination of: [Item 4] When the widget of the first application and the reduced-size first widget are displayed simultaneously, the method comprises: detecting a pinch gesture, wherein a first contact point of the pinch gesture contacts the widget of the first application and a second contact point of the pinch gesture contacts the first widget; and combining the widget of the first application and the first widget into a first composite widget for display in the first area in response to the pinch gesture. Item 4. The method of item 3, further comprising: [Item 5] When the widget of the first application and the reduced-size first widget are displayed simultaneously, the method comprises: detecting that there is an ongoing task in a media application, ceasing the display of the first widget, and simultaneously displaying the widget of the first application and the widget of the media application in the first area; The method according to any one of items 2 to 4, further comprising: [Item 6] The method comprises: detecting that the system time of the electronic device exceeds an end time in the schedule content, stopping display of the widget belonging to the first application and having the first size, and displaying the first widget having the first size in the first area; The method according to any one of items 2 to 4, further comprising: [Item 7] Specifically, the step of detecting that there is an ongoing task in the scheduling application comprises: Detecting the existence of the ongoing task in the scheduling application by using a broadcast receivers component in the scheduling application. 7. The method according to any one of items 2 to 6, wherein [Item 8] Specifically, the step of detecting that there is an ongoing task in the media application comprises: Detecting the presence of the ongoing task in the media application by using a Service component in the media application. Item 6. The method according to Item 5, wherein [Item 9] Specifically, the step of detecting that there is an ongoing task in the first application comprises: detecting, on another electronic device, that the ongoing task exists in the first application with the same user account logged on; or detecting the presence of the ongoing task in the first application on the other electronic device after the electronic device is paired with the other electronic device. Item 1. The method according to item 1, [Item 10] the first page is the home page of the home screen; or the first widget is a time-weather widget or a calendar widget; or Both a 4G signal identifier and a 5G signal identifier are displayed in a notification bar on the screen; or the first area is at the top of the first page; or the first widget is transparent or translucent; or the first application is a calendar application, a notes application, or a reminder application; or the first application is an audio application or a video application; or the ongoing task is playing music, the first content is a song name, a singer, a play / pause control, a play next song control, and a play previous song control, and the second content is the song name, the singer, the play / pause control, the play next song control, the play previous song control, a favorites control, and a play mode switch control; or the ongoing task is a travel task, the first content is a departure time, a train number, a departure station, and an arrival station, and the second content is the departure time, the arrival time, the train number, the departure station, the arrival station, and a seat number; or the ongoing task is an express delivery task, the first content is a pickup location and a pickup time, and the second content is the pickup location, the pickup time, and a pickup code; or the ongoing task is a movie task, the first content is a cinema location and a movie showtime, and the second content is the cinema location, the movie showtime, and a seat number; or The ongoing task is a meeting task, the first content is a meeting time and a meeting location, and the second content is the meeting time, the meeting location, and a meeting list. The method according to item 1. [Item 11] 1. An electronic device comprising: 1. An electronic device comprising a display, a memory, and one or more processors, the memory including instructions that, when executed by the one or more processors, perform the following steps: displaying a first widget having a first size in a first area of ​​a first page of the home screen; In response to detecting that a task in progress exists in a first application, simultaneously displaying a widget of the first application and the first widget with a reduced size in the first area, where the widget of the first application displays first content, the widget of the first application has a second size, and the second size is smaller than the first size; and adjusting the size of the widget of the first application from the second size to the first size in response to the electronic device satisfying a preset condition, wherein the widget of the first application and having the first size displays second content, the second content being more than the first content, and the second content including the first content. An electronic device that is enabled to run [Item 12] If the first application is a schedule application, the manner in which the electronic device detects that there is an ongoing task in the first application can be: the electronic device determining, by identifying schedule content in the schedule application, that a time difference between a system time of the electronic device and a time in the schedule content is less than a first time threshold; or determining, by the electronic device identifying schedule content in the schedule application, that a distance difference between the geographic location of the electronic device and the geographic location in the schedule content is less than a first distance threshold; Item 12. The electronic device according to item 11, wherein the electronic device is one or a combination of several of the above. [Item 13] The preset conditions include a plurality of the following conditions: the electronic device determining that the time difference between the system time of the electronic device and the time in the schedule content is less than a second time threshold, where the second time threshold is less than the first time threshold; or the electronic device determining that the distance difference between the geographic location of the electronic device and the geographic location of the schedule content is less than a second distance threshold, wherein the second distance threshold is less than the first distance threshold. Item 13. The electronic device according to item 12, wherein the electronic device is one or a combination of: [Item 14] When the electronic device simultaneously displays the widget of the first application and the first widget with a reduced size, the electronic device performs the following steps: the electronic device detecting a pinch gesture, wherein a first contact point of the pinch gesture contacts the widget of the first application and a second contact point of the pinch gesture contacts the first widget; and the electronic device, in response to the pinch gesture, combining the widget of the first application and the first widget into a first composite widget for display in the first area. Item 14. The electronic device according to item 13, further comprising: [Item 15] When the electronic device simultaneously displays the widget of the first application and the first widget with a reduced size, the electronic device performs the following steps: the electronic device detects that there is an ongoing task in a media application, the electronic device stops displaying the first widget, and the electronic device simultaneously displays the widget of the first application and the widget of the media application in the first area. 15. The electronic device according to any one of items 12 to 14, further comprising: [Item 16] The electronic device includes the steps of: the electronic device detecting that the system time of the electronic device exceeds an end time in the schedule content, stopping display of the widget belonging to the first application and having the first size, and displaying the first widget having the first size in the first area. 15. The electronic device according to any one of items 12 to 14, further comprising: [Item 17] Specifically, the step of the electronic device detecting that there is an ongoing task in the schedule application comprises: detecting, by the electronic device, the existence of the ongoing task in the scheduling application by using a broadcast receivers component in the scheduling application; 17. The electronic device according to any one of items 12 to 16, [Item 18] Specifically, the step of the electronic device detecting that there is an ongoing task in a media application comprises: detecting, by the electronic device, the presence of the ongoing task in the media application by using a Service component in the media application; Item 16. The electronic device according to item 15, [Item 19] Specifically, the step of the electronic device detecting that there is an ongoing task in the first application comprises: detecting, by the electronic device, that the ongoing task exists in the first application on another electronic device with the same user account logged on; or detecting, by the electronic device, the existence of the ongoing task in the first application on the other electronic device after the electronic device has been paired with the other electronic device; Item 12. The electronic device according to item 11, [Item 20] the first page is the home page of the home screen; or the first widget is a time-weather widget or a calendar widget; or Both a 4G signal identifier and a 5G signal identifier are displayed in a notification bar on the screen; or the first area is at the top of the first page; or the first widget is transparent or translucent; or the first application is a calendar application, a notes application, or a reminder application; or the first application is an audio application or a video application; or the ongoing task is playing music, the first content is a song name, a singer, a play / pause control, a play next song control, and a play previous song control, and the second content is the song name, the singer, the play / pause control, the play next song control, the play previous song control, a favorites control, and a play mode switch control; or the ongoing task is a travel task, the first content is a departure time, a train number, a departure station, and an arrival station, and the second content is the departure time, the arrival time, the train number, the departure station, the arrival station, and a seat number; or the ongoing task is an express delivery task, the first content is a pickup location and a pickup time, and the second content is the pickup location, the pickup time, and a pickup code; or the ongoing task is a movie task, the first content is a cinema location and a movie showtime, and the second content is the cinema location, the movie showtime, and a seat number; or The ongoing task is a meeting task, the first content is a meeting time and a meeting location, and the second content is the meeting time, the meeting location, and a meeting list. Item 12. The electronic device according to item 11. [Item 21] 11. A computer storage medium comprising computer instructions, the computer storage medium comprising computer instructions that, when executed on an electronic device, enable the electronic device to perform the widget display method according to any one of items 1 to 10. [Item 22] A computer program product, which, when executed on a computer, enables the computer to execute the widget display method according to any one of items 1 to 10.

Claims

1. 1. A widget display method applied to an electronic device, comprising: displaying a first widget having a first size in a first area of ​​a first page of the home screen; In response to detecting that a task in progress exists in a first application, simultaneously displaying a widget of the first application and the first widget with a reduced size in the first area, where the widget of the first application displays first content, the widget of the first application has a second size, the second size is smaller than the first size, and the first widget with the reduced size displays less content than the first widget with the first size; and adjusting the size of the widget of the first application from the second size to a larger size and ceasing to display the first widget in response to the electronic device satisfying a preset condition, wherein the widget of the first application having the first size displays second content, the second content being more than the first content, and the second content including the first content; A method comprising:

2. If the first application is a schedule application, the manner of detecting that there is an ongoing task in the first application can be: identifying schedule content in the schedule application to determine that a time difference between a system time of the electronic device and a time in the schedule content is less than a first time threshold; or determining, by identifying schedule content in the schedule application, that a distance difference between a geographic location of the electronic device and a geographic location in the schedule content is less than a first distance threshold; The method of claim 1, wherein the method is one or a combination of several of the following:

3. The preset conditions include a plurality of the following conditions: determining that the time difference between the system time of the electronic device and the time in the schedule content is less than a second time threshold, where the second time threshold is less than the first time threshold; or determining that the distance difference between the geographic location of the electronic device and the geographic location in the schedule content is less than a second distance threshold, wherein the second distance threshold is less than the first distance threshold; 3. The method of claim 2, wherein the method is one or a combination of:

4. When the widget of the first application and the reduced-size first widget are displayed simultaneously, the method includes: detecting a pinch gesture, wherein a first contact point of the pinch gesture contacts the widget of the first application and a second contact point of the pinch gesture contacts the first widget; and In response to the pinch gesture, combining the widget of the first application and the first widget into a first composite widget for display in the first area. The method of claim 3 further comprising:

5. When the widget of the first application and the reduced-size first widget are displayed simultaneously, the method includes: detecting that there is an ongoing task in a media application, ceasing the display of the first widget, and simultaneously displaying the widget of the first application and the widget of the media application in the first area; The method of any one of claims 2 to 4, further comprising:

6. The method comprises: detecting that the system time of the electronic device exceeds an end time in the schedule content, stopping display of the widget having the first size of the first application, and displaying the first widget having the first size in the first area; The method of any one of claims 2 to 4, further comprising:

7. Specifically, the step of detecting that there is an ongoing task in the schedule application comprises: Detecting the existence of the ongoing task in the scheduling application by using a broadcast receivers component in the scheduling application. The method according to any one of claims 2 to 6, wherein

8. Specifically, the step of detecting that there is an ongoing task in the media application comprises: Detecting the presence of the ongoing task in the media application by using a Service component in the media application. The method of claim 5, wherein

9. Specifically, the step of detecting that there is an ongoing task in the first application comprises: detecting, on another electronic device, that the ongoing task exists in the first application with the same user account logged on; or detecting the presence of the ongoing task in the first application on the other electronic device after the electronic device is paired with the other electronic device; The method of claim 1, wherein

10. the first page is the home page of the home screen; or the first widget is a time weather widget or a calendar widget; or Both a 4G signal identifier and a 5G signal identifier are displayed in the home screen notification bar; or the first area is at the top of the first page; or the first widget is transparent or translucent; or the first application is a calendar application, a notes application, or a reminder application; or the first application is an audio application or a video application; or the ongoing task is playing music, the first content is a song name, a singer, a play / pause control, a play next song control, and a play previous song control, and the second content is the song name, the singer, the play / pause control, the play next song control, the play previous song control, a favorites control, and a play mode switch control; or the ongoing task is a travel task, the first content is a departure time, a train number, a departure station, and an arrival station, and the second content is the departure time, the arrival time, the train number, the departure station, the arrival station, and a seat number; or the ongoing task is an express delivery task, the first content is a pickup location and a pickup time, and the second content is the pickup location, the pickup time, and a pickup code; or the ongoing task is a movie task, the first content is a cinema location and a movie showtime, and the second content is the cinema location, the movie showtime, and a seat number; or The ongoing task is a meeting task, the first content is a meeting time and a meeting location, and the second content is the meeting time, the meeting location, and a meeting list. The method of claim 1.

11. 1. An electronic device comprising:

1. An electronic device comprising a display, a memory, and one or more processors, the memory including instructions that, when executed by the one or more processors, perform the following steps: displaying a first widget having a first size in a first area of ​​a first page of the home screen; In response to detecting that a task in progress exists in a first application, simultaneously displaying a widget of the first application and a reduced-size first widget in the first area, where the widget of the first application displays first content, the widget of the first application has a second size, and the second size is smaller than the first size; and adjusting the size of the widget of the first application from the second size to the first size in response to the electronic device satisfying a preset condition, wherein the widget of the first application having the first size displays second content, the second content being more than the first content, and the second content including the first content; An electronic device that is enabled to run

12. If the first application is a schedule application, the manner in which the electronic device detects that there is an ongoing task in the first application can be: the electronic device determining, by identifying schedule content in the schedule application, that a time difference between a system time of the electronic device and a time in the schedule content is less than a first time threshold; or determining, by the electronic device identifying schedule content in the schedule application, that a distance difference between the geographic location of the electronic device and the geographic location in the schedule content is less than a first distance threshold; 12. The electronic device of claim 11, wherein the electronic device is one or a combination of several of the following:

13. The preset conditions include a plurality of the following conditions: the electronic device determining that the time difference between the system time of the electronic device and the time in the schedule content is less than a second time threshold, where the second time threshold is less than the first time threshold; or the electronic device determining that the distance difference between the geographic location of the electronic device and the geographic location of the schedule content is less than a second distance threshold, wherein the second distance threshold is less than the first distance threshold.

13. The electronic device of claim 12, wherein the electronic device is one or a combination of:

14. When the electronic device simultaneously displays the widget of the first application and the first widget with a reduced size, the electronic device performs the following steps: the electronic device detecting a pinch gesture, wherein a first contact point of the pinch gesture contacts the widget of the first application and a second contact point of the pinch gesture contacts the first widget; and the electronic device, in response to the pinch gesture, combining the widget of the first application and the first widget into a first composite widget for display in the first area. The electronic device of claim 13 further comprising:

15. When the electronic device simultaneously displays the widget of the first application and the first widget with a reduced size, the electronic device performs the following steps: the electronic device detects that there is an ongoing task in a media application, the electronic device stops displaying the first widget, and the electronic device simultaneously displays the widget of the first application and the widget of the media application in the first area. The electronic device according to any one of claims 12 to 14, further comprising:

16. The electronic device comprises the steps of: the electronic device detecting that the system time of the electronic device exceeds an end time in the schedule content, stopping display of the widget having the first size of the first application, and displaying the first widget having the first size in the first area. The electronic device according to any one of claims 12 to 14, further comprising:

17. Specifically, the step of the electronic device detecting that there is an ongoing task in the schedule application comprises: detecting, by the electronic device, the existence of the ongoing task in the scheduling application by using a broadcast receivers component in the scheduling application; The electronic device according to any one of claims 12 to 16, wherein

18. Specifically, the step of the electronic device detecting that there is an ongoing task in a media application comprises: the electronic device detecting the presence of the ongoing task in the media application by using a Service component in the media application.

16. The electronic device of claim 15, wherein:

19. Specifically, the step of the electronic device detecting that there is an ongoing task in the first application comprises: detecting, by the electronic device, that the ongoing task exists in the first application on another electronic device with the same user account logged on; or detecting, by the electronic device, the existence of the ongoing task in the first application on the other electronic device after the electronic device has been paired with the other electronic device; 12. The electronic device of claim 11, wherein:

20. the first page is the home page of the home screen; or the first widget is a time weather widget or a calendar widget; or Both a 4G signal identifier and a 5G signal identifier are displayed in the home screen notification bar; or the first area is at the top of the first page; or the first widget is transparent or translucent; or the first application is a calendar application, a notes application, or a reminder application; or the first application is an audio application or a video application; or the ongoing task is playing music, the first content is a song name, a singer, a play / pause control, a play next song control, and a play previous song control, and the second content is the song name, the singer, the play / pause control, the play next song control, the play previous song control, a favorites control, and a play mode switch control; or the ongoing task is a travel task, the first content is a departure time, a train number, a departure station, and an arrival station, and the second content is the departure time, the arrival time, the train number, the departure station, the arrival station, and a seat number; or the ongoing task is an express delivery task, the first content is a pickup location and a pickup time, and the second content is the pickup location, the pickup time, and a pickup code; or the ongoing task is a movie task, the first content is a cinema location and a movie showtime, and the second content is the cinema location, the movie showtime, and a seat number; or The ongoing task is a meeting task, the first content is a meeting time and a meeting location, and the second content is the meeting time, the meeting location, and a meeting list. The electronic device of claim 11.

21. 11. A computer storage medium comprising computer instructions that, when executed on an electronic device, enable the electronic device to perform the widget display method of any one of claims 1 to 10.

22. A computer program for causing a computer to execute the widget display method according to any one of claims 1 to 10.