Interface updating method, device, intelligent terminal and storage medium

By switching the application mode in the smart terminal and obtaining different execution file sets, and adjusting the order and quantity of the interface execution files, the problem of low application update efficiency in the existing technology is solved, and the interface is updated in real time during the application running process. and efficient updates.

CN114721696BActive Publication Date: 2024-10-15TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110006798.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-01-04
Publication Date
2024-10-15
Estimated Expiration
2041-01-04

AI Technical Summary

Technical Problem

Existing smart terminals need to end the application process when updating applications, resulting in low update efficiency and the inability to update the interface in real time while the application is running.

Method used

By hiding the application interface when the target application switches from the first mode to the second mode, obtaining different sets of execution files, and adjusting the order and quantity of the interface execution files, the application interface is updated during hot start and the application running process is implemented. Interface update in .

Benefits of technology

The efficiency of interface update is improved, allowing the smart terminal to update the application interface when the target application is hot-started, achieving real-time refresh and avoiding the need to restart the application for interface update.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114721696B_ABST
    Figure CN114721696B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention discloses an interface update method, device, intelligent terminal and storage medium, the method comprising: in response to a trigger operation of switching a target application from a first mode to a second mode, hiding the application interface displayed when the target application is run in the first mode, the display content of the application interface when the target application is run in the first mode is determined by the first execution file set; if the target application is run in the first mode again, obtaining the second execution file set, the second execution file set and the first execution file set include interface execution files with different arrangement orders or different numbers of interface execution files; adjusting the application interface according to the second execution file set, and displaying the adjusted application interface. By adopting the embodiment of the present invention, the target application can update the application interface during hot start, realizing the effective update of the application interface during the operation of the target application, and improving the efficiency of interface update.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology and in particular to an interface updating method, device, intelligent terminal and storage medium. Background Art

[0002] With the development of computer technology, various applications have emerged, such as communication applications, social applications or reading applications. In order to better meet the needs of users for application use, each application needs to be constantly updated to improve user satisfaction when using the application. At present, most of the application update methods use manual update methods, that is, by clicking the update button corresponding to the application to update it. When the current smart terminal updates the application, it usually needs to end the running process of the application to avoid problems such as flashback or crash of the application caused by the smart terminal during the application update process. It can be seen that the current smart terminal application update method has the problem of low update efficiency. Summary of the invention

[0003] The embodiments of the present invention provide an interface update method, device, intelligent terminal and storage medium, so that the target application can update the application interface when hot starting, realize the effective update of the application interface during the operation of the target application, and improve the efficiency of interface update.

[0004] On the one hand, an embodiment of the present invention provides an interface updating method, comprising:

[0005] In response to a triggering operation of switching a target application from a first mode to a second mode, hiding an application interface displayed when the target application is run in the first mode, wherein display content of the application interface when the target application is run in the first mode is determined by a first execution file set;

[0006] If the target application is run in the first mode again, a second execution file set is obtained, wherein the second execution file set and the first execution file set have different arrangement orders of interface execution files, or different numbers of interface execution files, or different arrangement orders and different numbers of interface execution files;

[0007] The application interface is adjusted according to the second execution file set, and the adjusted application interface is displayed.

[0008] In one aspect, an embodiment of the present invention provides an interface updating device, comprising:

[0009] a processing unit, configured to, in response to a triggering operation of switching a target application from a first mode to a second mode, hide an application interface displayed when the target application is run in the first mode, wherein display content of the application interface when the target application is run in the first mode is determined by a first executable file set;

[0010] The processing unit is further configured to obtain a second execution file set if the target application is run in the first mode again, wherein the second execution file set and the first execution file set have different arrangement orders of interface execution files or different numbers of interface execution files;

[0011] The processing unit is further used to adjust the application interface according to the second execution file set;

[0012] The display unit is used to display the adjusted application interface.

[0013] On the one hand, an embodiment of the present invention provides an intelligent terminal, characterized in that it includes:

[0014] a processor adapted to implement one or more instructions; and,

[0015] A computer storage medium storing one or more instructions, wherein the one or more instructions are suitable for being loaded by the processor and executing the following steps:

[0016] In response to a triggering operation of switching a target application from a first mode to a second mode, hiding an application interface displayed when the target application is run in the first mode, wherein display content of the application interface when the target application is run in the first mode is determined by a first execution file set;

[0017] If the target application is run in the first mode again, a second execution file set is obtained, wherein the second execution file set and the first execution file set have different arrangement orders of interface execution files, or different numbers of interface execution files, or different arrangement orders and different numbers of interface execution files;

[0018] The application interface is adjusted according to the second execution file set, and the adjusted application interface is displayed.

[0019] On the one hand, an embodiment of the present invention provides a computer storage medium, characterized in that computer program instructions are stored in the computer storage medium, and when the computer program instructions are executed by a processor, they are used to execute the above-mentioned interface update method.

[0020] On the one hand, an embodiment of the present invention provides a computer program product or a computer program, wherein the computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium; a processor of a smart terminal reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, and when the computer instructions are executed by the processor, they are used to execute the above-mentioned interface update method.

[0021] In an embodiment of the present invention, the smart terminal switches the target application from a first mode to a second mode, hides the application interface displayed when the target application is run in the first mode, wherein the display content of the application interface when the first mode is run is determined by the first execution file set; if the smart terminal re-adopts the first mode to run the target application, a second execution file set different from the interface execution file included in the first execution file set is obtained; the smart terminal adjusts the application interface according to the second execution file set, and displays the adjusted application interface; the smart terminal can update the application interface of the target application when the target application is hot-started, thereby achieving effective update of the application interface of the target application during the operation of the target application, and innovatively proposes a new interface update method to improve the efficiency of interface update. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0023] Figure 1 is a structural diagram of an interface updating system provided by an embodiment of the present invention;

[0024] Figure 2 is a flow chart of an interface updating method provided by an embodiment of the present invention;

[0025] Figure 3a It is a schematic diagram of obtaining an application interface according to an execution file set provided by an embodiment of the present invention;

