Card display method, electronic equipment and computer readable storage medium

By generating card frames in advance before unlocking the electronic device, the problem of slow card loading speed is solved and the user experience is improved.

CN119248390AActive Publication Date: 2025-01-03HONOR DEVICE CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202410246005.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-02-29
Publication Date
2025-01-03
Estimated Expiration
2044-02-29

AI Technical Summary

Technical Problem

Existing electronic devices load cards corresponding to third-party applications slowly after unlocking, resulting in poor user experience.

Method used

The frame of the card is generated in advance before the electronic device is unlocked. By starting the first process, the frame is obtained and the frame is generated, so that the card is displayed directly during unlocking, avoiding the waiting for the frame to generate after unlocking.

Benefits of technology

It significantly speeds up the loading and display speed of cards, shortens user waiting time, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119248390A_ABST
    Figure CN119248390A_ABST
Patent Text Reader

Abstract

The invention provides a card display method, electronic equipment and a computer readable storage medium, which are applied to the technical field of terminals, and the method comprises the following steps: loading a process of a first application in advance before the electronic equipment is unlocked; then, first information is obtained based on the process of the first application, the first information is used for representing the page layout when the first card is displayed in the first application, and a frame body of the to-be-displayed card (such as the first card) is generated in advance based on the obtained first information; therefore, the frame body of the card can be directly displayed in the first application of the electronic equipment when the electronic equipment is unlocked, the loading speed and the display speed of the card (such as a widget card) corresponding to the second application under the condition that the electronic equipment is unlocked can be accelerated, the time for a user to wait for card loading and display under the condition that the electronic equipment is unlocked is greatly shortened, and the user experience is improved. And the user experience is improved to a great extent.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of terminal technology, and in particular, to a card display method, an electronic device and a computer-readable storage medium. Background Art

[0002] Cards corresponding to third-party applications (TPA) can be displayed on the desktop of the smart terminal. Through the cards, content related to the third-party applications can be presented to the user (for example, the card corresponding to the third-party application of news can display key information such as news information of the day), so that the user can quickly learn about the content related to the third-party application in fragmented time without opening the third-party application.

[0003] Currently, after the electronic device is unlocked, it will load and display the card corresponding to the third-party application. In this card display scheme, the card loading speed is slow, resulting in a long time for the card corresponding to the third-party application to be presented on the desktop of the electronic device, which in turn leads to a poor user experience. Summary of the invention

[0004] The present application provides a card display method, an electronic device and a computer-readable storage medium, which can generate a card frame in advance before the electronic device is unlocked, thereby speeding up the display speed of the card when the electronic device is unlocked, further shortening the waiting time of the user when the electronic device is unlocked, and improving the user experience.

[0005] In a first aspect, the present application provides a card display method, which is applied to an electronic device, in which a first application and a second application are installed, and the first application and the second application are different applications; the method comprises the following steps:

[0006] After receiving the first instruction, the electronic device performs a power-on operation;

[0007] During the process of powering on the electronic device, starting a first process; the first process is a process corresponding to the first application;

[0008] Acquire first information based on the first process; the first information is used to represent a page layout related to display of the first card; the first card is a card to be displayed corresponding to the second application;

[0009] Based on the first information, a first frame is generated; the first frame is a widget frame used when the first card is displayed in the first application;

[0010] When the electronic device is unlocked, a first interface is displayed; the first interface includes a first display area, and the first display area includes at least a first card; the first card uses a first frame.

[0011] The present application enables an electronic device to perform a power-on operation by receiving a first instruction. During the power-on process of the electronic device, a process corresponding to the first application, namely, the first process, can be started. On this basis, the first information, namely, the page layout related to the display of the first card, is obtained based on the first process, and the first information can be obtained in advance before the electronic device is unlocked. Furthermore, based on the first information obtained, a first frame is generated, and the first frame can be generated in advance before the electronic device is unlocked. Further, when the electronic device is unlocked, the first interface can be displayed, and the first card using the first frame is directly displayed in the first interface, without generating the first frame when the electronic device is unlocked. Thus, the user can view the frame of the card corresponding to the application without waiting when the electronic device is unlocked, saving the time for the user to wait for the frame of the card to be displayed when the electronic device is unlocked, thereby speeding up the loading speed and display speed of the card when the electronic device is unlocked, further shortening the time for the user to wait for the complete card to be displayed after the electronic device is unlocked, and improving the user experience.

[0012] In some possible implementations, when the electronic device is unlocked, displaying the first interface includes:

[0013] When the electronic device is unlocked, starting a second process; the second process is a process corresponding to the second application;

[0014] Acquire second information based on the second process; the second information is used to represent the content to be displayed in the second application;

[0015] Display a second interface; the second interface includes a second display area, the second display area includes at least a first card, and the content displayed in the first card is generated based on the second information.

[0016] In the above implementation, the second process is started when the electronic device is unlocked; then, the electronic device can obtain the second information through the second process; further, the electronic device can generate the content displayed in the first card based on the second information, and display the content displayed in the first card in the second display area of ​​the second interface. It can be seen that when the electronic device is unlocked, the first card can directly use the first frame generated in advance before the electronic device is unlocked, without generating the first frame. The electronic device can generate the content displayed in the first card on the basis of displaying the first frame, and display the first card on the second interface. Thereby speeding up the loading speed and display speed of the card when the electronic device is unlocked, and improving the user experience.

[0017] In some possible implementations, before displaying the second interface, the method further includes:

[0018] When the displayed content of the first card is empty content or preset content, the content in the first card is refreshed based on the second information.

[0019] In the above implementation, before the process of the second application corresponding to the first card (i.e., the second process) is started, the displayed content of the first card can be empty content or preset content, so that after the second process is started, the electronic device can refresh (or update) the empty content or preset content to the content in the second application (for example, real-time push content) based on the second information.

[0020] In some possible implementations, before obtaining the first information based on the first process, the method further includes:

[0021] Performing identity authentication on the first application according to preset authentication information; the preset authentication information includes a preset signature and / or a preset package name;

[0022] Acquiring first information based on the first process includes:

[0023] When the first application passes the identity authentication, the first information is obtained based on the first process.

[0024] In the above implementation, by performing identity authentication on the first application, it can be ensured that only applications with higher permissions in the electronic device (for example, the first application) can obtain the first information when the electronic device is unlocked, thereby ensuring the security of obtaining the first information.

[0025] In some possible implementations, performing identity authentication on the first application according to preset authentication information includes:

[0026] Determine whether the signature of the first application is the same as the preset signature;

[0027] And / or, determining whether the package name of the first application is the same as a preset package name.

[0028] In the above implementation, a variety of identity authentication methods are provided, which can perform identity authentication on the first application from multiple levels, further ensuring the security of obtaining the first information.

[0029] In some possible implementations, before performing identity authentication on the first application, the method further includes:

[0030] Get the value of the first variable;

[0031] When the value of the first variable is a first logical value, identity authentication is started.

[0032] In the above implementation, by setting the trigger condition of identity authentication, the electronic device starts identity authentication only when the value of the first variable is the first logical value, which can prevent the electronic device from mistakenly starting identity authentication in a scenario where identity authentication is not required.

[0033] In some possible implementations, before obtaining the value of the first variable, the method further includes:

[0034] Determine whether the electronic device is in a locked screen state;

[0035] Get the value of the first variable, including:

[0036] When the electronic device is in a locked screen state, the value of the first variable is obtained.

[0037] In the above implementation, by setting the trigger condition for obtaining the first variable value as the electronic device being in a locked screen state, it can be ensured that the generation of the first frame is completed before the electronic device is unlocked.

[0038] In some possible implementations, the electronic device further includes a card management service and a task management service; when the electronic device is unlocked, starting the second process includes:

[0039] When the electronic device is unlocked, sending a first broadcast signal to the task management service through the card management service;

[0040] When the first broadcast signal is received, the second process is started through the task management service.

[0041] In the above implementation, when the electronic device is unlocked, the electronic device can receive the first broadcast signal sent by the card management service through the task management service to start the second process, so as to prepare for the subsequent generation of the display content of the first card.

[0042] In some possible implementations, obtaining the second information based on the second process includes:

[0043] Receiving a second broadcast signal through a second process, and generating a second instruction based on the second broadcast signal; the second instruction includes second information;

[0044] The second instruction from the second process is received through the first process, and the second instruction is parsed to obtain the second information.

[0045] In the above implementation, the electronic device can receive the second broadcast signal sent by the card management service through the second process; then, the second process can generate a second instruction based on the second broadcast signal; further, the electronic device parses the second instruction from the second process through the first process to obtain the second information, thereby providing a data basis for updating the display content of the card.

[0046] In some possible implementations, before displaying the first interface, the method further includes:

[0047] In response to a first operation by the user, the electronic device performs an unlocking operation; the first operation is used to trigger the electronic device to switch from a locked state to an unlocked state.

[0048] In some possible implementations, obtaining the first information based on the first process includes:

[0049] The first information is obtained by querying a database through the first process, and the database stores relevant information of the to-be-displayed card corresponding to the second application.

[0050] In the above implementation, the electronic device can obtain the first information stored in the database by querying the database through the first process, thereby providing a data basis for the subsequent generation of the first frame.

[0051] In some possible implementations, obtaining the first information based on the first process further includes:

[0052] The third instruction is received through the first process, and the third instruction is parsed to obtain the first information.

[0053] In the above implementation, the electronic device can obtain the third instruction by querying the database through the first process. The third instruction includes the first information obtained from the database. On this basis, the electronic device can parse the third instruction to obtain the first information, thereby providing a data basis for the subsequent generation of the first frame.

[0054] In some possible implementations, the first information includes at least one or more of the following: a position where the first card is displayed in the first application, a size of the first card, a style of the first card, and a package name of the second application.

[0055] In the above implementation, the application (eg, the second application) corresponding to the first card can be determined through the first information, so as to prepare for the subsequent generation of display content of the first card.

[0056] In some possible implementations, the first application is a desktop application in system applications; and the second application is a third-party application.

[0057] In some possible implementations, receiving the first instruction, the electronic device performs a power-on operation, including:

[0058] In response to a second operation of the user, a first instruction is received, and based on the received first instruction, the electronic device performs a power-on operation.

[0059] In the above implementation, executing the power-on operation by the electronic device can provide a safe operating environment for obtaining the first information in advance before the electronic device is unlocked, and generating the first frame in advance based on the obtained first information.

[0060] In a second aspect, the present application provides an electronic device, the electronic device comprising: 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, the computer program code comprises computer instructions, and the one or more processors call the computer instructions to enable the electronic device to execute the card display method in the first aspect and any possible design of the first aspect.

[0061] In a third aspect, the present application provides a chip system, which is applied to an electronic device; the chip system includes one or more processors; the one or more processors are used to call computer instructions so that the electronic device executes the card display method in the first aspect and any possible design of the first aspect.

[0062] Among them, the chip system may include one chip or multiple chips; when the chip system includes multiple chips, this application does not limit parameters such as the type and quantity of the chips.

[0063] In a fourth aspect, the present application provides a computer-readable storage medium, which includes instructions. When the instructions are executed on an electronic device, the electronic device executes the card display method in the first aspect and any possible design of the first aspect.

[0064] In a fifth aspect, the present application provides a computer program product. When the computer program product runs on a computer, it enables the computer to execute the card display method in the first aspect and any possible design of the first aspect.

[0065] It can be understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be elaborated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0066] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0067] Figure 1 A schematic diagram of an application scenario of a card display method provided in one embodiment of the present application;

