WO2017161763A1 - 一种更新菜单信息的方法及装置 - Google Patents
一种更新菜单信息的方法及装置 Download PDFInfo
- Publication number
- WO2017161763A1 WO2017161763A1 PCT/CN2016/089005 CN2016089005W WO2017161763A1 WO 2017161763 A1 WO2017161763 A1 WO 2017161763A1 CN 2016089005 W CN2016089005 W CN 2016089005W WO 2017161763 A1 WO2017161763 A1 WO 2017161763A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- file information
- file
- information
- foreground
- background
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Definitions
- the present invention relates to the field of communication technologies, and in particular, to a method and apparatus for updating menu information.
- the current operating systems all use a visual operation interface, which includes software that uses a visual menu as a graphical user interface to support user interaction.
- a visual operation interface which includes software that uses a visual menu as a graphical user interface to support user interaction.
- time-sensitive software such as news terminals, video terminals, etc.
- the data of the file menu is temporarily acquired from the network server and stored locally when the software is booted; and then the update of the file menu data requires the user to take the initiative. The operation is performed the next time you switch to the file menu.
- This kind of irregular update brings a series of problems. If the network is not smooth or other system problems cannot be obtained from the web server in time, the terminal may not be able to display the file menu or the displayed file.
- the menu has a large hysteresis, resulting in inconsistent data, which prevents the user from operating normally.
- the terminal's file menu is updated, it is in a user-visible state, and the update process takes up a certain amount of time. The operation time causes the user's operation to be unsmooth and affects the user experience.
- an object of the present invention is to provide a method and apparatus for updating menu information, which is used to update information of a menu in a state invisible to a user, thereby improving the smoothness of the operation.
- a method for updating menu content provided by the present invention based on the above object includes the following steps:
- the pre-stored background file information is obtained from the background information repository, and the background file information is sent to the foreground information database to generate the foreground file information.
- determining whether the foreground file information is the latest file information by detecting an update time of the foreground file information; if not, sending the background file information to the foreground information database , replace the original foreground file information.
- the file information includes an update time of the file being updated to the current information database, and after the obtaining the latest file information from the network server, the step of replacing the background file information includes:
- the background file information is replaced with the file information returned by the web server.
- the step of sending a file acquisition request to the network server, and receiving the file information in the returned network server includes:
- the step of detecting whether the foreground file information is the latest file information includes:
- the difference between the update time of the foreground file information and the update time of the background file information is greater than the second time interval, it is determined that the foreground file information is not the latest file information.
- the method further includes:
- the first control command input by the user is detected, detecting whether the foreground file information is the latest file information; if not, sending the background file information to the foreground information database to replace the original foreground file information.
- the file menu has at least two, each file menu is configured with an independent foreground information base and a background information base associated with the file menu; when one of the file menus is displayed in the foreground, the remaining file menus are hidden; After the network server obtains the latest file information and replaces the background file information, the method further includes:
- the foreground file information of any file menu is replaced by its background file information
- it also includes:
- the latest file information is obtained from the network server, and the background file information is replaced.
- An apparatus for updating menu content provided by the present invention based on the above object includes:
- a file menu module for displaying foreground file information in a file menu
- a front-end information library for storing front-end file information
- the background information library is used to store the background file information, and is also used after the device is started, after being pre-stored. Sending file information to the foreground information base to generate front desk file information;
- An update detection module for detecting whether a file menu is hidden
- An update judging module configured to determine, by detecting an update time of the foreground file information, whether the foreground file information is the latest file information after detecting that the file menu is hidden; if not, the background information database is used to The background file information is sent to the foreground information database to replace the original foreground file information;
- the communication module is configured to communicate with an external network server, and replace the background file information after obtaining the latest file information from the network server.
- the file information includes an update time of the file being updated to the current information database, where the update determining module is further configured to obtain an update time of the background file information, and determine an update time of the background file information and a current system time. Whether the difference is greater than the first time interval; if yes, the communication module is configured to send a file acquisition request to the network server, and receive file information in the returned network server; the background information library is used to use the file information returned by the network server Replace the background file information.
- the communication module is further configured to send an attempt to obtain a request to the network server, and receive an update time of the file information in the returned network server;
- the update determining module is configured to determine an update time of the file information in the network server. Whether the difference of the update time of the background file information is greater than the first time interval; if yes, the communication module is configured to send a confirmation acquisition request to the network server, and receive the file information in the returned network server.
- the update determining module is further configured to: obtain an update time of the foreground file information, and determine whether a difference between the update time of the foreground file information and the update time of the background file information is greater than a second time interval; if yes, determine The foreground file information is not the latest file information.
- the method further includes: an input detection module; the input detection module is configured to detect a control instruction input by the user; and if the control instruction is determined to be the first control instruction, the update determination module is configured to detect whether the foreground file information is The latest file information; if not, the background information library is used to send the background file information to the foreground information database to replace the original foreground file information.
- the file menu has at least two files, and each file menu is configured with an independent foreground information base and a background information base associated with the file menu; when one of the file menus is displayed in the foreground, the remaining file menus are hidden;
- the update detection module is further configured to detect whether the foreground file information of any file menu is replaced by its background file information; if yes, the update determination module further detects whether the foreground file information of the other file menu is the latest file information; No, the background repository updates its foreground file information using the background file information of other file menus.
- the communication module is further configured to obtain the latest file information from the network server, and replace the background file information.
- the method and device for updating menu information provided by the present invention can ensure the timeliness of the file menu through the background update mode, and update the file menu in a state invisible to the user. It avoids the visual and operational hysteresis caused by the operation of refreshing the menu in the prior art, and improves the operation smoothness.
- FIG. 1 is a schematic overall flowchart of a first embodiment of a method for updating menu information according to the present invention
- FIG. 2 is a detailed flow chart of a first embodiment of a method for updating menu information according to the present invention
- FIG. 3a is a schematic diagram of a first use state of a first embodiment of a method for updating menu information according to the present invention
- FIG. 3b is a schematic diagram of a second usage state of a first embodiment of a method for updating menu information according to the present invention
- FIG. 3c is a schematic diagram of a third usage state of a first embodiment of a method for updating menu information according to the present invention.
- FIG. 3 is a schematic diagram of a fourth usage state of a first embodiment of a method for updating menu information according to the present invention
- FIG. 3e is a schematic diagram of a fifth usage state of a first embodiment of a method for updating menu information according to the present invention.
- FIG. 4 is a detailed flow chart of a second embodiment of a method for updating menu information according to the present invention.
- FIG. 5 is a schematic flowchart diagram of a third embodiment of a method for updating menu information according to the present invention.
- FIG. 6 is a schematic flowchart of a fourth embodiment of a method for updating menu information according to the present invention.
- FIG. 7 is a schematic flowchart diagram of a fifth embodiment of a method for updating menu information according to the present invention.
- FIG. 8 is a detailed flow chart of a sixth embodiment of a method for updating menu information according to the present invention.
- FIG. 9 is a detailed diagram of a variation of a sixth embodiment of a method for updating menu information according to the present invention Schematic diagram of the process
- FIG. 10 is a schematic block diagram of an apparatus for updating menu information according to the present invention.
- FIG. 11 is a schematic block diagram of still another embodiment of an apparatus for updating menu information according to the present invention.
- FIG. 1 is a schematic flowchart of a first embodiment of a method for updating menu information according to the present invention. As shown in the figure, the method in this embodiment includes the following steps:
- the pre-stored background file information is obtained from the background information repository, and the background file information is sent to the foreground information database to generate the foreground file information.
- the background information base is set in the permanent storage medium that can realize the data storage function after the software exits or after the device where the software is located is closed.
- the front-end information base has no requirement for the storage medium, and may be set on the permanent storage medium or on the temporary storage medium; when it is set on the permanent storage medium, the software should be emptied before the software exits. Saved foreground file information.
- the background file information obtained from the background repository for the first time after the software is started is the background file data that was retained when the software was last logged out.
- File information includes, but is not limited to, the name, description, sample picture, link of a single or multiple files.
- the file menu is a menu that is displayed on the display interface of the device where the software is located, and is used to visually display the file information to the user.
- the file menu displays the file information in a list form.
- the number of entries included in the foregoing foreground file information and the background file information is preset.
- the latest file entries in the network server are replaced with the old entries in the background file information according to certain rules.
- the embodiment is that most of the existing homepages such as video and news are used, and the same applies to the present embodiment.
- the file menu is hidden to cover a variety of situations. For example, if a file in the file menu is executed, the display interface of the file is placed in the foreground, and the file menu is hidden to the background; or the file menu has two More than one, when switching the file menu, the file menu switched to the background is considered to be hidden. That is, as long as the file menu is switched from the visual state of the user to the state invisible to the user, in this embodiment, the file menu is considered to be hidden.
- the file information in the foreground information base may be updated using the file information in the background information base. There is no need to temporarily obtain the file information from the server, and the entire process file menu is in the invisible state of the user, and the state of the interface refresh caused by the update of the file menu is not seen by the user, that is, the user experience is not affected.
- the method further comprises the steps of:
- step S15 the software can directly obtain newer file information directly from the background information database at the next startup, and directly display, without temporarily obtaining file information from the network server.
- the present embodiment and subsequent embodiments are applicable to smart devices, such as smart phones, smart computers, personal computers, and the like, which have a display unit and a background; the display unit of these smart devices should be able to display a file menu, and the smart device should also be able to hide the smart menu in the background. .
- FIG. 2 is a detailed flow chart of a first embodiment of a method for updating menu information according to the present invention. As shown in the figure, detailed steps of the embodiment include:
- step S24 Determine whether the file menu is hidden, that is, whether the file menu is changed to a state in which the user is invisible. If yes, go to step S25, if no, go to step S22.
- step S26 Determine whether the foreground file information is the latest file information. If yes, go to step S22, if no, go to step S27.
- Figures 3a-3e are the five states of use for this example, respectively, as follows:
- the first use state when the software has just started, its foreground information base 2 is emptied when it was last exited, so the file menu 1 does not have any content displayed.
- the background file information pre-stored in the background information base 3 (in this example, the background file information includes the file information A and the file information B) is sent to the foreground information base.
- the background information base 3 receives the file information sent by the network server 4, and replaces the background file information stored by itself with the background file information, and the background file information in the background information base 3 is replaced with the file information C and the file. Information D. However, at this time, the file menu 1 is not hidden, so the background file information will not be sent to the foreground information library.
- the fourth use state at this time, the user selects the file information A in the file menu 1 and executes the file corresponding to the file information A, the file menu 1 is replaced by the display interface of the file A, and the file menu 1 is hidden.
- the foreground information base 2 determines that the foreground file information is not the latest file information, so the background file information is acquired from the background information base 3, and the foreground file information is replaced.
- a method for updating a file menu is provided.
- the latest file information is stored in the background information repository, and the file menu is hidden, the latest file information stored in the background is updated to the foreground information database, thereby The update process of the file menu content is hidden, the user does not perceive the refresh process of the menu when using, and there is no waiting process in the operation and visual experience, which improves the smoothness of the operation.
- this embodiment further describes how to replace the background file information with the latest file information obtained from the network server.
- the file information includes a file that is updated to a current information base.
- step S41 Determine whether the difference between the update time of the background file information and the current system time is greater than the first time interval; if yes, go to step S42, if no, go to step S40.
- step S41 in order to ensure the stability of the system, after the step S41 is completed and the determination is no, the process should be continued to the step S40.
- the difference between the update time of the background file information and the system time (because the system time is necessarily greater than or equal to the update time of the background file information, the system time is subtracted from the update time of the background file information, or
- the absolute value of the value which is arbitrarily reduced or subtracted as the above difference is a reasonable and convenient comparison method.
- Whether it is greater than the first time interval as a determination method to determine whether to request from the server.
- the first time interval can be determined according to system load, user research, experiment, etc., and the range of 5s-10min is reasonable; the first time interval should not be long, otherwise the update speed will be affected, and the file information will be lost.
- the first time interval is not easy to be short, otherwise it will lead to frequent communication between the terminal and the network server, affecting the performance of the terminal and the network server, and consuming a large amount of unnecessary resources.
- the first time interval is set to 5 min.
- the file information includes the update time of the file being updated to the current information base, and the update time is determined according to the system time of the information library to which it was last updated. For example, when the file information is acquired to the network server, the network server should be followed. The time of recording its update time; when it is sent to the background repository, it should record its update time according to the time of the background repository, that is, the system time.
- this embodiment further explains how to replace the background file information with the latest file information obtained from the web server.
- this embodiment cannot be completely processed, and some unexpected problems may occur, so the following embodiments are drawn.
- the embodiment further optimizes the method of acquiring the latest file information from the network server to replace the background file information.
- FIG. 5 is a schematic flowchart of a third embodiment of a method for updating menu information according to the present invention.
- step S42 a file acquisition request is sent to a network server, and file information in the returned network server is received. Further includes:
- S50 Send an attempt to acquire a request to the network server, and receive an update time of the file information in the returned network server.
- step S51 Determine whether the difference between the update time of the file information in the network server and the update time of the background file information is greater than the first time interval. If yes, go to step S52, if no, go to step S40 in the previous embodiment. It should also be noted that the delay should be appropriately applied before proceeding to step S40.
- the embodiment further determines whether the difference between the update time of the file information in the server and the update time of the background file information is still greater than the first time interval, thereby avoiding local time and network server time.
- the problem of not being synchronized may be caused.
- the second embodiment and the third embodiment provide a method of determining whether the background file information has expired and updating it when it expires.
- a method of determining whether the foreground file information has expired and updating it after expiration is further given.
- FIG. 6 is a schematic flowchart of a fourth embodiment of a method for updating menu information according to the present invention. As shown in the figure, in the embodiment, step S13 is performed to detect whether the foreground file information is the latest file. Information, further including:
- step S61 Determine whether the difference between the update time of the foreground file information and the update time of the background file information is greater than the second time interval. If yes, go to step S62, if no, go to step S60. It should also be noted that the delay should be appropriately extended before proceeding to step S60.
- the foreground file information is the latest file information by comparing whether the difference between the foreground file information and the background file information update time is greater than the second time interval.
- the second time interval It can be determined according to system load, user research, experiment, etc., and its range is 5s-10min, which is similar to the first time interval in the above embodiment; however, in order to reduce invalid operation and improve execution efficiency,
- the value of the second time interval should be made not less than the first time interval, and more preferably set to an integral multiple of the first time interval. In this way, during one second time interval, one or more background file information updating processes are performed, so as to ensure that the latest file information exists in the background file information when updating the foreground file information.
- FIG. 7 is a schematic flowchart of a fifth embodiment of a method for updating menu information according to the present invention. As shown in the embodiment, in step S12, after obtaining the latest file information from the network server, After the step of replacing the background file information, the method further includes:
- step S71 Determine whether the control instruction is a first control instruction. If yes, go to step S72, if no, go to step S70.
- step S72 Determine whether the foreground file information is the latest file information. If yes, go to step S70, if no, go to step S73.
- the first control instruction may be any control instruction preset. This embodiment provides a method for actively updating the foreground file information after receiving a user-specific control command.
- the present embodiment provides a method of updating menu information in a multi-menu environment.
- FIG. 8 is a detailed flow chart of a sixth embodiment of a method for updating menu information according to the present invention.
- the file menu has at least two, and each file menu is configured with Associated independent front-end information base and back-end information base; when one of the file menus is displayed in the foreground, the remaining file menus are temporarily stored in the background.
- Step S12 after the network server obtains the latest file information, and replaces the background file information, the method further includes:
- step S81 determining whether a file menu is switched to the background. If yes, go to step S82, if no, turn Go to step S80.
- step S82 Determine whether the foreground file information of the file menu switched to the background is the latest file information. If yes, go to step S80, if no, go to step S83.
- S83 Send the background file information of the file menu switched to the background to the foreground information library, and replace the original foreground file information.
- the file menu "hidden” includes the case of “switched to the background” in this embodiment; this embodiment can be regarded as an specific application scenario of steps S13, S14.
- the implementation When detecting that the user switches the file menu, the implementation further determines whether the foreground file information of the file menu switched to the background (ie, the user is temporarily invisible) is the latest file information, and if not, replaces the background file information of the file menu with the file file. Update its foreground file information. Since this file menu has been switched to the background, the update process is not visible and there is no operational delay, which further improves the smoothness of the operation.
- FIG. 9 is a detailed flowchart of a modification of a sixth embodiment of a method for updating menu information according to the present invention.
- step S14 The background file information is sent to the foreground information repository, replacing the original foreground file information, and after the file menu is displayed, it also includes:
- step S91 Determine whether the foreground file information of any file menu is replaced by its background file information. If yes, go to step S92, if no, go to step S90.
- step S92 Determine whether the front file information of the other file menu is the latest file information. If no, go to step S93, and if yes, go to step S90.
- step S92 can be further replaced by the following steps:
- step S94 Determine whether the foreground file information of the other file menus other than the currently displayed file menu is the latest file information. If no, go to step S93, and if yes, go to step S90.
- Step S94 avoids updating the file menu visible to the current user.
- the present invention also provides an apparatus 10 for updating menu information using the above method.
- FIG. 10 is a schematic diagram of a module of an apparatus 10 for updating menu information according to the present invention.
- the apparatus includes:
- a file menu module 100 configured to display foreground file information in a file menu
- a foreground information base 101 for storing foreground file information
- the background information base 102 is configured to store the background file information, and is further configured to: after the terminal is started, send the pre-stored background file information to the foreground information database to generate the foreground file information;
- the communication module 103 is configured to communicate with an external network server, and replace the background file information after obtaining the latest file information from the network server;
- An update detection module 104 configured to detect whether a file menu is hidden
- the update determination module 105 is configured to determine, by detecting an update time of the file information, whether the foreground file information is the latest file information after detecting that the file menu is hidden; if not, the background information database is used to The background file information is sent to the foreground information library to replace the original foreground file information.
- the device is a device having a visual file menu such as a personal computer, a smart phone, a smart TV, etc., and capable of hiding the file menu in the background.
- the device provided by the embodiment saves the latest file information in the background information repository and updates the latest file information stored in the background to the foreground information database when the file menu is hidden, thereby hiding the update process of the file menu content, the user
- the refresh process of the menu is not sensed during use, and there is no waiting process in the operation and visual experience, which improves the smoothness of the operation.
- the file information includes an update time when the file is updated to the current information base
- the update determination module 104 is further configured to obtain an update time of the background file information, and determine the update of the background file information. Whether the difference between the time and the current system time is greater than the first time interval; if yes, the communication module 103 is configured to send a file acquisition request to the network server, and receive file information in the returned network server; The background file information is replaced with file information returned by the web server.
- the communication module 103 is further configured to send an attempt to acquire a request to the network server, and receive an update time of the file information in the returned network server; the update determining module 105 is configured to determine the network server. Whether the difference between the update time of the file information and the update time of the background file information is greater than the first time interval; if yes, the communication module 103 is configured to send a confirmation acquisition request to the network server, and receive the file information in the returned network server. .
- the update determining module 105 is further configured to: obtain an update time of the foreground file information, and determine whether a difference between the update time of the foreground file information and the update time of the background file information is greater than a second time interval; If so, it is determined that the foreground file information is not the latest file information.
- the device further includes an input detection module 106; the input detection module 106 is configured to detect a control instruction input by the user; and if the control instruction is determined to be the first control instruction, the update determination
- the module 105 is configured to detect whether the foreground file information is the latest file information; if not, the background information base 102 is configured to send the background file information to the foreground information base 101 to replace the original foreground file information.
- the file menu has at least two, each file menu is set with an independent foreground information base 101 and a background information base 102 associated with it; when one of the file menus is displayed in the foreground, the remaining file menus are temporarily Stored in the background;
- the update detection module 104 is further configured to detect whether the user switches the file menu; if yes, the update determination module 105 is configured to detect whether the foreground file information of the file menu switched to the background is the latest file information; if not, The background information base 102 is configured to send the background file information of the file menu switched to the background to the foreground information base 101, replacing the original foreground file information.
- the update detection module 104 is further configured to detect whether the foreground file information of any file menu is replaced by its background file information; if yes, the update determination module 105 further determines other file menus. Whether the foreground file information is the latest file information; if not, the background information base 102 updates its foreground file information using the background file information of the other file menu.
- the communication module 103 is further configured to obtain the latest file information from the network server, and replace the background file information.
- the device 2 for updating menu information includes a processor 21, a memory 22, and a bus system 23.
- the processor 21 and the memory 22 are connected by a bus system 23 for storing instructions, and the processor 21 is configured to execute the instructions stored by the memory 22 for:
- the pre-stored background file information is obtained from the background information repository, and the background file information is sent to the foreground information database to generate the foreground file information.
- determining whether the foreground file information is the latest file information by detecting an update time of the foreground file information; if not, sending the background file information to the foreground information database , replace the original foreground file information.
- the memory 22 of the device 2 that updates the menu information may be a non-transitory computer readable storage medium for storing computer-executable instructions that, when executed by one or more processors, may cause the processor to perform the above method implementation Example steps, such as steps 10 through 14 as described in FIG. 1, or steps 20 through 27 as depicted in FIG. 2, or steps 40 through 43 as depicted in FIG. 4, or steps 40 through 43 as depicted in FIG. 5, or Steps 60 to 62 as described in FIG. 6, or steps 70 to 73 as described in FIG. 7, or steps 80 to 83 as described in FIG. 8, or steps 90 to 93 as described in FIG.
- Example steps such as steps 10 through 14 as described in FIG. 1, or steps 20 through 27 as depicted in FIG. 2, or steps 40 through 43 as depicted in FIG. 4, or steps 40 through 43 as depicted in FIG. 5, or Steps 60 to 62 as described in FIG. 6, or steps 70 to 73 as described in FIG. 7, or steps 80 to 83 as described in FIG. 8, or steps 90 to
- the computer executable instructions may also be stored and/or transferred in any non-transitory computer readable storage medium for use by or in connection with an instruction execution system, apparatus, or device, where the instructions are executed.
- a system, apparatus, or device such as a computer-based system, a system containing a processor, or other system that can obtain instructions from, and execute instructions from, an instruction execution system, apparatus, or device.
- Non-transitory computer readable storage medium can be any medium that tangibly contains or stores computer-executable instructions, which can be used by an instruction execution system, device, or system Or use in conjunction with an instruction execution system, device, or device.
- Non-transitory computer readable storage media may include, but are not limited to, magnetic, optical, and/or semiconductor storage devices. Examples of such storage devices include magnetic disks, CD-ROM based on CD, DVD or Blu-ray technology, and persistent solid-state memories (such as flash memory, solid state drives, etc.).
- the processor 21 may be a central processing unit ("CPU").
- the processor 21 can also be other general purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), off-the-shelf programmable gate arrays (FPGAs) or other programmable logic devices, discrete gates or transistor logic devices, discrete Hardware components, etc.
- DSPs digital signal processors
- ASICs application specific integrated circuits
- FPGAs off-the-shelf programmable gate arrays
- the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
- the bus system 23 may include a power bus, a control bus, a status signal bus, and the like in addition to the data bus. However, for clarity of description, various buses are labeled as the bus system 23 in the figure.
- the means for updating the menu information is not limited to the components and configurations of FIG. 11, and may include other or additional components in various configurations.
- each step of the above method or each module of the device may pass through the processor 21
- the integrated logic of the hardware or the instructions in software form are completed.
- the units of the steps or apparatus of the method disclosed in the embodiments of the present application may be directly embodied as hardware processor execution completion. Or complete with a combination of hardware and software modules in the processor.
- the software module can be located in a conventional storage medium such as random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, and the like.
- the storage medium is located in the memory 22, and the processor 21 reads the information in the memory 22 and combines the hardware to perform the steps of the above method. To avoid repetition, it will not be described in detail here.
- the method and device for updating menu information provided by the present invention can ensure the timeliness of the file menu through the background update mode, and update the file menu in a state invisible to the user. It avoids the visual and operational hysteresis caused by the operation of refreshing the menu in the prior art, and improves the operation smoothness.
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Information Transfer Between Computers (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
一种更新菜单内容的方法及装置,包括以下步骤:软件启动后,从后台信息库获取预存的后台文件信息,将后台文件信息发送至前台信息库,生成前台文件信息(10);在该软件的文件菜单显示前台文件信息(11);从网络服务器获取到最新的文件信息后,替换后台文件信息(12);若检测到文件菜单被隐藏,通过检测文件信息的更新时间判断前台文件信息是否为最新的文件信息(13);若不是,则将后台文件信息发送至前台信息库,替换原有的前台文件信息,并在文件菜单显示(14)。该更新菜单信息的方法及装置通过后台更新的方式,能够保证文件菜单的时效性,并在用户不可见的状态下对文件菜单进行更新,可以避免视觉和操作的迟滞感,提升操作流畅度。
Description
本发明涉及通信技术领域,特别是指一种更新菜单信息的方法及装置。
当前的操作系统均采用可视化操作界面,其包含的软件均采用可视化菜单作为图形操作界面以支持用户交互功能。对于具备时效性的软件,例如新闻终端、视频终端等而言,其文件菜单的数据是开机或软件启动时从网络服务器临时获取并存储到本地的;而之后文件菜单数据的更新均需要用户主动操作或者在下次切换至文件菜单时执行。这种不定期的更新方式带来了一系列问题,假若网络不畅或者因其他系统问题等,无法及时从网路服务器获取最新的文件菜单,那么终端可能会无法显示文件菜单,或显示的文件菜单与网络服务器端的文件菜单相比存在较大迟滞,造成数据的不一致,使用户无法正常操作;此外,终端的文件菜单在执行更新时,处于用户可视的状态下,其更新过程会占用一定的操作时间,造成用户操作的不流畅,影响用户体验。
【发明内容】
有鉴于此,本发明的目的在于提出一种更新菜单信息的方法及装置,用以实现在用户不可见的状态更新菜单的信息,提高操作的流畅度。
基于上述目的本发明提供的一种更新菜单内容的方法,包括以下步骤:
软件启动后,从后台信息库获取预存的后台文件信息,将所述后台文件信息发送至前台信息库,生成前台文件信息;
在该软件的文件菜单显示所述前台文件信息;
从网络服务器获取到最新的文件信息后,替换所述后台文件信息;
若检测到所述文件菜单被隐藏,通过检测所述前台文件信息的更新时间判断所述前台文件信息是否为最新的文件信息;若不是,则将所述后台文件信息发送至所述前台信息库,替换原有的前台文件信息。
可选的,所述文件信息包括文件被更新至当前信息库的更新时间,所述从网络服务器获取到最新的文件信息后,替换所述后台文件信息的步骤,包括:
获取后台文件信息的更新时间;
判断所述后台文件信息的更新时间与当前系统时间的差值是否大于第一时间间隔;若是,则向网络服务器发送文件获取请求,接收返回的网络服务器内
的文件信息;
用网络服务器返回的文件信息替换所述后台文件信息。
可选的,所述向网络服务器发送文件获取请求,接收返回的网络服务器内的文件信息的步骤,包括:
向网络服务器发送尝试获取请求,接收返回的网络服务器内的文件信息的更新时间;
若网络服务器内的文件信息的更新时间与后台文件信息的更新时间的差值仍大于第一时间间隔,则向网络服务器发送确认获取请求,接收返回的网络服务器内的文件信息。
可选的,所述检测所述前台文件信息是否为最新的文件信息的步骤,包括:
获取前台文件信息的更新时间;
若所述前台文件信息的更新时间与后台文件信息的更新时间的差值大于第二时间间隔,则判定所述前台文件信息不是最新的文件信息。
可选的,方法还包括:
若检测到用户输入的第一控制指令,检测所述前台文件信息是否为最新的文件信息;若不是,则将所述后台文件信息发送至前台信息库,替换原有的前台文件信息。
可选的,所述文件菜单至少有两个,每个文件菜单设置与其关联的独立的前台信息库和后台信息库;当其中一个文件菜单在前台显示时,其余文件菜单被隐藏;所述从网络服务器获取到最新的文件信息后,替换所述后台文件信息的步骤后,还包括:
若检测到任一文件菜单的前台文件信息被其后台文件信息替换,检测其他被隐藏的文件菜单的前台文件信息是否为最新的文件信息;若不是,使用其他被隐藏的文件菜单的后台文件信息更新其他被隐藏的文件菜单的前台文件信息。
可选的,还包括:
软件退出前,从网络服务器获取最新的文件信息,替换所述后台文件信息。
基于上述目的本发明提供的一种更新菜单内容的装置,包括:
文件菜单模块,用于在文件菜单显示前台文件信息;
前台信息库,用于存储前台文件信息;
后台信息库,用于存储后台文件信息,还用于在装置启动后,将预存的后
台文件信息发送至所述前台信息库,生成前台文件信息;
更新检测模块,用于检测文件菜单是否被隐藏;
更新判断模块,用于在检测到文件菜单被隐藏后,通过检测所述前台文件信息的更新时间判断所述前台文件信息是否为最新的文件信息;若不是,则所述后台信息库用于将所述后台文件信息发送至所述前台信息库,替换原有的前台文件信息;
通信模块,用于与外部网络服务器通信,从网络服务器获取到最新的文件信息后,替换所述后台文件信息。
可选的,所述文件信息包括文件被更新至当前信息库的更新时间,所述更新判断模块还用于获取后台文件信息的更新时间,判断所述后台文件信息的更新时间与当前系统时间的差值是否大于第一时间间隔;若是,则所述通信模块用于向网络服务器发送文件获取请求,接收返回的网络服务器内的文件信息;所述后台信息库用于使用网络服务器返回的文件信息替换所述后台文件信息。
可选的,所述通信模块还用于向网络服务器发送尝试获取请求,接收返回的网络服务器内的文件信息的更新时间;所述更新判断模块用于判断网络服务器内的文件信息的更新时间与后台文件信息的更新时间的差值是否大于第一时间间隔;若是,则所述通信模块用于向网络服务器发送确认获取请求,接收返回的网络服务器内的文件信息。
可选的,所述更新判断模块还用于获取前台文件信息的更新时间,判断所述前台文件信息的更新时间与后台文件信息的更新时间的差值是否大于第二时间间隔;若是,则判定所述前台文件信息不是最新的文件信息。
可选的,还包括输入检测模块;所述输入检测模块用于检测用户输入的控制指令;若判定所述控制指令为第一控制指令,所述更新判断模块用于检测所述前台文件信息是否为最新的文件信息;若不是,则所述后台信息库用于将所述后台文件信息发送至前台信息库,替换原有的前台文件信息。
可选的,所述文件菜单至少有两个,每个文件菜单设置与其关联的独立的前台信息库和后台信息库;当其中一个文件菜单在前台显示时,其余文件菜单被隐藏;
所述更新检测模块还用于检测任一文件菜单的前台文件信息是否被其后台文件信息替换;若是,则所述更新判断模块进一步检测其他文件菜单的前台文件信息是否为最新的文件信息;若否,所述后台信息库使用其他文件菜单的后台文件信息更新其前台文件信息。
可选的,所述装置关闭前,所述通信模块还用于从网络服务器获取最新的文件信息,替换所述后台文件信息。
从上面所述可以看出,本发明提供的一种更新菜单信息的方法及装置通过后台更新的方式,能够保证文件菜单的时效性,并在用户不可见的状态下对文件菜单进行更新,可以避免现有技术中刷新菜单的操作带来的视觉和操作的迟滞感,提升操作流畅度。
图1为本发明提供的一种更新菜单信息的方法的第一实施例的整体流程示意图;
图2为本发明提供的一种更新菜单信息的方法的第一实施例的详细流程示意图;
图3a为本发明提供的一种更新菜单信息的方法的第一实施例的第一种使用状态示意图;
图3b为本发明提供的一种更新菜单信息的方法的第一实施例的第二种使用状态示意图;
图3c为本发明提供的一种更新菜单信息的方法的第一实施例的第三种使用状态示意图;
图3d为本发明提供的一种更新菜单信息的方法的第一实施例的第四种使用状态示意图;
图3e为本发明提供的一种更新菜单信息的方法的第一实施例的第五种使用状态示意图;
图4为本发明提供的一种更新菜单信息的方法的第二实施例的详细流程示意图;
图5为本发明提供的一种更新菜单信息的方法的第三实施例的详细流程示意图;
图6为本发明提供的一种更新菜单信息的方法的第四实施例的详细流程示意图;
图7为本发明提供的一种更新菜单信息的方法的第五实施例的详细流程示意图;
图8为本发明提供的一种更新菜单信息的方法的第六实施例的详细流程示意图;
图9为本发明提供的一种更新菜单信息的方法的第六实施例的变例的详细
流程示意图;
图10为本发明提供的一种更新菜单信息的装置的模块示意图;
图11为本发明提供的更新菜单信息的装置的又一个实施例的模块示意图。
为使本发明的目的、技术方案和优点更加清楚明白,以下结合具体实施例,并参照附图,对本发明进一步详细说明。
第一实施例
本实施例提供一种更新菜单内容的方法。图1为本发明提供的一种更新菜单信息的方法的第一实施例的整体流程示意图,如图所示,本实施例中的方法,包括以下步骤:
S10,软件启动后,从后台信息库获取预存的后台文件信息,将所述后台文件信息发送至前台信息库,生成前台文件信息。
其中,后台信息库设置在软件退出后,或软件所在的设备关闭后仍然能够实现数据存储功能的永久性存储介质内。前台信息库对于存储介质则无要求,可以设置于永久性存储介质上,也可以设置于临时性存储介质上;当其设置于永久性存储介质上时,在软件退出前,应当清空其内所保存的前台文件信息。
软件启动后第一次从后台信息库获取的后台文件信息是在软件上次退出时保留的后台文件数据。
文件信息包括但不限于单个或多个文件的名称、简介、示例图片、链接。
S11,在该软件的文件菜单显示所述前台文件信息。
文件菜单是指在软件所在的设备的显示界面上显示的,用于向用户可视化展示文件信息的菜单。较佳的,文件菜单以列表形式显示文件信息。
S12,从网络服务器获取到最新的文件信息后,替换所述后台文件信息。
需要说明的是,上述前台文件信息和后台文件信息所包含的条目数是预设的,在进行更新时,会按照一定规则将网络服务器内最新的文件条目替换后台文件信息中陈旧的条目,这是实施方式是现有大多视频、新闻等主页在使用的,同样适用于本实施例。
S13,若检测到所述文件菜单被隐藏,通过检测前台文件信息的更新时间判断所述前台文件信息是否为最新的文件信息。
文件菜单被隐藏包含多种情况,例如文件菜单中的某一文件被执行,则该文件的显示界面被置于前台,此时文件菜单隐藏至后台;又或者文件菜单有两
个以上,在进行文件菜单的切换时,被切换至后台的文件菜单视为被隐藏。也即只要文件菜单由用户可视状态切换至用户不可视的状态,在本实施例中均视为文件菜单被隐藏。
S14,若不是,则将所述后台文件信息发送至所述前台信息库,替换原有的前台文件信息,并在所述文件菜单显示。
在步骤S13内执行检测后,若前台文件信息不是最新,则可以使用后台信息库内的文件信息更新前台信息库内的文件信息。无需临时由服务器获取文件信息,并且整个过程文件菜单处于用户不可视状态,文件菜单的更新引起的界面刷新等状态不会被用户所见,即不会影响用户体验。
在本实施例的一个变例中,还包括以下步骤:
S15,软件退出前,从网络服务器获取最新的文件信息,替换所述后台文件信息。
通过执行步骤S15,使得软件在下次启动时可以直接由后台信息库获取较新的文件信息,直接显示,无需临时从网络服务器获取文件信息。
本实施例及后续实施例适用于智能手机、智能电脑、个人电脑等具备显示单元和后台的智能设备;这些智能设备的显示单元应当能够显示文件菜单,智能设备还应当能够将智能菜单隐藏在后台。
图2为本发明提供的一种更新菜单信息的方法的第一实施例的详细流程示意图,如图所示,本实施例的详细步骤包括:
S20,软件启动后,从后台信息库获取预存的后台文件信息,将所述后台文件信息发送至前台信息库,生成前台文件信息。
S21,在该软件的文件菜单显示所述前台文件信息。
S22,从网络服务器获取到最新的文件信息后,替换所述后台文件信息。
S23,监控文件菜单的显示状态,是否为用户直接可视的状态,例如监控文件菜单在设备所处的显示图层是否是用户直接可视的图层。
S24,判断文件菜单是否被隐藏,也即文件菜单是否转变为用户不可见的状态。若是,则转至步骤S25,若否,则转至步骤S22。
S25,检测前台文件信息的时效。也即获取前台文件信息的更新时间,以便后续步骤执行判断。
S26,判定前台文件信息是否为最新的文件信息。若是,则转至步骤S22,若否,则转至步骤S27。
S27,将所述后台文件信息发送至所述前台信息库,替换原有的前台文件信
息,并在所述文件菜单显示。
上面结合整体流程图和详细流程图介绍了第一实施例的方法,下面结合使用状态示意图,通过一个例子对上述方法进行进一步解释。
图3a-图3e分别为本例的五种使用状态,详细如下:
a)第一使用状态,此时软件刚刚启动,其前台信息库2在上次退出时被清空,因此文件菜单1并没有任何内容显示。此时将后台信息库3预存的后台文件信息(此例中,后台文件信息包含文件信息A和文件信息B)发送至前台信息库。
b)第二使用状态,后台信息库3内的文件信息已将发送至前台信息库2,并在文件菜单1内显示。此时后台信息库3开始尝试从网络服务器4获取最新的文件信息。假设此时网络服务器4内的文件信息为文件信息C和文件信息D。
c)第三使用状态,后台信息库3接收网络服务器4发送的文件信息,并以其替换自身存储的后台文件信息,此时后台信息库3内的后台文件信息被替换为文件信息C和文件信息D。但是此时文件菜单1并没有被隐藏,故暂不会将后台文件信息发送至前台信息库。
d)第四使用状态,此时用户选取了文件菜单1中的文件信息A,并执行文件信息A对应的文件,文件菜单1被文件A的显示界面替换,文件菜单1隐藏。此时前台信息库2判定前台文件信息并不是最新的文件信息,因此从后台信息库3获取后台文件信息,替换前台文件信息。
e)第五使用状态,用户关闭文件A,文件菜单1重新显示,此时文件菜单1中显示的内容,即前台信息库2内的内容已经更新为文件信息C和文件信息D,从而完成了文件菜单1的后台更新。
本实施例中给出了一种更新文件菜单的方法,通过在后台信息库存储最新的文件信息,并在文件菜单被隐藏时,将后台存储的最新的文件信息更新至前台信息库,从而将文件菜单内容的更新过程隐藏,用户在使用时感知不到菜单的刷新过程,在操作和视觉体验上均不存在等待过程,提高了操作流畅程度。
第二实施例
本实施例在第一实施例的基础上,进一步对如何用从网络服务器获取到的最新的文件信息替换后台文件信息做了详细说明。
图4为本发明提供的一种更新菜单信息的方法的第二实施例的详细流程示意图,如图所示,在本实施例中,所述文件信息包括文件被更新至当前信息库
的更新时间,上述步骤S12,从网络服务器获取到最新的文件信息后,替换所述后台文件信息,进一步包括:
S40,获取后台文件信息的更新时间。
S41,判断所述后台文件信息的更新时间与当前系统时间的差值是否大于第一时间间隔;若是,则转至步骤S42,若否,则转至步骤S40。
需要说明的是,为了保证系统稳定,在执行完毕步骤S41并判断为否后,应当间隔一定时间再转至步骤S40。
S42,向网络服务器发送文件获取请求,接收返回的网络服务器内的文件信息。
S43,用网络服务器返回的文件信息替换所述后台文件信息。
需要说明的是,本发明实施例中所有使用“第一”和“第二”的表述均是为了区分两个相同名称非相同的实体或者非相同的参量,可见“第一”“第二”仅为了表述的方便,不应理解为对本发明实施例的限定,后续实施例对此不再一一说明。
在本实施例中,以后台文件信息的更新时间与系统时间的差值(由于系统时间必然大于或等于后台文件信息的更新时间,因此以系统时间减去后台文件信息的更新时间的数值,或二者任意作为被减数或减数的到的数值的绝对值作为上述差值,是一种较为合理的、便于比较的方案)是否大于第一时间间隔作为判定方式,来判断是否向服务器请求更新文件信息,来检测并获取最新的文件信息。其中第一时间间隔可以根据系统负载、用户调研、实验等多种方式确定,其范围5s-10min都是较为合理的;第一时间间隔不宜较长,否则会影响更新速度,使文件信息失去时效性,第一时间间隔也不易较短,否则会导致终端和网络服务器之间的频繁通信,影响终端和网络服务器的性能,占用大量不必要的资源。在较佳的实施方式中,第一时间间隔设定为5min。
在文件信息中包括文件被更新至当前信息库的更新时间,而这样更新时间是依据其最后被更新至的信息库的系统时间决定的,例如文件信息被获取至网络服务器时,应按照网络服务器的时间记录其更新时间;在其被发送至后台信息库时,则应当按照后台信息库的时间,即系统时间记录其更新时间。
在第一实施例的基础上,本实施例进一步解释说明了如何用从网络服务器获取到的最新的文件信息替换后台文件信息。但是对于一些意外情况,例如软件所在的本地终端与网络服务器之间的时间偏差较大,本实施例则无法完善处理,可能会出现一些意料之外的问题,因此引出下面的实施例。
第三实施例
为了解决第二实施例中可能出现的问题,本实施例进一步优化了从网络服务器获取到最新的文件信息替换后台文件信息的方法。
图5为本发明提供的一种更新菜单信息的方法的第三实施例的详细流程示意图,如图所示,步骤S42,向网络服务器发送文件获取请求,接收返回的网络服务器内的文件信息,进一步包括:
S50,向网络服务器发送尝试获取请求,接收返回的网络服务器内的文件信息的更新时间。
S51,判断网络服务器内的文件信息的更新时间与后台文件信息的更新时间的差值是否大于第一时间间隔。若是,则转至步骤S52,若否,则转至上一实施例中的步骤S40。同样要注意,转至步骤S40前应当适当加以延时。
S52,向网络服务器发送确认获取请求,接收返回的网络服务器内的文件信息。
本实施例在上一实施例的基础上,通过进一步验证服务器内的文件信息的更新时间与后台文件信息的更新时间的差值是否仍然大于第一时间间隔,避免了因本地时间和网络服务器时间的不同步可能引起的问题。
第四实施例
第二实施例和第三实施例给出了判定后台文件信息是否过期,并在其过期时进行更新的方法。在本实施例中,进一步给出判定前台文件信息是否过期,并在过期后进行更新的方法。
图6为本发明提供的一种更新菜单信息的方法的第四实施例的详细流程示意图;,如图所示,在本实施例中,步骤S13,检测所述前台文件信息是否为最新的文件信息,进一步包括:
S60,获取前台文件信息的更新时间。
S61,判断前台文件信息的更新时间与后台文件信息的更新时间的差值是否大于第二时间间隔。若是,则转至步骤S62,若否,则转至步骤S60。同样要注意,转至步骤S60前应当适当加以延时。
S62,判定所述前台文件信息不是最新的文件信息。
本实施例通过比较前台文件信息和后台文件信息更新时间的差值是否大于第二时间间隔,判断前台文件信息是否为最新的文件信息。这里第二时间间隔
可以根据系统负载、用户调研、实验等多种方式确定,其范围5s-10min都是较为合理的,这一点与上述实施例中的第一时间间隔相似;但是为了减少无效操作,提高执行效率,应当令第二时间间隔的数值不小于第一时间间隔,更佳的是设置为第一时间间隔的整数倍。这样在一次第二时间间隔内,会执行一次或多次后台文件信息的更新过程,从而尽可能保证在对前台文件信息进行更新时,后台文件信息中存在最新的文件信息。
第五实施例
图7为本发明提供的一种更新菜单信息的方法的第五实施例的详细流程示意图,如图所示,在本实施例中,步骤S12,所述从网络服务器获取到最新的文件信息后,替换所述后台文件信息的步骤后,还包括:
S70,监测用户输入的控制指令。
S71,判断所述控制指令是否为第一控制指令。若是,转至步骤S72,若否,转至步骤S70。
S72,判断所述前台文件信息是否为最新的文件信息。若是,转至步骤S70,若否,转至步骤S73。
S73,将所述后台文件信息发送至前台信息库,替换原有的前台文件信息。
所述第一控制指令可以是预设的任何控制指令。本实施例给出了一种在接收到用户特定控制命令后主动更新前台文件信息的方法。
第六实施例
在一些软件中,文件菜单有至少两个,用户在操作时需要在这些菜单中执行切换操作,且同一时间仅有一个菜单处于用户可视的状态,其他菜单则暂时隐藏在后台。针对这一情况,本实施例给出了一种在多菜单环境下更新菜单信息的方法。
图8为本发明提供的一种更新菜单信息的方法的第六实施例的详细流程示意图,如图所示,在本实施例中,所述文件菜单至少有两个,每个文件菜单设置与其关联的独立的前台信息库和后台信息库;当其中一个文件菜单在前台显示时,其余文件菜单暂存于后台。步骤S12,网络服务器获取到最新的文件信息后,替换所述后台文件信息后,还包括:
S80,检测文件菜单的切换操作。
S81,判断是否有文件菜单被切换至后台。若是,转至步骤S82,若否,转
至步骤S80。
S82,判断被切换至后台的文件菜单的前台文件信息是否为最新的文件信息。若是,转至步骤S80,若否,转至步骤S83。
S83,将被切换至后台的文件菜单的后台文件信息发送至前台信息库,替换原有的前台文件信息。
在之前的实施例中文件菜单“被隐藏”包含本实施例中“被切换至后台”的情况;本实施例可以视为步骤S13、S14的一个具体化的应用场景。
本实施在检测到用户切换文件菜单时,进一步判断被切换至后台(即用户暂时不可见)的文件菜单的前台文件信息是否为最新的文件信息,若不是则使用该文件菜单的后台文件信息替换、更新其前台文件信息。由于此文件菜单已经被切换至后台,因此更新过程不可见,不会产生操作延迟,进一步提高了操作流畅度。
图9为本发明提供的一种更新菜单信息的方法的第六实施例的变例的详细流程示意图,如图所示,在本实施例的一可选变例中,步骤S14,将所述后台文件信息发送至前台信息库,替换原有的前台文件信息,并在文件菜单显示后,还包括:
S90,检测全部文件菜单的前台文件信息更新情况。
S91,判断是否有任一文件菜单的前台文件信息被其后台文件信息替换。若是,转至步骤S92,若否,转至步骤S90。
S92,判断其他文件菜单的前台文件信息是否为最新的文件信息。若否,转至步骤S93,若是,转至步骤S90。
S93,使用其他文件菜单的后台文件信息更新其前台文件信息。
本变例同样适用于多文件菜单的情况,当检测到任一文件菜单被更新后,即同步检测其他文件菜单的前台文件信息是否为最新,若不是则同样对其他文件菜单的文件信息执行更新。为了提高操作流畅程度,步骤S92还可以进一步替换为以下步骤:
S94,判断除当前正在显示的文件菜单外其他文件菜单的前台文件信息是否为最新的文件信息。若否,转至步骤S93,若是,转至步骤S90。
步骤S94避免了对当前用户可见的文件菜单的更新。
除上述方法外,本发明还提供了一种使用上述方法更新菜单信息的装置10。
图10为本发明提供的一种更新菜单信息的装置10的模块示意图,如图所
示,在一个实施例中,装置包括:
文件菜单模块100,用于在文件菜单显示前台文件信息;
前台信息库101,用于存储前台文件信息;
后台信息库102,用于存储后台文件信息,还用于在终端启动后,将预存的后台文件信息发送至所述前台信息库,生成前台文件信息;
通信模块103,用于与外部网络服务器通信,从网络服务器获取到最新的文件信息后,替换所述后台文件信息;
更新检测模块104,用于检测文件菜单是否被隐藏;
更新判断模块105,用于在检测到文件菜单被隐藏后,通过检测文件信息的更新时间判断所述前台文件信息是否为最新的文件信息;若不是,则所述后台信息库用于将所述后台文件信息发送至所述前台信息库,替换原有的前台文件信息。
所述装置为个人电脑、智能手机、智能电视等具备可视化文件菜单,并能够将所述文件菜单隐藏在后台挂起的设备。
本实施例提供的装置通过在后台信息库存储最新的文件信息,并在文件菜单被隐藏时,将后台存储的最新的文件信息更新至前台信息库,从而将文件菜单内容的更新过程隐藏,用户在使用时感知不到菜单的刷新过程,在操作和视觉体验上均不存在等待过程,提高了操作流畅程度。
在一较佳的实施例中,所述文件信息包括文件被更新至当前信息库的更新时间,所述更新判断模块104还用于获取后台文件信息的更新时间,判断所述后台文件信息的更新时间与当前系统时间的差值是否大于第一时间间隔;若是,则所述通信模块103用于向网络服务器发送文件获取请求,接收返回的网络服务器内的文件信息;所述后台信息库102用于使用网络服务器返回的文件信息替换所述后台文件信息。
在一可选的实施例中,所述通信模块103还用于向网络服务器发送尝试获取请求,接收返回的网络服务器内的文件信息的更新时间;所述更新判断模块105用于判断网络服务器内的文件信息的更新时间与后台文件信息的更新时间的差值是否大于第一时间间隔;若是,则所述通信模块103用于向网络服务器发送确认获取请求,接收返回的网络服务器内的文件信息。
在另一实施例中,所述更新判断模块105还用于获取前台文件信息的更新时间,判断所述前台文件信息的更新时间与后台文件信息的更新时间的差值是否大于第二时间间隔;若是,则判定所述前台文件信息不是最新的文件信息。
在一可选的实施例中,所述装置还包括输入检测模块106;所述输入检测模块106用于检测用户输入的控制指令;若判定所述控制指令为第一控制指令,所述更新判断模块105用于检测所述前台文件信息是否为最新的文件信息;若不是,则所述后台信息库102用于将所述后台文件信息发送至前台信息库101,替换原有的前台文件信息。
在另一实施例中,所述文件菜单至少有两个,每个文件菜单设置与其关联的独立的前台信息库101和后台信息库102;当其中一个文件菜单在前台显示时,其余文件菜单暂存于后台;
所述更新检测模块104还用于检测用户是否切换文件菜单;若是,则所述更新判断模块105用于检测被切换至后台的文件菜单的前台文件信息是否为最新的文件信息;若不是,则后台信息库102用于将被切换至后台的文件菜单的后台文件信息发送至前台信息库101,替换原有的前台文件信息。
在上述实施例的一变例中,所述更新检测模块104还用于检测任一文件菜单的前台文件信息是否被其后台文件信息替换;若是,则所述更新判断模块105进一步判断其他文件菜单的前台文件信息是否为最新的文件信息;若否,所述后台信息库102使用其他文件菜单的后台文件信息更新其前台文件信息。
在一较佳的实施例中,所述装置关闭前,所述通信模块103还用于从网络服务器获取最新的文件信息,替换所述后台文件信息。
参照图11所示,为本发明提供的更新菜单信息的装置2的一个实施例的模块示意图。所述更新菜单信息的装置2包括:处理器21、存储器22、总线系统23。其中,处理器21和存储器22通过总线系统23相连,该存储器22用于存储指令,该处理器21用于执行该存储器22存储的指令,用于:
软件启动后,从后台信息库获取预存的后台文件信息,将所述后台文件信息发送至前台信息库,生成前台文件信息;
在该软件的文件菜单显示所述前台文件信息;
从网络服务器获取到最新的文件信息后,替换所述后台文件信息;
若检测到所述文件菜单被隐藏,通过检测所述前台文件信息的更新时间判断所述前台文件信息是否为最新的文件信息;若不是,则将所述后台文件信息发送至所述前台信息库,替换原有的前台文件信息。
更新菜单信息的装置2的存储器22可以是非易失性计算机可读存储介质,以用于存储计算机可执行指令,该指令当由一个或多个处理器执行时,可以使得处理器执行以上方法实施例的步骤,比如,如图1描述的步骤10至14,或者如图2描述的步骤20至27,或者如图4描述的步骤40至43,或者如图5描述的步骤40至43,或者如图6描述的步骤60至62,或者如图7描述的步骤70至73,或者如图8描述的步骤80至83,或者如图9描述的步骤90至93,或者,可以使得处理器执行以上装置实施例各模块的功能,比如,如图10所示模块100至106的功能。计算机可执行指令也可以在任何非易失性计算机可读存储介质内存储和/或传输,以便由指令执行系统、装置或设备使用,或者结合指令执行系统、装置或设备使用,其中该指令执行系统、装置或设备诸如基于计算机的系统、包含处理器的系统或可以从指令执行系统、装置或设备获取指令并执行该指令的其他系统。出于本文档的目的,“非易失性计算机可读存储介质”可以是有形地包含或存储计算机可执行指令的任何介质,该计算机可执行指令可以用于由指令执行系统、设备或系统使用或者结合指令执行系统、装置或设备使用。非易失性计算机可读存储介质可以包括但不限于磁的、光的和/或半导体存储装置。这些存储装置的示例包括磁盘、基于CD、DVD或蓝光技术的光盘以及持久性固态存储器(诸如,闪存、固态驱动器等)。
应当理解,在本申请实施例中,该处理器21可以是中央处理单元(Central Processing Unit,简称为“CPU”)。该处理器21还可以是其他通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现成可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。
该总线系统23除包括数据总线之外,还可以包括电源总线、控制总线和状态信号总线等。但是为了清楚说明起见,在图中将各种总线都标为总线系统23。
在本发明实施例中,更新菜单信息的装置不限于图11的部件和配置,还可以包括以多种配置形式的其他或附加部件。
在实现过程中,上述方法的各步骤或装置的各模块可以通过处理器21中的
硬件的集成逻辑电路或者软件形式的指令完成。结合本申请实施例所公开的方法的步骤或装置的各单元可以直接体现为硬件处理器执行完成。或者用处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器22,处理器21读取存储器22中的信息,结合其硬件完成上述方法的步骤。为避免重复,这里不再详细描述。
从上面所述可以看出,本发明提供的一种更新菜单信息的方法及装置通过后台更新的方式,能够保证文件菜单的时效性,并在用户不可见的状态下对文件菜单进行更新,可以避免现有技术中刷新菜单的操作带来的视觉和操作的迟滞感,提升操作流畅度。
所属领域的普通技术人员应当理解:以上任何实施例的讨论仅为示例性的,并非旨在暗示本公开的范围(包括权利要求)被限于这些例子;在本发明的思路下,以上实施例或者不同实施例中的技术特征之间也可以进行组合,步骤可以以任意顺序实现,并存在如上所述的本发明的不同方面的许多其它变化,为了简明它们没有在细节中提供。因此,凡在本发明的精神和原则之内,所做的任何省略、修改、等同替换、改进等,均应包含在本发明的保护范围之内。
Claims (14)
- 一种更新菜单内容的方法,其特征在于,包括:软件启动后,从后台信息库获取预存的后台文件信息,将所述后台文件信息发送至前台信息库,生成前台文件信息;在该软件的文件菜单显示所述前台文件信息;从网络服务器获取到最新的文件信息后,替换所述后台文件信息;若检测到所述文件菜单被隐藏,通过检测所述前台文件信息的更新时间判断所述前台文件信息是否为最新的文件信息;若不是,则将所述后台文件信息发送至所述前台信息库,替换原有的前台文件信息。
- 根据权利要求1所述的方法,其特征在于,所述文件信息包括文件被更新至当前信息库的更新时间,所述从网络服务器获取到最新的文件信息后,替换所述后台文件信息的步骤,包括:获取后台文件信息的更新时间;判断所述后台文件信息的更新时间与当前系统时间的差值是否大于第一时间间隔;若是,则向网络服务器发送文件获取请求,接收返回的网络服务器内的文件信息;用网络服务器返回的文件信息替换所述后台文件信息。
- 根据权利要求2所述的方法,其特征在于,所述向网络服务器发送文件获取请求,接收返回的网络服务器内的文件信息的步骤,包括:向网络服务器发送尝试获取请求,接收返回的网络服务器内的文件信息的更新时间;若网络服务器内的文件信息的更新时间与后台文件信息的更新时间的差值仍大于第一时间间隔,则向网络服务器发送确认获取请求,接收返回的网络服务器内的文件信息。
- 根据权利要求2所述的方法,其特征在于,所述检测所述前台文件信息是否为最新的文件信息的步骤,包括:获取前台文件信息的更新时间;若所述前台文件信息的更新时间与后台文件信息的更新时间的差值大于第二时间间隔,则判定所述前台文件信息不是最新的文件信息。
- 根据权利要求1所述的方法,其特征在于,方法还包括:若检测到用户输入的第一控制指令,检测所述前台文件信息是否为最新的 文件信息;若不是,则将所述后台文件信息发送至前台信息库,替换原有的前台文件信息。
- 根据权利要求1所述的方法,其特征在于,所述文件菜单至少有两个,每个文件菜单设置与其关联的独立的前台信息库和后台信息库;当其中一个文件菜单在前台显示时,其余文件菜单被隐藏;所述从网络服务器获取到最新的文件信息后,替换所述后台文件信息的步骤后,包括:若检测到任一文件菜单的前台文件信息被其后台文件信息替换,检测其他被隐藏的文件菜单的前台文件信息是否为最新的文件信息;若不是,使用其他被隐藏的文件菜单的后台文件信息更新其他被隐藏的文件菜单的前台文件信息。
- 根据权利要求1所述的方法,其特征在于,方法还包括:软件退出前,从网络服务器获取最新的文件信息,替换所述后台文件信息。
- 一种更新菜单内容的装置,其特征在于,包括:文件菜单模块,用于在文件菜单显示前台文件信息;前台信息库,用于存储前台文件信息;后台信息库,用于存储后台文件信息,还用于在终端启动后,将预存的后台文件信息发送至所述前台信息库,生成前台文件信息;更新检测模块,用于检测文件菜单是否被隐藏;更新判断模块,用于在检测到文件菜单被隐藏后,通过检测所述前台文件信息的更新时间判断所述前台文件信息是否为最新的文件信息;若不是,则所述后台信息库用于将所述后台文件信息发送至所述前台信息库,替换原有的前台文件信息;通信模块,用于与外部网络服务器通信,从网络服务器获取到最新的文件信息后,替换所述后台文件信息。
- 根据权利要求8所述的装置,其特征在于,所述文件信息包括文件被更新至当前信息库的更新时间,所述更新判断模块还用于获取后台文件信息的更新时间,判断所述后台文件信息的更新时间与当前系统时间的差值是否大于第一时间间隔;若是,则所述通信模块用于向网络服务器发送文件获取请求,接收返回的网络服务器内的文件信息;所述后台信息库用于使用网络服务器返回的文件信息替换所述后台文件信息。
- 根据权利要求9所述的装置,其特征在于,所述通信模块还用于向网络服务器发送尝试获取请求,接收返回的网络服务器内的文件信息的更新时间;所述更新判断模块用于判断网络服务器内的文件信息的更新时间与后台文件信息的更新时间的差值是否大于第一时间间隔;若是,则所述通信模块用于向网络服务器发送确认获取请求,接收返回的网络服务器内的文件信息。
- 根据权利要求9所述的装置,其特征在于,所述更新判断模块还用于获取前台文件信息的更新时间,判断所述前台文件信息的更新时间与后台文件信息的更新时间的差值是否大于第二时间间隔;若是,则判定所述前台文件信息不是最新的文件信息。
- 根据权利要求8所述的装置,其特征在于,还包括输入检测模块;所述输入检测模块用于检测用户输入的控制指令;若判定所述控制指令为第一控制指令,所述更新判断模块用于检测所述前台文件信息是否为最新的文件信息;若不是,则所述后台信息库用于将所述后台文件信息发送至前台信息库,替换原有的前台文件信息。
- 根据权利要求8所述的装置,其特征在于,所述文件菜单至少有两个,每个文件菜单设置与其关联的独立的前台信息库和后台信息库;当其中一个文件菜单在前台显示时,其余文件菜单被隐藏;所述更新检测模块还用于检测任一文件菜单的前台文件信息是否被其后台文件信息替换;若是,则所述更新判断模块进一步检测其他文件菜单的前台文件信息是否为最新的文件信息;若否,所述后台信息库使用其他文件菜单的后台文件信息更新其前台文件信息。
- 根据权利要求8所述的装置,其特征在于,所述装置关闭前,所述通信模块还用于从网络服务器获取最新的文件信息,替换所述后台文件信息。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610166695.XA CN105843616A (zh) | 2016-03-22 | 2016-03-22 | 一种更新菜单信息的方法及装置 |
| CN201610166695.X | 2016-03-22 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2017161763A1 true WO2017161763A1 (zh) | 2017-09-28 |
Family
ID=56582988
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2016/089005 Ceased WO2017161763A1 (zh) | 2016-03-22 | 2016-07-07 | 一种更新菜单信息的方法及装置 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN105843616A (zh) |
| WO (1) | WO2017161763A1 (zh) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115827654A (zh) * | 2022-11-29 | 2023-03-21 | 北京百度网讯科技有限公司 | 引擎服务器的更新方法、装置、电子设备及存储介质 |
| CN115834697A (zh) * | 2022-11-16 | 2023-03-21 | 北京奇艺世纪科技有限公司 | 一种文件存储方法、系统、装置及电子设备 |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101783907A (zh) * | 2010-03-10 | 2010-07-21 | 青岛海信电器股份有限公司 | 电视机更新网络数据的方法和装置 |
| CN102129378A (zh) * | 2010-01-20 | 2011-07-20 | 腾讯科技(深圳)有限公司 | 一种软件菜单更新方法和装置 |
| WO2013082886A1 (zh) * | 2011-12-08 | 2013-06-13 | 中兴通讯股份有限公司 | 一种多窗口显示应用程序的方法及终端 |
| CN104375856A (zh) * | 2014-09-24 | 2015-02-25 | 腾讯科技(深圳)有限公司 | 应用更新方法和装置 |
| CN105138318A (zh) * | 2015-07-27 | 2015-12-09 | 深圳市万普拉斯科技有限公司 | 应用程序图标更新方法和装置 |
-
2016
- 2016-03-22 CN CN201610166695.XA patent/CN105843616A/zh active Pending
- 2016-07-07 WO PCT/CN2016/089005 patent/WO2017161763A1/zh not_active Ceased
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102129378A (zh) * | 2010-01-20 | 2011-07-20 | 腾讯科技(深圳)有限公司 | 一种软件菜单更新方法和装置 |
| CN101783907A (zh) * | 2010-03-10 | 2010-07-21 | 青岛海信电器股份有限公司 | 电视机更新网络数据的方法和装置 |
| WO2013082886A1 (zh) * | 2011-12-08 | 2013-06-13 | 中兴通讯股份有限公司 | 一种多窗口显示应用程序的方法及终端 |
| CN104375856A (zh) * | 2014-09-24 | 2015-02-25 | 腾讯科技(深圳)有限公司 | 应用更新方法和装置 |
| CN105138318A (zh) * | 2015-07-27 | 2015-12-09 | 深圳市万普拉斯科技有限公司 | 应用程序图标更新方法和装置 |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115834697A (zh) * | 2022-11-16 | 2023-03-21 | 北京奇艺世纪科技有限公司 | 一种文件存储方法、系统、装置及电子设备 |
| CN115827654A (zh) * | 2022-11-29 | 2023-03-21 | 北京百度网讯科技有限公司 | 引擎服务器的更新方法、装置、电子设备及存储介质 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN105843616A (zh) | 2016-08-10 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP6348989B2 (ja) | ファームウェアの復元方法、装置、端末、プログラム及び記録媒体 | |
| KR102025504B1 (ko) | 디스플레이 모드 기반 미디어 플레이어 스위칭 | |
| US8806514B2 (en) | Data control device, data control method, and computer-readable medium | |
| US20150326655A1 (en) | In-app application casting | |
| TW201814510A (zh) | 介面移動方法、裝置、智慧型終端機、伺服器和操作系統 | |
| WO2018176960A1 (zh) | 显示网络图片的方法、装置以及用户终端 | |
| CN108475184A (zh) | 电子设备及其应用数据显示方法 | |
| US10445104B2 (en) | Electronic device, method for controlling electronic device, and program | |
| WO2013178124A1 (zh) | 应用的快捷方式的处理方法及装置 | |
| JP5963991B1 (ja) | ユーザインタフェース実行装置およびユーザインタフェース設計装置 | |
| KR102628856B1 (ko) | 전자 장치 간 콘텐츠 공유 시스템 및 전자 장치의 콘텐츠 공유 방법 | |
| WO2019100985A1 (zh) | 页面处理方法及移动终端 | |
| JP6190978B2 (ja) | ファームウェアリフレッシュ方法、装置、プログラム及び記録媒体 | |
| US20150052185A1 (en) | File information system management system and method | |
| CN106156097B (zh) | 一种浏览器输入记录的处理方法及装置 | |
| JP6257424B2 (ja) | 情報処理装置及びコンピュータプログラム | |
| WO2017161763A1 (zh) | 一种更新菜单信息的方法及装置 | |
| WO2016115753A1 (zh) | 运行多系统的方法、装置及终端 | |
| WO2017193475A1 (zh) | 应用程序的管理方法及装置 | |
| US10649793B2 (en) | Application synchronization method and device | |
| US20180300160A1 (en) | Host and Component Relationship between Applications | |
| CN115408051A (zh) | 应用程序的模式切换方法、装置、电子设备及存储介质 | |
| CN108595235B (zh) | 一种图片加载方法及装置 | |
| CN113360236A (zh) | 页面处理方法、装置、设备、存储介质及程序产品 | |
| WO2020019668A1 (zh) | 图像显示方法、装置、电子设备及计算机可读存储介质 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 16895113 Country of ref document: EP Kind code of ref document: A1 |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 16895113 Country of ref document: EP Kind code of ref document: A1 |