[0026] Figure 3b is another schematic diagram of obtaining an application interface according to an execution file set provided by an embodiment of the present invention;

[0027] Figure 4 is a flow chart of another interface updating method provided by an embodiment of the present invention;

[0028] Figure 5 is a structural diagram of a virtual machine provided by an embodiment of the present invention;

[0029] Figure 6a is a schematic diagram of obtaining a second execution file set provided by an embodiment of the present invention;

[0030] Figure 6b is a schematic diagram of another method of obtaining a second execution file set provided by an embodiment of the present invention;

[0031] Figure 7a is a comparative schematic diagram of an application interface provided by an embodiment of the present invention;

[0032] Figure 7b is a comparative schematic diagram of another application interface provided by an embodiment of the present invention;

[0033] Figure 7c is a comparative schematic diagram of another application interface provided by an embodiment of the present invention;

[0034] Figure 8 is a flowchart of another interface updating method provided by an embodiment of the present invention;

[0035] Fig. 9 is a structural schematic diagram of an interface updating device provided by an embodiment of the present invention;

[0036] Fig.10 It is a structural schematic diagram of an intelligent terminal provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0037] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0038] The embodiment of the present invention provides an interface update scheme. When the target application in the smart terminal is hot-started, the arrangement order and / or number of the interface execution files in the first execution file set can be adjusted, so that the application interface of the target application can be adjusted based on the adjusted execution file set, and the adjusted application interface can be displayed. Wherein, the target application is hot-started, which means that the target application switches from the background running state to the foreground running state. For example, when the target application is running in the foreground (the application interface of the target application is displayed on the screen of the smart terminal at this time), if the user presses the return key, the Home key (the key to switch to displaying the desktop application) and other keys to make the smart terminal return to the desktop for display, or the user opens other applications (or applications) to run, and the interface of the other application opened by the user is displayed on the screen of the smart terminal, the application process of the target application is not terminated at this time, that is, the application process of the target application is not killed, but it is kept running in the background. Then, when the terminal screen of the smart terminal displays the application interface of the target application again, the target application will be switched from the background running state to the foreground running state. When the smart terminal switches the target application back to the foreground (i.e., the first mode) based on hot start, the second execution file set for displaying the application interface after hot start of the target application can be obtained by asking the server whether the corresponding first execution file set has changed, so as to display the application interface according to the obtained second execution file set. Figure 1 , is a structural diagram of an interface update system provided in an embodiment of the present invention, and the interface update system may include a smart terminal 101 and a server 102.

[0039] In one embodiment, the intelligent terminal 101 may include any one or more terminal devices such as a smart phone, a tablet computer, a laptop computer, a desktop computer, an intelligent speaker, a smart watch, etc. The server 102 may be an independent physical server, or a server cluster or a distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN), and big data and artificial intelligence platforms.

[0040] In one embodiment, the smart terminal 101 can run at least one application (Application, app), wherein the smart terminal 101 can run the application (or application, or app) in the first mode or the second mode. When the smart terminal 101 runs an application in the first mode, the application is in the foreground running state. It can be understood that when the application is running in the foreground, the application interface of the application will be displayed on the screen of the smart terminal 101; and when the smart terminal 101 runs the application in the second mode, the application is in the background running state, and the smart terminal 101 will hide the display of the application interface of the application. In one embodiment, the first mode proposed in the embodiment of the present invention is the running mode corresponding to the target application when the application interface is displayed on the screen of the smart terminal, and the second mode is the running mode in which the display of the application interface is hidden on the screen of the smart terminal. In addition, server 102 is used to determine whether there is an update to the execution file set used to guide the display of the application interface of the target application, and when it is determined that there is an update to the execution file set, it sends an update notification message to the smart terminal 101, so that the smart terminal 101 can update the execution file set corresponding to the target application based on the update notification message obtained from server 102, thereby realizing the update of the interface of the target application.

[0041] In one embodiment, the smart terminal 101 adopts a first mode to run a target application. At this time, an application interface of the target application is displayed on the screen of the smart terminal 101, wherein the target application is any application running in the smart terminal 101, for example, the target application can be a communication application or a social application, which is not limited in the embodiment of the present invention; the display content in the application interface of the target application displayed on the screen of the smart terminal 101 is determined according to a first execution file set, wherein the first execution file set includes one or more interface execution files, and a display area in the application interface is determined by the data content of an interface execution file in the interface execution file set; further, the smart terminal 101 can switch the target application to the second mode of operation (i.e., the above-mentioned application process of the target application is not killed, but the screen is hidden for the target application) when receiving an operation from the user to switch the operation mode of the target application from the first mode to the second mode. In the process of the target application being run in the second mode by the smart terminal 101, if the smart terminal 101 re-detects the trigger operation of the user switching the target application back to the first mode for operation, the smart terminal 101 may send an update query request to the server 102, and when the server 102 determines that there is an update to the first execution file set, it will return a feedback notification message to the smart terminal 101; after receiving the feedback notification message sent by the server 102, the smart terminal 101 may determine the second execution file set based on the feedback notification message and the first execution file set, and adjust the application interface of the target application based on the data content included in each interface execution file in the second execution file set, and further display the adjusted application interface on the screen. The smart terminal is enabled to update the application interface of the target application when the target application is hot-started without restarting the target application to update the interface, and the smart terminal is enabled to update the application in real time during the operation of the application. The innovative interface update method proposed in the embodiment of the present invention can improve the update efficiency of the application interface of the smart terminal.

[0042] Based on the above interface update solution and interface update system, an embodiment of the present invention provides an interface update method, such as Figure 2 , which is a flow chart of an interface updating method provided by an embodiment of the present invention. Figure 2 The interface updating method shown can be executed by the above-mentioned intelligent terminal, and the interface updating method may specifically include the following steps:

[0043] S201, in response to a triggering operation of switching a target application from a first mode to a second mode, hiding an application interface displayed when the target application is run in the first mode, wherein the display content of the application interface when the target application is run in the first mode is determined by a first executable file set.