[0068] Figure 2A schematic diagram of the principle of a card display method provided in one embodiment of the present application;

[0069] Figure 3 A schematic diagram of an application of a card display method provided by an embodiment of the present application;

[0070] Figure 4 A schematic diagram of an application of a card display method provided by an embodiment of the present application;

[0071] Figure 5 A schematic diagram of a hardware system of an electronic device provided in one embodiment of the present application;

[0072] Figure 6 A schematic diagram of a software system of an electronic device provided in one embodiment of the present application;

[0073] Figure 7 A signaling interaction diagram of a card display method provided in one embodiment of the present application;

[0074] Figure 8 A signaling interaction diagram of a card display method provided in one embodiment of the present application;

[0075] Fig. 9 A signaling interaction diagram of a card display method provided in one embodiment of the present application;

[0076] Fig.10 A flowchart of a card display method provided in one embodiment of the present application;

[0077] Fig.11 A schematic diagram of a card display effect provided by an embodiment of the present application;

[0078] Fig.12 A flowchart of a card display method provided in one embodiment of the present application;

[0079] Fig.13 A signaling interaction diagram of a card display method provided in one embodiment of the present application. DETAILED DESCRIPTION

[0080] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.

[0081] The “at…” in the embodiments of the present application may be the instant when a certain situation occurs, or may be a period of time after the occurrence of a certain situation, and the embodiments of the present application are not limited to this.

[0082] In the following, the terms "first", "second", and "third" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first", "second", and "third" may explicitly or implicitly include one or more of the features.

[0083] In order to facilitate the introduction of the solutions of the embodiments of the present application, before introducing the embodiments of the present application, the terms or concepts involved in the embodiments of the present application are first explained.

[0084] 1. A widget (web widget, abbreviated as widget) is a derivative of web2.0, similar to a small application, and can be applied to the field of electronic devices. "Widget", "card", and "card stack" are all forms of widgets, which are used to display various related information, such as text, images, videos, buttons, and maps. Widgets can be displayed in electronic devices in the form of widget cards. A widget card is a card component in an electronic device (for example, an electronic device whose operating system is an Android operating system) that can be embedded in other host applications (for example, desktop applications). A widget card is a card developed in advance by a third-party application provider and corresponds to a third-party application.

[0085] It should be understood that a third-party application is an application created by an external developer or an external development company independent of the operating system developer of the electronic device, which needs to be downloaded and installed by the user in the electronic device. The third-party application can provide specific services to the user.

[0086] It should be noted that the third-party application in the embodiment of the present application can also be called a widget APP.

[0087] It should also be understood that the host application refers to the location where the card (including but not limited to the widget card) is displayed.

[0088] It should be noted that the host application may also be the negative first screen of the electronic device or a smart service assistant in the electronic device, etc., which is not limited to the embodiments of the present application.

[0089] It should also be noted that the desktop application can be called a desktop, a desktop application, or a desktop launcher, etc. For ease of description, they are collectively referred to as desktop applications in the embodiments of the present application.

[0090] Optionally, in some embodiments, the widget card can conveniently display push content related to the third-party application to the user, and can also display the content of a service in the third-party application. Specifically, the widget card is used to display the content of the third-party application without opening the third-party application. In other words, the display content of the widget card comes from the data provided after the process of the third-party application (or the process of the widget APP) is started. Exemplarily, the display content of the widget card may include pictures, text, videos, links, etc. related to the third-party application, which is not limited in the embodiments of the present application.

[0091] For example, when the third-party application is a travel application, the content displayed by the widget card may be hotel order information, air ticket information, and train ticket information (for example, train ticket information and train ticket information). Hotel order information may include the user's check-in time, total number of days of stay, and check-out time. Air ticket information may include flight number, seat number, take-off time, and landing time. Train ticket information may include train number, seat number, departure time, and arrival time.

[0092] Optionally, in another embodiment, the widget card can also serve as an operation entry for a third-party application so that the user can quickly control the third-party application through the widget card. In other words, in response to the user's click or slide operation on the widget card, the electronic device can open the operation interface of the third-party application corresponding to the widget card, so that the user can perform subsequent operations on the third-party application.

[0093] For example, when the widget card is a news push card, in response to a user clicking on the news push card, the electronic device can directly open a news application corresponding to the news push card. At this time, the electronic device can display an operation interface of the news application, so that the user can view the complete content of the news in the operation interface of the news application.

[0094] 2. Negative one screen

[0095] The negative one screen, also known as the "-1 screen", refers to the user interface displayed by the electronic device when the main screen (or main interface) of the electronic device is slid to the right until it slides to the leftmost split screen. The negative one screen may include quick service functions and messages. For example, the negative one screen may include a quick entry to an application in the electronic device. Alternatively, the negative one screen may also include a widget card corresponding to a third-party application.

[0096] It is understood that the above-mentioned method of entering the negative one screen is only an exemplary description, and the embodiments of the present application are not limited thereto. For example, in response to the user opening the negative one screen in the setting application of the electronic device, the electronic device can enter the negative one screen and display the corresponding user interface.

[0097] The card display method of the embodiment of the present application can be applied to the scene of optimizing the display of the card set in the electronic device. By obtaining the page layout of the card set in the electronic device when it is displayed in the first application before the electronic device is unlocked, and based on the obtained page layout, the frame of the card to be displayed (for example, the first card) is generated in advance, the frame of the card (for example, the first frame) can be directly displayed in the first application of the electronic device when the electronic device is unlocked, thereby speeding up the loading speed and display speed of the card (for example, the widget card) corresponding to the second application when the electronic device is unlocked, greatly shortening the time for the user to wait for the card to load and display when the electronic device is unlocked, and greatly improving the user experience.

[0098] Optionally, in some embodiments, the first application and the second application are applications installed in the electronic device, and the first application and the second application are different applications. The first application can be used as a host application for the second application. Exemplarily, the first application is a desktop application in the system application of the electronic device, and the second application is a third-party application in the electronic device.

[0099] It should be noted that the first application may also be a third-party application other than the second application or a negative screen in a system application, etc., and this embodiment of the present application is not limited to this.

[0100] It should also be noted that the card set in the electronic device can be one or more. Each card (for example, the first card) corresponds to a unique application (for example, the second application) installed in the electronic device, that is, each card corresponds to a different application. In the case where the card set in the electronic device is multiple cards, the multiple cards can be displayed in a desktop application of the electronic device in a tiled manner, or they can be displayed in a stacked manner in the desktop application of the electronic device, and the embodiments of the present application are not limited to this.

[0101] Optionally, in some embodiments, each card includes a card frame and card display content. The frames of different cards may be the same or different. The display content of different cards is different.

[0102] It should be noted that the shape of the frame of any card can be a rectangle, a rounded rectangle, a circle or a square, etc. Exemplarily, the size of the frame of the card can be 4*2, or 4*4, etc. The display content of the card can include pictures, icons, text, videos, links, and operation controls, etc. The display content of any card can be the real-time content in the application corresponding to the card, or it can be the key content that the user is concerned about in the application corresponding to the card. This application does not specifically limit the frame of the above-mentioned card and the display content of the card.

[0103] The card display method provided in the embodiment of the present application can be applied to electronic devices. The electronic device may also be referred to as a terminal, user equipment (UE), mobile station (MS) or mobile terminal (MT), etc. Optionally, in some embodiments, the electronic device may be an electronic device with display hardware and corresponding software support. For example, the electronic device may be a mobile phone, a folding screen, a smart screen, a tablet computer, a wearable electronic device, an in-vehicle electronic device, an augmented reality (AR) device, a virtual reality (VR) device, a laptop computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), a home appliance, a projector, etc. The embodiment of the present application does not impose any restrictions on the specific type of electronic device.

[0104] Considering that multiple applications (including host applications and other applications except the host application) may be installed in the electronic device, in order to facilitate the user to quickly obtain the content related to the application from the host application without opening the application, the electronic device can load a card corresponding to the application in the host application, so that the user can quickly obtain the content in the application through the card set in the host application, and quickly access the application through the card.

[0105] It should be noted that the multiple applications may be system applications or third-party applications installed by the user, and this application does not limit this.

[0106] Combine the following Figures 1 to 3 , taking the electronic device as a mobile phone and the host application as a desktop application in the electronic device as an example, the application scenario of the embodiment of the present application is explained.

[0107] See also Figure 1, Figure 1 FIG. 1 is a schematic diagram showing an application scenario of a card display method provided by an embodiment of the present application. When a desktop application, application 1, application 2, application 3, and application 4 are installed in the electronic device 100, the electronic device 100 can display the following: Figure 1 The interface 11 shown in FIG. (1) .

[0108] Optionally, in some embodiments, the interface 11 is any display interface (eg, a main interface) in a desktop application, and the interface 11 may include a card corresponding to each application in the plurality of applications. Figure 1 As shown in FIG. 1 (1), the interface 11 may include a card 101 corresponding to application 1, a card 102 corresponding to application 2, a card 103 corresponding to application 3, and a card 104 corresponding to application 4.

[0109] That is to say, electronic device 100, through card 101 in interface 11, can enable users to quickly learn about relevant content in application 1 from desktop applications, and can also enable users to quickly access application 1 from desktop applications. Exemplarily, application 1 can be a weather application, and correspondingly, card 101 is a weather card. Application 2 can be a sports and health application, and correspondingly, card 102 is a widget card corresponding to the sports and health application. Application 3 can be a memo application, and correspondingly, card 103 is a widget card corresponding to the memo application. Application 4 can be a news application, and correspondingly, card 104 is a widget card corresponding to the news application. The embodiments of the present application are not limited to this.

[0110] like Figure 1 As shown in FIG. 1 (1), in response to a user triggering operation (eg, a long press operation, etc.) on a control 105 on the electronic device 100, the electronic device 100 may enter a restart (or a reboot) process.

[0111] Optionally, in some embodiments, Figure 2 As shown, at time t0, in response to the user's restart operation (or the trigger operation of the control 105), the electronic device 100 can restart the system service. During the period from t0 to t1, the electronic device 100 can restart the system service. After the electronic device 100 restarts, the electronic device 100 can display the following Figure 1 The interface 12 is shown in FIG. (2) in FIG. The interface 12 is a display interface for inputting a password in the electronic device 100. Optionally, in some embodiments, the interface 12 may include a control 106, and the control 106 is used to input an unlock password of the electronic device 100. Exemplarily, the control 106 may be a soft keyboard.

[0112] It should be noted that the unlocking password of the electronic device 100 can be set by the user according to actual needs, and this application does not limit this.

[0113] Optionally, in some embodiments, in response to the user's triggering operation on the control 106, the desktop application in the electronic device 100 may display the following Figure 1 The interface 13 shown in FIG. (3) in FIG. 13 may include a video application, a setting application, a camera application, a phone application, and the like.

[0114] Since the electronic device 100 needs to run many tasks during the restart process, the load of the electronic device 100 is high, which in turn causes the card loading time to be long, and further causes the card display speed to be slow. Therefore, the interface after the electronic device 100 is unlocked, that is, the interface 13, does not directly display the multiple cards set in the desktop application.

[0115] Optionally, in some embodiments, in response to a user triggering operation on the control 106, the desktop application in the electronic device 100 may sequentially obtain page layout information related to the frame of each card and generate a frame of the corresponding card.

