Display mode control method and related product
Through the control display method, the problem of repeated display of application information in electronic devices is solved, clear and efficient information display is achieved, and user experience is improved.
Patent Information
- Application Number
- CN202410038364.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-10
- Publication Date
- 2025-07-18
AI Technical Summary
In the prior art, the repeated display of display information of the same application by electronic devices on the user interface leads to excessive display, affecting the convenience and user experience of the user to obtain other information.
The display method is managed through the control method, so that when the application interface is in the foreground, information is only displayed through the application interface, and information is only displayed through the resident service in the background, avoiding repeated displays.
It realizes clear and efficient display of information to users, improves user experience, and ensures that users can easily view application information and obtain other information.
Smart Images

Figure CN120335898A_ABST
Abstract
Description
Technical Field
[0001] This solution relates to the technical field of terminals, and in particular, to a method for controlling a display manner and related products. Background Art
[0002] When a user opens one or more application programs included in an electronic device such as a mobile phone or a tablet and triggers a service included in the application program, the electronic device such as a mobile phone or a tablet displays display information of the triggered service to the user through a user interface. For example, when the user opens a food delivery application program and triggers the service of confirming an order, the electronic device displays the service progress of the service of confirming an order to the user. The displayed service progress is, for example, that the merchant has received the order, the rider has received the order, and the distance between the rider and the user. Displaying the display information of the application to the user is a conventional function of the electronic device. However, it is a direction that needs to be continuously researched and developed in the technical field of terminals to enable the electronic device to manage the display manner of the display information so as to clearly and efficiently display the display information of the application to the user and improve the user experience. Summary of the Invention
[0003] Embodiments of the present application provide a method for controlling a display manner and related products. Among them, the related products include an electronic device, a chip, a computer-readable storage medium, and a computer program product.
[0004] In a first aspect, embodiments of the present application provide a method for controlling a display manner. The method for controlling a display manner includes:
[0005] Display an application interface of an application on a display screen of an electronic device; the electronic device runs a resident service, and the resident service and the application interface have a function of displaying the same display information; after the application is triggered to display the display information, display the display information through the application interface or the resident service.
[0006] When implementing the method provided in the first aspect, the resident service refers to a display element resident in the electronic device such as a resident capsule or a resident card that can be used to display the display information. The same display information refers to display information with the same essential content. The resident service and the application interface can display display information with the same essential content. For example, the application interface displays the service progress of a service of an application in detail, while the resident service only briefly displays the service progress of this service of this application, and their display forms are also different. Since both the application interface and the resident service display the service progress of the same service of the same application, it is considered that the application interface and the resident service display the same display information. When the user operates on an application icon displayed on the display screen of the electronic device, the application is started, and the display screen of the electronic device displays the application interface of the application. And, the electronic device runs a resident service that has a function of displaying the same display information as the application interface.
[0007] In cases where a user triggers a service through the application interface of an application displayed on a display screen, or the application pushes a notification to the user based on the service progress of the business, the application will be triggered to display corresponding display information. Both the application interface and the persistent service that can be used to display the same display information have a display requirement. If both the application interface and the persistent service displayed on the display screen display the display information, there will be duplicate displays. Repeated displays may lead to over-display. When the user wants to view other applications or other information through the page displayed on the display screen, if the electronic device over-displays the display information of a certain application, it will affect the user's access to other applications or other information and the user's experience.
[0008] Based on this, when implementing the method provided in the first aspect, after the application is triggered to display the display information, the electronic device manages the display method of the display information and controls the display of the display information through the application interface or through the persistent service. When displaying the same display information, the electronic device controls to display the application's display information to the user in only one of the display methods through the mutually exclusive logic of the application interface display and the persistent service display. This can avoid over-display of the display information. While enabling the user to conveniently view the display information of the application through the display screen, it also enables the user to obtain more other applications or other information, which is beneficial to clearly and efficiently display information to the user and improve the user's experience.
[0009] In combination with the first aspect, in some embodiments, displaying the display information through the application interface or the persistent service includes: when the application interface is in the foreground, displaying the display information through the application interface; the display screen does not include a persistent service; or when the application interface is in the background, displaying the display information through the persistent service.
[0010] It can be understood that when the application interface is in the foreground, the display screen of the electronic device can display the application interface, and the electronic device can and only can display the display information to the user through the application interface. Whether the application interface is in the foreground or in the background, the display screen of the electronic device can display the persistent service, and the electronic device can display the display information to the user through the persistent service. For example, when the application interface is in the foreground, the electronic device displays a persistent capsule in a small area at the top of the page displayed on the display screen; when the application interface is in the background, the electronic device displays a persistent card in a larger area on the main screen interface or other pages displayed on the display screen.
[0011] Based on this, when the application interface is in the background, the application interface is not displayed on the display screen of the electronic device. The electronic device controls the display of display information through a persistent service to visually display the display information of the application to the user, improving the convenience for the user to view the display information of the application. When the application interface is in the foreground, the electronic device controls the display of display information only through the application interface and controls the persistent service not to display the display information. In this case, the display screen does not include the persistent service. Based on whether the application interface is in the foreground or in the background, the electronic device manages the display mode of the display information, realizing the display of the display information only through the application interface or only through the persistent service, and can avoid over-displaying the display information of the application.
[0012] Combined with the first aspect, in some embodiments, the situation where the application interface is in the foreground includes: the situation where the application interface switches from the background to the foreground, or, the situation where the application interface is in the foreground after the application is launched; the situation where the application interface is in the background includes: the situation where the application interface switches from the foreground to the background.
[0013] When the user operates on the application icon displayed on the display screen of the electronic device, the application is launched, and the display screen of the electronic device displays the application interface. This is one of the situations where the application interface is in the foreground. In this case, the user can trigger services through the application interface displayed on the display screen, and the application can also push notifications to the user through the application interface. The electronic device displays the display information to the user through the displayed application interface. In addition, when the user performs a screen switching operation, the page displayed on the display screen of the electronic device is switched. Based on the user's screen switching operation, when the display screen displays other pages, the application interface will be switched to the background. Based on the user's screen switching operation again, when the display screen displays the application interface again, the application interface will be switched to the foreground. This situation where the application interface switches from the background to the foreground is another situation where the application interface is in the foreground. For the above two situations where the application interface is in the foreground when the application is launched and the application interface switches from the background to the foreground, when any one of them exists, the electronic device controls the display of the display information through the application interface displayed on the display screen.
[0014] Since the application is launched, the display screen of the electronic device will display the application interface, and the application interface is in the foreground. Therefore, the situation where the application interface is in the background only includes the situation where the application interface switches from the foreground to the background. That is, based on the user's screen switching operation, the display screen switches from displaying the application interface to displaying other pages, and the application interface switches from the foreground to the background. In the case where the application interface switches from the foreground to the background, the application interface is not displayed on the display screen, and the electronic device controls the display of the display information through the persistent service displayed on the display screen.
[0015] Since the application starts, without the application exiting the running state, based on the user's operations, the application interface may remain in the foreground since the application starts, may switch from the foreground to the background, or may switch from the background to the foreground. In these three scenarios, the electronic device controls to display information only through the application interface or only through the persistent service. By using the control method of this display method, it is realized that there is no excessive display in all scenarios.
[0016] In combination with the first aspect, in some embodiments, the control method of the display method further includes: when the application exits the running state abnormally, ending the display of the display information; the display screen does not include the application interface and the persistent service.
[0017] The abnormal exit from the running state described in the embodiments of the present application mainly refers to the situation other than the application exiting the running state by the user's subjective will to perform an exit operation and other than the application automatically exiting according to the pre-set exit running logic. If the application is forcibly closed due to factors such as application incompatibility, crashing, running conflicts, running logic errors, etc., it belongs to the application exiting the running state abnormally described here.
[0018] When the application exits the running state abnormally, the application is closed, which means that there is no longer a need to display the display information of this application. Based on this, the electronic device controls to end the display of the display information. The application interface and the persistent service that were originally used to display the display information of this application are no longer displayed on the display screen. The electronic device timely controls to end the display of the display information of the application that exits the running state abnormally, so that in the page displayed on the display screen of the electronic device, there is more area for displaying other applications or other information, and other applications or other information can be displayed to the user more clearly and efficiently.
[0019] In a second aspect, the embodiments of the present application further provide a control method for a display method. The control method for the display method includes: receiving a display task from an application; the display task is used to trigger the control of the display of the display information of the application, the display task is associated with a persistent service, and the persistent service and the application interface of the application have the function of displaying the same display information; controlling the display screen of the electronic device to display the display information through the application interface or through the persistent service.
[0020] When the user operates on the application icon displayed on the display screen of the electronic device, the application is launched, and the display screen of the electronic device is controlled to display the application interface of the application. When the user triggers a service through the application interface displayed on the display screen or the application pushes a notification to the user based on the service progress of the service, the application will be triggered to display corresponding display information. The display controller receives a display task from the application. The display task is associated with a resident service, and the resident service has the function of displaying the same display information as the application interface of the application. Among them, displaying the same display information means that the substantial content of the displayed display information is the same, and there is no restriction on whether the display form, the details of the display, etc. are the same.
[0021] Exemplarily, in the application layer of the electronic device, the application that is triggered to display corresponding display information sends the triggered display information to the management assistant through the application programming interface provided by the application framework layer. After receiving and monitoring that the application is triggered to display the display information, the management assistant generates a display task for instructing to display the display information of the application. Furthermore, the management assistant sends the display task to the display controller of the application framework layer through the application programming interface provided by the application framework layer. Correspondingly, the display controller receives the display task sent by the management assistant through the application programming interface.
[0022] After receiving the display task, the display controller controls the electronic device to display the display information of the application. Both the application interface and the resident service that can be used to display the same display information can be displayed. If the display screen is controlled to display the display information in both the application interface and the resident service display forms at the same time, there will be duplicate display. Duplicate display may lead to excessive display of the display information of this application. When the user wants to view other applications or other information through the page displayed on the display screen, if the electronic device excessively displays the display information of a certain application, it will affect the user's access to other applications or other information and the user's experience.
[0023] Based on this, when implementing the method provided in the second aspect, when controlling the electronic device to display the display information of the application, the display controller controls the display screen of the electronic device to display the display information of the application to the user in only one of the display methods through the mutually exclusive logic of the application interface display and the resident service display. It can avoid excessive display of the display information. While enabling the user to conveniently view the display information of the application through the display screen, it also enables the user to obtain more other applications or other information, which is beneficial to clearly and efficiently display information to the user and is beneficial to improving the user experience.
[0024] In combination with the second aspect, in some embodiments, controlling the display screen of the electronic device to display display information through the application interface or through the persistent service includes: when the application interface is in the foreground, controlling the display screen of the electronic device to display the display information through the application interface; the display screen does not include a persistent service; or when the application interface is in the background, controlling the display screen of the electronic device to display the display information through the persistent service.
[0025] It can be understood that when the application interface is in the foreground, the display screen of the electronic device can display the application interface, and the display controller can and only can control the electronic device to display the display information to the user through the application interface. Whether the application interface is in the foreground or in the background, the display screen of the electronic device can display the persistent service, and the display controller can control the electronic device to display the display information to the user through the persistent service.
[0026] Based on this, when the application interface is in the background, the application interface is not displayed on the display screen of the electronic device. The display controller controls the electronic device to display the display information through the persistent service to intuitively display the display information of the application to the user, improving the convenience for the user to view the display information of the application. When the application interface is in the foreground, the display controller controls the electronic device to display the display information only through the application interface. In this case, the display screen does not include a persistent service. Based on whether the application interface is in the foreground or in the background, the display controller controls the electronic device to display the display information in only one display mode, enabling the electronic device to manage the display mode of the display information. It realizes controlling the display screen of the electronic device to display the display information through the application interface or through the persistent service, and can avoid the over-display of the display information.
[0027] In combination with the second aspect, in some embodiments, controlling the display screen of the electronic device to display the display information through the persistent service includes: sending the display information to the system interface of the electronic device, so that the system interface controls the persistent service to be displayed on the display screen of the electronic device; the persistent service includes the display information.
[0028] When the application interface is in the background, the display controller sends the display information to the system interface of the electronic device, so that the system interface controls the persistent service for displaying the display information of the application to be displayed on the display screen of the electronic device. By controlling the system interface to control the display of the persistent service, it realizes controlling the electronic device to display the display information through the persistent service.
[0029] In combination with the second aspect, in some embodiments, before controlling the display screen of the electronic device to display the display information through the application interface or through the persistent service, the control method of the display mode further includes: obtaining the process state of the application; the process state includes foreground or background, and the process state being foreground indicates that the application interface is in the foreground, and the process state being background indicates that the application interface is in the background.
[0030] Before the display controller controls the display screen of the electronic device to display the display information through the application interface or through the resident service in response to the display task, it needs to first obtain the process status of the application based on whether the application interface is in the foreground or in the background. That is, it needs to first know whether the application interface is in the foreground or in the background.
[0031] In combination with the second aspect, in some embodiments, obtaining the process status of the application includes: querying the process status of the application; or registering to monitor the process status of the application, and obtaining the changed process status of the application when it is confirmed that the process status of the application has changed.
[0032] The way to obtain the process status of the application can be to query the process status of the application, or to register to monitor the process status of the application, and obtain the changed process status of the application when it is confirmed that the process status of the application has changed. It can also be other obtaining methods. The present invention does not limit the way to obtain the process status of the application.
[0033] Exemplarily, the display controller queries the process status of the application from the process manager in the application framework layer. Correspondingly, the process manager feeds back the current process status of the application to the display controller.
[0034] Exemplarily, the display controller registers to monitor the process status of the application in the process manager. Correspondingly, when it is detected that the process status of the application has changed, the process manager then sends the changed process status of the application to the display controller in real time. In this example, the display controller can not only obtain the current process status of the application, and know whether the application interface is in the foreground or in the background based on the current process status. Furthermore, it can execute to control the display screen of the electronic device to display the display information through the application interface or through the resident service. Subsequently, whenever the process status of the application changes, the display controller can also obtain the changed process status of the application in real time. Furthermore, it can timely control the electronic device to switch the display mode so that the display mode matches whether the application interface is in the foreground or in the background. For example, if the process status of the application changes to being in the background, that is, the application interface switches from being in the foreground to being in the background, the display controller then controls the display screen of the electronic device to switch from displaying the display information through the application interface to displaying the display information through the resident service.
[0035] Through the above at least two methods, the process status of the application can be obtained timely and accurately, so that the display controller can timely and accurately control the display screen of the electronic device to display in which display mode according to whether the application interface is in the foreground or in the background. While avoiding over-displaying the display information, it can achieve flexible, accurate and efficient switching of the display mode, and can better meet the user's usage requirements.
[0036] In combination with the second aspect, in some embodiments, when the application interface is in the foreground, controlling the display screen of the electronic device to display display information through the application interface includes: when the application interface switches from the background to the foreground, controlling the display screen of the electronic device to stop displaying display information through the persistent service; the application interface displays display information.
[0037] Exemplarily, when the application interface is in the background, the display controller controls the display screen of the electronic device to display display information through the persistent service. When the application interface switches from the background to the foreground, the display controller controls the display screen of the electronic device to stop displaying display information through the persistent service. In this case, the persistent service is not included in the display screen. Furthermore, the application interface in the foreground displays display information, and the display screen of the electronic device displays display information through the application interface.
[0038] When the application interface switches from the background to the foreground, the display controller controls the electronic device to stop displaying through the persistent service, so as to control the display screen of the electronic device to display display information only through the application interface.
[0039] In combination with the second aspect, in some embodiments, when the application interface switches from the background to the foreground, controlling the display screen of the electronic device to stop displaying display information through the persistent service; the application interface displays display information, including: when the application interface switches from the background to the foreground, sending a stop display instruction to the system interface of the electronic device, and the stop display instruction is used to instruct the system interface to control the persistent service to stop being displayed on the display screen; the display screen displays display information through the application interface in the foreground.
[0040] By controlling the system interface to control the stop display of the persistent service, the display screen of the electronic device is controlled to stop displaying display information through the persistent service, and further, the display screen of the electronic device is controlled to display display information only through the application interface in the foreground.
[0041] In combination with the second aspect, in some embodiments, controlling the display screen of the electronic device to display display information through the application interface includes: storing the display information in a task queue, so that the display screen of the electronic device displays display information through the application interface.
[0042] When the application is launched and the application interface is in the foreground, in order to display the display information in only one display mode, the display controller does not need to make the system interface control the persistent service visible. Therefore, the display controller stores the display information in the task queue, and waits until the application interface switches from the foreground to the background, and then sends the display information in the task queue to the system interface. Furthermore, without receiving the display information sent by the display controller, the system interface does not need to control the persistent service to be displayed. In this case, the display screen of the electronic device displays the application interface in the foreground, and the display screen of the electronic device displays the display information through the application interface.
[0043] By storing the display information in the task queue, the system interface does not control the persistent service to be displayed, and thus controls the electronic device to display the display information only through the application interface in the foreground.
[0044] Combined with the second aspect, in some embodiments, the situation where the application interface is in the background includes: the situation where the application interface switches from the foreground to the background for the first time, or the situation where the application interface switches from the foreground to the background not for the first time; when the application interface is in the background, controlling the display screen of the electronic device to display the display information through the persistent service includes: when the application interface switches from the foreground to the background for the first time, sending the display information stored in the task queue to the system interface of the electronic device, so that the system interface controls the persistent service containing the display information to be displayed on the display screen; the persistent service contains the display information; or when the application interface switches from the foreground to the background not for the first time, sending a resume display instruction to the system interface, and the resume display instruction is used to instruct the system interface to control the persistent service to be displayed on the display screen.
[0045] As described above, when the application is launched and the application interface is in the foreground, the display controller does not need to make the system interface control the persistent service visible. Therefore, the display controller stores the display information in the task queue. When the application interface switches from the foreground to the background for the first time, the display controller needs to send the display information stored in the task queue to the system interface, so that the system interface controls the persistent service containing the display information to be displayed on the display screen.
[0046] As described above, when the application interface switches from the background to the foreground, the display controller sends a stop display instruction to the system interface, so that the system interface controls the persistent service to stop being displayed on the display screen. Based on this, when the application interface switches from the foreground to the background not for the first time, the display controller sends a resume display instruction to the system interface, so that the system interface controls the persistent service to resume being displayed on the display screen.
[0047] Distinguish the above two situations, and show that the controller sends different instructions or information to the system interface to control the electronic device to display display information through a persistent service when the application interface is in the background.
[0048] Combined with the second aspect, in some embodiments, the control method of the display mode further includes: when the application exits the operation abnormally, controlling the display screen of the electronic device to end the display of the display information; the display screen does not include the application interface and the persistent service.
[0049] The abnormal exit from operation described here mainly refers to the situation other than the application exiting the operation by performing an exit operation under the user's subjective will and other than the application automatically exiting according to the pre-set exit operation logic. If the application is forcibly closed due to factors such as application incompatibility, crashing, running conflicts, running logic errors, etc., it belongs to the application exiting the operation abnormally.
[0050] When the application exits the operation abnormally, the application is closed, which means that there is no longer any display information of this application that needs to be displayed. Based on this, the display controller controls the electronic device to end the display of the display information. The application interface and the persistent service that were originally used to display the display information of this application are no longer displayed on the display screen.
[0051] Exemplarily, the process state of the application further includes an abnormal exit from operation. When the process manager of the electronic device monitors that the application exits the operation abnormally, it feeds back the process state of the application's abnormal exit from operation to the display controller. After obtaining the process state of the application's abnormal exit from operation, the display controller sends a stop display instruction to the system interface, so that the system interface controls the persistent service for displaying the display information of the application to stop displaying.
[0052] The display controller timely controls the electronic device to end the display of the display information of the application that has exited the operation abnormally, so that in the page displayed on the display screen of the electronic device, there can be more areas for displaying other applications or other information, and other applications or other information can be displayed to the user more clearly and efficiently.
[0053] Combined with the second aspect, in some embodiments, the control method of the display mode further includes: when controlling the display screen to end the display of the display information, releasing the resources occupied by the display task.
[0054] When controlling the display screen to end the display of the display information, the display controller finishes executing the display task from the application. Furthermore, the resources occupied by this display task are released. The resources include the memory, process, etc. occupied by the display task. When the display controller registers to monitor the process state of the application in the process manager, releasing the resources also includes unregistering to monitor the process state of the application in the process manager.
[0055] After the display task is completed, releasing the resources occupied by the display task can free up more available resources for other programs or tasks to be run, so as to improve the performance of the software system of the electronic device.
[0056] In a third aspect, an embodiment of the present application further provides an electronic device, where the electronic device includes: one or more processors and a memory; the memory is coupled to the one or more processors, the memory is used to store computer program code, and the computer program code includes computer instructions, and the one or more processors call the computer instructions to cause the electronic device to execute the method in the first aspect or any possible implementation manner of the first aspect, or execute the method in the second aspect or any possible implementation manner of the second aspect.
[0057] In a fourth aspect, an embodiment of the present application further provides a chip, where the chip is applied to an electronic device, and the chip includes one or more processors, and the processors are used to call computer instructions to cause the electronic device to execute the method in the first aspect or any possible implementation manner of the first aspect, or execute the method in the second aspect or any possible implementation manner of the second aspect.
[0058] In a fifth aspect, an embodiment of the present application further provides a computer-readable storage medium, including instructions, when the above instructions run on an electronic device, causing the above electronic device to execute the method in the first aspect or any possible implementation manner of the first aspect, or execute the method in the second aspect or any possible implementation manner of the second aspect.
[0059] In a sixth aspect, an embodiment of the present application further provides a computer program product, when the above computer program product runs on an electronic device, causing the above electronic device to execute the method in the first aspect or any possible implementation manner of the first aspect, or execute the method in the second aspect or any possible implementation manner of the second aspect.
[0060] It can be understood that the electronic device provided in the above third aspect, the chip provided in the fourth aspect, the computer-readable storage medium provided in the fifth aspect, and the computer program product provided in the sixth aspect are all used to execute the control method of the display manner provided in the embodiments of the present application. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method, and will not be elaborated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0061] In order to clearly illustrate the technical solutions in the embodiments of the present application, the following will introduce the drawings required to be used in the embodiments.
[0062] Figure 1 is an application scenario diagram of a control method for a display manner provided by an embodiment of the present application;
[0063] Figure 2 It is a hardware structure block diagram of an electronic device provided by an embodiment of the present application;
[0064] Figure 3 It is a software structure block diagram of an electronic device provided by an embodiment of the present application;
[0065] Figure 4 It is a schematic flowchart of a control method for a display mode provided by an embodiment of the present application;
[0066] Figure 5 It is a schematic diagram of the user interface of some electronic devices provided by an embodiment of the present application;
[0067] Figure 6 It is a schematic diagram of the user interface of some electronic devices provided by an embodiment of the present application;
[0068] Figure 7 It is a schematic diagram of the user interface of some electronic devices provided by an embodiment of the present application;
[0069] Figure 8 It is a schematic diagram of the user interface of some electronic devices provided by an embodiment of the present application;
[0070] Figure 9 It is a structure block diagram of a control device for a display mode provided by an embodiment of the present application. Detailed implementation manners
[0071] The terms used in the following embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the embodiments of the present application. As used in the specification and claims of the embodiments of the present application, the singular forms "a", "an", "the", "above-mentioned", "this", and "one" are also intended to include the plural forms, unless there is a clear indication to the contrary in the context. It should also be understood that the term " / and / " used in the embodiments of the present application refers to and includes any or all possible combinations of one or more of the listed items.
[0072] The embodiments of the present application provide a control method for a display mode, and an electronic device executes the control method for the display mode in the embodiments of the present application. The electronic device in the embodiments of the present application refers to terminal devices such as mobile phones and tablets. For the convenience of understanding, the relevant terms involved in the embodiments of the present application will be introduced below.
[0073] (1) Entrance
[0074] "Entrance" can literally be understood as the entrance to enter the corresponding services of the application program, understand business information, and display information. Based on this, "entrance" can be extended to understand as the position for displaying the display information of the application program, that is, the display position of the display information. In the embodiments of the present application, electronic devices such as mobile phones and tablets are provided with desktop entrances, negative first screen entrances, screen-off entrances, notification center entrances, lock screen entrances, global entrances, etc. The global entrance refers to all positions that can be used for display. In addition to including the desktop, negative first screen, screen-off, lock screen, and notification center, it also includes the application interfaces of the application programs being displayed, etc. Each entrance can be used to display display information such as the business information of the application program. Users can view the display information such as the business information of the application program through the entrance corresponding to the page displayed by the user interface of the electronic device. For example, when the user interface displays the home screen page, it is viewed through the desktop entrance; when the user interface displays the negative first screen page, it is viewed through the negative first screen entrance.
[0075] (2) Card
[0076] "Card" is a form for an electronic device to display application programs and display information such as the business information of the application program. Displaying the display information in the form of a card at any entrance constitutes a display method of the electronic device. According to whether the card is continuously displayed or ends after the default display duration, the cards can be divided into two categories. Among them, the card that ends after the default display duration is called a banner card. When the area available for displaying the display information of the application program in the page displayed by the user interface is not sufficient to layout a card, the entrance corresponding to the displayed page is combined with the banner card to display the display information. The banner card is displayed above the information already displayed on the page and ends after the default display duration. It can not only display the display information of the application program but also avoid interfering with the user's access to other information. The global entrance is usually combined with the banner card to display the display information of the application program. The resident services described in the embodiments of the present application include cards.
[0077] (3) Capsule
[0078] "Capsule" is another form for an electronic device to display application programs and display information such as the business information of the application program. Displaying the display information in the form of a capsule at any entrance constitutes a display method of the electronic device. Different from the card, the capsule generally cannot display the display information of the application program in detail and can only display the brief information of the corresponding service. The capsule is generally placed at the top of the user interface of the electronic device in a smaller size, which has less impact on the user's access to information and the user's experience. Based on this, the global entrance is usually also combined with the capsule to display the display information of the application program. The resident services described in the embodiments of the present application also include capsules.
[0079] (4) Global Reach
[0080] Global reach provides an application service for an electronic device, that is, it transmits and displays the display information such as the business information of the application program opened by the user at various entrances such as the desktop entrance, the negative first screen entrance, the screen-off entrance, the notification center entrance, the lock screen entrance, and the global entrance, so that the user can view the display information such as the business information that he wants to know or pay attention to based on each entrance. The display form of the display information is a card and / or a capsule. No matter which one of the desktop, the negative first screen, the screen-off, the standby, the notification center, and the application program application interface the user interface displays, the user can view the corresponding display information of each opened application program through the user interface and know the progress of the business service. For example, when the user interface displays the main screen page, it is viewed through the desktop entrance; when the user interface displays the negative first screen page, it is viewed through the negative first screen entrance. The application service of global reach can improve the convenience for the user to view the display information such as the business information of the application program. The user does not need to make the user interface of the electronic device display a specified page to view the display information of the application program. The application service of global reach can improve the user experience.
[0081] (5) Target application
[0082] The target application in the embodiments of the present application refers to one or more application programs in the electronic device that the user aims to open. For example, when the user opens the phone, the phone is the target application; when the user opens WeChat, WeChat is the target application.
[0083] (6) Target service
[0084] The target service in the embodiments of the present application refers to the service in the target application that is triggered when the user opens the target application. For example, when the user opens WeChat and triggers a video call in WeChat, the video call is the target service of the target application WeChat; when the user opens a taxi application program and triggers a call for the driver to pick up the order, the call for the driver to pick up the order is the target service of the target application taxi.
[0085] In the embodiments of the present application, when the user triggers the target service through the application interface of the target application displayed on the display screen or the target application pushes a notification to the user based on the service progress of the target service, etc., the target application will be triggered to display the corresponding display information. Among them, the display information may be the business information generated by the user triggering the target service of the target application, or the notification information pushed by the target application to the user based on the service progress, important nodes, etc. of the target service, or the information that needs to be displayed when other target applications are triggered. Since the specific content of the display information does not affect the implementation of the display method control method in the embodiments of the present application, therefore, the embodiments of the present application only take the business information as an example of the display information for discussion. The business information mentioned in the subsequent embodiments refers to the display information of the target application that needs to be displayed, and will not be repeated hereinafter.
[0086] Showing the business information of an application to a user is a conventional function of electronic devices such as mobile phones and tablets. When the user opens the target application and triggers the target business, and the application interface of the target application is in the foreground, the electronic device shows the business information of the target business to the user through the application interface of the target application. At this time, the electronic device may also show the business information of the target business to the user in the form of a persistent service such as a capsule or a card at the entrance. For example, in the scenario of using a global reach application service, the business information of the target business opened by the user will be shown in the form of a persistent service such as a capsule or a card at each entrance. Figure 1 Taking the example that the user opens a taxi-hailing application and triggers the business of calling a driver to pick up the order, a scenario is shown where the electronic device not only shows "calling" of the target business through the application interface of the target application, but also shows "calling" of the target business in the form of a capsule at the global entrance. Obviously, Figure 1 the business information shown by the electronic device is duplicated. Duplicate display may lead to over-display, which in turn affects the user's access to other application programs or other business information and the user's experience. For example, if the user also opens a music application, when the business information of the business of calling a driver to pick up the order of the taxi-hailing application is shown both in the application interface of the target application and in the capsule at the global entrance, it is difficult for the user to obtain the business information of playing music of the music application through the current user interface, such as being unable to obtain the name of the played song. Based on this, it is necessary to manage the way of showing business information to avoid duplicate display and over-display.
[0087] An embodiment of the present application provides a control method for a display method applied to an electronic device. When the user opens the target application of the electronic device and triggers the target business, based on whether the application interface of the target application is in the background or in the foreground, the electronic device correspondingly controls to show or stop showing the business information of the target business in the form of a persistent service such as a card or a capsule at the entrance, so as to show the business information of the target business to the user in only one display method. By adopting the above display method control method, through the mutually exclusive logic of the two display methods of showing in the foreground through the application interface of the target application and showing in the form of a persistent service such as a card or a capsule at the entrance, over-display of business information is avoided. While enabling the user to conveniently view business information, it also enables the user to obtain more other application programs or other business information, which is beneficial to clearly and efficiently showing business information to the user and is beneficial to improving the user's experience.
[0088] The following introduces the electronic device involved in the embodiment of the present application.
[0089] Figure 2 The hardware structure block diagram of the electronic device 100 is shown.
[0090] The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. Among them, the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0091] It can be understood that the structure schematically shown in the embodiments of the present invention does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or have different component arrangements. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0092] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modulation and demodulation processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Among them, different processing units may be independent devices or integrated in one or more processors. In the embodiments of the present application, the processor 110 is used to execute the steps of the control method of the display mode.
[0093] Among them, the controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching instructions and executing instructions.
[0094] A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can be directly called from the said memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0095] In some embodiments, the 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 identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0096] The I2C interface is a bidirectional synchronous serial bus that includes a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple groups of I2C buses. The processor 110 may be respectively coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces. For example: The processor 110 may be coupled to the touch sensor 180K through the I2C interface, enabling the processor 110 to communicate with the touch sensor 180K through the I2C bus interface to implement the touch function of the electronic device 100.
[0097] The I2S interface may be used for audio communication. In some embodiments, the processor 110 may include multiple groups of I2S buses. The processor 110 may be coupled to the audio module 170 through the I2S bus to implement communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 may transmit an audio signal to the wireless communication module 160 through the I2S interface to implement the function of answering a phone call through a Bluetooth headset.
[0098] The PCM interface can also be used for audio communication to sample, quantize, and encode analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled through the PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 through the PCM interface to implement the function of answering calls through a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
[0099] The UART interface is a general-purpose serial data bus for asynchronous communication. This bus can be a two-way communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is typically used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 through the UART interface to implement the function of playing music through a Bluetooth headset.
[0100] The MIPI interface can be used to connect the processor 110 to peripheral devices such as the display screen 194 and the camera 193. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc. In some embodiments, the processor 110 and the camera 193 communicate through the CSI interface to implement the shooting function of the electronic device 100. The processor 110 and the display screen 194 communicate through the DSI interface to implement the display function of the electronic device 100.
[0101] The GPIO interface can be configured through software. The GPIO interface can be configured as a control signal or a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 to the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.
[0102] The USB interface 130 is an interface that complies with the USB standard specification, and can specifically be a Mini USB interface, a Micro USB interface, a USB Type-C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used for data transmission between the electronic device 100 and peripheral devices. It can also be used to connect a headset to play audio through the headset. This interface can also be used to connect other electronic devices, such as AR devices, etc.
[0103] It can be understood that the interface connection relationships among the modules illustrated in the embodiments of the present invention are only illustrative descriptions and do not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0104] 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 embodiments of wired charging, the charging management module 140 may receive the charging input from the wired charger through the USB interface 130. In some embodiments of wireless charging, the charging management module 140 may receive the wireless charging input through the wireless charging coil of the electronic device 100. While charging the battery 142, the charging management module 140 may also supply power to the electronic device through the power management module 141.
[0105] The power management module 141 is used to connect the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives the inputs from the battery 142 and / or the charging management module 140 and supplies power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, the wireless communication module 160, etc. The power management module 141 may also be used to monitor parameters such as the battery capacity, the number of battery charge cycles, and the battery health status (leakage, impedance). In some other embodiments, the power management module 141 may also be disposed in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may also be disposed in the same device.
[0106] The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modulation and demodulation processor, and the baseband processor, etc.
[0107] The antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device 100 may be used to cover a single or multiple communication frequency bands. Different antennas may also be multiplexed to improve the utilization rate of the antennas. For example, the antenna 1 may be multiplexed as the diversity antenna of the wireless local area network. In some other embodiments, the antenna may be used in combination with a tuning switch.
[0108] The mobile communication module 150 may provide solutions for wireless communications such as 2G / 3G / 4G / 5G applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 may receive electromagnetic waves through the antenna 1, filter, amplify, etc. the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 may also amplify the signal modulated by the modulation and demodulation processor and convert it into electromagnetic waves through the antenna 1 for radiation. In some embodiments, at least some functional modules of the mobile communication module 150 may be provided in the processor 110. In some embodiments, at least some functional modules of the mobile communication module 150 and at least some modules of the processor 110 may be provided in the same device.
[0109] The modulation and demodulation processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. Subsequently, the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After being processed by the baseband processor, the low-frequency baseband signal is transmitted to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, receiver 170B, etc.), or displays a picture or video through the display screen 194. In some embodiments, the modulation and demodulation processor may be an independent device. In other embodiments, the modulation and demodulation processor may be independent of the processor 110 and provided in the same device as the mobile communication module 150 or other functional modules.
[0110] The wireless communication module 160 may provide solutions for wireless communications applied to the electronic device 100, including wireless local area networks (WLANs) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite systems (GNSSs), frequency modulation (FM), near field communication (NFC), infrared (IR), etc. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering processing on the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 may also receive signals to be sent from the processor 110, perform frequency modulation and amplification on them, and convert them into electromagnetic waves through the antenna 2 for radiation.
[0111] In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, such that electronic device 100 can communicate with a network and other devices through wireless communication technologies. The wireless communication technologies 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, and / or IR technologies, etc. The GNSS may include Global Positioning System (GPS), Global Navigation Satellite System (GLONASS), BeiDou Navigation Satellite System (BDS), Quasi-Zenith Satellite System (QZSS), and / or Satellite Based Augmentation Systems (SBAS).
[0112] Electronic device 100 implements a display function through a GPU, display screen 194, and an application processor, etc. The GPU is a microprocessor for image processing, and is connected to display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs, which execute program instructions to generate or change display information.
[0113] The display screen 194 is used to display pictures, videos, etc. The display screen 194 includes a display panel. The display panel can adopt 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 MiniLED, a MicroLED, a Micro-OLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include one or N display screens 194, where N is a positive integer greater than 1.
[0114] In the embodiments of the present application, the display screen is used to display application icons of applications, display the application interfaces of target applications, and display resident services such as capsules and cards.
[0115] The electronic device 100 can implement the shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, etc.
[0116] The ISP is used to process the data fed back by the camera 193. For example, when taking a photo, the shutter is opened, and light passes through the lens and is transmitted to the camera photosensitive element. The optical signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converts it into a visible picture or video. The ISP can also perform algorithm optimization on the noise, brightness, etc. of the picture. The ISP can also optimize parameters such as exposure and color temperature of the shooting scene. In some embodiments, the ISP can be set in the camera 193.
[0117] The camera 193 is used to capture static pictures or videos. An object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge-coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital picture or video signal. The ISP outputs the digital picture or video signal to the DSP for processing. The DSP converts the digital picture or video signal into a standard picture or video signal in formats such as RGB and YUV. In some embodiments, the electronic device 100 may include one or N cameras 193, where N is a positive integer greater than 1.
[0118] The digital signal processor is used to process digital signals. In addition to processing digital pictures or video signals, it can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy, etc.
[0119] The video codec is used to compress or decompress digital videos. The electronic device 100 can support one or more video codecs. In this way, the electronic device 100 can play or record videos in multiple coding formats, such as: Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
[0120] The NPU is a neural-network (NN) computing processor. By learning from the structure of biological neural networks, such as learning from the transmission mode between human brain neurons, it can quickly process input information and can also continuously self-learn. Through the NPU, applications such as intelligent cognition of the electronic device 100 can be realized, such as: image recognition, face recognition, speech recognition, text understanding, etc.
[0121] The external memory interface 120 can be used to connect an external memory card, such as a MicroSD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement the data storage function. For example, files such as music and videos are saved in the external memory card.
[0122] The internal memory 121 can be used to store computer-executable program code, and the executable program code includes instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. The internal memory 121 can include a program storage area and a data storage area. Among them, the program storage area can store the operating system, application programs required for at least one function (such as the sound playback function, the picture or video playback function, etc.). The data storage area can store the data created during the use of the electronic device 100 (such as audio data, phone book, etc.). In addition, the internal memory 121 can include high-speed random access memory, and can also include non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.
[0123] The electronic device 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor, etc. For example, music playback, recording, etc.
[0124] The audio module 170 is used to convert digital audio information into an analog audio signal for output, and is also used to convert an analog audio input into a digital audio signal. The audio module 170 can also be used for encoding and decoding audio signals. In some embodiments, the audio module 170 can be disposed in the processor 110, or some functional modules of the audio module 170 can be disposed in the processor 110.
[0125] The speaker 170A, also known as the "loudspeaker", is used to convert an audio electrical signal into a sound signal. The electronic device 100 can listen to music or hands-free calls through the speaker 170A.
[0126] The receiver 170B, also known as the "earpiece", is used to convert an audio electrical signal into a sound signal. When the electronic device 100 answers a call or a voice message, the voice can be listened to by bringing the receiver 170B close to the human ear.
[0127] The microphone 170C, also known as the "microphone" or "transmitter", is used to convert a sound signal into an electrical signal. When making a call or sending a voice message, the user can speak by bringing the mouth close to the microphone 170C to input the sound signal into the microphone 170C. The electronic device 100 can be provided with at least one microphone 170C. In some other embodiments, the electronic device 100 can be provided with two microphones 170C, which can not only collect sound signals but also implement a noise reduction function. In some other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C, which can collect sound signals, reduce noise, identify the sound source, and implement functions such as directional recording.
[0128] The headphone jack 170D is used to connect a wired headphone. The headphone jack 170D can be a USB interface 130, or a 3.5mm open mobile terminal platform (OMTP) standard interface, or a Cellular Telecommunications Industry Association of the USA (CTIA) standard interface.
[0129] The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be set on the display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. The capacitive pressure sensor can be a parallel plate including at least two conductive materials. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure based on the change in capacitance. When a touch operation acts on the display screen 194, the electronic device 100 detects the touch operation intensity according to the pressure sensor 180A. The electronic device 100 can also calculate the touch position according to the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than a pressure threshold acts on a short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the pressure threshold acts on a short message application icon, an instruction to create a new short message is executed.
[0130] The gyro sensor 180B can be used to determine the motion posture of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around three axes (i.e., x, y, and z axes) can be determined by the gyro sensor 180B. The gyro sensor 180B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyro sensor 180B detects the angle of the electronic device 100 shaking, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the electronic device 100 through reverse movement to achieve anti-shake. The gyro sensor 180B can also be used for navigation and somatosensory game scenes.
[0131] The air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
[0132] The magnetic sensor 180D includes a Hall sensor. The electronic device 100 can use the magnetic sensor 180D to detect the opening and closing of the flip leather case. In some embodiments, when the electronic device 100 is a flip phone, the electronic device 100 can detect the opening and closing of the flip cover according to the magnetic sensor 180D. Then, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, the flip cover can be automatically unlocked.
[0133] The acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in all directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the electronic device and is applied to applications such as horizontal and vertical screen switching and pedometers.
[0134] A distance sensor 180F is used to measure distance. The electronic device 100 can measure distance through infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use the distance sensor 180F to measure distance to achieve rapid focusing.
[0135] The proximity light sensor 180G may include, for example, a light-emitting diode (LED) and a light detector, such as a photodiode. The light-emitting diode may be an infrared light-emitting diode. The electronic device 100 emits infrared light outward through the light-emitting diode. The electronic device 100 uses the photodiode to detect the infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 can determine that there is no object near the electronic device 100. The electronic device 100 can use the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear for a call, so as to automatically turn off the screen to achieve the purpose of power saving. The proximity light sensor 180G can also be used for automatic unlocking and locking of the leather case mode and pocket mode.
[0136] The ambient light sensor 180L is used to sense the ambient light brightness. The electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the sensed ambient light brightness. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in the pocket to prevent accidental touch.
[0137] The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to achieve fingerprint unlocking, access application locks, fingerprint photography, fingerprint answering of incoming calls, etc.
[0138] The temperature sensor 180J is used to detect temperature. In some embodiments, the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 100 reduces the performance of the processor located near the temperature sensor 180J in order to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 caused by low temperature. In other some embodiments, when the temperature is lower than yet another threshold, the electronic device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
[0139] The touch sensor 180K, also known as the "touch panel". The touch sensor 180K can be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also known as the "touch control screen". The touch sensor 180K is used to detect touch operations acting thereon or nearby. The touch sensor can transmit the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In some other embodiments, the touch sensor 180K can also be disposed on the surface of the electronic device 100, at a different position from that of the display screen 194.
[0140] In the embodiments of the present application, when the user touches the application icon of the application program displayed on the display screen, the touch sensor detects the touch operation acting on the display screen, and transmits the touch operation to the application processor to determine the type of touch event, such as starting the target application and displaying the application interface of the target application.
[0141] The bone conduction sensor 180M can acquire vibration signals. In some embodiments, the bone conduction sensor 180M can acquire the vibration signals of the vibrating bone mass of the human vocal part. The bone conduction sensor 180M can also contact the human pulse to receive the blood pressure pulsation signal. In some embodiments, the bone conduction sensor 180M can also be disposed in the earphone to form a bone conduction earphone. The audio module 170 can parse out the voice signal based on the vibration signals of the vibrating bone mass of the vocal part acquired by the bone conduction sensor 180M to implement the voice function. The application processor can parse the heart rate information based on the blood pressure pulsation signal acquired by the bone conduction sensor 180M to implement the heart rate detection function.
[0142] The keys 190 include a power-on key, volume keys, etc. The keys 190 can be mechanical keys or touch keys. The electronic device 100 can receive key inputs and generate key signal inputs related to the user settings and function controls of the electronic device 100.
[0143] The motor 191 can generate vibration prompts. The motor 191 can be used for incoming call vibration prompts and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playing, etc.) can correspond to different vibration feedback effects. Touch operations acting on different regions of the display screen 194 can also correspond to different vibration feedback effects for the motor 191. Different application scenarios (such as time reminder, receiving information, alarm clock, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
[0144] The indicator 192 can be an indicator light and can be used to indicate the charging state, power change, and can also be used to indicate messages, missed calls, notifications, etc.
[0145] The SIM card interface 195 is used to connect to the SIM card. The SIM card can be inserted into or removed from the SIM card interface 195 to achieve contact with and separation from the electronic device 100. The electronic device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as calls and data communication. In some embodiments, the electronic device 100 uses an eSIM, that is, an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
[0146] In the embodiments of the present application, the software system of the electronic device 100 can adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservices architecture, or a cloud architecture. In the embodiments of the present application, the Android system with a layered architecture is taken as an example to exemplarily illustrate the software structure of the electronic device 100.
[0147] Figure 3 It is the software structure block diagram of the electronic device 100 in the embodiments of the present application.
[0148] The layered architecture divides the software into several layers, and each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom, namely the application layer, the application framework layer, Android runtime and system libraries, and the kernel layer.
[0149] The application layer can include a series of application packages.
[0150] Such as Figure 3As shown in the figure, the application layer may include applications such as the camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, management assistant, and SystemUI. In addition, the application layer may include third-party applications such as WeChat, food delivery apps, and ride-hailing apps in addition to the resident system applications of the above Android system. Among them, as a resident system application, the management assistant is mainly responsible for receiving the target service sent by the target application opened by the user and generating a display task to trigger the display of the business information of the target service of the target application. As a resident system application, SystemUI is mainly responsible for managing and providing the core elements of the user interface, such as the status bar, navigation bar, and lock screen page. In the embodiments of the present application, SystemUI makes the resident services such as cards and capsules display or hide by managing the resident services such as cards and capsules, so as to display or stop displaying the business information of the target service of the target application.
[0151] The application framework layer provides application programming interfaces (APIs) and programming frameworks for the applications in the application layer. The application framework layer includes some predefined functions.
[0152] As Figure 3 shown in the figure, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, a process manager, a display controller, etc.
[0153] The window manager is used to manage window programs. The window manager can obtain the size of the display screen, determine whether there is a status bar, lock the screen, capture the screen, etc.
[0154] The content provider is used to store and obtain data, and make this data accessible to applications. The data may include videos, images, audio, dialed and answered calls, browsing history and bookmarks, phone books, etc.
[0155] The view system includes visible controls, such as controls for displaying text, controls for displaying pictures, etc. The view system can be used to build applications. The display interface can be composed of one or more views. For example, a display interface including a text message notification icon may include a view for displaying text and a view for displaying pictures.
[0156] The phone manager is used to provide the communication function of the electronic device 100. For example, the management of call states, including answering, hanging up, etc.
[0157] The resource manager provides various resources for applications, such as localized strings, icons, pictures, layout files, video files, etc.
[0158] The notification manager enables an application to display notification information in the status bar. It can be used to convey messages of the notification type, and can automatically disappear after a short stay without user interaction. For example, the notification manager is used to inform that the download is completed, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as the notification of a background-running application, or a notification that appears on the screen in the form of a dialogue window. For example, it can prompt text information in the status bar, emit a prompt tone, vibrate the electronic device, blink the indicator light, etc.
[0159] The display controller establishes communication with resident system applications such as the management assistant and the system interface at the application layer through the API. In the embodiment of the present application, after the display controller extracts the display task from the target application through the management assistant, it controls the system interface to display or hide resident services such as cards and capsules, so as to control the system interface to display or stop displaying the business information of the target service of the target application, and further control the electronic device 100 to display the business information of the target application through the resident service, or display the business information of the target application through the application interface of the target application.
[0160] The process manager, also known as the ActivityManagerService (AMS), is the core service responsible for managing the life cycle of application components and the process life cycle. Its main functions include the start, destruction, scheduling of the four major components and the management of processes, etc. AMS manages the processes and the four major components running in the entire electronic device system, and provides process priority management and resources such as processes required for scheduling component operations. Regarding process management, each application exists independently in a process. To reduce resource waste, AMS ensures that the system is always in the best operating state by providing process priority management, memory allocation strategies, etc., while ensuring the stability and security of the electronic device system. In AMS, it is divided into foreground processes and background processes, and AMS makes dynamic adjustments according to the priority of the process and the resource occupancy situation. In the embodiment of the present application, based on process management, AMS feeds back to the display controller the process state that the started target application is in the foreground, or the target application is in the background, or the target application has exited abnormally, so as to assist the display controller to control the electronic device 100 to display the business information of the target application through the resident service, or display the business information of the target application through the application interface of the target application.
[0161] AndroidRuntime includes the core library and the virtual machine. Androidruntime is responsible for the scheduling and management of the Android system.
[0162] The core library consists of two parts: one part is the functional functions that need to be called by the Java language, and the other part is the core library of Android.
[0163] The application layer and the application framework layer run in the virtual machine. The virtual machine executes the Java files in the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as management of object life cycle, stack management, thread management, security and exception management, and garbage collection.
[0164] The system library can include multiple functional modules. For example: Surface Manager (surfacemanager), Media Libraries, 3D graphics processing library (such as: OpenGLES), 2D graphics engine (such as: SGL), etc.
[0165] The Surface Manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.
[0166] The Media Libraries support the playback and recording of various common audio and video formats, as well as static image files, etc. The Media Libraries can support multiple audio and video coding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0167] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis, and layer processing, etc.
[0168] The 2D graphics engine is a drawing engine for 2D drawing.
[0169] The kernel layer is the layer between the hardware and the software. The kernel layer at least includes a display driver, a camera driver, an audio driver, and a sensor driver.
[0170] Next, in combination with Figure 3 the software structure of the electronic device 100 shown, the control method of the display mode provided by the embodiments of the present application will be specifically introduced. Please refer to Figure 4 , Figure 4 which is a schematic flowchart of a control method for a display mode provided by the embodiments of the present application. As Figure 4 shown, the control method of the display mode includes steps S101 to S115.
[0171] In the embodiments of the present application, the display controller establishes communication with the management assistant, system interface, and other resident system applications in the application layer through the APIs provided by the application framework layer. After the display controller extracts the display task through the management assistant, based on whether the application interface of the target application is in the background or in the foreground, the system interface controls whether the resident service is displayed or not in the display screen 194 of the electronic device 100, and then correspondingly controls the electronic device 100 to display the business information of the target application through the resident service, or display the business information of the target application through the application interface of the target application.
[0172] The following steps S101 to S104 are the process of the display controller extracting the display task through the management assistant.
[0173] S101, The user opens the target application and triggers the target service in the target application.
[0174] Taking the electronic device 100 as a mobile phone as an example, the user can open the target application by touching the application icon of the target application displayed on the display screen 194 of the electronic device 100, that is, the application icon displayed on the user interface. As Figure 5 shown, Figure 5 Figure (A) shows the user interface of the electronic device 100. The user interface displays application icons of various application programs, such as Weibo, Toutiao, Zhihu, Douban, WeChat, Bookstore, and Taxi. Taking the taxi application program as the target application as an example, the user touches the application icon of the taxi application program to open the taxi application program. The electronic device 100 starts the taxi application program and displays the application interface of the taxi application program through the display screen 194.
[0175] The user can handle multiple services through the taxi application program. Taking the service of calling a driver to pick up the order as the target service as an example, Figure 5 Figure (B) shows another user interface of the electronic device 100. The user interface displays the application interface for handling the service of calling a driver to pick up the order in the taxi application program. After the user enters the departure place and the destination and touches "Confirm Call", the service of calling a driver to pick up the order in the taxi application program is triggered.
[0176] S102, The target application sends the triggered target service to the management assistant.
[0177] In the application layer of the electronic device 100, the taxi application program as the target application sends the triggered target service of calling a driver to pick up the order to the management assistant through the API provided by the application framework layer.
[0178] S103, The management assistant sends the display task to the display controller through the API.
[0179] The display task is used to trigger the service information for controlling the display of the target service of the target application. The display task is associated with a resident service, and the resident service has the function of displaying the same service information as the application interface of the target application. Among them, the resident service includes the resident card or resident capsule in the application layer of the electronic device 100.
[0180] After the management assistant receives the information that the call driver order-taking service of the taxi-hailing application is triggered and monitored, it generates a display task for triggering the display of the business information of the call driver order-taking service of the taxi-hailing application. Furthermore, the management assistant sends the display task to the display controller of the application framework layer through the API provided by the application framework layer to instruct the display controller to control the display of the business information of the call driver order-taking service of the taxi-hailing application. Correspondingly, the display controller receives the display task sent by the management assistant through the API, that is, extracts the display task from the target application. The display controller can control the display screen 194 of the electronic device 100 to display the business information of the target application through the persistent service associated with the display task.
[0181] S104, the display controller stores the target business of the target application.
[0182] After the display controller extracts the display task, it also establishes a cache to store the data during the process of controlling the display of the business information of the target business of the target application.
[0183] The following steps S105 to S115 are the process in which the display controller, in response to the display task, based on whether the application interface of the target application is in the background or in the foreground, controls the display screen 194 of the electronic device 100 to display the business information of the target application through the persistent service associated with the display task, or displays the business information of the target application through the application interface of the target application.
[0184] S105, the display controller, in response to the display task, queries the process status of the target application from the process manager.
[0185] The process status of the target application includes foreground or background. The process status of the target application being in the foreground means that the application interface of the target application is in the foreground; the process status of the target application being in the background means that the application interface of the target application is in the background.
[0186] Furthermore, the display controller responds to the display task sent by the management assistant and prepares to control the electronic device 100 to perform a display. When the application interface of the target application is in the foreground, the application interface of the target application is displayed on the display screen 194 of the electronic device 100, and the electronic device 100 has displayed the service information of the target application to the user through the application interface of the target application. To avoid repeated and excessive displays, the display controller does not need to control the electronic device 100 to display through the persistent service. Specifically, the display controller does not need to make the system interface control the persistent service to display, or on the basis of already making the system interface control the persistent service to display, make the system interface control the persistent service to stop displaying. When the application interface of the target application is in the background, the electronic device 100 needs to display the service information of the target application to the user. The display controller then needs to control the electronic device 100 to display the service information through the persistent service. Specifically, the display controller makes the system interface control the persistent service to display, or on the basis of already making the system interface control the persistent service to stop displaying, makes the system interface control the persistent service to resume displaying.
[0187] Based on this, the display controller queries the process status of the target application from the process manager in the application framework layer, and determines whether the application interface of the taxi application is in the background or in the foreground based on whether the taxi application process is in the background or in the foreground. Furthermore, it is determined whether to control the display screen 194 of the electronic device 100 to display the service information of the taxi application through the persistent service or through the application interface.
[0188] Exemplarily, to obtain the process status of the target application, the display controller can also register to monitor the process status of the target application in the process manager. Correspondingly, when it is detected that the process status of the target application has changed, the process manager sends the changed process status of the target application to the display controller in real time.
[0189] In this example, the display controller can not only obtain the current process status of the target application, and know whether the application interface is in the foreground or in the background based on the current process status. Furthermore, it controls the display screen 194 of the electronic device 100 to display the service information through the application interface or through the persistent service. Subsequently, whenever the process status of the target application changes, the display controller can also obtain the changed process status of the target application in real time. Furthermore, it timely controls the electronic device 100 to switch the display method so that the display method matches whether the application interface is in the foreground or in the background.
[0190] S106. The process manager sends the query result to the display controller.
[0191] The process manager monitors the process status of each application in the application layer in real time. After receiving a query request from the display controller for the process status of the target application, the taxi application, the process manager responds to the query request and sends a query result to the display controller, that is, feedbacks the currently monitored process status of the taxi application to the display controller.
[0192] According to the query result sent by the process manager, the display controller executes step S107 or step S108.
[0193] S107, when the query result indicates that the target application is in the background, the display controller sends display information to the system interface.
[0194] The display information is used to instruct the system interface to display the business information of the target service of the target application, that is, to instruct the system interface to control the persistent service containing the business information of the target service to be displayed on the display screen 194 of the electronic device 100.
[0195] If the query result indicates that the target application is in the background, it means that the application interface of the target application is in the background. When the application interface of the target application is in the background, in order to enable the user to conveniently view the business information of the target service, the electronic device 100 needs to intuitively display the business information of the target service to the user. Based on this, the display controller needs to control the system interface to display. Furthermore, the display controller sends display information to the system interface to instruct the system interface to control the persistent service containing the business information of the target service to be displayed on the display screen 194 of the electronic device 100.
[0196] In response to the display information sent by the display controller, the system interface controls persistent services such as cards or capsules to be displayed at the entrance to display the business information of the target service. For example, display the business information of the call driver to pick up the order service of the taxi application.
[0197] Figure 6 and Figure 7 shows the user interface of the electronic device 100 when the call driver to pick up the order service of the taxi application is displayed in the form of a card or a capsule at the entrance in the case of enabling the application service of global reach. It should be noted that the system interface can control the display of cards or capsules according to actual needs to display the business information. When a representative display form of a card and a capsule is shown in the drawings in the embodiments of the present application, it does not constitute a limitation that only a card or only a capsule can be displayed in the user interface shown in the drawings.
[0198] Figure 6 In (A), it corresponds to the user interface displayed in the form of a card at the desktop entrance. Figure 6The business information of the target business shown in (A) includes, but is not limited to: the target application is a taxi application, the target business is to call a driver to accept an order, the service progress of the target business is in the process of calling, and the other optional business is to contact the driver. Since no driver has accepted the order during the calling process, the service progress bar shown in the card (as shown on the left side of "Contact Driver" in the figure) has no progress. The card provides users with a detailed display of business information, enabling users to more quickly and clearly understand the progress of the target business. Figure 6 (B) corresponds to a user interface where the global entry is presented in the form of a capsule. Since the capsule has a relatively small display space, the information shown is limited. Figure 6 The capsule shown in (B) only displays the application icon of the target application, the taxi application, and the service progress of the target business as being in the process of calling. Even so, when the application interface of the target application is in the background, the display of the capsule also provides convenience for users to view the target business. Figure 6 (C) corresponds to a user interface where the global entry is presented in the form of a banner card. As Figure 6 As shown in (C), the banner card displays the business information of the target business, including but not limited to: the service progress of the target business is that the driver has accepted the order, the license plate number of the vehicle that has accepted the order and the duration since the order was accepted, the estimated duration from the current moment to the estimated arrival time of the driver, and the other optional business is to contact the driver. Since the driver has accepted the order during the calling process, the service progress bar shown in the card has progress. In Figure 6 In (B) and Figure 6 In the user interfaces shown in (B) and (C), the application icon occupies the entire page area, and the area available for displaying the business information of the target business is not sufficient to layout a card. Therefore, if the business information is displayed in a continuously shown card, the card needs to be displayed above the application icon, and this display method will block part of the application icon, which may cause inconvenience to users in operation. Based on this, the system interface can, according to actual needs, at the global entry corresponding to the user interfaces shown in Figure 6 (B) and Figure 6 (C), display the business information of the target business of the target application in the form of a capsule with a relatively small display size and generally placed at the top of the user interface, or in the form of a banner card that ends the display after a default duration. Figure 7 (A) corresponds to a user interface where the negative one-screen entry is presented in the form of a card. Figure 7 (B) corresponds to a user interface where the screen-off entry is presented in the form of a capsule. Figure 7 (C) corresponds to a user interface where the notification center entry is presented in the form of a card. Figure 7The user interface in which (D) in the middle corresponds to the lock screen entry and is displayed in the form of a card. It should be noted that the information displayed in the capsule and the card can be updated according to factors such as the service progress and important nodes of the target service. When it is displayed in the form of a banner card, if there is an important node in the service, the banner card will be displayed at the entry and the updated information will be shown. Among them, the important nodes of each service are configured according to the service, and there may also be differences in the important nodes of each service. For example, in the business of calling a driver to pick up an order, the moment of successful call and the driver's acceptance of the order can be configured as an important node, and the estimated duration when the current moment is an integer number of minutes away from the estimated arrival time of the driver can be configured as an important node. When the above important nodes occur, the displayed information is updated. The purpose of giving examples of important nodes in the embodiments of the present application is to analyze the important nodes, and the specific examples do not constitute a limitation on the understanding of the important nodes.
[0199] The above example is that when the application interface of the target application is in the background and the global reach application service is enabled, the display controller controls the system interface, and the service information of the target service of the target application is displayed in the form of a card or a capsule at each entry. It should be noted that when the global reach application service is not enabled and the application interface of the target application is in the background, the display controller controls the system interface, and the service information of the target service of the target application is displayed in the form of a card or a capsule at the specified entry.
[0200] S108. When the query result is that the target application is in the foreground, the display controller stores the display information in the task queue.
[0201] If the query result is that the target application is in the foreground, it means that the application interface of the target application is in the foreground. When the application interface of the target application is in the foreground, to avoid repeated display and excessive display, the display controller stores the display information used to instruct the system interface to display the target service of the target application in the task queue. When the application interface of the target application is in the background, the display information in the task queue is sent to the system interface. Figure 8 It shows the user interface of the electronic device 100 when the target application, the taxi application, is in the foreground and the service information of the target service of calling a driver to pick up an order is displayed through the application interface of the taxi application. At this time, the display controller does not send the display information to the system interface. In the case where the system interface does not receive the display information sent by the display controller, there is no need to control the resident service to display. In this case, the display screen 194 of the electronic device 100 displays the application interface in the foreground, and the service information is displayed through the application interface. The electronic device 100 only shows the service information to the user in one display method.
[0202] S109. The display controller registers the process status of the target application in the listening process manager.
[0203] After the display controller sends display information to the system interface and controls the system interface to display the service information of the target service, or after storing the display information used to indicate the display in the task queue, the display controller registers the process status of the target application in the monitoring process manager. Based on the change in the process status of the target application, the system interface control resident service is timely stopped from displaying or the resident service is controlled to resume displaying the target service, so as to control the electronic device 100 to display the service information through the application interface or through the resident service. Furthermore, it is realized that the electronic device 100 always displays the service information of the target service of the target application to the user in only one display mode.
[0204] Exemplarily, when the display controller receives a display task and obtains the process status of the target application, if the display controller has already registered the process status of the target application in the monitoring process manager, there is no need to register again at this time. If the display controller obtains the process status of the target application by querying the process manager, the process status can be registered for monitoring at this time, so as to obtain the changed process status in time when the process status of the target application changes. Furthermore, the display mode of the service information displayed by the electronic device 100 is controlled in a timely, accurate and efficient manner.
[0205] S110. When the process status of the target application changes, the process manager sends the changed process status of the target application to the display controller.
[0206] When it is monitored that the process status of the target application changes, the process manager sends the changed process status of the target application to the display controller. According to the previous and subsequent changes in the process status, the display controller executes step S111 or step S112 or steps S113 to S115. It should be noted that when the process status of the target application continuously changes, the process manager continuously sends the changed process status to the display controller in real time when the change occurs, and the display controller also continuously selects to execute step S111 or step S112 or steps S113 to S115 according to the previous and subsequent changes in the process status.
[0207] S111. When the target application switches from the background to the foreground, the display controller sends a stop display instruction to the system interface.
[0208] The stop display instruction is used to instruct the system interface to stop displaying the service information of the target service, that is, to instruct the system interface to control the resident service including the service information of the target service to stop being displayed on the display screen 194 of the electronic device 100.
[0209] When the target application switches from the background to the foreground, it means that the application interface of the target application switches from the background to the foreground. When the application interface of the target application switches from the background to the foreground, to avoid repeated and excessive display, on the basis of already controlling the system interface to display, the display controller sends a stop display instruction to the system interface to instruct the system interface to stop displaying the target service of the target application. That is, on the basis of already making the system interface control the persistent service to be displayed on the display screen 194 of the electronic device 100, the display controller sends a stop display instruction to the system interface to instruct the system interface to control the persistent service to stop being displayed on the display screen 194 of the electronic device 100.
[0210] In response to the stop display instruction sent by the display controller, the system interface hides the cards or capsules displayed at the entrance, such as Figure 8 shown, so that the electronic device 100 displays the service information of the target service to the user through the application interface of the target application in the foreground.
[0211] S112. When the target application switches from the foreground to the background, the display controller sends the display information stored in the task queue to the system interface, or sends a resume display instruction to the system interface.
[0212] The resume display instruction is used to instruct the system interface to resume displaying the service information of the target service, that is, to instruct the system interface of the electronic device 100 to control the persistent service containing the service information of the target service to resume being displayed on the display screen 194 of the electronic device 100.
[0213] When the target application switches from the foreground to the background, it means that the application interface of the target application switches from the foreground to the background. When the application interface of the target application switches from the foreground to the background, if the display controller receives, through executing step S105, that the process state of the target application fed back by the process manager is in the foreground, and the current process state change is the first time that the target application switches from the foreground to the background, it indicates that the display controller has not sent the display information to the system interface yet, and the display information is still stored in the task queue. In this case, based on the process state of the target application switching to the background, that is, based on the application interface of the target application switching to the background, the display controller sends the display information stored in the task queue to the system interface. Instruct the system interface to control the cards or capsules to display the service information of the target service at the entrance, so as to control the display screen 194 of the electronic device 100 to display the service information of the target service through persistent services such as cards or capsules.
[0214] When the application interface of the target application switches from the foreground to the background, if the current process state change is not the first time the target application switches from the foreground to the background, it indicates that the display controller has sent display information to the system interface and has stopped the display of the persistent service that controls the card or capsule on the system interface. In this case, the display controller switches to the background based on the process state of the target application, that is, based on the application interface of the target application switching to the background, and sends a resume display instruction to the system interface. It instructs the system interface to resume the display of the card or capsule for displaying the service information of the target service at the entrance. The system interface responds to the resume display instruction sent by the display controller and resumes the display of the card or capsule at the entrance, such as Figure 6 and Figure 7 shown, so that the electronic device 100 displays the service information of the target service to the user through persistent services such as the card or capsule at the entrance.
[0215] S113. When the target application switches from the foreground or from the background to an abnormal exit from operation, the display controller sends a stop display instruction to the system interface.
[0216] S114. When the target application switches from the foreground or from the background to an abnormal exit from operation, the display controller clears the target service of the target application stored.
[0217] S115. When the target application switches from the foreground or from the background to an abnormal exit from operation, the display controller deregisters the process state of the target application in the listening process manager.
[0218] The above steps S113 to S115 have no execution sequence, and the display controller can execute steps S113 to S114, or execute steps S113 and S115, or execute steps S113 to S115, or only execute step S113.
[0219] Among them, the process state of the target application also includes an abnormal exit from operation. If the target application exits from operation abnormally, it means that the application interface is no longer displayed on the display screen 194 of the electronic device 100.
[0220] The exit of an application can be divided into two situations: normal exit and abnormal exit. Normal exit mainly refers to the user closing the running application, and the application automatically closes according to the preset exit logic when the corresponding business in the application has been processed. Normal exit is in line with the user's subjective will to use the electronic device 100. Abnormal exit mainly refers to the application being forced to exit due to abnormal circumstances, such as application incompatibility, downtime, operation conflict, and operation logic error. When the process manager detects that the target application has exited due to an abnormality, it will feedback the process status of the target application's abnormal exit to the display controller.
[0221] When the target application switches from being in the foreground or in the background to exiting due to an abnormality, it is assumed that the user's demand for displaying the target service disappears with the exit of the target application, and the electronic device 100 no longer needs to display the service information of the target service to the user. Based on this, the display controller sends a stop display instruction to the system interface for the last time, so that the system interface controls the resident service for displaying the service information of the target service to stop displaying.
[0222] The presentation controller clears the cached data and the occupied processes in the process of executing the presentation task from the target application, and unregisters the process status of the target application in the monitoring process manager, and releases the resources occupied by the presentation task to release more available resources for other programs to be run or tasks to be executed, so as to improve the performance of the software system of the electronic device 100.
[0223] At this point, the display controller has completed this display task.
[0224] An embodiment of the present application provides a control method for a display mode applied to an electronic device 100. The display controller of the electronic device 100 controls the system interface to display or hide permanent services such as cards and capsules for displaying business information of a target application, so as to control the electronic device 100 to display the business information of the target application through the permanent service, or display the business information of the target application through the application interface. When the user opens the target application of the electronic device 100 and triggers the target service, the display controller extracts, through the management assistant, a display task for displaying the business information of the target service of the target application. Furthermore, the process state of the target application is monitored. When the target application is in the background, the application interface of the target application is in the background. The display controller sends a display information or a resume display instruction to the system interface to instruct the system interface to control the card or capsule for displaying the business information of the target application to be displayed at the entrance. The electronic device 100 displays the business information through the permanent service, and the user can conveniently view the business information through the user interface of the electronic device 100 without opening a specified page through the user interface. When the target application is in the foreground, the application interface of the target application is in the foreground. The display controller sends a stop display instruction to the system interface to instruct the system interface to control the card or capsule to stop displaying at the entrance. The electronic device 100 displays the business information of the target service to the user only in one display mode, i.e., the application interface of the target application. By adopting the above control method for the display mode, on the basis of the display controller controlling the system interface to display, a logic that the two display modes of the application interface of the target application being in the foreground display and the permanent services such as cards and capsules being displayed at the entrance are mutually exclusive is added. By monitoring the change of the process state of the target application, the system interface is controlled to display or stop displaying the target service, which can avoid the over-display of business information. While enabling the user to conveniently view the business information, it also enables the user to obtain more other application programs or other business information, which is beneficial to clearly and efficiently display the business information to the user and is beneficial to improving the user experience.
[0225] It should be noted that in the embodiment of the present application, only a taxi application program is used as the target application, and the service of calling a driver to pick up an order is used as the target service as an example to discuss the execution logic of the control method for the display mode. However, the control method for the display mode in the embodiment of the present application is not limited to displaying the service of calling a driver to pick up an order of the taxi application program. For example, the control method for the display mode can also be applied to displaying the service of playing music of a music application program, displaying the service of viewing the location information of a deliveryman of a food delivery application program, etc. The embodiment of the present application does not limit the application scenario of the control method for the display mode.
[0226] The control method for the display mode in the embodiment of the present application has been described above. Next, a device for executing the above control method for the display mode provided by the embodiment of the present application will be described. Those skilled in the art can understand that the method and the device can be combined and referenced with each other, such asFigure 9 As shown in the figure, the control device 900 for the display mode provided by the embodiment of the present application can execute the steps in the above control method for the display mode.
[0227] As Figure 9 shown in the figure, the control device 900 for the display mode can be used in a communication device, a circuit, a hardware component or a chip. The control device for the display mode includes: a display unit 901 and a processing unit 902. Among them, the display unit 901 is used to support the display steps executed by the control device 900 for the display mode; the processing unit 902 is used to support the information processing steps executed by the control device 900 for the display mode.
[0228] In a possible implementation manner, the control device 900 for the display mode may also include a communication unit 903. Specifically, the communication unit is used to support the control device 900 for the display mode to execute the steps of data sending and data receiving. Among them, the communication unit 903 may be an input or output interface, a pin or a circuit, etc.
[0229] In a possible embodiment, the control device for the display mode may further include: a storage unit 904. The processing unit 902 and the storage unit 904 are connected by a line. The storage unit 904 may include one or more memories, and the memory may be a device or a circuit for storing programs or data in one or more devices. The storage unit 904 may exist independently and be connected to the processing unit 902 of the control device for the display mode through a communication line. The storage unit 904 may also be integrated with the processing unit 902.
[0230] The storage unit 904 may store computer-executable instructions of the method in the electronic device, so that the processing unit 902 executes the method in the above embodiment. The storage unit 904 may be a register, a cache or a RAM, etc., and the storage unit 904 may be integrated with the processing unit 902. The storage unit 904 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, and the storage unit 904 may be independent of the processing unit 902.
[0231] The control device 900 for the display mode provided by the embodiment of the present application can be applied to an electronic device with communication functions. The specific device form of the electronic device and the like can refer to the foregoing related descriptions, which will not be elaborated here.
[0232] An embodiment of the present application also provides an electronic device, which includes one or more processors and a memory; wherein, the memory is coupled to the one or more processors, and the memory is used to store computer program code, and the computer program code includes computer instructions, and the one or more processors call the computer instructions to enable the electronic device to execute the control method of the display mode shown in the foregoing embodiments.
[0233] An embodiment of the present application also provides a chip, which is applied to an electronic device, and the chip includes one or more processors, and the processors are used to call computer instructions to enable the electronic device to execute the control method of the display mode shown in the foregoing embodiments.
[0234] As used in the foregoing embodiments, depending on the context, the term "when..." may be interpreted to mean "if...", or "after...", or "in response to determining...", or "in response to detecting...". Similarly, depending on the context, the phrase "when determining..." or "if detecting (the stated condition or event)" may be interpreted to mean "if determining...", or "in response to determining...", or "when detecting (the stated condition or event)", or "in response to detecting (the stated condition or event)".
[0235] In the foregoing embodiments, all or part of the functions may be implemented by software, hardware, or a combination of software and hardware. When implemented using software, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present application are generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (such as coaxial cable, optical fiber, digital subscriber line) or wirelessly (such as infrared, wireless, microwave, etc.). The computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server or data center that includes one or more integrated available media. The available medium may be a magnetic medium (for example, a floppy disk, a hard disk, a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid state disk (SSD)), etc.
[0236] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by relevant hardware instructed by a computer program. This program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the above method embodiments. The foregoing storage medium includes various media that can store program codes, such as ROM or random access memory RAM, magnetic disks, or optical discs.
[0237] The above specific implementation manners further elaborate on the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above is only the specific implementation manner of the present invention and is not used to limit the protection scope of the present invention. Any modifications, equivalent replacements, improvements, etc. made on the basis of the technical solution of the present invention should be included within the protection scope of the present invention.
Claims
1. A control method for a display mode, characterized in that The method includes: Displaying an application interface of an application on a display screen of an electronic device; a resident service is running on the electronic device, and the resident service has a function of displaying the same display information as that of the application interface; After the application is triggered to display the display information, the display information is displayed through the application interface or the resident service.
2. The method according to claim 1, wherein The displaying the display information through the application interface or the resident service includes: When the application interface is in the foreground, displaying the display information through the application interface; the display screen does not include the resident service; or When the application interface is in the background, displaying the display information through the resident service.
3. The method according to claim 2, characterized in that, The situation where the application interface is in the foreground includes: The situation where the application interface switches from the background to the foreground, or the situation where the application interface is in the foreground after the application is started; The situation where the application interface is in the background includes: the situation where the application interface switches from the foreground to the background.
4. The method according to any one of claims 1 to 3, characterized in that, The method further includes: When the application exits the operation abnormally, ending the display of the display information; the display screen does not include the application interface and the resident service.
5. A control method for a display mode, characterized in that, The method includes: Receiving a display task from an application; the display task is used to trigger and control the display of the display information of the application, the display task is associated with a resident service, and the resident service has a function of displaying the same display information as that of the application interface of the application; Controlling the display screen of the electronic device to display the display information through the application interface or through the resident service.
6. The method according to claim 5, wherein The controlling the display screen of the electronic device to display the display information through the application interface or through the resident service includes: When the application interface is in the foreground, controlling the display screen of the electronic device to display the display information through the application interface; the display screen does not include the resident service; or When the application interface is in the background, controlling the display screen of the electronic device to display the display information through the resident service.
7. The method according to claim 6, wherein The controlling the display screen of the electronic device to display the display information through the resident service includes: Sending the display information to the system interface of the electronic device, so that the system interface controls the resident service to be displayed on the display screen of the electronic device; the resident service includes the display information.
8. The method according to claim 6, wherein Before the controlling the display screen of the electronic device to display the display information through the application interface or through the resident service, the method further includes: Obtaining the process state of the application; the process state includes foreground or background, the process state being foreground indicates that the application interface is in the foreground, and the process state being background indicates that the application interface is in the background.
9. The method according to claim 8, characterized in that, The obtaining the process state of the application includes: Querying the process state of the application; or Registering to monitor the process state of the application, and obtaining the changed process state of the application when it is confirmed that the process state of the application has changed.
10. The method according to claim 9, wherein When the application interface is in the foreground, controlling the display screen of the electronic device to display the display information through the application interface includes: When the application interface switches from the background to the foreground, controlling the display screen of the electronic device to stop displaying the display information through the persistent service; the display information is displayed on the application interface.
11. The method according to claim 10, characterized in that When the application interface switches from the background to the foreground, controlling the display screen of the electronic device to stop displaying the display information through the persistent service; The display information is displayed on the application interface, including: When the application interface switches from the background to the foreground, sending a stop display instruction to the system interface of the electronic device, where the stop display instruction is used to instruct the system interface to control the persistent service to stop being displayed on the display screen; the display screen displays the display information through the application interface in the foreground.
12. The method according to claim 9, characterized in that, Controlling the display screen of the electronic device to display the display information through the application interface includes: Storing the display information in a task queue so that the display screen of the electronic device displays the display information through the application interface.
13. The method according to claim 12, characterized in that, The situation where the application interface is in the background includes: the situation where the application interface first switches from the foreground to the background, or the situation where the application interface non-first switches from the foreground to the background; when the application interface is in the background, controlling the display screen of the electronic device to display the display information through the persistent service includes: When the application interface first switches from the foreground to the background, sending the display information stored in the task queue to the system interface of the electronic device, so that the system interface controls the persistent service to be displayed on the display screen; the persistent service contains the display information; or When the application interface non-first switches from the foreground to the background, sending a resume display instruction to the system interface, where the resume display instruction is used to instruct the system interface to control the persistent service to be displayed on the display screen.
14. The method according to any one of claims 5 to 13, characterized in that, The method further includes: When the application abnormally exits the operation, controlling the display screen of the electronic device to stop displaying the display information; the display screen does not include the application interface and the persistent service.
15. The method according to claim 14, wherein The method further includes: When controlling the display screen to stop displaying the display information, releasing the resources occupied by the display task.
16. An electronic device, characterized in that, The electronic device includes: one or more processors, a memory, and a display screen; The memory is coupled to the one or more processors, the memory is used to store computer program code, the computer program code includes computer instructions, and the one or more processors are used to call the computer instructions to cause the electronic device to execute the method according to any one of claims 1 to 15.
17. A chip, characterized in that, The chip is applied to an electronic device, and the chip includes one or more processors, and the processors are configured to call computer instructions to cause the electronic device to execute the method according to any one of claims 1 to 15.
18. A computer-readable storage medium, comprising instructions, characterized in that, When the instructions run on the electronic device, the electronic device is caused to execute the method according to any one of claims 1 to 15.
19. A computer program product, characterized in that, When the computer program product runs on the electronic device, the electronic device is caused to execute the method according to any one of claims 1 to 15.