[0044] In one embodiment, when the smart terminal runs the target application in the first mode, the target application is in the foreground, and the application interface of the target application is displayed on the screen of the smart terminal, wherein the display content in the application interface is determined according to the first execution file set, specifically, it can be determined by the data content in the interface execution file included in the first execution file set.

[0045] In one embodiment, during the process of the target application being run in the first mode by the smart terminal, the user may switch the target application from the first mode to the second mode for operation, wherein the smart terminal may switch the operation mode of the target application from the first mode to the second mode upon receiving the mode switching operation of the user, wherein the second mode refers to the mode of background operation, at which time, the smart terminal will hide the application interface of the target application displayed on the screen of the smart terminal when the target application is run in the first mode. Optionally, when the target application is run in the second mode, the smart terminal may run a desktop application in the corresponding screen and then display the application interface of the desktop application, or may run other applications in the smart terminal except the target application and display the application interface of other applications, that is, when the smart terminal runs the target application in the second mode, the application interface of the target application will not be displayed on the screen of the smart terminal, but which (or which) application interface is specifically displayed on the screen is not limited in the embodiment of the present invention.

[0046] S202, if the target application is run in the first mode again, a second execution file set is obtained, and the second execution file set and the first execution file set have different arrangement orders of interface execution files, different numbers of interface execution files, or different arrangement orders and different numbers of interface execution files.

[0047] In one embodiment, the smart terminal can switch back to the first mode for operation when it is in the second mode of operation. When the smart terminal switches from the first mode to the second mode and then switches back to the first mode for operation, since the smart terminal switches back to the first mode for operation, the application interface of the target application will be displayed in the application interface. It can be understood that since when the smart terminal initially adopts the first mode to run the target application, the displayed application interface of the target application is determined based on the first execution file, then when the smart terminal re-adopts the first mode to run the target application, the smart terminal can determine whether the arrangement order of the interface execution files included in the first execution file set is the same, whether the number of included interface execution files has changed, etc., and when the arrangement order is different or the number of included interface execution files has changed, it can be determined that the first execution file set has changed. Among them, if the first execution file set changes, it means that the application interface (or the displayed content in the application interface) rendered based on the execution file set has changed. Therefore, when the smart terminal determines that the first execution file set has changed, it can obtain the second execution file set determined based on the first execution file set, so that the application interface displayed based on the first execution file set can be adjusted based on the second execution file set, so that the execution terminal can realize real-time adjustment of the application interface.

[0048] In one embodiment, the first execution file set and the second execution file set both include one or more interface execution files, and the display content of a display area in the application interface is determined by the data content included in an interface execution file, and the display order of the corresponding display areas in the application interface is determined by the arrangement order of the interface execution files included in the first execution file set and the second execution file set. For example, the first execution file set contains interface execution file A, interface execution file B, and interface execution file C, and the data content included in an interface execution file is used to render a display area of ​​the application interface; and the arrangement order of the interface execution files in the first execution file set determines the display order of the display areas rendered by the interface execution files in the application interface. Figure 3a As shown, if the arrangement order of the interface execution file A, the interface execution file B and the interface execution file C in the first execution file set is Figure 3a As shown in the arrangement order marked by 301, the application interface rendered by the first execution file set based on the arrangement order can be as follows Figure 3a As shown in the application interface marked by 302, the application interface includes display area a, display area b and display area c, wherein display area a is rendered by the data content included in the interface execution file A, display area b is rendered by the data content included in the interface execution file B, and display area c is rendered by the data content included in the interface execution file C.

[0049] When the smart terminal renders the application interface based on the first execution file set, it is rendered based on the rendering order specified by the smart terminal. Specifically, if the arrangement order of the interface execution file A, the interface execution file B and the interface execution file C in the first execution file set is Figure 3a When rendering the application interface based on the first execution file set, the intelligent terminal may render the application interface in a top-to-bottom order based on the arrangement order of the interface execution files in the first execution file set, or may render the application interface in a bottom-to-top order.

[0050] In one embodiment, after the smart terminal re-adopts the first mode to run the target application, it can obtain the second execution file based on the first execution file, wherein the second execution file set is obtained by updating the first execution file set. If the smart terminal determines that the arrangement order of the interface execution files included in the first execution file set needs to be changed, then the smart terminal can adjust the arrangement order of the interface execution files in the first execution file set, thereby using the adjusted first execution file set as the second execution file set. In one embodiment, if the smart terminal determines that a new interface execution file needs to be added to the first execution file set, the smart terminal can obtain the new interface execution file, and after determining the corresponding adding position of the new interface execution file, based on the adding position, add the new interface execution file to the first execution file set to obtain the second execution file set. In one embodiment, if the smart terminal determines that the interface execution file included in the first execution file set needs to be deleted, the smart terminal deletes the interface execution file that needs to be deleted, thereby obtaining the second execution file set.

[0051] After acquiring the second execution file set, the intelligent terminal may adjust the application interface based on the second execution file set and display the adjusted application interface, that is, turn to execute step S203.

[0052] S203: Adjust the application interface according to the second execution file set, and display the adjusted application interface.

[0053] In one embodiment, if the second executable file set obtained by the intelligent terminal is as follows Figure 3b As shown in the file set marked by 303, the application interface displayed based on the interface execution file in the second execution file set is as follows Figure 3b As shown in the application interface marked by 304. Figure 3a and Figure 3bFrom the comparison, it can be seen that when the target application is hot-started, if the application interface of the target application is updated, the smart terminal can obtain the second execution file set corresponding to the updated application interface, so that the application interface can be updated and adjusted based on the interface execution file included in the obtained second execution file set. It can be understood that the update and adjustment of the application interface is the update and adjustment process of the target application. That is to say, based on this, the smart terminal can adjust part of the application interface of the application, and the smart terminal can achieve real-time refresh of the application interface during the operation of the application, which can effectively improve the update efficiency of the smart terminal for the application (or application interface).