[0116] Alternatively, in another embodiment, Figure 2 As shown, after the electronic device 100 restarts the system service, the electronic device 100 can start the process of the desktop application through the system service. That is, in the stage from t1 to t2, the electronic device 100 can start the process of the desktop application through the system service. Further, at time t2, in response to the user's unlocking operation (or, the triggering operation of the control 106), the electronic device 100 can sequentially generate the frame of the card corresponding to each application through the desktop application. That is, in the stage from t2 to t3, the electronic device 100 can generate the frame of the card displayed in the desktop application.

[0117] Combine the following Figure 3 , briefly describe the implementation process of the current card display method.

[0118] like Figure 3 As shown, Figure 3 In the example, identifier A is used to represent a user operation, identifier B is used to represent an operation performed by a desktop application process, identifier C is used to represent an operation performed by a card management service, and identifier D is used to represent an operation performed by a third-party application.

[0119] Optionally, in some embodiments, in response to a user's unlocking operation (such as Figure 3A1 shown in FIG. 1 ), the electronic device 100 can query the database in the card management service (such as Figure 3 After obtaining the information related to the card display, the electronic device 100 can generate a frame of the card (such as the first information) through the process of the desktop application. Figure 3 B2 shown).

[0120] like Figure 3 As shown, in response to the user's unlocking operation (such as Figure 3 A1 shown in FIG. 1 ), the electronic device 100 may send a start broadcast signal (such as Figure 3 After receiving the start broadcast signal, the electronic device 100 may start the process of the third-party application (eg, Figure 3 After the process of the third-party application is started, the electronic device 100 can send an update broadcast signal (such as D1) to the third-party application through the card management service. Figure 3 After receiving the update broadcast signal, the electronic device 100 can send a content refresh instruction (such as C2) to the card management service through a third-party application. Figure 3 Further, the electronic device 100 can transmit a content refresh instruction to the process of the desktop application through the card management service (such as Figure 3 After receiving the content refresh instruction, the electronic device 100 can update the displayed content of the card based on the content refresh instruction through the process of the desktop application (such as Figure 3 B3 shown).

[0121] It should be noted that Figure 3 The card frame generation process (including B1 and B2) and the card display content update process (including C1, C2, D1, D2, C3 and B3) are completely independent and do not affect each other. In other words, the card frame generation process and the card display content update process can be carried out at the same time (such as Figure 3 As shown), the card frame can be generated first and the displayed content of the card can be updated later, or the card frame can be generated later and the displayed content of the card can be updated first.

[0122] It should also be noted that Figure 3 The specific implementation process can be found in the following Figure 7 and Figure 8 The description of is not repeated here. It is understandable that Figure 2In the embodiment, t0<t1<t2<t3, and the specific time values ​​of the above four moments can be any time when the electronic device 100 is used, which is not limited in the present application.

[0123] It should be noted that the time point when the user unlocks the electronic device can be t2 after the electronic device 100 starts the process of the desktop application, or it can be other time points (for example, any time point between t2 and t3) after the electronic device 100 starts the process of the desktop application, and the present embodiment of the application does not limit this. Furthermore, if the time point when the user unlocks the electronic device is any time point between t2 and t3, then Figure 2 The stage t2 to t3 in the example is changed to any one moment between the moment t2 and the moment t3 to the moment t3. At this time, at any one moment between the moment t2 and the moment t3 to the stage t3, the electronic device 100 can generate a frame of a card displayed in the desktop application.

[0124] For example, the electronic device 100 may first obtain the page layout information related to the frame of the card 103 and generate the frame of the card 103. Furthermore, since the process of the application 3 corresponding to the card 103 has not been started, the displayed content in the card 103 is empty. At this time, the electronic device 100 may display the following: Figure 1 The interface 14 shown in FIG. (4) .

[0125] It should be noted that, when the process of the application corresponding to the card is not started, the displayed content in the card can also be the preset content (or default content) in the electronic device 100, and the embodiment of the present application is not limited to this.

[0126] It should also be noted that, when the user is using the electronic device 100 normally, if the user uninstalls the application 4, then after the electronic device 100 is restarted, the electronic device 100 will not display the card 104 corresponding to the application 4.

[0127] Optionally, in some embodiments, after the desktop application in the electronic device 100 sequentially generates the frame of the card corresponding to each application, the electronic device 100 may display the following Figure 1 The interface 15 shown in FIG. (5) in FIG. 15 may include a frame of card 101, a frame of card 102, a frame of card 103, and a frame of card 104.

[0128] It can be seen that there is a delay between unlocking the electronic device 100 and displaying multiple cards in the desktop application of the electronic device 100. Therefore, when the electronic device 100 is unlocked, it takes a certain amount of time to display the frame of each of the multiple cards, resulting in the user having to wait for a certain amount of time when the electronic device is unlocked, resulting in a poor user experience.

[0129] Optionally, in some embodiments, as the process of the application corresponding to each card is started, the electronic device 100 may display the following Figure 1 The interface 16 shown in FIG. (6) in FIG. It should be noted that the interface 16 is the same as the interface 11. For the interface 16, please refer to the relevant description of the interface 11 above, and no further description will be given here.

[0130] Optionally, in another embodiment, in response to the user's triggering operation on the control 106, the electronic device 100 can start the process of the application corresponding to each card through the desktop application, thereby updating the displayed content of each card based on the relevant content of the application corresponding to each card. Figure 2 As shown, at time t2, in response to the user's unlocking operation (or the triggering operation of the control 106), the electronic device 100 can also start the process of the application corresponding to each card through the desktop application to update the display content of each card. In other words, the electronic device 100 can update the display content of the card from empty content or preset content to the content to be displayed in the application corresponding to the card.

[0131] It should be noted that the display content of the card can be divided into a title area, a content area, and an operation area, etc. The specific content, layout, and operation controls of each area can be set in advance by those skilled in the art according to actual usage requirements, and this application does not limit this. Figure 1 As shown in (1) of FIG. 1 , the title of card 101 is the current city or region, and the content of card 101 is time, date, temperature, etc. The title of card 102 is health, and the content of card 102 is steps, calories, kilometers, etc. The operation controls in card 103 include an add control. The operation controls in card 104 include an add control and a search control, etc.

[0132] From the above, it can be seen that when the electronic device 100 is unlocked, it takes a certain amount of time to display the frame of each card among the multiple cards, and it takes a longer time to start the process of the application corresponding to each card. Therefore, it takes a long loading time to fully display the multiple cards that have been set in the desktop application, resulting in a slower display speed of the cards, which further causes the user to wait too long when the electronic device is unlocked, resulting in a poor user experience.

[0133] It should be understood that the above-mentioned interfaces and controls in each interface are examples and do not constitute a limitation on the interfaces in the embodiments of the present application. In another embodiment of the present application, based on different application scenarios, each interface may include more or fewer controls than those in the above-mentioned examples, and the present application does not impose specific limitations on them. Figure 1 As shown in FIG. (1) of FIG. 1 , the interface 11 may also include system applications (including but not limited to video applications, setting applications, camera applications, and phone applications, etc.) pre-installed in the electronic device. Figure 1 As shown in FIG. 2 (2), the controls 106 in the interface 12 may include emergency call controls and delete controls, etc., which are not limited in this embodiment of the present application.

[0134] In view of this, the card display method provided in the embodiment of the present application obtains relevant information of the card during the startup process of the electronic device (for example, the page layout when displaying the card in the host application). Furthermore, based on the relevant information of the card, a frame of the card to be displayed (for example, the first card) is generated. Then, when the electronic device is unlocked, the card using the frame generated above can be directly displayed in the interface of the electronic device. Thus, by advancing the step of generating the frame of the card to be displayed before the electronic device is unlocked, the loading speed and display speed of the card corresponding to the application (for example, the first card corresponding to the second application) after the electronic device is unlocked can be accelerated, thereby greatly improving the user experience.

[0135] Combine the following Figure 4 , briefly describes the implementation process of the card display method in the embodiment of the present application.

[0136] like Figure 4 As shown, Figure 4 In the example, the identifier E is used to represent a user operation, the identifier F is used to represent an operation performed by a desktop application process, the identifier G is used to represent an operation performed by a card management service, and the identifier H is used to represent an operation performed by a third-party application.

[0137] Optionally, in some embodiments, in response to a user's restart operation (such as Figure 4 E1 shown), the electronic device 100 can start the process of the desktop application (such as Figure 4 F1 shown).

[0138] like Figure 4 As shown, after starting the process of the desktop application, the electronic device 100 can query the database in the card management service (such as Figure 4After obtaining the information related to the card display, the electronic device 100 can generate a frame of the card (such as the first information) through the process of the desktop application. Figure 4 F2 shown).

[0139] like Figure 4 As shown, in response to the user's unlocking operation (such as Figure 4 E2 shown), the electronic device 100 can send a start broadcast signal (such as Figure 4 After receiving the start broadcast signal, the electronic device 100 may start the process of the third-party application (eg, Figure 4 After the process of the third-party application is started, the electronic device 100 can send an update broadcast signal to the third-party application through the card management service (such as Figure 4 After receiving the update broadcast signal, the electronic device 100 can send a content refresh instruction (such as G2) to the card management service through a third-party application. Figure 4 Further, the electronic device 100 can transmit a content refresh instruction to the process of the desktop application through the card management service (such as Figure 4 After receiving the content refresh instruction, the electronic device 100 can update the displayed content of the card (such as Figure 4 F3 shown).

[0140] It should be noted that Figure 4 The card frame generation process (including F1, F2 and F3) is executed before the electronic device is unlocked 100, and the card display content update process (including G1, H1, G2, H2, G3 and F4) is executed when the electronic device is unlocked.

[0141] It should also be noted that Figure 4 The specific implementation process can be found in the following Fig. 9 The description is not repeated here.

[0142] Figure 4 and Figure 3 The difference is that Figure 4 The electronic device 100 generates the card frame in advance before the electronic device 100 is unlocked. The card frame is loaded and generated in advance, which can speed up the direct display of the card frame when the electronic device is unlocked, thereby speeding up the card display speed, greatly shortening the time the user needs to wait when the electronic device is unlocked, and improving the user experience.

[0143] The above describes in detail the application scenarios involved in the embodiments of the present application. Before introducing the card display method in the embodiments of the present application, the execution subject involved in the embodiments of the present application, that is, the electronic device, is first introduced. Figure 5 , which introduces in detail the hardware system of the electronic device in the embodiments of the present application.

[0144] See also Figure 5 , Figure 5 A hardware system schematic diagram of an electronic device provided in an embodiment of the present application is shown.

[0145] like Figure 5 As shown, 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, an earphone 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. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L and a bone conduction sensor 180M, etc.

[0146] It should be noted that Figure 5 The structure shown does not constitute a specific limitation on the hardware system of the electronic device 100. In other embodiments of the present application, the hardware system of the electronic device 100 may include: Figure 5 The components shown are more or less than the components shown, or the hardware system of the electronic device 100 may include Figure 5 A combination of some of the components shown, or a hardware system of the electronic device 100 may include Figure 5 Subcomponents of some of the components shown. For example, Figure 5 The illustrated proximity light sensor 180G may be optional. Figure 5 The components shown may be implemented in hardware, software, or a combination of software and hardware.

[0147] The processor 110 may include one or more processing units. For example, the processor 110 may include at least one of the following processing units: an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and a neural-network processing unit (NPU). Different processing units may be independent devices or integrated devices.

[0148] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.

[0149] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0150] Figure 5 The connection relationship between the modules shown is only a schematic illustration and does not constitute a limitation on the connection relationship between the modules of the electronic device 100. Optionally, the modules of the electronic device 100 may also adopt a combination of multiple connection modes in the above embodiments.

