Service card refreshing method and electronic device
By introducing a data proxy module into electronic devices, monitoring data changes in the data management service and notifying the card management service to refresh, the problem of increased power consumption during service cards is solved, and a refresh mechanism with lower power consumption is achieved.
Patent Information
- Application Number
- PCT/CN2024/121589
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-09-28
- Filing Date
- 2024-09-26
- Publication Date
- 2025-04-03
AI Technical Summary
The prior art is difficult to effectively reduce the power consumption of electronic devices when refreshing the service card, resulting in an increase in power consumption during frequent refreshes.
By introducing a data proxy module into the electronic device, monitoring data changes in the data management service. When data updates are detected or service cards need to be refreshed, the data proxy module notifies the card management service to avoid pulling up the application directly, thereby reducing power consumption.
It realizes reducing the power consumption of electronic devices when the service card is refreshed, and avoids the high power consumption problem caused by frequent pulling up applications.
Smart Images

Figure CN2024121589_03042025_PF_FP_ABST
Abstract
Description
Service card refreshing method and electronic device
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on September 28, 2023, with application number 202311284320.X and application name “A service card refresh method and electronic device”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of terminal and communication technology, and in particular to a service card refreshing method and electronic device. Background Art
[0003] Currently, some electronic devices can display one or more service cards. Service cards can display important and commonly used information provided by applications in the form of cards on the desktop. This allows users to quickly browse application information or use common application functions through service cards. Service cards can provide direct access to services through lightweight interactive behaviors, reducing hierarchical jumps. For example, users can quickly learn about weather information through the weather card displayed on the desktop. For another example, users can quickly browse photos in the gallery through the gallery card displayed on the desktop.
[0004] However, when the service card is refreshed, how to reduce the power consumption of electronic devices is an urgent problem to be solved.
[0005] Summary of the Invention
[0006] The present application provides a service card refresh method and an electronic device. By using this method, when a service card in an electronic device is refreshed, the power consumption of the electronic device can be reduced.
[0007] In the first aspect, the present application provides a service card refresh method, which can be applied to an electronic device, wherein the electronic device is installed with a first application, and the electronic device may include a data proxy module, a card management service, and a data management service. The method may include: the electronic device displays a first service card and displays first content in the first service card; the data proxy module obtains the address of the second content from the data management service, wherein the data management module is used to store the data identifier and address of the first application, and the data identifier and address of the first application include the identifier and address of the first content and the identifier and address of the second content; the data proxy module sends the address of the second content to the card management service; the card management service provides the address of the second content to the electronic device; the electronic device obtains the second content based on the address of the second content, and displays the second content in the first service card.
[0008] The first service card may include a gallery card, a calendar card, and a weather card.
[0009] The first application may include a gallery application, a calendar application, and a weather application.
[0010] When the first application is a gallery application, the first service card may be a gallery card. When the first application is a calendar application, the first service card may be a calendar card. When the first application is a weather application, the first service card may be a weather application.
[0011] In this way, when the content displayed in the first service card is refreshed from the first content to the second content, the electronic device does not need to launch the first application, which can save power consumption of the electronic device.
[0012] In one possible implementation, obtaining the address of the second content from the data management service by the data proxy module may include: the card management service sending a first notification to the data proxy module; and the data proxy module obtaining the address of the second content from the data management service in response to the first notification. Thus, the data proxy module obtains the address of the second content from the data management service only when the card management service sends the first notification to the data proxy module to obtain the second content.
[0013] In one possible implementation, the card management service sending the first notification to the data proxy module may include: the card management service presetting a refresh mechanism for the first service card, and sending the first notification to the data proxy module based on the refresh mechanism. In this way, the card management service may determine a timing for sending the first notification based on the refresh mechanism.
[0014] In one possible implementation, after the electronic device displays the first service card and displays the first content in the first service card, the method may further include: when the data proxy module obtains updated third content from the data management service, the data proxy module sends the address of the third content to the card management service; the card management service provides the address of the third content to the electronic device; and the electronic device obtains the third content based on the address of the third content and displays the third content in the first service card. In this way, when the data proxy module monitors data updates, such as newly added data, the electronic device can obtain the updated third content from the data proxy module and display it in the first service card.
[0015] In one possible implementation, the electronic device further includes an application extension service. The electronic device displays a first service card. Before displaying the first content in the first service card, the method may further include: the first application acquiring the first content and the second content, storing the addresses of the first content and the second content in a data management service; the first application providing the address of the first content to the application extension service; the application extension service center sending the address of the first content to the card management service; and the card management service providing the address of the first content to the electronic device. In this way, when a user calls the first service card on the electronic device, the content displayed in the first service card can be provided by the application.
[0016] In one possible implementation, the method may also include: the first application detects a user's editing operation on the first service card, the editing operation is used to instruct the first service card to obtain the content of the first resource; in response to the editing operation, the data proxy module sends the address of the fourth content to the card management service, the fourth content is the content of the first resource; the card management service sends the address of the fourth content to the electronic device; the electronic device obtains the fourth content based on the address of the fourth content, and displays the fourth content in the first service card.
[0017] In this way, when the first service card is refreshed by a user operation, the data proxy module can directly obtain the address of the content to be displayed next time in the first service card without launching the application, thus saving power consumption of the electronic device.
[0018] In one possible implementation, in response to an editing operation, the data proxy module sends the address of the fourth content to the card management service, which may include: in response to the editing operation, performing a first configuration in the data management service, and the data management service sending the address of the fourth content to the data proxy module according to the first configuration; the data proxy module sends the address of the fourth content to the card management service.
[0019] In one possible implementation, performing the first configuration in the data management service in response to the editing operation may include: in response to the editing operation, the first application sending a second notification to the card management service; in response to the second notification, the card management service sending a third notification to the application extension service; and in response to the third notification, the application extension service performing the first configuration in the data management service.
[0020] In one possible implementation, the electronic device obtains the second content based on the address of the second content and displays the second content in the first service card. Specifically, the process may include: the electronic device obtains the second content from the data management service based on the address of the second content; the data management service reads the second content from the hard disk of the electronic device into the memory of the electronic device; and obtains the second content from the memory of the electronic device and displays the second content in the first service card.
[0021] In one possible implementation, after the data management service reads the second content from the hard disk of the electronic device into the memory of the electronic device, the method may further include: the data management service sends the memory address of the second content in the memory of the electronic device to the electronic device.
[0022] In a possible implementation, the electronic device may further include a second application. The electronic device displays the first service card and displays the first content in the first service card, which may include: the second application displays the first service card and displays the first content in the first service card.
[0023] In a second aspect, an electronic device is provided, which may include one or more displays, one or more processors and one or more memories; wherein the one or more displays, one or more memories are coupled to one or more processors, and the one or more memories are used to store computer program code, and the computer program code includes computer instructions, and when the one or more processors execute the computer instructions, the electronic device executes the method involved in any possible implementation method of the first aspect.
[0024] According to a third aspect, an electronic device is provided. The electronic device may include one or more functional modules, and the one or more functional modules are used for the method involved in any possible implementation of the first aspect.
[0025] In a possible implementation, the electronic device includes multiple functional modules, wherein the multiple functional modules may include one or more of a data proxy module, a card management service, a data management service, and an application extension service.
[0026] In a fourth aspect, a chip system is provided, which is applied to an electronic device, and the chip system includes one or more processors, and the processor is used to call computer instructions to enable the electronic device to execute the method involved in any possible implementation of the first aspect.
[0027] In a fifth aspect, a computer-readable storage medium is provided, comprising instructions, which, when executed on an electronic device, enable the electronic device to execute the method involved in any possible implementation of the first aspect.
[0028] In a sixth aspect, a computer program product is provided. When the program product is run on an electronic device, the electronic device executes the method involved in any possible implementation manner of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] FIG1A is a schematic diagram of a user interface of an electronic device provided in an embodiment of the present application;
[0030] FIG1B is a schematic diagram of a user interface of an electronic device provided in an embodiment of the present application;
[0031] FIG2 is a schematic diagram of the software architecture of an electronic device provided in an embodiment of the present application;
[0032] FIG3A is a schematic diagram of the software architecture of an electronic device provided in an embodiment of the present application;
[0033] FIG3B is a schematic diagram of the software architecture of the electronic device provided in an embodiment of the present application;
[0034] 4A-4C are schematic diagrams of a set of user interfaces of an electronic device provided in an embodiment of the present application;
[0035] FIG5 is a schematic diagram of the interaction of software modules of a library card refresh method provided in an embodiment of the present application;
[0036] FIG6 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0037] The terms used in the following examples of the present application are for the purpose of describing specific embodiments only and are not intended to limit the present application. As used in the specification and appended claims of the present application, the singular expressions "a," "an," "said," "above," "the," and "this" are intended to include plural expressions as well, unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used in the present application refers to and encompasses any or all possible combinations of one or more of the listed items.
[0038] In the following, the terms "first" and "second" are used for descriptive purposes only and should not be understood to imply or suggest relative importance or implicitly indicate the number of the technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of this application, unless otherwise specified, "plurality" means two or more.
[0039] The term "user interface (UI)" in the specification, claims and drawings of this application refers to the media interface for interaction and information exchange between an application or operating system and a user, which realizes the conversion between the internal form of information and the form acceptable to the user. The user interface of an application is a source code written in a specific computer language such as Java and Extensible Markup Language (XML). The interface source code is parsed and rendered on the terminal device, and finally presented as content that the user can recognize, such as images, text, buttons and other controls. Controls, also known as widgets, are the basic elements of the user interface. Typical controls include toolbars, menu bars, input boxes, buttons, scroll bars, images and text. The properties and contents of controls in the interface are defined by tags or nodes, such as XML through <textview> 、 <imgview> 、 <videoview>Nodes such as <head> and <body> are used to specify the controls contained in the interface. A node corresponds to a control or attribute in the interface, and the node is presented as user-visible content after parsing and rendering. In addition, many applications, such as hybrid applications, usually also contain web pages in their interfaces. A web page, also known as a page, can be understood as a special control embedded in the application interface. A web page is a source code written in a specific computer language, such as hypertext markup language (GTML), cascading style sheets (CSS), JavaScript (JS), etc. The web page source code can be loaded and displayed as user-recognizable content by a browser or a web page display component with similar functions to a browser. The specific content contained in a web page is also defined by tags or nodes in the web page source code, such as GTML through 、 、 <video> 、 <canvas>To define the elements and attributes of a web page.
[0040] A common form of user interface is a graphical user interface (GUI), which refers to a user interface related to computer operations that uses graphics to display. It can be a window, control, or other interface element displayed on the display of an electronic device.
[0041] In the embodiment of the present application, the service card can be an interface display form of a meta-program (feature ability, FA). The service card can pre-place important information or operations of the FA on the card to achieve the purpose of direct service.
[0042] Exemplarily, as shown in FIG1A , the electronic device 100 may display a page 10 of the desktop. The page 10 displays a page on which application icons and service cards are placed. The page 10 may include multiple service cards, for example, a weather clock service card (which may be referred to as a weather clock card) 101A, a sports health service card (which may be referred to as a sports health card) 101B, and a gallery service card (which may be referred to as a gallery card) 102. The weather clock card 101A may display time information (for example, year, month, day, week, lunar calendar, and hour and minute, etc.) and weather information (for example, icons and temperature for identifying the weather, etc.). The sports health card 101B may display information such as the number of steps taken. The gallery card 102 may display photos in the gallery.
[0043] Optionally, the gallery card 102 may further include text information 102A. The content of the text information 102A may be “album”, which may be used to indicate that the photo or picture displayed on the gallery card 102 is from an album in the gallery of the electronic device 100.
[0044] As shown in Figure 1A, the page 10 may include icons of multiple applications (for example, gallery application icon 104A, settings application icon 104B, theme application icon 104C, map application icon 104D, browser application icon 104E, stock application icon 104F, video application icon 104G, and memo application icon 104H, etc.).
[0045] Optionally, a page indicator 105 is displayed below the page on which the application icon is placed, indicating the total number of pages on the desktop and the positional relationship between the currently displayed page and other pages. For example, if the desktop may include four pages, and the black dot in the page indicator is on the second page, it may indicate that the currently displayed page (e.g., page 10) is the second page of the four pages. This second page may be called the home page of the desktop (or may be called the home page, home screen).
[0046] Optionally, in some examples, the black dot in the page indicator may be located at the first position. When the black dot in the page indicator is located at the first position, it may indicate that the currently displayed page is the leftmost page among the four pages. The leftmost page may also be referred to as the negative one screen of the desktop.
[0047] Optionally, in some examples, the black dot in the page indicator may be the fourth one. When the black dot in the page indicator is the fourth one, it may indicate that the currently displayed page is the rightmost one of the four pages. The rightmost page may also be referred to as the last screen of the desktop.
[0048] Optionally, a status bar is displayed above the page where the application icon is placed. The status bar may include information such as a communication signal strength indicator, battery level, time, etc. Further, optionally, a dock area 106 may be provided below the page indicator. The dock area 106 may include one or more tray icons (e.g., a dialer application icon 106A, a message application icon 106B, a contact application icon 106C, a camera application icon 106D, etc.). The one or more tray icons in the dock area may remain displayed when the page is switched.
[0049] Optionally, if there is a tooltip below an application icon, it indicates that the application has a service card embedded in it. For example, tooltip 1041 is displayed below gallery application icon 104A. Tooltip 1061 is displayed below dialer application icon 106A. For example, a user can swipe up on an application icon to call out a service card. For example, a user can swipe up on dialer application icon 106A to call out a dialer service card.
[0050] Among the service cards displayed on the electronic device 100, some may be resident service cards (e.g., gallery cards, weather clock cards, sports and health cards, etc.), while some may be non-resident service cards (e.g., flight information cards, ride cards, etc.). Once a resident service card is called out, it may remain displayed on the desktop of the electronic device 100. Of course, the user may choose to turn off the resident service card. Non-resident service cards are not always displayed on the desktop of the electronic device 100 but are only displayed on the desktop of the electronic device 100 in specific scenarios (e.g., at a specific time or at a specific location). For example, a flight information card may be displayed on the desktop of the electronic device 100 within 24 hours before the departure time of the user's flight. For another example, a subway information card may only be displayed on the desktop of the electronic device 100 when the electronic device 100 detects that the current location is close to a subway station (e.g., the distance to the subway station is less than a preset threshold, which may be 5 meters or 10 meters, but is not limited to this in the embodiments of the present application).
[0051] In an embodiment of the present application, the content displayed in some service cards is refreshed regularly or periodically, and the content displayed in some service cards is refreshed only after the data in the corresponding card content provider is updated. The refresh mechanism of different service cards may be different. For example, a gallery card can rotate photos in an album, changing the displayed photo every 5 seconds. For example, compared with Figure 1A, the photo displayed in the gallery card 102 of page 10 shown in Figure 1B is refreshed. That is, the photo displayed in the gallery card 102 is updated (from photo A to photo B).
[0052] In some embodiments of the present application, the content displayed in the service card may be referred to as the content of the service card. The content of the service card may include but is not limited to one or more of an icon, data, text, button, and picture.
[0053] The following describes the refreshing process of the service card in the electronic device with reference to the accompanying drawings.
[0054] FIG2 shows a schematic diagram of a software architecture of an electronic device 100 provided in an embodiment of the present application.
[0055] As shown in FIG. 2 , the electronic device 100 may include an application layer and an application framework layer.
[0056] The application layer may include card users, application extension services, and card providers.
[0057] Card consumers can be used to display service cards and control where the service cards are displayed (for example, desktop, service center, search, etc.).
[0058] In some embodiments, the card user may include an application card component module, wherein the application card component may be used to display the content of the service card.
[0059] In some embodiments, an application card component can be understood as a container for placing the content of a service card. An electronic device can place the content of a service card in the application card component. The application card component can display the content of the service card placed by the electronic device as a user-visible service card.
[0060] The app extension service can be used to retrieve the content of a service card. The service card content retrieved by the app extension service can be displayed in the app card component. The app extension service can also be used to create and edit cards. When a user selects to call out or edit a service card on an electronic device, the app extension service can configure the UI data required for the service card (i.e., configure the content displayed in the service card).
[0061] Furthermore, in one possible implementation, the application card component module may include multiple application card components, such as a gallery card component, a calendar card component, and a weather card component. The gallery card component may be used to display photos in the gallery application. The calendar card component may be used to display calendar information (e.g., Gregorian calendar year, month, day, lunar calendar year, month, day, week, etc.) or schedule information. The weather card component is used to display weather information. Weather information may include temperature, weather type (sunny, cloudy, overcast, showers, thunderstorms, etc.), etc.
[0062] Accordingly, the application extension service may also include multiple application extension sub-services corresponding to the application card components. For example, the application extension service may include multiple application extension sub-services such as the gallery extension service, the calendar extension service, and the weather extension service. Among them, the gallery extension service can be used to obtain the content of the gallery card. The content of the gallery card can be displayed in the gallery application component. The calendar extension service can be used to obtain data such as calendar information or schedules. The calendar information or schedules can be displayed in the calendar card component. The weather extension service can be used to obtain real-time weather information, which can be displayed in the weather card component.
[0063] The card consumers may include desktop applications.
[0064] The card provider can be an application or an atomized service that provides the display content of the service card. The card provider can control the card's display content, control layout, and control click events. For example, the card provider can include applications such as gallery applications, calendar applications, and weather applications that embed service cards.
[0065] As shown in FIG2 , the terminal may include a form manager service (FMS) and a data management service. The form manager service (FMS) and the data management service may be provided in the application framework layer.
[0066] The card management service can be used to launch an application extension sub-service (e.g., a gallery extension service) within the application extension service, and can also provide data acquired by the application extension sub-service to an application card component module (e.g., a gallery card component). The data management service can be used to store application data for various applications in the electronic device 100.
[0067] The data management service may store the application data ID corresponding to each service card in the electronic device and the storage address corresponding to the application data ID. For example, the data management service may store a data mapping table, which may include the application data ID corresponding to each service card and the storage address corresponding to the application data ID, for example, the gallery application data ID and the address corresponding to the application data ID, the calendar application data ID and the address corresponding to the calendar application data ID, and the weather application data ID and the address corresponding to the weather application data ID, etc. For example, the data management service may store the data mapping table shown in Table 1.
[0068] Table 1 Data mapping table
[0069] As shown in Table 1, the data mapping table stored in the data management service may include data IDs in the gallery application and storage addresses corresponding to the data IDs, for example, photo 1 and the storage address of photo 1, and photo 2 and the storage address of photo 2. The storage address of photo 1 may be address 11, and the storage address of photo 2 may be address 12.
[0070] As shown in Table 1, the data mapping table stored in the data management service may include the data ID and the storage address of the data in the calendar application, for example, calendar data 1 and the storage address of calendar data 1, and calendar data 2 and the storage address of calendar data 2. The storage address of calendar data 1 may be address 21, and the storage address of calendar data 2 may be address 22. Calendar data 1 and calendar data 2 may be any item such as date, time, reminder, etc. The embodiments of the present application do not specifically limit calendar data 1 and calendar data 2.
[0071] As shown in Table 1, the data mapping table stored in the data management service may include data and storage addresses in the weather application, for example, weather data 1 and the storage address of weather data 1, and weather data 2 and the storage address of weather data 2. The storage address of weather data 1 may be address 31, and the storage address of weather data 2 may be address 32. Weather data 1 and weather data 2 may be weather forecasts or weather warnings for half an hour later (for example, a red warning for heavy rain in the next hour). The embodiments of the present application do not specifically limit weather data 1 and weather data 2.
[0072] The address of the application data stored in the data management service may be the storage address of the application data in the hard disk of the electronic device 100. The data management service may also read the application data from the hard disk into the memory.
[0073] In some embodiments of the present application, when an electronic device adds a gallery card on the desktop, the desktop application of the electronic device generates a gallery card component accordingly. Then, when the card management service determines that a gallery card is added to the desktop application, the card management service can register the gallery extension service in the application extension service. In some embodiments of the present application, when the electronic device deletes a gallery card on the desktop, the desktop application of the electronic device can delete the gallery card component in the desktop application. When the system of the electronic device detects that the gallery extension service has no data interaction with other modules in the electronic device (e.g., the card management service, or the data management service) within a preset time period, the system of the electronic device can deregister the gallery application service. Alternatively, optionally, when the card management service determines that the gallery card is deleted from the desktop application, the card management service can notify the application extension service to deregister the gallery extension service.
[0074] Similarly, in some embodiments of the present application, when the electronic device 100 adds a calendar card to the desktop, the desktop application of the electronic device 100 generates a calendar card component accordingly. Then, when the card management service determines that a calendar card is added to the desktop application, the card management service can register the calendar extension service in the application extension service. When the electronic device 100 deletes a calendar card on the desktop, the desktop application of the electronic device 100 can delete the calendar card component in the desktop application. When the system of the electronic device 100 detects that the calendar extension service has no data interaction with other modules in the electronic device (for example, the card management service, or the data management service) within a preset time period, the system of the electronic device 100 can deregister the calendar extension service. Alternatively, optionally, when the card management service determines that the calendar card is deleted from the desktop application, the card management service can notify the application extension service to deregister the calendar extension service.
[0075] Similarly, in some embodiments of the present application, when the electronic device 100 adds a weather card to the desktop, the desktop application of the electronic device 100 generates a weather card component accordingly. Then, when the card management service determines that a weather card is added to the desktop application, the card management service can register the weather extension service in the application extension service. When the electronic device 100 deletes the weather card on the desktop, the desktop application of the electronic device 100 can delete the weather card component in the desktop application. When the system of the electronic device 100 detects that the weather extension service has no data interaction with other modules in the electronic device (e.g., the card management service, or the data management service) within a preset time period, the system of the electronic device 100 can deregister the weather extension service. Alternatively, optionally, when the card management service determines that the weather card is deleted from the desktop application, the card management service can notify the application extension service to deregister the weather extension service.
[0076] In some embodiments, the application extension service can be understood as an application existing in the background of the electronic device 100. The application extension service is a non-resident application and needs to be launched by the card management service.
[0077] The following describes in detail the processing mechanism for refreshing the service card of the electronic device 100 in conjunction with the above service card framework:
[0078] ①. The card management service of the electronic device 100 notifies the application extension service to obtain the first data.
[0079] For service cards displayed on the electronic device 100, the card management service may include a refresh mechanism for each service card. For example, a gallery card may be displayed in the desktop application of the electronic device 100, and the card management service may include a refresh mechanism for the gallery card (for example, the gallery card may display all photos in the gallery, or a user-specified album, or an album in the gallery that stores photos of the user's most memorable moments, in a chronological order).
[0080] The card management service can notify the corresponding application extension subservice in the application extension service to obtain the first data according to the refresh mechanism of each service card. The first data is the data that the service card will display next time. For example, the first data can be photo 1. When the gallery card needs to be refreshed, the card management service can notify the gallery extension service in the application extension service to obtain photo 1. For another example, the first data can be calendar data 1. When the calendar card needs to be refreshed, the card management service can notify the calendar extension service in the application extension service to obtain calendar data 1. For another example, the first data can be weather data 1. When the weather card needs to be refreshed, the card management service can notify the weather extension service in the application extension service to obtain weather data 1.
[0081] The refresh mechanisms for different service cards stored in the card management service can vary. For example, the refresh mechanism for a gallery card could be to rotate photos in the gallery containing the user's highlights at preset time intervals. Another example is a calendar card's refresh mechanism could be to update the date and day of the week corresponding to that day at midnight each day. Furthermore, if the user has a schedule set for the day, the calendar card could refresh and display that schedule 30 minutes before the start time. Another example is a weather card's refresh mechanism could be to update weather data every hour, or, if the user's city changes, i.e., if the user leaves city A for city B, the weather forecast for city B could be refreshed upon arrival.
[0082] The refresh mechanisms of the gallery card, calendar card, and weather card are merely examples. The embodiments of the present application do not limit the specific refresh mechanisms of service cards such as gallery cards, calendar cards, and weather cards.
[0083] ②. The application extension service of the electronic device 100 launches the application.
[0084] The application extension service of the electronic device 100 can launch a card provider. For example, when the gallery extension service in the application extension service receives a notification from the card management service to obtain refresh data, the gallery extension service can launch the gallery application and obtain refresh data from the gallery application. For another example, when the calendar extension service in the application extension service receives a notification from the card management service to obtain refresh data, the calendar extension service can launch the calendar application and obtain refresh data from the calendar application. For another example, when the weather extension service in the application extension service receives a notification from the card management service to obtain refresh data, the weather extension service can launch the weather application and obtain refresh data from the weather application.
[0085] ③. The card provider of the electronic device 100 queries the first data.
[0086] After the card provider of the electronic device 100 is pulled up, the first data can be queried. The card provider can query the address of the first data in the data management service. The data management service can inform the card provider of the identifier and address of the first data.
[0087] ④. The card provider of the electronic device 100 notifies the application extension service of the address of the first data.
[0088] After the card provider of electronic device 100 retrieves the first data, it may notify the corresponding application extension service of the identifier and storage address of the first data. For example, when the card provider is a gallery application, the first data retrieved by the gallery application from the data management service may be photo 1. The gallery application may send the identifier (e.g., photo name, ID, etc.) and storage address of photo 1 to the gallery extension service. For another example, when the card provider is a calendar application, the first data retrieved by the calendar application from the data management service may be calendar data 1. The calendar application may send the identifier (e.g., calendar data name, ID, etc.) and storage address of calendar data 1 to the calendar extension service. For another example, when the card provider is a weather application, the refresh data retrieved by the weather application from the data management service may be weather data 1. The weather application may send the identifier (e.g., weather data name, ID, etc.) and storage address of weather data 1 to the weather extension service. In some embodiments, the weather application may receive weather data 1 from the weather server before receiving the refresh data from the weather extension service. The weather application may then store the weather data 1 in the data management service.
[0089] In some embodiments, Photo 1 may be a photo in the data management service with an aesthetic score higher than a threshold of 1. Alternatively, Photo 1 may be a newly added photo in the data management service. Alternatively, Photo 1 may be a photo determined according to a refresh mechanism. This embodiment of the present application is not limited to this.
[0090] In some embodiments, calendar data 1 may be data information newly added to the data management service. Alternatively, calendar data 1 may be data information in the data management service whose start time is close to the current time (for example, the start time of calendar data 1 is half an hour after the current time).
[0091] Furthermore, in some embodiments, calendar data 1 may include one or more of a schedule start time, specific schedule information (e.g., meeting schedule, birthday reminder, ticket grabbing reminder, etc.), schedule end time, and schedule reminder time. The specific content of calendar data 1 is not limited in the embodiments of the present application.
[0092] In some embodiments, weather data 1 may be weather data information newly added in the data management service.
[0093] Furthermore, in some embodiments, the weather data 1 may include one or more of the following information: predicted future weather type, predicted future weather occurrence time, predicted future weather occurrence probability, etc. The specific content of the weather data 1 in the embodiments of the present application is not limited.
[0094] ⑤. The application extension service of the electronic device 100 sends a request to obtain the first data to the data management service.
[0095] After receiving the identifier and storage address of first data from the card provider, the application extension service of electronic device 100 may send a request to the data management service to obtain the first data. This request may include the identifier and / or storage address of the first data. For example, after receiving the identifier and storage address of photo 1 from the gallery application, the gallery extension service may send request 1 to the gallery application to obtain photo 1. This request 1 may include the identifier and / or storage address of photo 1. For another example, after receiving the identifier and storage address of calendar data 1 from the calendar application, the calendar extension service may send request 2 to the data management service to obtain calendar data 1. This request 2 may include the identifier and / or storage address of calendar data 1. For another example, after receiving the identifier and storage address of weather data 1 from the weather application, the weather extension service may send request 3 to the data management service to obtain weather data 1. This request 3 may include the identifier and / or storage address of weather data 1.
[0096] ⑥. The data management service of the electronic device 100 sends the first data to the application extension service.
[0097] After receiving a request from the application extension service, the data management service of the electronic device 100 may read the corresponding first data from the electronic device's hard disk into the memory and send the memory address of the first data to the application extension service. For example, after receiving request 1 from the gallery extension service, the data management service may send the memory address of photo 1 to the gallery extension service. For another example, after receiving request 2 from the calendar extension service, the data management service may send the memory address of calendar data 1 to the calendar extension service. For another example, after receiving request 3 from the weather extension service, the data management service may send the memory address of weather data 1 to the weather extension service.
[0098] ⑦. The application extension service of the electronic device 100 sends the acquired first data to the card management service.
[0099] The application extension service of the electronic device 100 may send the memory address of the obtained first data to the card management service. For example, the gallery extension service may send the memory address of the obtained photo 1 to the card management service. For another example, the calendar extension service may send the memory address of the obtained calendar data 1 to the card management service. For another example, the weather extension service may send the memory address of the obtained weather data 1 to the card management service.
[0100] ⑧. The card management service of the electronic device 100 sends the first data to the application card component module and notifies the application card component module to refresh the display.
[0101] After receiving the memory address of the first data, the card management service of the electronic device 100 can send the memory address of the refresh data to the application card component module and notify the application card component module to refresh the display. After the application card component obtains the memory address of the first data, it can obtain the first data based on the memory address of the first data and render the first data into the corresponding service card. That is, after the application card component refreshes the display, the first data can be displayed in the corresponding service card.
[0102] For example, the card management service can send the memory address of the received photo 1 to the gallery card component and notify the gallery card component to refresh the display. The gallery card component can then retrieve photo 1 based on the memory address of photo 1 and render and display photo 1. Finally, the gallery card visualized on electronic device 100 can include photo 1.
[0103] For another example, the card management service can send the memory address of the received calendar data 1 to the calendar card component and notify the calendar card component to refresh the display. The calendar card component can then obtain calendar data 1 based on the memory address of calendar data 1 and render and display calendar data 1. Finally, the calendar card displayed on the electronic device 100 can include calendar data 1.
[0104] For another example, the card management service can send the memory address of the received weather data 1 to the weather card component and notify the weather card component to refresh the display. The weather card component can then obtain weather data 1 based on the memory address of weather data 1 and render and display weather data 1. Finally, the weather card visualized by electronic device 100 can include weather data 1.
[0105] Thus, when the service card in the electronic device 100 is refreshed, the electronic device 100 needs to launch the application corresponding to the service card. Thus, when the resident service card in the electronic device 100 needs to be refreshed frequently, the electronic device 100 needs to launch the application frequently, which consumes a lot of power.
[0106] In order to reduce the power consumption of the electronic device 100 when refreshing the service card, an embodiment of the present application provides a service card refresh method, which may include: when the data proxy module in the electronic device 100 monitors that the data in the data management service is updated, or when the refresh mechanism in the data proxy module instructs the service card to refresh, the data proxy module in the electronic device 100 may notify the card management service to refresh the service card. Then, the card management service may pull up the corresponding application extension service. Next, the application extension service obtains the refresh data from the corresponding data management service based on the identifier of the refresh data and the storage address of the refresh data informed by the data proxy module. Then, the application extension service may send the obtained refresh data to the corresponding application card component module through the card management service. Finally, the application card component module may refresh the refresh data and display it in the corresponding service card.
[0107] FIG3A exemplarily shows a software architecture of an electronic device 100 provided in an embodiment of the present application.
[0108] As shown in FIG. 3A , the software architecture of the electronic device 100 may include an application layer and an application framework layer.
[0109] The application layer may include card users, application extension services, and card providers. For details about the card users and card providers in the application layer, please refer to the description in FIG2 and will not be repeated here.
[0110] Compared with Figure 2, when the refresh mechanism in the card management service determines to change the content displayed in the service card, the card management service no longer pulls up the application extension service to obtain refresh data.
[0111] As shown in FIG3A , the application framework layer may include a card management service, a data proxy module, and a data management service.
[0112] The data proxy module can monitor changes or updates to data in the data management service, i.e., monitor the addition or deletion of data in the data management service. The data proxy module can also be used to subscribe to the card management service. When the refresh mechanism in the card management service determines that the content of a service card needs to be modified, it can notify the data proxy module to query the data management service for the address of the refreshed data.
[0113] The refresh mechanism for some service cards can be defined by the developer of the electronic device 100 and stored in the card management service or data proxy module. Alternatively, the refresh mechanism for some service cards can be defined by the developer of the card provider of the service card, and the data proxy module can obtain the refresh mechanism from the card provider. Alternatively, the refresh mechanism for some service cards can be defined by the user. For example, the user can define the refresh frequency and refresh start time of the service card data.
[0114] The card management service can be used to launch the application extension service after receiving the refresh notification from the data proxy module. The card management service can also be used to send the refresh data obtained by the application extension service to the application card component and notify the application card component to refresh the display.
[0115] 3A , based on the software architecture of the electronic device 100 , a service card refresh method provided in an embodiment of the present application may include:
[0116] ①. The data proxy module of the electronic device 100 monitors the data management service.
[0117] The data proxy module of the electronic device 100 can monitor the data management service. For example, the data proxy module can monitor the data management service periodically or regularly. By monitoring the data management service, the data proxy module can learn whether data is added or deleted in the data management service.
[0118] ②. The data proxy module of the electronic device 100 subscribes to the refresh notification of the card management service.
[0119] A refresh mechanism for some service cards can be created in the card management service. The data proxy module can subscribe to some refresh mechanisms from the card management service. Specifically, the data proxy module can subscribe to the refresh mechanism from the card management service through the subcribe() function. The subcribe() function can carry a subscription subcribeID, a uniform resource identifier (URI), a callback function callback, a token ID, and options options. The subcribe() function can also be used to subscribe to events such as creating or editing cards based on user operations. subcribeID is the communication ID negotiated between the card service management and the data proxy module. URI refers to a data request initiated by the user. options can be used to indicate the timing or loop information of the refresh mechanism. The token ID can be used to identify the process.
[0120] When the card management service determines that the content displayed on the service card needs to be changed, the card management service may send a notification of acquiring data to the data proxy module. For example, the data proxy module may acquire the notification of acquiring data from the card management service through a subcribe() function.
[0121] The data proxy module may store or subscribe to refresh mechanisms for various service cards from the card management service. For example, the data proxy module includes refresh mechanisms for various service cards, such as the gallery card, calendar card, and weather card. The refresh mechanisms for the gallery card, calendar card, and weather card can be found in the description of step 1 in Figure 2 and will not be repeated here.
[0122] ③. The data management service of the electronic device 100 sends the data address to the data proxy module.
[0123] The data management service can send the data address of the service card to be refreshed and displayed to the data proxy module. The data corresponding to the data address can be the data to be displayed next time by the service card. For example, when the data proxy module monitors that the data in the data management service is photo 1, the data proxy module can obtain the address of photo 1 from the data management service. For another example, when the data proxy module monitors that the data in the data management service is calendar data 1, the data proxy module can obtain the storage address of calendar data 1 from the data management service. For another example, when the data monitored by the data proxy module is weather data 1, the data proxy module can obtain the address of weather data 1 from the data management service.
[0124] ④. The data proxy module of the electronic device 100 sends the data address to the card management service.
[0125] The data proxy module can send the acquired data address to the card management service. For example, the data proxy module can send the data address to the card management service through the callback function in the subcribe() function.
[0126] ⑤. The card management service of the electronic device 100 sends the data address to the application card component.
[0127] The card management service can send a data address to the application card component. When rendering, the application card component can parse the data address and retrieve the data from the data management service using the data address. Upon receiving the data request from the application card component, the data management service can read the data from the hard disk corresponding to the data address into memory.
[0128] In one possible implementation, the data management service reads the data into a public cache area in memory, and then the application card component can directly obtain the data from the public cache area.
[0129] Optionally, in another possible implementation, after the data management service reads the data into the memory, it also needs to send the memory address of the data to the application card component. The application card component obtains the data from the memory based on the memory address of the data.
[0130] After the application card component obtains the data, it can render and display the data in the service card.
[0131] The data obtained by the application card component can be code in JS, Java, or C++ language format, or binary data. The application card component needs to parse the data and render the visual content displayed in the service card (for example, images, text, buttons, controls, etc.).
[0132] In one possible implementation, the electronic device 100 further includes a rendering engine, and the application card component sends the acquired data to the rendering engine. The rendering engine parses the data and renders it into interface elements, which are then sent to the application card component. The application card component displays the interface elements.
[0133] For example, the photo in gallery card 102 in Figure 1A (hereinafter referred to as Photo A) is refreshed to display the photo shown in gallery card 102 in Figure 1B (hereinafter referred to as Photo B). The refresh mechanism of gallery card 102 can be a carousel of photos in the album, with the next photo changing every 5 seconds. First, when gallery card 102 displays Photo A as shown in Figure 1A, according to the refresh mechanism in the card management service, the card management service can notify the data proxy module to obtain the next photo in the album after Photo A, namely Photo B. The data proxy module can obtain the address of Photo B from the data management service. The data proxy module can then send the address of Photo B to the card management service. The card management service can then send the address of Photo B to the gallery card component. The gallery card component can parse the address of Photo B and, based on the address of Photo B, send a request to the data management service to obtain Photo B. After receiving the request, the data management service can read Photo B from the hard disk into memory. The gallery card component can then retrieve Photo B from memory. Then, the gallery card component may render and display the photo B in the gallery card 102 (ie, display the photo B in the gallery card 102 in FIG. 1B ).
[0134] The embodiments of the present application are described using application extension services, card management services, and data proxy modules as examples of software modules, that is, modules that implement corresponding functions in electronic devices.
[0135] Optionally, the card management service and the data proxy module may also be the same software module, which can simultaneously implement the functions implemented by the card management service and the data proxy module in the above steps ① to ⑤.
[0136] Optionally, the card management service and the application extension service may also be the same software module, which can simultaneously implement the functions implemented by the card management service and the application extension service in the above steps ① to ⑤.
[0137] In an embodiment of the present application, application card components, such as gallery card components, calendar card components, and weather card components, etc., can be provided by the electronic device system or provided by a third-party application, and this embodiment of the present application does not limit this.
[0138] 3B , based on the software architecture of the electronic device 100 , when the desktop application updates the service card in response to a user operation, the service card refresh method provided in the embodiment of the present application may include the following steps:
[0139] ①. The application card component of the electronic device 100 sends a refresh instruction to the card management service in response to the user operation.
[0140] Users can create or edit service cards. For example, as shown in Figure 4A, the user can long press the gallery card 102. In response to the user operation, the electronic device 100 can display the user interface 20. As shown in Figure 4B, the user interface 20 can display an option box 401, which can include option 401A. The user can click option 401A. In response to the user operation, the electronic device 100 can display the user interface 30. As shown in Figure 4C, the user interface 30 can display an option box 402. Option box 402 can include options 403, 405, 406, and 407. Option 403 can be used to set the playback interval of photos in the gallery card (for example, 5 seconds). Option 406 can be used to specify that the gallery card play photos from a specified album. After the user selects option 406, option 404 can be displayed in option box 402. The user can specify an album through option 404. Option 405 can be used to specify the photos to be played in the gallery card. Option 407 can be used to specify a gallery card to play smartly selected photos in the gallery.
[0141] The user can also click on the “More” gallery “cards” option in the option box 401 shown in FIG. 4B to create another gallery card.
[0142] The user operations and user interfaces shown in FIG. 4A to FIG. 4C are merely examples and are not limited to the embodiments of the present application.
[0143] In response to a user operation of creating or editing a service card, the application card component or the desktop application may send a refresh instruction to the card management service.
[0144] Optionally, in a possible implementation, the refresh instruction may also carry the control affected by the user operation or the coordinates of the affected control.
[0145] ②. The card management service of the electronic device 100 launches the application extension service.
[0146] After receiving the refresh instruction, the card management service of electronic device 100 may send a refresh notification to the application extension service. The refresh notification may include the control affected by the user operation or the coordinates of the affected control. Based on the refresh notification, the application extension service may determine whether to create or edit a service card.
[0147] ③. The application extension service of the electronic device 100 configures data in the data management service.
[0148] When the application extension service determines that a service card is to be created, the application extension service may configure the data required for the service card in the data management service. For example, if a gallery card already exists on electronic device 100, and a new gallery card is created based on a user operation, the application extension service may need to configure the data required for the newly created gallery card. The photo displayed in the newly created gallery card may be the same as the photo displayed in the existing gallery card, or it may display a different photo. For example, a user may click the "More" gallery card option as shown in FIG. 4B . In response to this user operation, the application extension service may need to configure the data required for creating another gallery card.
[0149] When the app extension service determines that the service card is being edited, it can configure the data required for the service card in the data management service. For example, when the user specifies the Gallery card to play photos from Album 1, the app extension service can configure the data for Album 1 in the data management service. The app extension service can configure a data interface in the data management service to transfer the photo data from Album 1.
[0150] That is, based on user actions, the application extension service specifies the data required to refresh the service card in the data management service. The application extension service can configure a data interface in the data management service to transmit the data required to refresh the service card.
[0151] ④. The data proxy module of the electronic device 100 monitors the data management service and obtains the data address from the data management service.
[0152] The data proxy module of the electronic device 100 can monitor the data management service and obtain the data address from the data management service. Then, the data management service can send the data address of the data required to refresh the service card to the data proxy module through the data interface configured by the application extension service.
[0153] ⑤. The data proxy module of the electronic device 100 sends the data address to the card management service.
[0154] The data proxy module can send the received data address to the card management service.
[0155] ⑥. The card management service of the electronic device 100 sends the data address to the application card component.
[0156] The card management service can send a data address to the application card component. When rendering, the application card component can parse the data address and retrieve the data from the data management service using the data address. Upon receiving the data request from the application card component, the data management service can read the data from the hard disk corresponding to the data address into memory.
[0157] In one possible implementation, the data management service reads the data into a public cache area in memory, and then the application card component can directly obtain the data from the public cache area.
[0158] Optionally, in another possible implementation, after the data management service reads the data into the memory, it also needs to send the memory address of the data to the application card component. The application card component obtains the data from the memory based on the memory address of the data.
[0159] After the application card component obtains the data, it can render and display the data in the service card.
[0160] For step ⑥, reference may be made to the description of step ⑤ in FIG. 3A .
[0161] Alternatively, in one possible implementation, electronic device 100 may not perform steps 4 and 5 above. Specifically, upon receiving the refresh notification sent by the card management service, the application extension service of electronic device 100 may directly obtain the data address of the data required to refresh the service card from the data management service. The application extension service may then send the obtained data address to the card management service. The electronic device 100 may then perform step 6.
[0162] In this way, the data proxy module can realize the refresh management of various service cards. When refreshing a service card, there is no need to launch the corresponding application. This can save power consumption of electronic devices.
[0163] To facilitate understanding of a service card refresh method involved in an embodiment of the present application, the refresh process of the gallery card is described below with reference to the accompanying drawings.
[0164] FIG5 shows an interactive diagram of the gallery card refresh process.
[0165] As shown in FIG5 , the gallery card refresh process of the electronic device 100 may include the following steps:
[0166] S501-S506: Refresh mechanism triggers refresh of gallery card
[0167] S501. The data proxy module in the electronic device 100 subscribes to a refresh notification from a card management service.
[0168] The data proxy module can subscribe to the refresh mechanism of the gallery card from the card management service. When the card management service determines that the content displayed in the gallery card needs to be changed according to the refresh mechanism, the data proxy module can obtain the refresh notification sent by the card management service.
[0169] The description of step S501 may refer to step ① in FIG3A , which will not be repeated here.
[0170] S502: The data proxy module of the electronic device 100 monitors the data management service.
[0171] The data agent module can monitor data management services periodically, regularly, or in real time.
[0172] Step S501 and step S502 may be executed in any order.
[0173] S503: The data management service in the electronic device 100 sends the address of the gallery data 1 to the data proxy module.
[0174] The data management service can send the address of the gallery data 1 to the data proxy module. For example, the refresh mechanism of the gallery card is that the gallery card rotates the photos in album 1 in the gallery, and changes a photo every 30 seconds. The gallery card displays photo 2 in album 1 at 12:00:00. According to this refresh mechanism, the gallery card needs to refresh the display at 12:00:30 to display photo 3 in album 1. Then the data proxy module can start obtaining the address of the photo in album 1 in the data management service n seconds before 12:00:30. Here, the value of n can be 1, 2, or 3. The embodiment of the present application does not limit the specific value of n.
[0175] Optionally, in one possible implementation, when the data proxy module monitors changes in the gallery data in the data management service, for example, a new photo is added, the data proxy module can obtain the address of the new photo from the data management service, and then send the address of the new photo to the card management service.
[0176] Optionally, the refresh mechanism of the gallery card can be that when a new photo is added to the gallery, the currently displayed photo in the gallery card can be replaced with the newly added photo. When there are no new photos in the gallery, the currently displayed photo in the gallery card may not be replaced. Specifically, when a new photo is added to the gallery, the data management service will accordingly add the identifier of the photo and the storage address corresponding to the photo identifier. Then, when the data proxy module monitors that the gallery data in the data management service has changed, for example, a new photo has been added. The data proxy module can obtain the address of the newly added photo from the data management service, and then the data proxy module can send the address of the newly added photo to the card management service.
[0177] S504: The data proxy module in the electronic device 100 sends the address of the gallery data 1 to the card management service.
[0178] The data proxy module in the electronic device 100 can send the address of the gallery data 1 to the card management service. The gallery data 1 can be photos in the gallery, for example, the photo 1, photo 2, photo 3, etc. mentioned above.
[0179] S505 . The card management service in the electronic device 100 sends the address of the gallery data 1 to the gallery card component.
[0180] The card management service in the electronic device can send the address of the gallery data 1 to the gallery card component.
[0181] For step S505, reference may be made to the description of step ⑤ in FIG. 3A , which will not be repeated here.
[0182] S506 . The gallery card component in the electronic device 100 obtains the gallery data 1 based on the address of the gallery data 1 , and renders and displays the gallery data 1 .
[0183] When rendering, the Gallery Card component can resolve the address of Gallery Data 1. Then, the Gallery Card component can retrieve the data from the data management service using the address of Gallery Data 1. Upon receiving the Gallery Card component's request to retrieve Gallery Data 1, the data management service can read the Gallery Data 1 from the hard disk corresponding to the address of Gallery Data 1 into memory.
[0184] In a possible implementation, the data management service reads the gallery data 1 into a public cache area in the memory. Then, the gallery card component can directly obtain the gallery data 1 from the public cache area.
[0185] Optionally, in another possible implementation, after the data management service reads the library data 1 into the memory, it also needs to send the memory address of the library data 1 to the library card component. The library card component obtains the library data 1 from the memory based on the memory address of the library data 1.
[0186] After the gallery card component obtains the gallery data 1, the gallery data 1 can be rendered and displayed in the gallery card.
[0187] The data obtained by the Gallery Card component can be code in JS, Java, or C++ language format, or binary data. The Gallery Card component needs to parse the data and render the visual content (i.e., photos) displayed in the Gallery Card.
[0188] In one possible implementation, the electronic device 100 further includes a rendering engine, and the gallery card component sends the acquired gallery data 1 to the rendering engine. The rendering engine parses the gallery data 1 and renders it into a photo, which is then sent to the application card component. The application card component displays the photo.
[0189] S507-S514: User operation triggers refresh of gallery card
[0190] S507 . The gallery card component of the electronic device 100 detects a user operation 1 of editing a gallery card.
[0191] The user operation 1 may be an operation for the user to edit the gallery card. For example, as shown in FIG4A-FIG4C , the user operation 1 may be the user long pressing the gallery card 102 , then clicking option 401A, then clicking option 406 , and then selecting an album in option 404 .
[0192] This embodiment of the application does not limit user operation 1.
[0193] S508. In response to the user operation 1, the gallery card component of the electronic device 100 sends an instruction to refresh the gallery card to the card management service.
[0194] In response to the user operation 1 , the gallery card component may send an instruction to refresh the gallery card to the card management service.
[0195] S509 : The card management service of the electronic device 100 notifies the gallery extension service to configure data required to refresh the gallery card.
[0196] After the card management service receives the instruction to refresh the gallery card, the application extension service can configure a data interface in the data management service, which can be used to transfer the photo data in album 1; and can notify the gallery extension service to configure the data required to refresh the gallery card.
[0197] S510 : The gallery extension service of the electronic device 100 configures data in the data management service.
[0198] After receiving notification from the card management service, the gallery extension service can configure data in the data management service.
[0199] For step S510 , reference may be made to the description of step ③ in FIG. 3B .
[0200] S511. The data management service of the electronic device 100 sends the address of the gallery data 2 to the data proxy module.
[0201] The data configured by the gallery extension service may include gallery data 2. Then, the data management service of the electronic device 100 may send the address of the gallery data 2 to the data proxy module.
[0202] S512: The data proxy module in the electronic device 100 sends the address of the gallery data 2 to the card management service.
[0203] The data proxy module in the electronic device 100 can send the address of the gallery data 2 to the card management service.
[0204] S513: The card management service in the electronic device 100 sends the address of the gallery data 2 to the gallery card component.
[0205] The card management service in the electronic device 100 can send the address of the gallery data 2 to the gallery card component.
[0206] S514 . The gallery card component in the electronic device 100 obtains the gallery data 2 based on the address of the gallery data 2 , and renders and displays the gallery data 2 .
[0207] When rendering, the Gallery Card component can parse the address of the Gallery Data 2. The Gallery Card component can then retrieve the data from the data management service using the address of the Gallery Data 2. Upon receiving the Gallery Card component's request to retrieve the Gallery Data 2, the data management service can read the Gallery Data 2 from the hard disk corresponding to the address of the Gallery Data 2 into memory.
[0208] In a possible implementation, the data management service reads the gallery data 2 into a public cache area in the memory. Then, the gallery card component can directly obtain the gallery data 2 from the public cache area.
[0209] Optionally, in another possible implementation, after the data management service reads the library data 2 into the memory, it also needs to send the memory address of the library data 2 to the library card component. The library card component obtains the library data 2 from the memory based on the memory address of the library data 1.
[0210] After the gallery card component obtains the gallery data 2, the gallery data 2 can be rendered and displayed in the gallery card.
[0211] The data obtained by the Gallery Card component can be code in JS, Java, or C++ language format, or binary data. The Gallery Card component needs to parse the data and render the visual content (i.e., photos) displayed in the Gallery Card.
[0212] In one possible implementation, the electronic device 100 further includes a rendering engine, and the gallery card component sends the acquired gallery data 2 to the rendering engine. The rendering engine parses the gallery data 2 and renders it into a photo, which is then sent to the application card component. The application card component displays the photo.
[0213] In this way, through the above steps, whether the gallery card refresh is triggered by the refresh mechanism or by user operation, the electronic device does not need to launch the gallery application every time the gallery card is refreshed. This can save power consumption of the electronic device.
[0214] It is understandable that the service card refresh method of the present application can be applied to other service cards of electronic devices, such as calendar cards, weather cards, sports and health cards, etc. The refresh process of other service cards can refer to the refresh process of the gallery card above, which will not be repeated here.
[0215] It is understandable that a service card may have multiple card providers, that is, the content displayed in the service card may also be data stored by multiple applications. For example, the content displayed on a calendar card may include the date, day of the week, and schedule. The date and day of the week may be data stored on the hard disk by the calendar application, and the schedule may be data stored on the hard disk by a memo application or a note application. The embodiments of the present application do not limit the number of card provider applications for the content displayed on the service card.
[0216] In the embodiment of the present application, the first content can be the content displayed on the gallery card before refreshing (for example, photo A), or the content displayed on the calendar card before refreshing, or the content displayed on the weather card before refreshing. The second content and the third content can be any of the first data mentioned above, photo 1, calendar data 1, weather data 1, and gallery data 1. The fourth content can be the gallery data 2 mentioned above.
[0217] The following introduces an exemplary electronic device 100 provided in an embodiment of the present application.
[0218] FIG6 is a schematic structural diagram of an electronic device 100 provided in an embodiment of the present application.
[0219] The following embodiments are described in detail using electronic device 100 as an example. It should be understood that electronic device 100 may have more or fewer components than shown in the figure, may combine two or more components, or may have a different component configuration. The various components shown in the figure may be implemented in hardware, including one or more signal processing and / or application-specific integrated circuits, software, or a combination of hardware and software.
[0220] 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, a bone conduction sensor 180M, etc.
[0221] It should be understood that the structure illustrated in the embodiments of the present invention does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0222] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors.
[0223] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
[0224] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 110 latency, and thus improves system efficiency.
[0225] In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface.
[0226] The I2C interface is a bidirectional synchronous serial bus that includes a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple I2C bus lines. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, and the like via different I2C bus interfaces. For example, the processor 110 may be coupled to the touch sensor 180K via the I2C interface, enabling communication between the processor 110 and the touch sensor 180K via the I2C bus interface, thereby implementing the touch function of the electronic device 100.
[0227] The I2S interface can be used for audio communication. In some embodiments, the processor 110 can include multiple I2S buses. The processor 110 can be coupled to the audio module 170 via the I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 via the I2S interface, enabling the function of answering calls through a Bluetooth headset.
[0228] The PCM interface can also be used for audio communication, sampling, quantizing, and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled via a PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 via the PCM interface, enabling the function of answering calls via a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
[0229] The UART interface is a universal serial data bus used for asynchronous communication. This bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is typically used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 via the UART interface to implement Bluetooth functionality. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 via the UART interface, enabling the function of playing music through Bluetooth headphones.
[0230] The MIPI interface can be used to connect the processor 110 to peripheral devices such as the display 194 and the camera 193. MIPI interfaces include the camera serial interface (CSI) and the display serial interface (DSI). In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to implement the camera function of the electronic device 100. The processor 110 and the display 194 communicate via the DSI interface to implement the display function of the electronic device 100.
[0231] The GPIO interface can be configured via software. The GPIO interface can be configured as either a control signal or a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 to the camera 193, display 194, wireless communication module 160, audio module 170, sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.
[0232] The SIM interface can be used to communicate with the SIM card interface 195 to implement the function of transmitting data to the SIM card or reading data in the SIM card.
[0233] The USB interface 130 is an interface that complies with USB standards and may be a Mini USB interface, a Micro USB interface, a USB Type-C interface, or the like. The USB interface 130 can be used to connect a charger to charge the electronic device 100, or to transfer data between the electronic device 100 and peripheral devices. It can also be used to connect headphones to play audio. This interface can also be used to connect other electronic devices, such as augmented reality devices.
[0234] It is understood that the interface connection relationship between the modules illustrated in the embodiment of the present invention is merely an illustrative illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods from the above embodiments, or a combination of multiple interface connection methods.
[0235] The charging management module 140 is configured to receive charging input from a charger, which may be a wireless charger or a wired charger.
[0236] The power management module 141 is used to connect the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 to provide power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, and the wireless communication module 160.
[0237] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0238] Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction with a tuning switch.
[0239] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
[0240] The modem processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After being processed by the baseband processor, the low-frequency baseband signal is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.) or displays an image or video through the display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.
[0241] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0242] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with a network and other devices through wireless communication technologies. The wireless communication technologies may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).
[0243] Electronic device 100 implements display functionality through a GPU, display screen 194, and an application processor. A GPU is a microprocessor for image processing that connects display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or modify display information.
[0244] Display screen 194 is used to display images, videos, and the like. 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 MiniLED, a MicroLED, a Micro-oLed, or a quantum dot light-emitting diode (QLED). In some embodiments, electronic device 100 may include one or N display screens 194, where N is a positive integer greater than one.
[0245] The electronic device 100 can implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.
[0246] The ISP processes data fed back by camera 193. For example, when taking a photo, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, which is then passed to the ISP for processing and converted into a visible image. The ISP can also perform algorithmic optimization on image noise, brightness, and color. It can also optimize parameters such as exposure and color temperature of the captured scene. In some embodiments, the ISP can be located within camera 193.
[0247] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, and then passes the electrical signal to the ISP for conversion into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
[0248] The digital signal processor is used to process digital signals. In addition to processing digital image signals, it can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
[0249] Video codecs are used to compress or decompress digital video. Electronic device 100 may support one or more video codecs. This allows electronic device 100 to play or record videos in various encoding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, and MPEG4.
[0250] The NPU is a neural network (NN) computing processor. Drawing on the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it rapidly processes input information and can continuously self-learn. The NPU can enable intelligent cognitive applications in electronic device 100, such as image recognition, face recognition, speech recognition, and text comprehension.
[0251] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 via the external memory interface 120 to implement data storage functions. For example, files such as music and videos can be stored on the external memory card.
[0252] The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, applications required for at least one function (such as face recognition function, fingerprint recognition function, mobile payment function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as face information template data, fingerprint information template, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.
[0253] The electronic device 100 can implement audio functions such as music playback and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0254] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be provided in the processor 110, or some functional modules of the audio module 170 can be provided in the processor 110.
[0255] The speaker 170A, also called a "speaker," is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music or make hands-free calls through the speaker 170A.
[0256] The receiver 170B, also called a "handset", is used to convert audio electrical signals into sound signals. When the electronic device 100 receives a call or voice message, the voice can be heard by placing the receiver 170B close to the human ear.
[0257] Microphone 170C, also known as "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to the microphone 170C to input the sound signal into the microphone 170C. The electronic device 100 can be provided with at least one microphone 170C. In other embodiments, the electronic device 100 can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to realize sound signal collection, noise reduction, and identification of sound sources, and realize directional recording function, etc.
[0258] The headphone jack 170D is used to connect a wired headphone and can be the USB interface 130 or a 3.5mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.
[0259] Pressure sensor 180A is used to sense pressure signals and convert them into electrical signals. In some embodiments, pressure sensor 180A can be located on display screen 194. There are many types of pressure sensors 180A, such as resistive, inductive, and capacitive. A capacitive pressure sensor can include at least two parallel plates made of conductive material. When force acts on pressure sensor 180A, the capacitance between the electrodes changes. Electronic device 100 determines the intensity of the pressure based on this change in capacitance. When a touch operation is applied to display screen 194, electronic device 100 detects the touch intensity based on pressure sensor 180A. Electronic device 100 can also calculate the touch location based on the detection signal from pressure sensor 180A. In some embodiments, touch operations applied to the same touch location but with different touch intensities can correspond to different operation instructions. For example, when a touch operation with an intensity less than a first pressure threshold is applied to a short message application icon, a command to view short messages is executed. When a touch operation with an intensity greater than or equal to the first pressure threshold is applied to a short message application icon, a command to create a new short message is executed.
[0260] The gyroscope sensor 180B can be used to determine the motion posture of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around three axes (i.e., x, y, and z axes) can be determined by the gyroscope sensor 180B. The gyroscope sensor 180B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyroscope sensor 180B detects the angle of the electronic device 100 shaking, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the electronic device 100 through reverse movement to achieve anti-shake. The gyroscope sensor 180B can also be used for navigation and somatosensory game scenes.
[0261] The air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude using the air pressure value measured by the air pressure sensor 180C to assist in positioning and navigation.
[0262] The magnetic sensor 180D includes a Hall sensor. The electronic device 100 can use the magnetic sensor 180D to detect the opening and closing of the flip case. In some embodiments, when the electronic device 100 is a flip phone, the electronic device 100 can detect the opening and closing of the flip cover based on the magnetic sensor 180D. Based on the detected opening and closing status of the case or flip cover, features such as automatic unlocking of the flip cover can be configured.
[0263] Accelerometer 180E can detect the magnitude of acceleration of electronic device 100 in all directions (generally three axes). It can also detect the magnitude and direction of gravity when electronic device 100 is stationary. It can also be used to identify the electronic device's posture, enabling applications such as switching between landscape and portrait modes and pedometers.
[0264] The distance sensor 180F is used to measure distance. The electronic device 100 can measure distance using infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use the distance sensor 180F to measure distance to achieve fast focusing.
[0265] The proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 100 emits infrared light outward through the light emitting diode. The electronic device 100 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 can determine that there is no object near the electronic device 100. The electronic device 100 can use the proximity light sensor 180G to detect that the user is holding the electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power. The proximity light sensor 180G can also be used in leather case mode and pocket mode to automatically unlock and lock the screen.
[0266] Ambient light sensor 180L is used to sense ambient light brightness. Electronic device 100 can adaptively adjust the brightness of display screen 194 based on the perceived ambient light. Ambient light sensor 180L can also be used to automatically adjust white balance when taking photos. Ambient light sensor 180L can also work with proximity light sensor 180G to detect whether electronic device 100 is in a pocket to prevent accidental touches.
[0267] The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photography, fingerprint call answering, etc.
[0268] The temperature sensor 180J is used to detect temperature. In some embodiments, the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 100 reduces the performance of the processor located near the temperature sensor 180J to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to prevent the electronic device 100 from shutting down abnormally due to low temperature. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 boosts the output voltage of the battery 142 to prevent abnormal shutdown due to low temperature.
[0269] The touch sensor 180K is also called a "touch panel." The touch sensor 180K can be disposed on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, also called a "touch screen." The touch sensor 180K is used to detect touch operations applied thereto or in the vicinity thereof. The touch sensor can transmit the detected touch operations to the application processor to determine the type of touch event. Visual output related to the touch operations can be provided via the display screen 194. In other embodiments, the touch sensor 180K can also be disposed on the surface of the electronic device 100, in a location different from that of the display screen 194.
[0270] The buttons 190 include a power button, a volume button, and the like. The buttons 190 may be mechanical buttons or touch buttons. The electronic device 100 may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 100.
[0271] Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 194, motor 191 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
[0272] The indicator 192 may be an indicator light, which may be used to indicate the charging status, power level changes, messages, missed calls, notifications, etc.
[0273] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to and disconnected from the electronic device 100 by inserting it into or removing it from the SIM card interface 195. The electronic device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as calls and data communications.
[0274] The electronic device 100 in the embodiment of the present application includes but is not limited to mobile phones, tablets, laptops and other terminal devices that can display service cards.
[0275] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the above embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the above embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
[0276] As used in the above embodiments, the term “when…” may be interpreted to mean “if…” or “after…” or “in response to determining…” or “in response to detecting…”, depending on the context. Similarly, the phrases “upon determining…” or “if (stated condition or event) is detected” may be interpreted to mean “if determining…” or “in response to determining…” or “upon detecting (stated condition or event)” or “in response to detecting (stated condition or event)”, depending on the context.
[0277] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. 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 instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of 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 device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) method. 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 data center that includes one or more available media integrations. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk).
[0278] Those skilled in the art will appreciate that all or part of the process steps in the above-described method embodiments can be implemented by a computer program instructing the relevant hardware. The program can be stored in a computer-readable storage medium, and when executed, the program can include the process steps in the above-described method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as ROM or random access memory (RAM), magnetic disks, or optical disks.< / canvas> < / video> < / videoview> < / imgview> < / textview>
Claims
1. A service card refresh method, characterized in that: The method is applied to an electronic device, the electronic device is installed with a first application, the electronic device includes a data proxy module, a card management service, and a data management service, and the method includes: The electronic device displays a first service card, and displays first content in the first service card; The data proxy module obtains the address of the second content from the data management service, wherein the data management module is used to store the data identifier and address of the first application, and the data identifier and address of the first application include the identifier and address of the first content and the identifier and address of the second content; The data proxy module sends the address of the second content to the card management service; The card management service provides the address of the second content to the electronic device; The electronic device acquires the second content based on the address of the second content, and displays the second content in the first service card.
2. The method according to claim 1, characterized in that The data proxy module obtains the address of the second content from the data management service, including: The card management service sends a first notification to the data proxy module; The data proxy module obtains the address of the second content in the data management service in response to the first notification.
3. The method according to claim 2, characterized in that The card management service sends a first notification to the data proxy module, including: The card management service presets a refresh mechanism for the first service card, and sends the first notification to the data proxy module based on the refresh mechanism.
4. The method according to any one of claims 1 to 3, characterized in that: After the electronic device displays the first service card and displays the first content in the first service card, the method further includes: When the data proxy module obtains updated third content from the data management service, The data proxy module sends the address of the third content to the card management service; The card management service provides the address of the third content to the electronic device; The electronic device acquires the third content based on the address of the third content, and displays the third content in the first service card.
5. The method according to any one of claims 1 to 4, characterized in that: The electronic device further includes an application extension service, the electronic device displays a first service card, and before displaying the first content in the first service card, the method further includes: The first application obtains the first content and the second content, and stores the address of the first content and the address of the second content in the data management service; The first application provides the address of the first content to the application extension service; The application extension service center sends the address of the first content to the card management service; The card management service provides the address of the first content to the electronic device.
6. The method according to claim 5, characterized in that The method further comprises: The first application detects an editing operation of the user on the first service card, where the editing operation is used to instruct the first service card to obtain content of the first resource; In response to the editing operation, the data proxy module sends the address of the fourth content to the card management service, the fourth content being the content of the first resource; The card management service sends the address of the fourth content to the electronic device; The electronic device acquires the fourth content based on the address of the fourth content, and displays the fourth content in the first service card.
7. The method according to claim 6, characterized in that In response to the editing operation, the data proxy module sends the address of the fourth content to the card management service, including: In response to the editing operation, performing a first configuration in the data management service, The data management service sends the address of the fourth content to the data proxy module according to the first configuration; The data proxy module sends the address of the fourth content to the card management service.
8. The method according to claim 7, characterized in that In response to the editing operation, performing a first configuration in the data management service includes: In response to the editing operation, the first application sends a second notification to the card management service; In response to the second notification, the card management service sends a third notification to the application extension service; In response to the third notification, the application extension service performs a first configuration in the data management service.
9. The method according to any one of claims 1 to 8, characterized in that: The electronic device acquires the second content based on the address of the second content and displays the second content in the first service card, specifically including: The electronic device obtains the second content from the data management service based on the address of the second content; The data management service reads the second content from the hard disk of the electronic device into the memory of the electronic device; The second content is acquired from the memory of the electronic device, and the second content is displayed in the first service card.
10. The method according to claim 9, characterized in that After the data management service reads the second content from the hard disk of the electronic device into the memory of the electronic device, the method further includes: The data management service sends a memory address of the second content in the memory of the electronic device to the electronic device.
11. The method according to any one of claims 1 to 10, characterized in that: The first service cards include a gallery card, a calendar card, and a weather card.
12. The method according to claim 10, characterized in that The first application includes a gallery application, a calendar application, and a weather application.
13. An electronic device, characterized in that: The method comprises one or more processors and one or more memories; wherein the one or more memories are coupled to the one or more processors, and the one or more memories are used to store computer program codes, wherein the computer program codes include computer instructions, and when the one or more processors execute the computer instructions, the method as described in any one of claims 1 to 12 is executed.
14. A chip system, the chip system is applied to electronic equipment, the chip system comprises one or more processors, characterized in that: The processor is configured to call computer instructions so as to execute the method according to any one of claims 1 to 12.
15. A computer-readable storage medium comprising instructions, characterized in that: When the instructions are executed on an electronic device, the method according to any one of claims 1 to 12 is executed.
Citation Information
Patent Citations
Service card refreshing method and electronic equipment
CN119718493A
Service card display method and device and storage medium
CN112241867A
Dynamic card display method and device
CN113722028A
Card updating method, electronic equipment and computer readable storage medium
CN116755748A
Dynamic widget for displaying status information
US11550443B1