[0054] In an embodiment of the present invention, the smart terminal switches the target application from a first mode to a second mode, hides the application interface displayed when the target application is run in the first mode, wherein the display content of the application interface when the first mode is run is determined by the first execution file set; if the smart terminal re-adopts the first mode to run the target application, a second execution file set different from the interface execution file included in the first execution file set is obtained; the smart terminal adjusts the application interface according to the second execution file set, and displays the adjusted application interface; the smart terminal can update the application interface of the target application when the target application is hot-started, thereby achieving effective update of the application interface of the target application during the operation of the target application, and innovatively proposes a new interface update method to improve the efficiency of interface update.

[0055] Based on the above interface updating method, the embodiment of the present invention provides another interface updating method, such as Figure 4 , which is a flow chart of another interface updating method provided by an embodiment of the present invention. Figure 4 The interface updating method shown can be executed by a smart terminal, and the interface updating method may specifically include the following steps:

[0056] S401, in response to a triggering operation of switching a target application from a first mode to a second mode, hiding an application interface displayed when the target application is run in the first mode, wherein the display content of the application interface when the target application is run in the first mode is determined by a first executable file set.

[0057] The first set of executable files includes at least one interface executable file, and the interface executable file is used to render the display area in the application interface. In one embodiment, the application interface is rendered to the screen of the smart terminal for display after the first set of executable files is loaded into the target business module in the virtual machine used to support the operation of the target application, and the first executable file is executed by the virtual machine, wherein the virtual machine includes multiple business modules, and one business module is used to support the operation of an application interface in the target application.

[0058] In one embodiment, if the target business module in the virtual machine is used to execute the interface execution file included in the first execution file set, then the application interface can be rendered by the first execution file set by running the target business module in the virtual machine. It can be further understood that by refreshing the target business module in the virtual machine, the application interface of the target application can be updated. Among them, the development framework of the virtual machine is a framework based on React Native (a cross-platform mobile application development framework), and the interface execution file can be a bundle file (i.e., a class file in Android development). By loading the first execution file set into the target business module, the target business module can read the interface execution file (i.e., a bundle file) included in the first execution file set. Figure 5 As shown in the mark 501 in FIG. 1 , the service module in the traditional virtual machine only includes one bundle file, such as Figure 5 As shown in the mark 502 in the figure, by splitting the business module that only includes one bundle file in the traditional virtual machine into a bundle file set including multiple bundle files, the splitting granularity of the business module in the target application is reduced, and the application interface rendered by the first execution file set can be updated by refreshing only the target business module in the virtual machine without refreshing the entire virtual machine.

[0059] When the smart terminal runs the target application in the first mode, the first executable file is loaded into the target business module of the virtual machine, so that the application interface of the target application is displayed on the screen, and after switching to the second mode, the displayed application interface is hidden.

[0060] S402: If the target application is run in the first mode again, an update query request for the interface execution file is sent to the server.

[0061] S403, if a feedback notification message is received from the server that there is an update to the first execution file set, a second execution file set is obtained according to the feedback notification message, and the second execution file set and the first execution file set have different arrangement orders of interface execution files, different numbers of interface execution files included, or different arrangement orders and different numbers of interface execution files included.

[0062] In step S402 and step S403, the update query request is used to query the server whether an interface execution file needs to be updated, so that after receiving the update query request, the server detects whether there is an update to the interface execution file, and if the server determines that there is an update to the interface execution file, a feedback notification message indicating that the interface execution file has been updated is sent to the smart terminal. In one embodiment, if the feedback notification message indicates that the arrangement order of the interface execution files included in the first execution file set is adjusted to the target order, the interface execution files in the first execution file set are rearranged according to the target order to obtain the second execution file set.

[0063] For example, if the first execution file set includes interface execution file A, interface execution file B and interface execution file C, and the interface execution files included in the first execution file set are arranged in the following order from top to bottom: interface execution file set A, interface execution file set B, interface execution file set C, if the feedback notification message indicates that the arrangement order of the interface execution files included in the first execution file set is adjusted to the target order: interface execution file B, interface execution file set A, interface execution file set C, then the smart terminal rearranges the interface execution files in the first execution file set according to the target order to obtain a second execution file set, wherein the interface execution files included in the second execution file set are arranged in the following order from top to bottom: interface execution file B, interface execution file set A, interface execution file set C.

[0064] In one embodiment, if the feedback notification message indicates that there is a new interface execution file in the first execution file set, then when the new interface execution file includes data content, the new interface execution file is obtained and added to the first execution file set to obtain the second execution file set. Figure 6aAs shown, it is a schematic diagram of an intelligent terminal obtaining a second execution file set provided by an embodiment of the present invention. After receiving the update query request for the interface execution file sent by the intelligent terminal, the server detects whether there is an update to the interface execution file; if the server detects that there is a new interface execution file related to the first execution file set in the server's memory, it sends a feedback notification message to the intelligent terminal, and the feedback notification message indicates that there is a new interface execution file in the first execution file set; after receiving the feedback notification message, the intelligent terminal downloads the new interface execution file from the server, and determines whether the new interface execution file includes data content. If the new interface execution file includes data content, the interface execution file is detected. Whether the data content of the execution file has been loaded. If the data content has been loaded, after determining the adding position corresponding to the new interface execution file, based on the adding position, the new interface execution file is added to the first execution file set to obtain the second execution file set; if the data content has not been loaded, the new interface execution file after the data content has been loaded can be added to the adding position corresponding to the new interface execution file in the first execution file set when the target application switches from the second mode to the first mode again or when the target application switches from the end running state to the first mode; if the new interface execution file does not include data content, the new interface execution file is discarded.