[0151] The electronic device 100 can realize the display function through the GPU, the display screen 194 and the application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs, which execute program instructions to generate or change display information.

[0152] The display screen 194 can be used to display images or videos. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a mini light-emitting diode (Mini LED), a micro light-emitting diode (Micro LED), a micro OLED or a quantum dot light emitting diode (QLED).

[0153] In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1. In some embodiments, the unfolded state of the display screen 194 may be as follows: Figure 1 Figure (1) to Figure 1 Any of the six states shown in Figure (6) in .

[0154] The electronic device 100 can realize the shooting function through the ISP, the camera 193, the video codec, the GPU, the display screen 194 and the application processor.

[0155] The electronic device 100 can implement audio functions, such as music playing and recording, through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D, and the application processor.

[0156] The touch sensor 180K is also called a touch control device. The touch sensor 180K can be set on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, which is also called a touch control screen. The touch sensor 180K is used to detect a touch operation acting on or near it. The touch sensor 180K can pass the detected touch operation to the application processor to determine the type of touch event. In other embodiments, the touch sensor 180K can also be set on the surface of the electronic device 100 and set at a different position from the display screen 194.

[0157] Exemplarily, the touch sensor 180K can receive the user's operation of moving or modifying a card in the display screen 194, and transmit the detected card movement or modification operation to the application processor, so that the application processor performs corresponding processing based on the card movement or modification operation.

[0158] The key 190 includes a power key and a volume key. The key 190 may be a mechanical key or a touch key. The electronic device 100 may receive a signal input by the key 190 and implement a function related to the signal input by the key 190.

[0159] It should be noted that Figure 5 The key 190 in is equivalent to Figure 1 (1) The control 105 in the figure. That is, in response to the user's triggering operation on the case 190, the electronic device 100 can perform a power-on operation.

[0160] Motor 191 can generate vibration. Motor 191 can be used for incoming call reminders and can also be used for touch feedback. Motor 191 can generate different vibration feedback effects for touch operations acting on different applications. Motor 191 can also generate different vibration feedback effects for touch operations acting on different areas of the display screen 194. Different application scenarios (for example, time reminders, receiving messages, alarm clocks, and games) can correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.

[0161] Optionally, in some embodiments, the processor 110 is used to obtain relevant information of the card in advance before the electronic device is unlocked (for example, the page layout when the card is displayed in the first application), and based on the relevant information of the card obtained, generate a frame of the card to be displayed (for example, the first card) in advance. Thus, the frame of the card can be directly displayed in the first application of the electronic device when the electronic device is unlocked, and the loading speed and display speed of the card corresponding to the second application (for example, the widget card) can be accelerated when the electronic device is unlocked, which greatly shortens the time for the user to wait for the card to load and display when the electronic device is unlocked, and greatly improves the user experience.

[0162] The hardware system of the electronic device 100 is described in detail above, and the software system of the electronic device 100 is introduced below. The software system can adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present application takes the layered architecture as an example to exemplarily describe the software system of the electronic device 100.

[0163] See also Figure 6 , Figure 6 A schematic diagram of a software system of an electronic device provided in an embodiment of the present application is shown.

[0164] The software system of the electronic device 100 can be divided into several layers, each with a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, Figure 6 As shown, the software system of the electronic device 100 can be an Android system architecture, and the Android system architecture can be divided into five layers, from top to bottom, namely, application layer (application, APP), application framework layer (application framework), system layer, kernel layer (linux kernel) and hardware layer (hardware).

[0165] The application layer may include multiple applications installed in the electronic device 100. For example, the multiple applications may be a phone application, a desktop application, a camera application, a calendar application, a music application, a gallery application, and a news application.

[0166] It can be understood that the multiple applications in the application layer can be third-party applications (such as the second application) installed by the user, or system applications (such as the first application), and the first application can be a desktop application.

[0167] like Figure 6 As shown, the desktop application may include a card management module.

[0168] Optionally, in some embodiments, the card management module is used to query the page layout of the card when it is displayed in the desktop application from the database of the card management service.

[0169] Optionally, in another embodiment, before the loading task file sends the query instruction to the card management service, the loading task file may also send a start listening instruction to the card management service. The start listening instruction is used to monitor the interaction between the process of the desktop application and the card management service.

[0170] It should be noted that the above query instruction and start monitoring instruction only need to be sent once each time the electronic device performs a power-on operation.

[0171] The application framework layer is a framework layer for supporting the operation of multiple applications in the application layer. The application framework layer can provide an application programming interface (application programming interface, API) and a programming framework for multiple applications in the application layer. Exemplarily, the programming framework can be an open graphics library framework for embedded systems (OpenGL ES framework). The open graphics library framework for embedded systems can include multiple basic classes for creating and operating graphics.

[0172] Optionally, in some embodiments, the electronic device 100 may render the card using a rendering tool. Exemplarily, the rendering tool may be an open graphics library (OpenGL).

[0173] The application framework layer (or system service) may include a window manager, a content manager, a phone manager, a resource manager, a view system, a widget manager service, and an activity manager service.

[0174] The window manager is used to manage window programs. The window manager is also used to feed back the user's operations on the electronic device to the desktop application so that the desktop application performs corresponding operations according to the user's operations on the electronic device.

[0175] The content manager is used to store and obtain data, and make these data accessible to the application program. Exemplarily, the data stored in the content manager may include video, image, audio, browsing history, ticket information, and hotel information, etc.

[0176] The phone manager is used to provide communication functions of the electronic device, for example, the management of call status (including answering or hanging up, etc.).

[0177] The view system is used to build applications. The view system may include visual controls. For example, the visual controls may be controls for displaying text and controls for displaying images.

[0178] The resource manager can provide various resources for the application. Exemplarily, the resources provided by the resource manager may include localized strings, icons, pictures, layout configuration files, video files, etc.

[0179] Optionally, in some embodiments, the card management service is used to centrally manage cards (e.g., widget cards, suggestion cards, and weather cards), and is used to store card IDs and information about applications corresponding to the cards (e.g., signatures of applications corresponding to the cards and package names of applications corresponding to the cards). Figure 1 The weather card can be a card 102, a card 103 or a card 104 as shown in (1) of FIG. Figure 1 The card 101 shown in FIG. (1) in FIG.

[0180] like Figure 6 As shown, the card management service may include a specific implementation class of the card service interface (app widgetservice impl). The specific implementation class of the card service interface may include a scheme configuration switch module and / or a custom authentication module. The scheme configuration switch is used to set a logical value, and based on the set logical value, determine whether to adopt the card display method of the embodiment of the present application or whether to start identity authentication.

[0181] It should be noted that the logical value can be set to a logical value of true or a logical value of false.

[0182] In the case where the card management service includes both a solution configuration switch module and a custom authentication module, and the logical value in the solution configuration switch module is set to true, the card management service can start the custom authentication module to complete the identity authentication of the desktop application. In the case where the card management service includes both a solution configuration switch module and a custom authentication module, and the logical value in the solution configuration switch module is set to false, the card management service can feedback the query failure to the desktop application, and the steps of the card display method in the embodiment of the present application are terminated.

[0183] In the case where the card management service includes a scheme configuration switch module, when the card management service determines that the logical value in the scheme configuration switch module is set to true, the card management service can feedback to the card management module in the desktop application the page layout of the queried card when it is displayed in the desktop application. In the case where the card management service includes a scheme configuration switch module, when the card management service determines that the logical value in the scheme configuration switch module is set to false, the card management service can feedback to the card management module in the desktop application that the query failed, and the steps of the card display method in the embodiment of the present application are terminated.

[0184] It should be noted that in order to ensure the normal implementation of the card display method in the embodiment of the present application, the logical value in the scheme configuration switch module is usually set to true.

[0185] In the case where the card management service includes a custom authentication module, the card management service can start the custom authentication module to complete identity authentication for the desktop application.

[0186] Exemplarily, the card management service can determine whether the signature of the desktop application is the same as the preset signature in the custom authentication module. If the signature of the desktop application is the same as the preset signature in the custom authentication module, it means that the identity authentication is passed, and the card management service can feedback the page layout of the queried card when it is displayed in the desktop application to the card management module in the desktop application. If the signature of the desktop application is different from the preset signature in the custom authentication module, it means that the identity authentication has not passed, and the card management service can feedback the query failure to the card management module in the desktop application, and the steps of the card display method in the embodiment of the present application are terminated.

[0187] It should be noted that the above-mentioned identity authentication is only used as an exemplary description, and the embodiments of the present application are not limited to this. For example, the card management service can also complete the identity authentication of the desktop application through the package name of the desktop application. The specific implementation principle is the same as the implementation principle of the above-mentioned identity authentication using the signature of the desktop application. Please refer to the relevant description above, and no further description will be given here.

[0188] Optionally, in another embodiment, the card management service is used to receive the user's operation information on the card in the desktop application and save the card operation information. The card management service is also used to provide a calling interface for the desktop application to query the relevant information of the card.

[0189] like Figure 6 As shown, the card management service may also include a database. The database is used to store relevant information of the card, such as the page layout when the card is displayed in the desktop application and the third-party application corresponding to the card.

[0190] It should be noted that the above example is described by integrating the database into the card management service, and the embodiments of the present application are not limited to this. Figure 6 In the application framework layer of the software system shown.

[0191] Optionally, in some embodiments, a task management service is used to start a process for each application in the application layer.

[0192] The application framework layer may also include a third-party application manager (app widget manager). The third-party application manager is used to provide an interface for setting cards in desktop applications and is responsible for the generation of cards and the updating of the displayed content of the cards.

[0193] It should be noted that the third-party application manager can generate a unique identifier for each card (e.g., card ID), so that the user can perform corresponding trigger operations on the card (e.g., click, move or modify, etc.), and the third-party application manager can promptly know which card the operation is performed on.

[0194] The system layer may include a system library and an Android runtime. The system library may include multiple functional modules. Exemplarily, the system library may include a three-dimensional graphics processing library (OpenGL ES), a font library, a surface manager, a media library, a two-dimensional graphics engine, and a first component.

[0195] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, image synthesis and layer processing, etc. The font library is used to implement the input of different fonts.

[0196] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.

[0197] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG or PNG, etc.

[0198] A 2D graphics engine is a drawing engine for 2D drawings.

[0199] The first component is used to implement rendering and display of a graphical user interface (GUI). Exemplarily, the first component may be a surface component (surface flinger).

[0200] It should be noted that when a card is displayed in a desktop application, the desktop application can also call a 3D graphics processing library, a font library, a media library, etc. in the application framework layer to complete the rendering of the card.

[0201] The Android runtime can include a core library and a virtual machine. The Android runtime is responsible for scheduling and management of the Android operating system. The core library includes the function functions that the Java language needs to call and the Android core library. 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 object life cycle management, stack management, thread management, security and exception management, and garbage collection.

[0202] It should be noted that when the Java language is used to implement the card display method of the embodiment of the present application, the three files of the desktop file (launcher.java), the loading template file (loader model.java) and the loading task file (loadertask.java) can be Java files. The specific implementation class of the card service interface (app widgetservice impl.java) can be a Java class. Those skilled in the art can also use other languages ​​to implement the above-mentioned card display method according to needs, and the embodiment of the present application does not limit this.

[0203] The kernel layer is an abstract layer between hardware and software. Exemplarily, the kernel layer may include driver modules such as a graphics processor driver (GPU driver), a display driver, a camera driver, an audio driver, and a sensor driver.