[0065] In another embodiment, if Figure 6bAs shown, it is a schematic diagram of another smart terminal obtaining a second execution file set provided by an embodiment of the present invention. After receiving an update query request for an interface execution file sent by the smart terminal, the server detects whether there is an update to the interface execution file; if the server detects that there is a new interface execution file related to the first execution file set in the server's memory, it determines whether the new interface execution file includes data content; if the new interface execution file includes data content, it detects whether the data content of the interface execution file has been loaded; if the data content has been loaded, the new interface execution file and a feedback notification message are sent to the smart terminal, and the feedback notification message indicates that there is a new interface execution file in the first execution file set; if the data content has not been loaded, the update query request for the interface execution file sent by the smart terminal is received again. When the target application is switched from the second mode to the first mode, the interface execution file is sent to the smart terminal. Optionally, the update query request for the interface execution file may be sent by the smart terminal when the target application is switched from the second mode to the first mode, that is, when the target application is hot-started, or may be sent by the smart terminal when the target application is switched from the end-of-running state to the first mode, that is, when the target application is cold-started (after the target application ends the running process, the target application is restarted). If the new interface execution file does not include data content, the interface execution file is deleted. The smart terminal receives the new interface execution file sent by the server, and after determining the adding position corresponding to the new interface execution file, based on the adding position, the new interface execution file is added to the first execution file set to obtain the second execution file set.

[0066] In one embodiment, if the first execution file set includes interface execution file A, interface execution file B and interface execution file C, and the interface execution files included in the first execution file set are arranged in the following order from top to bottom: interface execution file set A, interface execution file set B, interface execution file set C, and the feedback notification message indicates that there is a new interface execution file D in the first execution file set, then after receiving the new interface execution file D sent by the server and determining the adding position corresponding to the new interface execution file D, the smart terminal adds the new interface execution file D to the first execution file set based on the adding position to obtain the second execution file set; if the adding position is before the interface execution file A, the interface execution files included in the second execution file set are arranged in the following order: interface execution file D, interface execution file A, interface execution file B, interface execution file C.

[0067] In one embodiment, if the feedback notification message indicates to delete the target interface execution file in the first execution file set, the target interface execution file in the first execution file set is deleted to obtain the second execution file set.

[0068] For example, if the first execution file set includes interface execution file A, interface execution file B and interface execution file C, and the arrangement order of the interface execution files included in the first execution file set from top to bottom is: interface execution file set A, B, C, and the feedback notification message indicates that the target interface execution file to be deleted in the first execution file set is interface execution file A, then the smart terminal deletes interface execution file A in the first execution file set to obtain a second execution file set, and the arrangement order of the interface execution files included in the second execution file set from top right to bottom is: interface execution file B, interface execution file C.

[0069] After acquiring the second execution file set, the intelligent terminal refreshes the target business module loaded with the first execution file set in the virtual machine to adjust the application interface according to the second execution file set and displays the adjusted application interface, that is, turns to execute step S404.

[0070] S404: Adjust the application interface according to the second execution file set, and display the adjusted application interface.

[0071] In one embodiment, if the arrangement order of the interface execution files included in the second execution file set and the first execution file set is different, the intelligent terminal obtains the target order of the interface execution files included in the second execution file set; according to the target order, the display areas determined according to the corresponding interface execution files are displayed in the application interface in sequence. In one embodiment, if the first execution file set includes interface execution file A, interface execution file B and interface execution file C, and the arrangement order of the interface execution files included in the first execution file set from top right to bottom is: interface execution file A, interface execution file B, interface execution file C, and the arrangement order of the interface execution files included in the second execution file set from top right to bottom is: interface execution file B, interface execution file A, interface execution file C, then Figure 7a The mark 701 in is the application interface rendered by the first execution file set. Figure 7a The mark 702 in the figure is the adjusted application interface rendered by the second execution file set, wherein the application interface includes display area a, display area b and display area c. It can be understood that display area a is rendered by the data content included in the interface execution file A, display area b is rendered by the data content included in the interface execution file B, and display area c is rendered by the data content included in the interface execution file C. Figure 7a As shown, based on adjusting the arrangement order of the interface execution files in the interface execution file set, the display position of the display area in the application interface can be adjusted.

[0072] In one embodiment, if the number of interface execution files included in the second execution file set is greater than the number of interface execution files included in the first execution file set, a display area is added to the application interface according to the new interface execution file, and the display content of the added display area is determined according to the data content of the new interface execution file. If the interface execution files included in the first execution file set are arranged in the order of interface execution file A, interface execution file B, and interface execution file C from top to bottom, then Figure 7b The mark 703 in is an application interface rendered by the first execution file set, and the application interface includes display area a, display area b and display area c. It can be understood that display area a is rendered by the data content included in the interface execution file A, display area b is rendered by the data content included in the interface execution file B, and display area c is rendered by the data content included in the interface execution file C; if the second execution file set adds a new interface execution file D compared to the first execution file set, and the interface execution files included in the second execution file set are arranged in the order from top to bottom: interface execution file D, interface execution file A, interface execution file B, interface execution file C, then if Figure 7b As shown in the adjusted application interface indicated by the mark 704 in FIG. 1 , a display area d is added above the application interface, and the display area d is rendered by the data content included in the new interface execution file D.

[0073] In one embodiment, if the second execution file set is obtained after deleting the target interface execution file from the first execution file set, the display area corresponding to the target interface execution file in the application interface is deleted. For example, the arrangement order of the interface execution files included in the first execution file set is from top to bottom: interface execution file A, interface execution file B, interface execution file C, then Figure 7c Mark 705 in the figure is an application interface rendered by the first execution file set, and the application interface includes display area a, display area b and display area c. It can be understood that display area a is rendered by the data content included in the interface execution file A, display area b is rendered by the data content included in the interface execution file B, and display area c is rendered by the data content included in the interface execution file C; if the second execution file set deletes the target interface execution file A from the first execution file set, then the arrangement order of the interface execution files included in the second execution file set is from top to bottom: interface execution file B, interface execution file C, then Figure 7cThe mark 706 in the figure is the application interface rendered by the second execution file set, and the adjusted application interface only includes display area b and display area c. In other words, based on the deletion and addition of the interface execution file, the addition and deletion of the display area in the corresponding application interface can be realized, and the application interface can be quickly updated based on the interface execution file.

[0074] In an embodiment of the present invention, the intelligent terminal switches the target application from the first mode to the second mode, hides the application interface displayed when the target application is run in the first mode, wherein the display content of the application interface when the first mode is run is determined by the first executable file set; if the intelligent terminal re-adopts the first mode to run the target application, an update query request for the interface execution file is sent to the server, and if a feedback notification message indicating that there is an update in the first executable file set is received from the server, the first executable file set is updated according to the feedback notification message, thereby obtaining the second executable file set; the intelligent terminal refreshes the target business module loaded with the first executable file set in the virtual machine, thereby adjusting the application interface according to the second executable file set and displaying the adjusted application interface; the intelligent terminal can update the application interface of the target application when the target application is hot-started, and can update the application interface rendered by the first executable file set when only the target business module in the virtual machine is refreshed, without refreshing the entire virtual machine, thereby realizing the effective update of the application interface of the target application during the operation of the target application, innovatively proposing a new interface update method, reducing the granularity of the splitting of the business module in the target application, and improving the efficiency of interface update.

[0075] In one embodiment, wherein Figure 8As shown, the development framework of the virtual machine is a framework based on React Native, and the interface execution file can be a bundle file. The smart terminal can first switch the target application from the background operation to the foreground operation (the target application is hot-started), that is, the target application is switched from the second operation mode to the first operation mode. Further, the smart terminal asks the server whether there is a bundle file update. If the smart terminal receives a feedback notification message from the server indicating that there is no update to the bundle file, a new bundle file set (i.e., a second file set) will be obtained based on the feedback notification message. Among them, if the smart terminal receives a feedback notification message from the server indicating that there is a new bundle file, the new bundle file is downloaded from the server, and it is determined whether the new bundle file has been loaded, that is, whether the data content included in the new bundle file has been loaded. Further, the server can send a hot start update instruction to the virtual machine. Specifically, the smart terminal can load the new bundle file into the target business module in the virtual machine, and refresh the target business module in the virtual machine to adjust the application interface corresponding to the target business module, and display the adjusted application interface in the user interface. If the new bundle file is not loaded, the application interface will be updated and adjusted during the next cold start.

[0076] Based on the above interface updating method embodiment, the present invention provides an interface updating device. Fig. 9 , is a structural diagram of an interface updating device provided in an embodiment of the present invention, and the device specifically includes a processing unit 901 and a display unit 902. Fig. 9 The interface updating device shown can run the following units:

[0077] A processing unit 901 is configured to, in response to a triggering operation of switching a target application from a first mode to a second mode, hide an application interface displayed when the target application is run in the first mode, wherein display content of the application interface when the target application is run in the first mode is determined by a first executable file set;

[0078] The processing unit 901 is further configured to obtain a second execution file set if the target application is run in the first mode again, wherein the second execution file set and the first execution file set have different arrangement orders of interface execution files, or different numbers of interface execution files, or different arrangement orders and different numbers of interface execution files;

[0079] The processing unit 901 is further configured to adjust the application interface according to the second execution file set;

[0080] The display unit 902 is used to display the adjusted application interface.

[0081] In one embodiment, the first execution file set and the second execution file set each include one or more interface execution files, and the display content of a display area in the application interface is determined by the data content included in an interface execution file; the arrangement order of the interface execution files included in the first execution file set and the second execution file set is used to determine the display order of the corresponding display areas in the application interface.

[0082] In one embodiment, the second execution file set is obtained by updating the first execution file set; when the processing unit 901 obtains the second execution file set if the first mode is adopted again to run the target application, the processing unit 901 specifically performs the following operations:

[0083] If the target application is run in the first mode again, an update query request for the interface execution file is sent to the server;

[0084] If a feedback notification message indicating that the first executable file set is updated is received from the server, the second executable file set is acquired according to the feedback notification message.

[0085] In one embodiment, when acquiring the second execution file set according to the feedback notification message, the processing unit 901 specifically performs one or more of the following operations:

[0086] If the feedback notification message indicates that the arrangement order of the interface execution files included in the first execution file set is adjusted to the target order, the interface execution files in the first execution file set are rearranged according to the target order to obtain the second execution file set;

[0087] If the feedback notification message indicates that a new interface execution file exists in the first execution file set, then when the new interface execution file includes data content, the new interface execution file is acquired, and the new interface execution file is added to the first execution file set to obtain the second execution file set;

[0088] If the feedback notification message indicates to delete the target interface execution file in the first execution file set, the target interface execution file in the first execution file set is deleted to obtain the second execution file set.

[0089] In one embodiment, the application interface is displayed after loading the first executable file set into a target business module in a virtual machine used to support the operation of the target application; wherein the virtual machine includes multiple business modules, and one business module is used to support the operation of an application interface in the target application.

[0090] In one embodiment, if the arrangement order of the interface execution files included in the second execution file set and the first execution file set is different, the processing unit 901 adjusts the application interface according to the second execution file set and displays the adjusted application interface, specifically performing the following operations:

[0091] Acquire a target order of the interface execution files included in the second execution file set;

[0092] According to the target sequence, the display areas determined according to the corresponding interface execution files are displayed in sequence in the application interface.

[0093] In one embodiment, if the number of interface execution files included in the second execution file set is greater than the number of interface execution files included in the first execution file set; the processing unit 901 adjusts the application interface according to the second execution file set and displays the adjusted application interface, specifically performing the following operations:

[0094] According to the new interface execution file, a display area is added to the application interface, and the display content of the added display area is determined according to the data content of the new interface execution file.

[0095] In one embodiment, if the second execution file set is obtained after the target interface execution file is deleted from the first execution file set; when the processing unit 901 adjusts the application interface according to the second execution file set and displays the adjusted application interface, it is specifically used to perform the following operations:

[0096] Delete the display area corresponding to the target interface execution file in the application interface.

[0097] According to one embodiment of the present invention, Figure 2 and Figure 4 The steps involved in the interface updating method shown can be performed by Fig. 9 The interface updating device shown is executed by each unit. For example, Figure 2 Steps S201 and S202 shown in FIG. Fig. 9 The processing unit 901 in the interface updating device shown in FIG. 1 is executed, and step S203 can be performed by Fig. 9 The processing unit 901 and the display unit 902 in the interface updating device shown in the figure are executed together; Figure 4 Steps S401-S403 shown can be performed by Fig. 9 The processing unit 901 in the interface updating device shown in FIG. 1 is executed, and step S404 can be performed by Fig. 9 The processing unit 901 and the display unit 902 in the interface updating device are executed together.