[0204] The hardware layer includes display screens, etc. The hardware layer is used to define the connection hardware between each module (e.g., display screen) and the processor. The hardware layer includes display screens and hardware interfaces, etc. Exemplarily, the hardware interface can be a USB interface or a UART interface.

[0205] The card display method of the embodiment of the present application can be executed in the application layer and the application framework layer. In some embodiments, before the electronic device is unlocked, the first application (for example, a desktop application) obtains the page layout of the card set in the electronic device when it is displayed in the first application from the database of the card management service in advance, and based on the page layout of the card when it is displayed in the first application, generates in advance the frame of the card to be displayed (for example, the first card). Thereby, the frame of the card can be directly displayed in the first application of the electronic device when the electronic device is unlocked, and then the loading speed and display speed of the card (for example, a widget card) corresponding to the second application (for example, a third-party application) when the electronic device is unlocked can be accelerated, which greatly shortens the time for the user to wait for the card to load and display when the electronic device is unlocked, and greatly improves the user experience.

[0206] It should be understood that Figure 6 The hierarchical structure shown does not constitute a specific limitation on the software system of the electronic device 100. In other embodiments of the present application, the software system of the electronic device 100 may include: Figure 6 The layered architecture shown may be more or less than the architecture shown, or each layer of the software system of the electronic device 100 may include more than Figure 6 The component structures shown may be more or less structures, and the embodiments of the present application are not limited thereto.

[0207] Based on the description of the above software system, Figure 7, introduces the specific implementation process of the current card display method. Please refer to Figure 7 , Figure 7 The signaling interaction diagram of the current card display is shown. The signaling interaction diagram of the embodiment of the present application is Fig.13 , see the relevant description below.

[0208] It should be understood that Figure 7 The signaling interaction process provided in can be applied to Figure 2 In. Figure 2 Taking the electronic device 100 in the example, it is assumed that the electronic device 100 has a first application and a second application installed therein, and the first application is a desktop application and the second application is a third-party application. Figure 5 In the software architecture layer of the electronic device 100 shown, Figure 7 The desktop applications in Figure 5 The application layer in the software system.

[0209] like Figure 7 As shown, the specific steps of displaying a card corresponding to a third-party application in a desktop application in an embodiment of the present application are as follows:

[0210] Step 11, after setting the card corresponding to the third-party application in the desktop application, the user can restart the electronic device 100.

[0211] by Figure 1 Taking the interface 11 shown in FIG. 1 (1) as an example, the user can long press the control 105 on the electronic device 100, so that the electronic device 100 responds to the user's long press operation and restarts the electronic device 100.

[0212] It should be understood that the above example is only described by taking the user long pressing the control 105 on the electronic device 100 as an example, and the embodiment of the present application is not limited thereto, and the electronic device 100 may also be restarted in other ways. For example, the user controls the electronic device 100 to restart by voice.

[0213] Step 12: In response to the user's restart operation on the electronic device 100, the electronic device 100 may execute a restart process. During the restart process of the electronic device 100, the electronic device 100 may start a system service (system server). The system service is equivalent to Figure 5 The application framework layer in the software system shown.

[0214] Step 13, after starting the system service, the electronic device 100 can start the process of the desktop application through the task management service in the system service. The task management service is located in Figure 5 The application framework layer in the software system shown in Figure 1. The desktop application is located in Figure 5 The application layer in the software system shown.

[0215] Step 14, after the desktop application process is started, the user can unlock the electronic device 100. The desktop application process is located at Figure 5 The application layer in the software system shown.

[0216] Step 15: In response to the user unlocking the electronic device 100, the electronic device 100 may query the database in the card management service through the desktop application. The card management service is located at Figure 5 The application framework layer in the software system shown.

[0217] In step 16, the electronic device 100 can feed back the page layout when the queried card is displayed to the desktop application through the card management service.

[0218] Step 17, after receiving the page layout when the card is displayed, the electronic device 100 can generate a frame of the card based on the page layout when the card is displayed corresponding to the third-party application through the desktop application.

[0219] Step 18: In response to the user unlocking the electronic device 100, the electronic device 100 may send a start broadcast signal to the task management service in the system service through the card management service in the system service.

[0220] Step 19: After receiving the start broadcast signal, the electronic device 100 can start the process of the third-party application through the task management service in the system service.

[0221] Step 20: After starting the process of the third-party application, the electronic device 100 may send an update broadcast signal to the third-party application through the card management service in the system service.

[0222] Step 21: After receiving the update broadcast signal, the third-party application may generate a refresh instruction, which includes the display content of the card to be updated.

[0223] Step 22, after generating the refresh instruction, the electronic device 100 can send the card refresh instruction to the desktop application through the third-party application.

[0224] Optionally, in some embodiments, the electronic device 100 may send a card refresh instruction to the card management service through a third-party application. The electronic device 100 may pass the card refresh instruction to the desktop application through the card management service. Thus, the desktop application may receive the card refresh instruction and continue to perform subsequent operations.

[0225] Step 23, after receiving the card refresh instruction, the electronic device 100 can parse the card refresh instruction and update the displayed content of the card based on the parsing result.

[0226] It should be understood that the embodiments of the present application do not limit Figure 7 The execution order of steps 15 to 17 and steps 18 to 23 shown in the figure may depend on the actual application scenario. For example, steps 15 to 17 may be performed first, and steps 18 to 23 may be performed later; for another example, steps 15 to 17 may be performed later, and steps 18 to 23 may be performed first; for another example, steps 12 and steps 18 to 23 may be performed simultaneously.

[0227] Step 24: Display the card with updated display content in the application of the electronic device 100. The card with updated display content uses the frame of the card generated in step 17.

[0228] It should be understood that here, the user restarting the electronic device in step 11 is used as an example to trigger the startup system service in step 12, and the embodiments of the present application are not limited to this. For example, when the electronic device is already turned off, the user can long press the electronic device to turn on the electronic device to trigger the startup system service in step 12.

[0229] Based on the description of the above signaling interaction diagram, it can be seen that when the electronic device is unlocked, the user needs to wait for a certain period of time before the frame of the card corresponding to the third-party application is displayed in the desktop application of the electronic device. In addition, since the complete card also includes the display content of the card, displaying the display content of the card in the generated card frame requires starting the third-party application corresponding to the card, resulting in the user having to wait longer to view the complete card in the desktop application, resulting in a poor user experience.

[0230] Combine the following Figure 8 , taking the first process as a desktop application process as an example to introduce the specific implementation process of the current card display method.

[0231] It should be understood that Figure 8 The signaling interaction process provided in can be applied to Figure 2 middle, Fig. 9 The signaling interaction process provided in can be applied to Figure 2 middle.

[0232] like Figure 8As shown, the process of the desktop application may include a desktop file (or, launcher file), a loading template file (or, loader model file) and a loading task file (or, loader task file). The third-party application manager is located in Figure 6 The specific implementation class of the card service interface is located in the application framework layer of the software system shown in FIG. Figure 6 In the application framework layer of the software system shown.

[0233] See also Figure 8 , Figure 8 The signaling interaction diagram currently displayed by the card is shown.

[0234] like Figure 8 As shown, currently, the specific steps to display the cards corresponding to third-party applications in the desktop application are as follows:

[0235] Step 31, when the electronic device 100 is unlocked (unlock), the electronic device 100 can send a start loading instruction (startloader) to the loading template file in the desktop application through the desktop file in the process of the desktop application.

[0236] It should be noted that the triggering premise of step 31 is that the electronic device is unlocked. In other words, the triggering operation of step 31 is that the user Figure 1 In the case where the electronic device 100 is in an unlocked state, step 31 will not be triggered, and the subsequent steps will not be triggered either.

[0237] Step 32, after receiving the start loading instruction, the electronic device 100 may send a run instruction (run) to the loading task file in the process of the desktop application by loading the template file.

[0238] Step 33, after receiving the run instruction, the electronic device 100 can send a get instruction to the specific implementation class of the card service interface in the card management service through the task loading file. The get instruction is used to get the configuration file (get installed providers for profile) of the third-party application installed in the electronic device 100. The configuration file of the third-party application includes the page layout when the card corresponding to the third-party application is displayed in the desktop application.

[0239] In some embodiments, Figure 8As shown, the electronic device 100 can send an acquisition instruction to the third-party application manager through the task loading file, and pass the acquisition instruction to the specific implementation class of the card service interface through the third-party application manager, so that the specific implementation class of the card service interface can obtain the acquisition instruction.

[0240] Step 34, after receiving the acquisition instruction, the electronic device 100 may acquire the configuration files of the installed third-party application programs through the database of the card management service that is a specific implementation of the card service interface.

[0241] In step 35, the electronic device 100 may send the acquired configuration file of the installed third-party application to the loading task file through the specific implementation class of the card service interface.

[0242] In some embodiments, Figure 8 As shown, the electronic device 100 can send the acquired configuration file of the installed third-party application to the third-party application manager through the specific implementation class of the card service interface, and pass the configuration file to the loading task file through the third-party application manager so that the loading task file can obtain the configuration file.

[0243] In step 36, the electronic device 100 can load and bind the workspace by loading the task file based on the configuration file of the installed third-party application. In other words, the electronic device 100 can generate a frame of a card corresponding to the third-party application by loading the task file based on the configuration file of the installed third-party application.

[0244] In summary, when the electronic device is unlocked, a frame of a card corresponding to a third-party application is generated and displayed in the desktop application, but Figure 8 The current card display method shown will cause the card to be displayed slowly after the electronic device is unlocked, further causing the user to wait too long, resulting in a poor user experience.

[0245] Combine the following Fig. 9 Description: The specific implementation process of the card display method in the embodiment of the present application.

[0246] See also Fig. 9 , Fig. 9 A signaling interaction diagram of a card display provided in an embodiment of the present application is shown.

[0247] like Fig. 9 As shown, the specific steps of displaying a card corresponding to a third-party application in a desktop application in an embodiment of the present application are as follows:

[0248] Step 41, in the stage where the desktop application in the electronic device 100 creates a user interface (or, the oncreate stage), the electronic device 100 can send a start loading instruction to the loading template file in the desktop application through the desktop file in the process of the desktop application.

[0249] It should be noted that the triggering premise of step 41 is that the electronic device 100 is turned on. In other words, the triggering operation of step 41 is the user in the above Figure 1 (1) in FIG. 1 is a trigger operation for the control 105. When the electronic device 100 is in the off state, step 41 will not be triggered, and the subsequent steps will not be triggered either.

[0250] Step 42, after receiving the start loading instruction, the electronic device 100 may send a run instruction to the loading task file in the process of the desktop application by loading the template file.

[0251] Step 43: after receiving the running instruction, the electronic device 100 may send an acquisition instruction to the specific implementation class of the card service interface in the card management service through the task loading file.

[0252] It should be understood that the specific implementation process of step 43 is the same as the specific implementation process of step 33. Please refer to the relevant description of step 33, which will not be repeated here.

[0253] Step 44, after receiving the acquisition instruction, the electronic device 100 can verify the permission (ensure permission) of the desktop application through the specific implementation class of the card service interface to ensure that the desktop application has the permission to obtain the configuration file of the installed third-party application.

[0254] Step 45: When the desktop application has the acquisition permission, the electronic device 100 can obtain the configuration file of the installed third-party application from the database of the card management service through the specific implementation class of the card service interface.

[0255] In step 46, the electronic device 100 may send the acquired configuration file of the installed third-party application to the loading task file through the specific implementation class of the card service interface.