[0098] According to another embodiment of the present invention, Fig. 9 The various units in the interface update device shown can be individually or completely combined into one or several other units to form a whole, or one (or some) of the units can be further divided into multiple functionally smaller units to form a whole, which can achieve the same operation without affecting the realization of the technical effects of the embodiments of the present invention. The above-mentioned units are divided based on logical functions. In actual applications, the function of one unit can also be implemented by multiple units, or the functions of multiple units can be implemented by one unit. In other embodiments of the present invention, the interface update device based on logical function division can also include other units. In actual applications, these functions can also be implemented with the assistance of other units, and can be implemented by the collaboration of multiple units.

[0099] According to another embodiment of the present invention, the program can be executed by running a program on a general computing device such as a computer including a central processing unit (CPU), a random access memory medium (RAM), a read-only memory medium (ROM), and other processing elements and storage elements. Figure 2 as well as Figure 4 A computer program (including program code) for each step involved in the corresponding method shown in FIG. Fig. 9 The interface updating device shown in the embodiment of the present invention is used to implement the interface updating method of the embodiment of the present invention. The computer program can be recorded on a computer-readable storage medium, for example, and loaded into the computing device through the computer-readable storage medium and run therein.

[0100] In an embodiment of the present invention, the processing unit 901 switches the target application from the first mode to the second mode, hides the application interface displayed when the target application is run in the first mode, wherein the display content of the application interface when the first mode is run is determined by the first execution file set; if the processing unit 901 re-adopts the first mode to run the target application, a second execution file set different from the interface execution file included in the first execution file set is obtained; the processing unit 901 adjusts the application interface according to the second execution file set; the display unit 902 displays the adjusted application interface; the smart terminal can update the application interface of the target application when the target application is hot-started, thereby achieving effective update of the application interface of the target application during the operation of the target application, and innovatively proposes a new interface update method to improve the efficiency of interface update.

[0101] Based on the above method embodiment and device embodiment, the present invention also provides a smart terminal. Fig.10 , is a schematic diagram of the structure of the intelligent terminal provided in an embodiment of the present invention. Fig.10The shown intelligent terminal may include at least a processor 1001, an input interface 1002, an output interface 1003, and a computer storage medium 1004. The processor 1001, the input interface 1002, the output interface 1003, and the computer storage medium 1004 may be connected via a bus or other means.

[0102] The computer storage medium 1004 can be stored in the memory of the node device. The computer storage medium 1004 is used to store a computer program. The computer program includes program instructions. The processor 1001 is used to execute the program instructions stored in the computer storage medium 1004. The processor 1001 (or CPU (Central Processing Unit)) is the computing core and control core of the intelligent terminal, which is suitable for implementing one or more instructions, and is specifically suitable for loading and executing one or more instructions to implement the above-mentioned interface update method process or corresponding functions.

[0103] The embodiment of the present invention also provides a computer storage medium (Memory), which is a memory device in an intelligent terminal for storing programs and data. It is understandable that the computer storage medium here can include both the built-in storage medium in the terminal and the extended storage medium supported by the terminal. The computer storage medium provides a storage space, which stores the operating system of the terminal. In addition, one or more instructions suitable for being loaded and executed by the processor 1001 are also stored in the storage space, and these instructions can be one or more computer programs (including program codes). It should be noted that the computer storage medium here can be a high-speed RAM memory, or a non-volatile memory (non-volatile memory), such as at least one disk storage; optionally, it can also be at least one computer storage medium located away from the aforementioned processor.

[0104] In one embodiment, the processor 1001 may load and execute one or more instructions stored in a computer storage medium to implement the above-mentioned Figure 2 as well as Figure 4 In the corresponding steps of the method in the embodiment of the interface updating method, in a specific implementation, one or more instructions in the computer storage medium are loaded by the processor 1001 and execute the following steps:

[0105] In response to a triggering operation of switching the target application from the first mode to the second mode, hiding the application interface displayed when the target application is run in the first mode, and the display content of the application interface when the target application is run in the first mode is determined by the first execution file set;

[0106] If the target application is run in the first mode again, a second execution file set is obtained, wherein the second execution file set and the first execution file set have different arrangement orders of interface execution files, different numbers of interface execution files, or different arrangement orders and different numbers of interface execution files;

[0107] The application interface is adjusted according to the second execution file set, and the adjusted application interface is displayed.

[0108] In one embodiment, the first execution file set and the second execution file set both include one or more interface execution files, and the display content of a display area in the application interface is determined by the data content included in an interface execution file; the arrangement order of the interface execution files included in the first execution file set and the second execution file set is used to determine the display order of the corresponding display areas in the application interface.

[0109] In one embodiment, the second execution file set is obtained by updating the first execution file set; when the processor 1001 obtains the second execution file set if the first mode is adopted again to run the target application, the processor 1001 specifically performs the following operations:

[0110] If the target application is run in the first mode again, an update query request for the interface execution file is sent to the server;

[0111] If a feedback notification message indicating that the first executable file set is updated is received from the server, the second executable file set is acquired according to the feedback notification message.

[0112] In one embodiment, when the processor 1001 obtains the second execution file set according to the feedback notification message, it specifically performs one or more of the following operations:

[0113] If the feedback notification message indicates that the arrangement order of the interface execution files included in the first execution file set is adjusted to the target order, the interface execution files in the first execution file set are rearranged according to the target order to obtain a second execution file set;

[0114] If the feedback notification message indicates that there is a new interface execution file in the first execution file set, then when the new interface execution file includes data content, the new interface execution file is acquired, and the new interface execution file is added to the first execution file set to obtain a second execution file set;

[0115] If the feedback notification message indicates to delete the target interface execution file in the first execution file set, the target interface execution file in the first execution file set is deleted to obtain the second execution file set.

[0116] In one embodiment, the application interface is displayed after loading the first executable file set into the target business module in the virtual machine used to support the operation of the target application; wherein the virtual machine includes multiple business modules, and one business module is used to support the operation of an application interface in the target application.

[0117] In one embodiment, if the arrangement order of the interface execution files included in the second execution file set and the first execution file set is different, the processor 1001 adjusts the application interface according to the second execution file set and displays the adjusted application interface, specifically performing the following operations:

[0118] Obtaining a target order of the interface execution files included in the second execution file set;

[0119] According to the target order, the display areas determined according to the corresponding interface execution files are displayed in the application interface in sequence.

[0120] In one embodiment, if the number of interface execution files included in the second execution file set is greater than the number of interface execution files included in the first execution file set; when the processor 1001 adjusts the application interface according to the second execution file set and displays the adjusted application interface, the processor 1001 specifically performs the following operations:

[0121] According to the new interface execution file, a display area is added to the application interface, and the display content of the added display area is determined according to the data content of the new interface execution file.

[0122] In one embodiment, if the second execution file set is obtained by deleting the target interface execution file from the first execution file set, the processor 1001 is specifically used to perform the following operations when adjusting the application interface according to the second execution file set and displaying the adjusted application interface:

[0123] Delete the display area corresponding to the target interface execution file in the application interface.

[0124] The embodiment of the present invention provides a computer program product or a computer program, the computer program product or the computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the above-mentioned Figure 2 or Figure 4 The computer-readable storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM).

[0125] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. An interface updating method, characterized in that: include: In response to a triggering operation of switching a target application from a first mode to a second mode, hiding an application interface displayed when the target application is run in the first mode, wherein display content of the application interface when the target application is run in the first mode is determined by a first execution file set; If the target application is run in the first mode again, a second execution file set is obtained, wherein the second execution file set and the first execution file set have different arrangement orders of interface execution files, different numbers of interface execution files, or different arrangement orders and different numbers of interface execution files; the second execution file set is obtained by updating the first execution file set; If the target application is run in the first mode again, obtaining a second set of execution files includes: if the target application is run in the first mode again, sending an update query request for an interface execution file to a server; If a feedback notification message indicating that the first executable file set is updated is received from the server, acquiring the second executable file set according to the feedback notification message; The application interface is adjusted according to the second execution file set, and the adjusted application interface is displayed.

2. The method according to claim 1, characterized in that The first execution file set and the second execution file set both include one or more interface execution files, and the display content of a display area in the application interface is determined by the data content included in an interface execution file; The arrangement order of the interface execution files included in the first execution file set and the second execution file set is used to determine the display order of the corresponding display areas in the application interface.

3. The method according to claim 1, characterized in that The method of acquiring the second execution file set according to the feedback notification message includes one or more of the following: If the feedback notification message indicates that the arrangement order of the interface execution files included in the first execution file set is adjusted to the target order, the interface execution files in the first execution file set are rearranged according to the target order to obtain the second execution file set; If the feedback notification message indicates that a new interface execution file exists in the first execution file set, then when the new interface execution file includes data content, the new interface execution file is acquired, and the new interface execution file is added to the first execution file set to obtain the second execution file set; If the feedback notification message indicates to delete the target interface execution file in the first execution file set, the target interface execution file in the first execution file set is deleted to obtain the second execution file set.

4. The method according to claim 1, characterized in that: The application interface is displayed after the first executable file set is loaded into a target business module in a virtual machine used to support the operation of the target application; wherein the virtual machine includes multiple business modules, and one business module is used to support the operation of an application interface in the target application.

5. The method according to claim 1, characterized in that If the arrangement order of the interface execution files included in the second execution file set and the first execution file set is different, adjusting the application interface according to the second execution file set and displaying the adjusted application interface includes: Acquire a target order of the interface execution files included in the second execution file set; According to the target sequence, the display areas determined according to the corresponding interface execution files are displayed in sequence in the application interface.

6. The method according to claim 1, characterized in that If the number of interface execution files included in the second execution file set is greater than the number of interface execution files included in the first execution file set; adjusting the application interface according to the second execution file set and displaying the adjusted application interface includes: According to the new interface execution file, a display area is added to the application interface, and the display content of the added display area is determined according to the data content of the new interface execution file.

7. The method according to claim 1, characterized in that If the second execution file set is obtained by deleting the target interface execution file from the first execution file set; The step of adjusting the application interface according to the second execution file set and displaying the adjusted application interface includes: Delete the display area corresponding to the target interface execution file in the application interface.

8. An interface updating device, characterized in that: include: a processing unit, configured to, in response to a triggering operation of switching a target application from a first mode to a second mode, hide an application interface displayed when the target application is run in the first mode, wherein display content of the application interface when the target application is run in the first mode is determined by a first executable file set; The processing unit is further configured to obtain a second execution file set if the first mode is adopted again to run the target application, wherein the second execution file set and the first execution file set have different arrangement orders of interface execution files, or different numbers of interface execution files, or different arrangement orders and different numbers of interface execution files; the second execution file set is obtained by updating the first execution file set; when the processing unit obtains the second execution file set if the first mode is adopted again to run the target application, the processing unit is specifically configured to: send an update query request for the interface execution file to the server if the first mode is adopted again to run the target application; if a feedback notification message indicating that there is an update in the first execution file set is received from the server, obtain the second execution file set according to the feedback notification message; The processing unit is further used to adjust the application interface according to the second execution file set; The display unit is used to display the adjusted application interface.

9. A computer storage medium, characterized in that The computer storage medium stores computer program instructions, which, when executed by a processor, are used to execute the method according to any one of claims 1 to 7.

10. An intelligent terminal, characterized in that: include: a processor adapted to implement one or more instructions; and, A computer storage medium storing one or more instructions, wherein the one or more instructions are suitable for being loaded by the processor and executing the method according to any one of claims 1 to 7.

11. A computer program product, characterized in that The computer program product comprises a computer program, and the computer program comprises program instructions. When the program instructions are called by a processor, the processor is caused to execute the method according to any one of claims 1 to 7.