[0256] It should be understood that the specific implementation process of step 46 is the same as the specific implementation process of step 35. Please refer to the relevant description of step 33, which will not be repeated here.

[0257] In step 47, the electronic device 100 can load and bind the workspace by loading the task file based on the configuration file of the installed third-party application. In other words, the electronic device 100 can generate a frame of a card corresponding to the third-party application by loading the task file based on the configuration file of the installed third-party application.

[0258] In summary, at the stage when the desktop application in the electronic device 100 creates a user interface, that is, before the electronic device 100 is unlocked, a frame of a card corresponding to the third-party application is generated in advance, so that after the electronic device is unlocked, the frame of the card corresponding to the third-party application can be directly displayed in the desktop application, thereby speeding up the display speed of the card, further shortening the user's waiting time, and improving the user experience.

[0259] Combination of the above Fig. 9 The specific implementation process of generating a frame of a card corresponding to a third-party application before unlocking the electronic device is introduced. Figures 10 to 13 , describes in detail the card display method of an embodiment of the present application.

[0260] See also Fig.10 , Fig.10 FIG. 1 is a flowchart of a card display method provided by an embodiment of the present application. Fig.10 As shown, the card display method in the embodiment of the present application can be applied to Figure 5 The electronic device shown in FIG. 1 has a first application and a second application installed in the electronic device. The first application and the second application are both located in Figure 6 The software system shown is in the application layer.

[0261] In the case where the first application and the second application have been installed in the electronic device, the card display method in the embodiment of the present application includes the following steps:

[0262] S101, receiving a first instruction, and the electronic device performs a power-on operation.

[0263] Optionally, in some embodiments, the first instruction may be a power-on instruction. In the case where the first instruction is a power-on instruction, the first instruction is used to trigger a power-on process of the electronic device.

[0264] Optionally, in another embodiment, the first instruction may also be a restart instruction. In the case where the first instruction is a restart instruction, the first instruction is used to trigger a restart process of the electronic device.

[0265] The electronic device may receive a first instruction from a user, and based on the received first instruction, the electronic device may perform a power-on operation.

[0266] Optionally, in some embodiments, Fig.11 As shown in FIG. (1), in the interface 21, in response to the second operation of the user (for example, the user triggers the control 205 in the interface 21), the electronic device can receive a first instruction from the user. After receiving the first instruction, the electronic device can perform a power-on operation based on the received first instruction.

[0267] It should be noted that the above description is based on the example of the electronic device being in normal use. Since the interface 21 is a display interface of the electronic device in normal use, the second operation of the user is a restart operation, and correspondingly, the first instruction is a restart instruction. The implementation of the embodiment of the present application is not limited to the electronic device being in normal use. For example, when the electronic device is in a shutdown state, the second operation of the user is a power-on operation, and correspondingly, the first instruction is a power-on instruction.

[0268] It should also be noted that Fig.11 For a description of the interface 21 shown in FIG. (1), see Figure 1 The relevant description of the interface 11 shown in Figure (1) is not repeated here.

[0269] In summary, after receiving the first instruction, the electronic device can be turned on normally. By executing the power-on operation by the electronic device, it is possible to prepare for the subsequent operation steps of the card display method of the embodiment of the present application.

[0270] S102, starting a first process during the process of powering on the electronic device.

[0271] Optionally, in some embodiments, the first process is a process corresponding to the first application. The first process is located at Figure 6 In the application layer of the software system shown in FIG. 4 , for example, when the first application is a desktop application, the first process is a process corresponding to the desktop application.

[0272] When the electronic device is turned on, the electronic device may start the first process. By starting the first process, the first application may be initialized (including but not limited to loading resource files of the first application, setting a user interface, and initializing a network connection, etc.), so that the first application can run in the background of the electronic device.

[0273] Optionally, in some embodiments, the electronic device may Figure 5 The task management service in the software system shown is used to start the first process. Since the electronic device is still in an unlocked state during the process of starting up the electronic device, the electronic device can speed up the acquisition of the first information by starting the first process in advance in the unlocked state, thereby increasing the loading speed and display speed of the first card after the electronic device is unlocked.

[0274] S103: Acquire first information based on the first process.

[0275] Optionally, in some embodiments, the first information is used to represent a page layout associated with the display of the first card. The first card is a card to be displayed corresponding to the second application. The first card may be a weather card (e.g., Fig.11 (1) card 201 shown in FIG. ), suggestion card or widget card (for example, Fig.11 The card 203 shown in (1) of FIG. 1 is not limited to this in the embodiments of the present application.

[0276] Optionally, in some embodiments, the first information includes at least one or more of the following: the position of the first card displayed in the first application, the size of the first card, the style of the first card, and the package name of the second application.

[0277] Optionally, in another embodiment, the first information may also include the color of the first card and the transparency of the first card. Fig. 9 Configuration files for third-party applications as shown.

[0278] For example, the package name of the second application, the color of the first card, and the transparency of the first card can be set in advance in the electronic device without manual modification by the user. In actual applications, the user can modify the fourth information that can be changed according to the use needs, and the embodiments of the present application are not limited to this.

[0279] Optionally, the display content of the first card includes but is not limited to the title area, content area and operation area, etc., as described above. Since the display content of the first card is content related to the second application, before the process of the second application is started, the display content of the first card is empty content; or the display content of the first card is preset content.

[0280] After starting the first process, the electronic device may adopt multiple possible implementations to obtain the first information. Two possible implementations of the electronic device obtaining the first information are described below.

[0281] Method 1:

[0282] The electronic device can query the first process such as Figure 6 The database in the software system shown in FIG. 1 is used to obtain the first information. The database stores the relevant information of the card to be displayed (or the first card) corresponding to the second application, that is, the first information. Figure 6 As shown, the database is located in the application framework layer of the software system, and is located in the card management service of the application framework layer.

[0283] Method 2:

[0284] The electronic device may receive the third instruction through the first process, and parse the received third instruction to obtain the first information.

[0285] Optionally, the third instruction is sent by the card management service, and the third instruction includes the first information.

[0286] In summary, the electronic device can obtain the first information. By obtaining the first information in advance when the electronic device is not unlocked, a data basis can be provided for the subsequent advance generation of the card frame.

[0287] S104: Generate a first frame based on the first information.

[0288] Optionally, in some embodiments, the first frame is a widget frame used when the first card is displayed in the first application. The first frame may include one or more. For example, Fig.11 As shown in (1) of FIG. 1 , the first card may be card 203, the first frame may be the frame of card 203, and the first frame may include a title frame of card 203 and a content frame of card 203. After obtaining the first information, the electronic device may generate the first frame based on the first information. By generating the first frame in advance when the electronic device is not unlocked, the speed of displaying the first frame in the first application when the electronic device is unlocked can be accelerated, thereby further improving the user experience.

[0289] S105: When the electronic device is unlocked, display the first interface.

[0290] Optionally, in some embodiments, the first interface is an interface related to the first application. The first interface may include a first display area (eg, Fig.11 The first display area includes at least a first card (e.g., Fig.11 The first card uses a first frame. For example, the first frame can be Fig. 9 The workspace in step 47 is shown.

[0291] It should be noted that if Fig.11 As shown in FIG. 1 (1), the first display area may also include other cards (eg, card 201, card 202, and card 204, etc.), which is not limited in this embodiment of the present application.

[0292] It should also be noted that when the first application is a desktop application, the first interface can be the default interface of the desktop application pre-set in the electronic device (for example, the main interface), or it can be another interface other than the main interface that is displayed when the electronic device is unlocked and receives a trigger operation on the desktop application by the user (for example, the interface displayed in response to the user sliding to the left). When the first application is another application (for example, a smart service assistant), the first interface can be the default interface of the smart service assistant pre-set in the electronic device, or it can be another interface other than the default interface that is displayed when the electronic device is unlocked and receives a trigger operation on the smart service assistant by the user, and the embodiments of the present application are not limited to this.

[0293] Optionally, in some embodiments, before displaying the first interface, in response to a first operation of the user, the electronic device may perform an unlocking operation. The first operation is used to trigger the electronic device to switch from a locked screen state to an unlocked state. For example, Fig.11 As shown in FIG. 2 (2), in response to a user's operation on a control 206 in the interface 22, the electronic device may perform an unlocking operation.

[0294] It should be noted that interface 22 can be found in Figure 1 The relevant description of the interface 12 shown in Figure (2) is not repeated here.

[0295] Optionally, in another embodiment, before displaying the first interface, the electronic device can also be automatically unlocked, which is not limited in the present embodiment. For example, when the electronic device does not have a lock screen password set, the electronic device can be automatically unlocked so that the electronic device can successfully display the first interface.

[0296] When the electronic device is unlocked, the electronic device may display a first interface (eg, Fig.11 23). For example, Fig.11 As shown in Figure (3) in the figure, in response to the user's Fig.11 By triggering the control 206 in the interface 22 shown in FIG. (2), the electronic device can perform an unlocking operation and display Fig.11 The interface 23 shown in FIG. (3) in FIG. 23 may include a frame of card 201, a frame of card 202, a frame of card 203, and a frame of card 204.

[0297] Since the first frame in the first interface (for example, Fig.11The frame of card 201, the frame of card 202, the frame of card 203 or the frame of card 204 shown in (3) is generated in advance before the electronic device is unlocked. Therefore, when the electronic device is unlocked, the first frame can be directly displayed in the first application without generating the first frame, thereby speeding up the display speed of the first frame when the electronic device is unlocked, saving the user's waiting time and improving the user experience.

[0298] When the first frame is displayed in the first interface, the electronic device can start the process of the second application corresponding to the first card to generate the display content of the first card based on the process of the second application, so that the first card displays the content related to the second application. Since it takes a certain amount of time to start the process of the second application corresponding to the first card, it also takes a certain amount of time to update the display content of the first card. Therefore, after the electronic device is unlocked for a period of time, the electronic device can display the following information: Fig.11 The interface 24 shown in FIG. (4) in FIG. 2 may include a second display area.

[0299] In such Fig.11 In the second display area shown in FIG. (4), the frame of card 201 and the display content of card 201 are both displayed, that is, the process of application 1 corresponding to card 201 has been started. The frame of card 202 is displayed, and the display content of card 202 is not displayed, that is, the process of application 2 corresponding to card 202 has not been started. The frame of card 203 and the display content of card 203 are both displayed, that is, the process of application 3 corresponding to card 203 has been started. And, the frame of card 204 is displayed, and the display content of card 204 is not displayed, and the process of application 4 corresponding to card 104 has not been started.

[0300] After the processes corresponding to each card are started and the display content of each card is generated, the electronic device can display the following Fig.11 The interface 25 shown in FIG. (5) in FIG. 25 may include a third display area. Fig.11 In the third display area shown in FIG. (5), each card can be fully displayed, that is, the frame of each card and the display content of each card are displayed.

[0301] It should be understood that interface 25 and interface 21, Figure 1 The interface 11 shown in FIG. (1) and Figure 1 The interface 16 shown in FIG. 6 is similar to the interface 16 shown in FIG. 6 , and the related description of the interface 11 may be referred to, which will not be repeated here.

[0302] It should be noted that, when an electronic device includes multiple applications, the electronic device needs to complete the process of starting the multiple applications and generating the display content of the card in sequence. That is to say, after the electronic device starts the process of a certain application (for example, the second application), it can generate the display content of the card corresponding to the application through the process of the certain application. After generating the display content of the card corresponding to the application, the electronic device can start the process of an application after the application according to the preset startup sequence, and generate the display content of the card corresponding to the application after the application. Therefore, if Fig.11 Figure (3) in Fig.11 As shown in FIG. 5 , there is a certain delay in displaying the display content of card 201 , the display content of card 202 , the display content of card 203 , and the display content of card 204 .

[0303] The card display method in the embodiment of the present application can enable the electronic device to perform a power-on operation by receiving a first instruction. During the power-on process of the electronic device, the process corresponding to the first application, i.e., the first process, can be started. On this basis, the first information is obtained based on the first process, that is, the page layout related to the display of the first card, and the first information can be obtained in advance before the electronic device is unlocked. Furthermore, based on the first information obtained, the first frame is generated, and the first frame can be generated in advance before the electronic device is unlocked. Further, when the electronic device is unlocked, the first interface can be displayed, and the first card using the first frame is directly displayed in the first interface, without generating the first frame when the electronic device is unlocked. Thus, the user can view the frame of the card corresponding to the application without waiting when the electronic device is unlocked, saving the time for the user to wait for the frame of the card to be displayed when the electronic device is unlocked, thereby accelerating the loading speed and display speed of the card when the electronic device is unlocked, further shortening the time for the user to wait for the complete card to be displayed after the electronic device is unlocked, and improving the user experience.

[0304] Based on the above description, it can be known that the electronic device obtains the first information in S103 before the electronic device is unlocked. Therefore, in order to ensure the safe operation of the electronic device, after executing S102 and before executing S103, the electronic device can perform security verification. Fig.12 , describes in detail the specific implementation process of the electronic device in the embodiment of the present application for security verification. For example, Fig.12 The specific implementation process of security verification shown can be applied to Figure 6 The application framework layer in the software system shown can be specifically implemented by the card management service in the application framework layer.

[0305] like Fig.12 As shown, before executing S103, the card display method of the embodiment of the present application further includes:

[0306] S201, starting a first process during the process of powering on the electronic device.

[0307] It should be understood that S201 is the same as S102, and reference may be made to the relevant description of S102, which will not be repeated here.

[0308] S202: After starting the first process, determine whether the electronic device is in a locked screen state.

[0309] After starting the first process, the electronic device can determine whether it is in a locked screen state. By determining whether the electronic device is in a locked screen state, it can be ensured that the electronic device executes S103 and S104 when the electronic device is not unlocked, so as to achieve the purpose of accelerating the card display when the electronic device is unlocked.

[0310] If the electronic device is in the screen lock state, the electronic device may execute S203. If the electronic device is not in the screen lock state, the electronic device may execute S207.

[0311] Optionally, in another embodiment, the electronic device may further determine whether the first process is started for the first time in a boot process after starting the first process. In the case where the first process is started for the first time in a boot process, the electronic device may execute S203. By determining whether the first process is started for the first time in a boot process, it is ensured that the card display optimization performed by the card display method of the embodiment of the present application is completed before the electronic device is unlocked.

[0312] S203: When the electronic device is in a locked screen state, obtain a value of a first variable.

[0313] Optionally, the value of the first variable can be Figure 6 The value of the first variable can be set in the application framework layer of the software system shown in the figure. Exemplarily, the value of the first variable can be set by the scheme configuration switch module in the card management service of the application framework layer.

[0314] Optionally, the value of the first variable may be a first logic value or a second logic value. The first logic value or the second logic value is a value of the first variable preset in the electronic device.

[0315] Optionally, the first logic value is used to indicate that the electronic device can execute other subsequent steps of the card display method (for example, start identity authentication). The second logic value is used to indicate that the electronic device terminates the steps of executing the card display method. Exemplarily, the first logic value can be true, and the second logic value can be false.

[0316] It should be noted that in actual applications, technical personnel in this field may also adopt other first logical values ​​and second logical values ​​according to actual needs or their own habits, and this application does not limit this. For example, the first logical value is 1, the second logical value is 0, etc.

[0317] S204, determining whether the value of the first variable is a first logical value.

[0318] After obtaining the value of the first variable, the electronic device may determine whether the value of the first variable is a preset first logic value. If the value of the first variable is the first logic value, the electronic device may execute S205. If the value of the first variable is the second logic value, the electronic device may execute S207.

[0319] S205: When the value of the first variable is a first logical value, start identity authentication.

[0320] When determining that the value of the first variable is the first logic value, the electronic device may Figure 6 The user-defined authentication module in the software system shown starts the identity authentication. By starting the identity authentication, the security of obtaining the first information before unlocking the electronic device can be improved.

[0321] It should be noted that, in the case where the first application is a desktop application, the implementation process of S205 is the same as Fig. 9 The implementation process of step 44 shown is the same, and reference may be made to the relevant description of step 44, which will not be repeated here.

[0322] S206: Perform identity authentication on the first application according to preset authentication information.

[0323] Optionally, in some embodiments, the preset authentication information may include a preset signature and / or a preset package name.

[0324] After starting the identity authentication, the electronic device can Figure 6 The custom authentication module in the software system shown performs identity authentication on the first application according to preset authentication information.

[0325] Based on the relevant description of S206, the electronic device performs the following steps: Figure 6 The custom authentication module in the software system shown may perform identity authentication on the first application in the following three possible implementations.

[0326] Method 1:

[0327] In the case where the preset authentication information includes a preset signature, the electronic device can determine whether the signature of the first application is the same as the preset signature to complete the identity authentication of the first application.

[0328] Method 2:

[0329] In the case where the preset authentication information includes a preset signature, the electronic device can determine whether the package name of the first application is the same as the preset package name to complete the identity authentication of the first application.

[0330] Method 3:

[0331] In the case where the preset authentication information includes a preset signature and a preset package name, the electronic device can first determine whether the signature of the first application is the same as the preset signature. In the case where the signature of the first application is the same as the preset signature, the electronic device can further determine whether the package name of the first application is the same as the preset package name. Alternatively, the electronic device can first determine whether the package name of the first application is the same as the preset package name. In the case where the package name of the first application is the same as the preset package name, the electronic device can further determine whether the signature of the first application is the same as the preset signature to complete the identity authentication of the first application.

[0332] It should be noted that the preset authentication information may also include other relevant information (e.g., the ID of the first application) for uniquely identifying the first application in addition to the signature of the first application and the package name of the first application. Furthermore, in the case where the preset authentication information includes multiple pieces of information, the embodiment of the present application does not limit the order in which the multiple pieces of preset authentication information are used for identity authentication.

[0333] When the first application passes the identity authentication, the electronic device can execute S103, so that the electronic device can successfully obtain the first information before unlocking, thereby providing a data basis for generating the first frame in advance before unlocking the electronic device.

[0334] S207, terminate the execution of the card display method.

[0335] When the electronic device is not in a locked screen state or the value of the first variable is not a first logical value, the electronic device may terminate the execution of the card display method.

[0336] When the electronic device is not in a lock screen state, by terminating the execution of the card display method in the embodiment of the present application, it can be ensured that the card display optimization performed by the card display method in the embodiment of the present application is completed before the electronic device is unlocked, thereby speeding up the card display when the electronic device is unlocked.

[0337] When the value of the first variable is not the first logical value, by terminating the execution of the card display method in the embodiment of the present application, it can be ensured that the subsequent identity authentication and verification steps related to the card display method in the embodiment of the present application will not be triggered when the user makes an error operation or the process of the desktop application crashes.

[0338] based on Figures 1 to 12 The following description is combined with Fig.13 , describes in detail the specific implementation process of the card display method in the embodiment of the present application.

[0339] See also Fig.13 , Fig.13 A signaling interaction diagram of a card display provided in an embodiment of the present application is shown. Fig.13 The signaling interaction diagram provided can be applied to Fig.10 middle.

[0340] like Fig.13 As shown, the card display method in the embodiment of the present application specifically includes the following steps:

[0341] Step 51 , after the first card corresponding to the second application is set in the desktop application, the user can restart the electronic device 100 .

[0342] It should be understood that the implementation process of step 51 is the same as the implementation process of S101. Please refer to the relevant description of S101, and no further details will be given here.

[0343] Step 52, in response to the user's restart operation on the electronic device 100, the electronic device 100 can execute a restart process. During the restart process of the electronic device 100, the electronic device 100 can start the system service.

[0344] It should be understood that the specific implementation process of step 52 is the same as the specific implementation process of step 12. Please refer to the relevant description of step 12, and no further details will be given here.

[0345] Step 53: After starting the system service, the electronic device 100 may start the first process through the task management service in the system service.

[0346] It should be understood that the implementation principle of step 53 is similar to the implementation principle of step 13. Please refer to the description of step 13 and it will not be repeated here.

[0347] Step 54: After the first process is started, the electronic device may query the database in the card management service through the first process.

[0348] Step 55: The electronic device may perform identity authentication on the first application through the card management service.

[0349] It should be understood that the specific implementation process of step 55 is the same as Fig.12 The specific implementation process of S201 to S207 is the same as that of S201 to S207, and reference may be made to the relevant description of S201 to S207, which will not be repeated here.

[0350] The electronic device 100 may feed back the queried first information to the first process through the card management service.

[0351] It should be understood that step 54 and step 55 are equivalent to Fig.10 For S103 in the example, please refer to the relevant description of S103, which will not be repeated here.

[0352] If the identity authentication of the first application is passed, the electronic device 100 may execute step 56. If the identity authentication of the first application is not passed, the electronic device 100 may send a query failure instruction to the card management service ( Fig.13 not shown).

[0353] In step 56, the electronic device 100 may send the queried first information to the first process through the card management service.

[0354] Step 57: After receiving the first information, the electronic device 100 may generate a first frame based on the first information through a first process.

[0355] It should be understood that step 57 is equivalent to Fig.10 For S104 in the example, please refer to the relevant description of S104, which will not be repeated here.

[0356] Step 58 : The user unlocks the electronic device 100 .

[0357] It can be seen that steps 51 to 57 are completed in advance before the electronic device 100 is unlocked. Therefore, the time for generating the first frame when the electronic device 100 is unlocked can be saved, thereby speeding up the display time of the first card, shortening the waiting time of the user when the electronic device is unlocked, and greatly improving the user experience.

[0358] Step 59 , in response to the user unlocking the electronic device 100 , the electronic device 100 may display a first frame in a first interface of a first application through a first process.

[0359] It should be understood that step 59 is equivalent to Fig.10 For S105 in the description, please refer to the relevant description of S105, which will not be repeated here.

[0360] Step 60: In response to the user unlocking the electronic device 100, the electronic device 100 may send a first broadcast signal to the task management service in the system service through the card management service in the system service, so that when the electronic device is unlocked, the task management service may receive the first broadcast signal.

[0361] Optionally, the first broadcast signal is used to start a second process. The second process is a process corresponding to the second application. The second process is located at Figure 6In the application layer of the software system shown in FIG.

[0362] It should be understood that the embodiments of the present application do not limit Fig.13 The execution order of step 59 and step 60 shown in the figure may depend on the actual application scenario. For example, step 59 may be performed first and step 60 may be performed later; for another example, step 59 may be performed later and step 60 may be performed first; for another example, step 59 and step 60 may be performed simultaneously.

[0363] It should also be understood that the specific implementation principle of step 60 is the same as the specific implementation principle of step 18. Please refer to the relevant description of step 18, which will not be repeated here.

[0364] Step 61: When a first broadcast signal is received, the electronic device 100 may start a second process based on the received first broadcast signal through a task management service in a system service.

[0365] It should be understood that the specific implementation principle of step 61 is the same as the specific implementation principle of step 19. Please refer to the relevant description of step 19 and will not be repeated here.

[0366] Step 62: After starting the second process, the electronic device 100 may send a second broadcast signal to the second process through the card management service in the system service.

[0367] Optionally, the second broadcast signal is used to update (or refresh) the content displayed in the first card. Exemplarily, the second broadcast signal may be an update broadcast signal.

[0368] It should be understood that the specific implementation principle of step 62 is the same as the specific implementation principle of step 20. Please refer to the relevant description of step 20 and it will not be repeated here.

[0369] Step 63: After receiving the second broadcast signal, the electronic device may generate a second instruction based on the second broadcast signal.

[0370] Optionally, the second instruction includes second information. Exemplarily, the second instruction may be Figure 7 The refresh command in .

[0371] Optionally, the second information is used to represent the content to be displayed in the second application. The second information includes but is not limited to pictures, texts, videos, links, etc.

[0372] It should be noted that the second information may be real-time push content in the second application, or may be content that the user is interested in in the second application, which is not limited in this embodiment of the present application.

[0373] It should be understood that the specific implementation principle of step 63 is the same as the specific implementation principle of step 21. Please refer to the relevant description of step 21 and will not be repeated here.

[0374] Step 64: After generating the second instruction, the electronic device 100 may send the second instruction to the first process through the second process. In other words, the electronic device 100 may receive the second instruction from the second process through the first process, so that the first process can perform a corresponding operation based on the second instruction.

[0375] It should be understood that the specific implementation principle of step 64 is the same as the specific implementation principle of step 22. Please refer to the relevant description of step 22, which will not be repeated here.

[0376] Step 65, after receiving the second instruction, the electronic device 100 may parse the second instruction and generate the content displayed in the first card based on the parsing result (or the second information).

[0377] It should be understood that the specific implementation principle of step 65 is the same as the specific implementation principle of step 23. Please refer to the relevant description of step 23, which will not be repeated here.

[0378] It should be noted that the method of obtaining the second information shown in steps 63 to 65 above is only an exemplary description, and the embodiments of the present application are not limited thereto. For example, the electronic device 100 can also directly obtain the second information based on the second process to generate the content displayed in the first card. In addition, the electronic device 100 can also directly send the obtained second information to the first process through the second process, so that the first process can obtain the second information and perform subsequent operations.

[0379] Optionally, in some embodiments, the first card may first display empty content (such as Fig.11 The first display area shown in (3) of FIG. 1 ) is displayed, and then the content displayed in the first card generated in step 65 is displayed. Alternatively, the first card may first display preset content, and then display the content displayed in the first card generated in step 65. Alternatively, the first card may directly display the content displayed in the first card generated in step 65. Through the above three display methods, the electronic device 100 can complete the update of the content in the first card to ensure that the displayed content of the first card is the real-time pushed content in the second application, or the core content that the user currently needs to pay attention to.

[0380] It should be noted that the electronic device 100 may update the display content of the first card in real time, periodically (for example, by setting an update time), or may update the content every time the electronic device 100 is turned on, which is not limited in the embodiment of the present application.

[0381] Step 66: Display the second interface in the first process (or the first application) of the electronic device 100. The second interface (for example, Fig.11 The interface 24 shown in FIG. (4) may include a second display area (such as Fig.11 The second display area includes at least the first card, the content in the first card (for example, Fig.11 The display content of the card 203 shown in (4) is generated based on the second information. The first card uses the first frame generated in advance in step 57 before the electronic device is unlocked.

[0382] It should be understood that the specific implementation principle of step 66 is the same as the specific implementation principle of step 24. Please refer to the relevant description of step 24 and will not be repeated here.

[0383] It should be noted that the optimization of the card display method in the embodiment of the present application is only performed once each time the electronic device is turned on, and there is no need to re-optimize each time the user unlocks the electronic device. This has a better optimization effect on the display of cards that have been set in the electronic device.

[0384] In summary, before the electronic device is unlocked, the first information is obtained in advance through the first process, and the first frame is generated based on the obtained first information, so that when the electronic device is unlocked, the first interface (for example, Fig.11 The first frame (for example, the frame of card 203) can be directly displayed in the interface 23 shown in (3) of FIG. 1 , without generating the first frame when the electronic device is unlocked. This speeds up the display speed of the first frame when the electronic device is unlocked, further speeds up the display speed of the first card, avoids long waiting times for users, and provides a better user experience.

[0385] Considering that in the above card display method, the conditions for starting the process (for example, the second process) of the application corresponding to the card are all that the electronic device is unlocked, it will result in the display interface of the electronic device (for example, Fig.11 When the frame of the card is displayed in the interface 23 shown in (3) of FIG. 1 , it still takes a certain amount of time to start the process of the application corresponding to the card, so the displayed content of the card is empty. Therefore, in order to further speed up the display speed of the card when the electronic device is unlocked. The embodiment of the present application also provides a possible implementation method.

[0386] Optionally, in some embodiments, before the electronic device is unlocked, the process (e.g., the second process) of the application corresponding to the card (e.g., the first card) is preloaded. When the electronic device is unlocked, the electronic device can directly generate the display content of the card through the process of the application corresponding to the card. Thereby, when the electronic device is unlocked, the generation or update process of the display content of the card can be directly triggered without starting the process of the application corresponding to the card, which saves the process startup time of the application corresponding to the card, further shortens the waiting time of the user when the electronic device is unlocked, and improves the user experience to a greater extent.

[0387] Exemplarily, the present application provides a computer-readable storage medium, which includes instructions. When the instructions are executed on the electronic device 100, the electronic device 100 implements the method in the foregoing embodiment when executing.

[0388] Exemplarily, the present application provides a chip system, which is applied to an electronic device 100; the chip system includes one or more processors; the one or more processors are used to call computer instructions so that the electronic device 100 executes the method in the foregoing embodiment.

[0389] Exemplarily, the present application provides a computer program product, which enables the electronic device 100 to implement the method in the foregoing embodiment when the computer program product is executed on a computer.

[0390] In the above embodiments, all or part of the functions can be implemented by software, hardware, or a combination of software and hardware. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer codes or instructions. When the computer program code or instructions are loaded and executed on a computer, the process or function according to the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer code or instructions can be stored in a computer-readable storage medium. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or a data center that includes one or more available media integration. Available media can be magnetic media, (e.g., floppy disk, hard disk, tape), optical media (e.g., DVD), or semiconductor media (e.g., solid state disk (SSD)), etc.

[0391] A person skilled in the art can understand that to implement all or part of the processes in the above-mentioned embodiments, the processes can be completed by a computer program to instruct the relevant hardware, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the above-mentioned method embodiments. The aforementioned storage medium includes: a read-only memory (ROM) or a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.

Claims

1. A card display method, characterized in that: Applied to an electronic device, in which a first application and a second application are installed, and the first application and the second application are different applications; the method comprises: Upon receiving a first instruction, the electronic device performs a power-on operation; During the process of powering on the electronic device, starting a first process; the first process is a process corresponding to the first application; Acquire first information based on the first process; the first information is used to represent a page layout related to displaying the first card; the first card is a card to be displayed corresponding to the second application; Based on the first information, a first frame is generated; the first frame is a widget frame used when the first card is displayed in the first application; When the electronic device is unlocked, a first interface is displayed; the first interface includes a first display area, and the first display area includes at least the first card; the first card uses the first frame.

2. The method according to claim 1, characterized in that: The step of displaying a first interface when the electronic device is unlocked includes: When the electronic device is unlocked, starting a second process; the second process is a process corresponding to the second application; Acquire second information based on the second process; the second information is used to represent the content to be displayed in the second application; The second interface is displayed; the second interface includes a second display area, the second display area includes at least the first card, and the content displayed in the first card is generated based on the second information.

3. The method according to claim 2, characterized in that Before displaying the second interface, the method further includes: When the displayed content of the first card is empty content or preset content, the content in the first card is refreshed based on the second information.

4. The method according to any one of claims 1 to 3, characterized in that Before acquiring the first information based on the first process, the method further includes: Performing identity authentication on the first application according to preset authentication information; the preset authentication information includes a preset signature and / or a preset package name; The obtaining the first information based on the first process includes: When the first application passes the identity authentication, the first information is obtained based on the first process.

5. The method according to claim 4, characterized in that The performing identity authentication on the first application according to the preset authentication information includes: Determining whether the signature of the first application is the same as the preset signature; And / or, determining whether the package name of the first application is the same as the preset package name.

6. The method according to claim 4 or 5, characterized in that: Before performing identity authentication on the first application, the method further includes: Get the value of the first variable; When the value of the first variable is a first logical value, the identity authentication is started.

7. The method according to claim 6, characterized in that Before obtaining the value of the first variable, the method further includes: Determining whether the electronic device is in a locked screen state; The obtaining the value of the first variable includes: When the electronic device is in a screen lock state, the value of the first variable is obtained.

8. The method according to any one of claims 2 to 7, characterized in that The electronic device further includes a card management service and a task management service; when the electronic device is unlocked, starting the second process includes: When the electronic device is unlocked, sending a first broadcast signal to the task management service through the card management service; When the first broadcast signal is received, the second process is started through the task management service.

9. The method according to any one of claims 2 to 7, characterized in that The acquiring the second information based on the second process includes: receiving a second broadcast signal through the second process, and generating a second instruction based on the second broadcast signal; the second instruction includes the second information; The second instruction from the second process is received through the first process, and the second instruction is parsed to obtain the second information.

10. The method according to any one of claims 1 to 9, characterized in that Before displaying the first interface, the method further includes: In response to a first operation by a user, the electronic device performs an unlocking operation; the first operation is used to trigger the electronic device to switch from a locked screen state to an unlocked state.

11. The method according to any one of claims 1 to 10, characterized in that The acquiring first information based on the first process includes: The first information is obtained by querying a database through the first process, wherein the database stores relevant information of a to-be-displayed card corresponding to the second application.

12. The method according to any one of claims 1 to 10, characterized in that The acquiring the first information based on the first process further includes: The first process receives a third instruction, and parses the third instruction to obtain the first information.

13. The method according to any one of claims 1 to 12, characterized in that The first information includes at least one or more of the following: a position where the first card is displayed in the first application, a size of the first card, a style of the first card, and a package name of the second application.

14. The method according to any one of claims 1 to 13, characterized in that The first application is a desktop application in the system application; the second application is a third-party application.

15. The method according to any one of claims 1 to 14, characterized in that The receiving of the first instruction, and the electronic device performing a power-on operation, comprises: In response to a second operation of the user, the first instruction is received, and based on the received first instruction, the electronic device performs a power-on operation.

16. An electronic device, characterized in that: The electronic device comprises: 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, the computer program code comprises computer instructions, and the one or more processors call the computer instructions so that the electronic device executes the method as described in any one of claims 1 to 15.

17. A computer-readable storage medium, characterized in that: The computer-readable storage medium comprises instructions, which, when executed on an electronic device, cause the electronic device to perform the method as claimed in any one of claims 1 to 15.

18. A chip system, characterized in that: The chip system is applied to an electronic device; the chip system includes one or more processors; the one or more processors are used to call computer instructions so that the electronic device executes the method as described in any one of claims 1 to 15.

Citation Information

Patent Citations

  • Terminal payment method and terminal

    CN106296172A

  • Application program running method, terminal and computer readable storage medium

    CN107729133A

  • Desktop pre-starting control method and device and computer readable storage medium

    CN110187925A

  • Method for displaying card of fast application and terminal

    CN110837398A

  • Card display method and terminal equipment

    CN114968018A