WO2015070671A1 - 生成菜单的方法和装置 - Google Patents

生成菜单的方法和装置 Download PDF

Info

Publication number
WO2015070671A1
WO2015070671A1 PCT/CN2014/086778 CN2014086778W WO2015070671A1 WO 2015070671 A1 WO2015070671 A1 WO 2015070671A1 CN 2014086778 W CN2014086778 W CN 2014086778W WO 2015070671 A1 WO2015070671 A1 WO 2015070671A1
Authority
WO
WIPO (PCT)
Prior art keywords
menu
generating
time period
preset
generated
Prior art date
Application number
PCT/CN2014/086778
Other languages
English (en)
French (fr)
Inventor
姚世勇
Original Assignee
华为技术有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2015070671A1 publication Critical patent/WO2015070671A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus

Definitions

  • the present invention relates to communication terminal technologies, and in particular, to a method and apparatus for generating a menu.
  • a main menu is displayed on the main screen of the smart terminal, and the main menu includes at least one icon of a service item frequently used by the user to facilitate the use of the user.
  • the main menu of the smart terminal is static, that is, the icons of the service items are arranged in a fixed layout manner.
  • the layout of the icons of the business items in the main menu will not change during use.
  • the business items frequently used by users will vary with time, which will make the number of business items required by the user more, and when the static main menu cannot accommodate all the icons of business items. It is very likely that the user will have to enter a deep sub-menu level to activate a certain business, which will bring great inconvenience to the user.
  • the present invention provides a method and apparatus for generating a menu to solve the problem that the prior art cannot cause inconvenience to the user due to the fact that the static main menu cannot accommodate all the service items.
  • a first aspect of the present invention provides a method of generating a menu, comprising:
  • the menu is generated, wherein the menu includes at least a service item whose number of operations in the current time period meets a preset rule.
  • the method comprises:
  • the icon of the service item is set in a preset position of a menu template of the user terminal, and generating the menu includes:
  • the method further includes:
  • the menu generated last time in the current time period is displayed on the screen of the user terminal.
  • a layout of a menu generated according to a preset rule, and the pre-stored current current are predicted After the layout of the menu generated last time in the time period is inconsistent, and before the operation of generating the menu is performed, the following includes:
  • the business items to be determined are arranged according to the number of operations from large to small or from small to large;
  • the menu generated last time in the current time period is displayed on the screen of the user terminal.
  • the method further includes:
  • the method before the menu is generated, the method further includes:
  • a second aspect of the present invention provides an apparatus for generating a menu, including:
  • a first acquiring unit configured to acquire a current clock value of the user terminal, and obtain a current time period in which the current clock value is located according to a pre-divided time period
  • a second acquiring unit configured to acquire, according to the current time period, an operation sequence of the at least one service item used by the user terminal in the time period
  • the generating unit is configured to generate a menu, where the menu includes at least a service item in which the number of operations of the user in the current time period meets a preset rule.
  • the generating unit is specifically configured to:
  • the generating unit is specifically configured to:
  • the method further includes:
  • a prediction unit configured to predict, by using an icon of the to-be-adjusted service item, a layout of a menu generated according to a preset rule, and a layout of a menu generated by the previously generated menu in the current time period, when the prediction result is consistent If not, the generating unit is triggered, and when the prediction result is YES, the menu generated last time in the current time period is displayed on the screen of the user terminal.
  • the generating unit is further configured to:
  • the business items to be determined are arranged according to the number of operations from large to small or from small to large;
  • the menu generated last time in the current time period is displayed on the screen of the user terminal.
  • the method further includes:
  • the method further includes:
  • a determining unit configured to acquire a record of the number of times the preset menu is updated in the target time period with the current clock value as the end point, and determine whether the number of times of updating the preset menu is greater than or equal to a second preset threshold, When the determination result is YES, the menu generated last time in the current time period is displayed on the screen of the user terminal, and when the determination result is no, the generating unit is triggered.
  • the method and device for generating a menu provided by the present invention can meet the actual needs of the user by generating different menus in different time periods, improve the user experience, and facilitate the operation of the user.
  • FIG. 1 is a flow chart showing a method of generating a menu according to an embodiment of the invention
  • FIG. 2A is a schematic flow chart of a method for generating a menu according to another embodiment of the present invention.
  • 2B and 2C are schematic diagrams showing positions of icons of service items according to the number of operations
  • FIG. 3 is a schematic structural diagram of an apparatus for generating a menu according to still another embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of an apparatus for generating a menu according to still another embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of an apparatus for generating a menu according to another embodiment of the present invention.
  • the user's use of business items will change over time. For example, during the working period, the number of business items such as “Contacts”, “Short Messages”, and “PDF” is used. In the non-working time period, “QQ”, “Fiction Reader” and “WeChat” are used. There are many times of business items. In the following embodiments, first, the time division period is used, the usage times of each service item in each time period are counted, and a menu is generated according to the usage times of each service item or whether a new menu is generated.
  • the time division period is used, the usage times of each service item in each time period are counted, and a menu is generated according to the usage times of each service item or whether a new menu is generated.
  • This embodiment provides a method for generating a menu, which is applicable to various user terminals (User Equipments, UEs), and is particularly applicable to smart terminals.
  • the execution body of the method for generating a menu of the embodiment is a device for generating a menu, and the device for generating the menu may be integrated into the user terminal.
  • FIG. 1 it is a schematic flowchart of a method of generating a menu according to the present embodiment.
  • Step 101 Acquire a current clock value of the user terminal, and obtain a current time period in which the current clock value is located according to the pre-divided time period.
  • the device that generates the menu may perform an operation of acquiring a current clock value of the user terminal when the user terminal is powered on or when the user terminal enters the non-standby state from the standby state.
  • the user can pre-divide M time segments according to usage habits, and M is an integer greater than or equal to 2.
  • the device that generates the menu may count the service items used in each time period and the number of operations of each service item according to the pre-divided M time segments. After the device that generates the menu obtains the current clock value, it determines which time period it belongs to, and uses the time period to which it belongs as the current time period.
  • the user terminal in this embodiment may specifically be a mobile phone, an IPAD, a notebook computer or the like.
  • Step 102 Acquire at least one used by the user terminal in the time period according to the current time period. The number of operations for a business item.
  • the device that generates the menu obtains the service items counted in the time period and the number of operations corresponding to each service item. Specifically, each time a certain service item is used, the number of operations corresponding to the service item is incremented by one, and the time period to which the service item belongs is correspondingly recorded.
  • step 103 a menu is generated.
  • the menu includes at least a service item whose number of operations in the current time period meets a preset rule.
  • the step may include:
  • N is an integer greater than or equal to 1
  • N is a service that can be accommodated in the menu template of the user equipment.
  • the number of the icon of the item, and whether the service to be adjusted is in the preset menu of the user equipment.
  • the icon of the service item to be adjusted is added to the preset menu. In the middle, or replace the icon of the existing business item in the preset menu with the icon to be adjusted to generate a menu.
  • the step may also be performed by setting an icon of the service item whose operation times satisfy the preset rule according to the number of operations, at a corresponding position of the menu template of the user terminal.
  • the menu template of this embodiment may be a blank menu, that is, a menu in which an icon of a service item is not set, or a menu that has been generated last time in the current time period may be used as a menu template, and may be set according to actual needs.
  • the preset menu in this embodiment may be the last menu used by the user, or may be a menu set according to actual needs, and may be set according to actual conditions.
  • the device that generates the menu first obtains each service item in the preset menu, and compares it with the service item to be adjusted. If each service item to be adjusted is a service item in the preset menu, you can choose not to generate a new menu, but The preset menu is used and displayed on the screen of the user terminal. If there are service items in the service item to be adjusted that are not in the preset menu, it can be considered that the user's usage habits have changed during the current time period, and a menu template is needed to generate a new menu, that is, a menu with a new layout.
  • the icon of the business item is preset at each position of the menu template, and the device for generating the menu sets the business item to be adjusted in the menu template. Before the corresponding position, you can compare it with the preset business item, if both Consistently, the icon of the business item preset in the menu template is adopted to reduce the burden on the device that generates the menu.
  • the "comparison" operation involves only simple logic operations, the amount of data is small, and the speed is fast, while the "replacement” operation involves access to peripherals, large data volume movement, refresh management of output devices, and slow speed. Complex and heavy system load. Therefore, the comparison operation of the service item is first compared with the comparison operation with a small amount of calculation, and then the operation of replacing the icon of the service item is performed according to the comparison result, so that the burden of the user terminal can be reduced as much as possible.
  • the menu of this embodiment may be a main menu of the user terminal or a sub menu of the user terminal.
  • the method for generating a menu by generating different menus in different time periods, the actual needs of the user can be satisfied, the user experience is improved, and the operation of the user is facilitated.
  • This embodiment provides a method of generating a menu based on the first embodiment.
  • FIG. 2A it is a schematic flowchart of generating a menu according to the present embodiment.
  • Step 201 Acquire a current clock value of the user terminal, and obtain a current time period in which the current clock value is located according to the pre-divided time period.
  • the device that generates the menu may acquire the current clock value of the user terminal.
  • the user can divide the time of day into time segments according to the following rules:
  • the first time period 8:00 to 12:00;
  • the second time period 12:01 ⁇ 14:00;
  • the third time period 14:01 ⁇ 18:00;
  • the fourth time period 18:01 ⁇ 8:00.
  • the pre-divided time period in which the current clock value is located is the first time period. If the current clock value is 14:00, the current clock value is in the second time period. This type of push.
  • Step 202 Acquire, according to the pre-divided current time period in which the current clock value is located, the number of operations of at least one service item used by the user terminal in the time period.
  • the device that generates the menu adds 1 to the number of operations corresponding to the business item.
  • the identification information of the business item used in each time period and the number of operations of the business item may be recorded in the device that generates the menu, or may be stored separately, as long as the device that generates the menu can acquire it.
  • Step 203 Arrange the service items from high to low according to the operation times, and obtain the first N service items as the to-be-adjusted service items, where N is an integer greater than or equal to 1, and N is a menu template of the user equipment. The number of icons for the business item that is accommodated.
  • the menu generated last time in the current time period is used as the menu template.
  • step 204 it is determined whether the service to be adjusted is in the preset menu of the user equipment.
  • step 205 is performed.
  • step 208 is performed.
  • the menu generated last time in the current time period is used as the preset menu.
  • step 205 it is predicted that the icon of the to-be-adjusted service item, the layout of the menu generated according to the preset rule, and the layout of the menu that was generated last time in the current time period are consistent.
  • step 207 is performed.
  • step 206 is performed.
  • This step is a prediction step. That is, the device that generates the menu predicts the layout of the generated menu according to the preset rule and the obtained number of operations of the to-be-adjusted business item, and then compares the predicted layout with the layout of the menu that is newly generated in the current time period, If the icons of the service items to be adjusted are the same, the icon of the menu to be adjusted and the menu generated according to the preset rule are consistent with the layout of the menu generated in the current time period stored in advance, otherwise Inconsistent.
  • the preset rule in this embodiment can perform various settings according to actual needs, and specific examples are as follows:
  • the icon of the business item with the most operations is set in the middle of the menu.
  • the icon of the business item is set in the left middle, the middle right, the left front, and the right front of the menu.
  • the location identified as 1 is the location of the icon of the business item with the most operations.
  • Step 206 Acquire, in the menu generated according to the preset rule, the to-be-determined service items that are different from the icon positions in the menu that is generated last time in the current time period, and the number of operations is determined from large to small or from small to large. If the result of the determination is YES, step 208 is performed, and when the result of the determination is no, step 207 is performed.
  • the first preset threshold may be set according to actual needs, for example, 3 times, 5 times or 10 times. Specifically, for example, it is assumed that the icon positions of the business item A and the business item B are predicted in the menu that was generated last time. If the location of the icon is inconsistent, the service item A and the service item B are the service items to be determined. The number of operations of the service item A is 20, the number of operations of the service B is 21, and the first preset threshold is 3, the service can be seen. If the difference between the operation times of the item A and the service item B is less than the first preset threshold, the menu generated last time in the current time period is used as the menu to be generated this time, and displayed on the screen of the user terminal.
  • Step 207 Display the menu generated last time in the current time period on the screen of the user terminal.
  • Step 208 generating a menu.
  • the specific operation mode of the generated menu can be:
  • the device that generates the menu may first determine whether the service item to be adjusted is consistent with the service item at the preset location in the preset menu. When the judgment result is no, the icon of the corresponding location is replaced by the icon of the service item to be adjusted, when judging When the result is yes, you can choose to directly use the original icon at that location to avoid repeated operations.
  • the step of generating the menu can also be:
  • the icon of the service item whose operation times meet the preset rule is set in the corresponding position of the menu template of the user terminal.
  • the method for generating a menu in this embodiment further includes:
  • the original number of operations can be emptied and recalculated, so that the record of the number of operations of the business item is more in line with the current habit of the user.
  • the determination result is yes, displaying the menu generated last time in the current time period on the screen of the user terminal, and when the determination result is no, executing the generation The operation of the menu.
  • This step is to prevent the menu refresh from being too frequent to burden the device that generates the menu, and can be placed at any position between the current clock value of the user terminal and the menu generated according to the preset rule.
  • the second preset threshold may be set according to actual needs, for example, 10 times or 100 times.
  • the target time period can be set according to actual needs. For example 2 hours or 5 hours. Assuming that the current clock value is 14:00 and the target time period is 2 hours, the device that generates the menu acquires the update preset menu from 12:00 to 14:00. The number of times, that is, the number of times the menu was generated. The device that generates the menu can record the number of times the preset menu is updated each time and the corresponding time. This step may be between any of the above steps 201 to 208.
  • the method for generating a menu of the present embodiment not only by generating different menus in different time periods to satisfy the actual needs of the user, but also by judging whether the icon of the corresponding position of the generated new menu is consistent with the menu template And try to reduce the operation of the device that generates the menu, saving resources.
  • This embodiment provides a specific example for the method for generating a menu based on the first embodiment and the second embodiment.
  • the user terminal is powered on. If the current clock value of the user terminal is 18:56, the service items obtained in the current clock segment where the current clock value is located are as shown in Table 1.
  • the device that generates the menu arranges the business items from large to small according to the number of operations, followed by "WeChat”, “QQ”, “Fiction Browser”, “Music Player” and “PDF”. Since the icons of the service items that can be accommodated in the menu are three, the device that generates the menu selects the first three service items as the business items to be adjusted, which are “WeChat”, “QQ” and “Fiction Browser” respectively.
  • the device that generates the menu finds the service item in the menu that was generated last time in the current time period, and determines that all the service items are consistent. Next, the device for generating the menu predicts whether the layout of the three to-be-adjusted service items according to the preset rule generation menu is consistent with the layout of the menu generated last time in the current time period, and determines the positions of “WeChat” and “QQ”. Need to be exchanged.
  • the device that generates the menu compares the difference between the number of operations of "WeChat” and "QQ" is 2, and the first preset threshold value in this embodiment is 3, and the device that generates the menu determines that the difference is smaller than the first A preset threshold, such that the device generating the menu adopts the menu generated last time in the previous time period as the current menu and is displayed on the screen of the user terminal.
  • the foregoing program may be stored in a computer readable storage medium, and when executed, the program includes the steps of the foregoing method embodiment; and the foregoing storage medium includes: ROM, RAM A variety of media that can store program code, such as a disk or a disc.
  • the embodiment provides a device for generating a menu for executing the method for generating a menu in the first embodiment.
  • the apparatus for generating a menu includes a first obtaining unit 301, a second obtaining unit 302, and a generating unit 303.
  • the first obtaining unit 301 is configured to acquire a current clock value of the user terminal, and obtain a current time period in which the current clock value is located according to the pre-divided time segment.
  • the second acquiring unit 302 is configured to obtain the current time segment according to the first acquiring unit 301.
  • the current time period, the number of operations of the at least one service item used by the user terminal in the time period is obtained;
  • the generating unit 303 is configured to generate a menu, where the menu includes at least the number of operations of the user in the current time period meets the preset The business item of the rule.
  • the method for generating a menu by generating different menus in different time periods, the actual needs of the user can be satisfied, the user experience is improved, and the operation of the user is facilitated.
  • This embodiment further supplements the apparatus for generating a menu in the fourth embodiment.
  • the generating unit 303 in this embodiment is specifically configured to:
  • N is an integer greater than or equal to 1
  • N is a service that can be accommodated in the menu template of the user equipment. The number of icons for the item;
  • the icon of the service item to be adjusted is added to the preset menu, or the icon of the existing service item in the preset menu is replaced by the icon of the service item to be adjusted. To generate a menu.
  • the generating unit 303 is configured to set an icon of the service item to be adjusted to a preset position of the menu template of the user terminal according to the number of operations, to generate a menu.
  • the apparatus for generating a menu in this embodiment may further include a prediction unit 401, configured to predict an icon of a service item to be adjusted, a layout of a menu generated according to a preset rule, and Whether the layout of the menu generated last time in the current time period is consistent in advance, and when the prediction result is no, the trigger generating unit 303 displays the latest generation in the current time period on the screen of the user terminal when the prediction result is YES. Menu.
  • a prediction unit 401 configured to predict an icon of a service item to be adjusted, a layout of a menu generated according to a preset rule, and Whether the layout of the menu generated last time in the current time period is consistent in advance, and when the prediction result is no, the trigger generating unit 303 displays the latest generation in the current time period on the screen of the user terminal when the prediction result is YES.
  • the generating unit 303 is further configured to:
  • the business items to be judged are arranged from large to small or from small to large;
  • the device for generating a menu in this embodiment further includes a clearing unit 402, configured to clear a record of the number of operations of the service item, and update the generated menu to a preset menu.
  • a clearing unit 402 configured to clear a record of the number of operations of the service item, and update the generated menu to a preset menu.
  • the determining unit 403 is further included in the embodiment, where the determining unit 403 is configured to:
  • the determination result is yes, displaying the menu generated last time in the current time period on the screen of the user terminal, and when the determination result is no, triggering generation Unit 303.
  • the apparatus for generating a menu not only satisfies the actual needs of the user by generating different menus in different time periods, but also determines whether the icon of the corresponding position of the generated new menu is consistent with the menu template. And try to reduce the operation of the device that generates the menu, saving resources.
  • This embodiment provides another means for generating a menu for performing the above method of generating a menu.
  • the apparatus 500 for generating a menu includes at least one processor 501, a communication bus 502, a memory 503, and at least one communication interface 504.
  • the communication bus 502 is used to implement the connection and communication between the above components, and the communication interface 504 is used to connect and communicate with the network device.
  • the bus can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component) bus, or an EISA (Extended Industry Standard Architecture). Industry standard architecture) bus, etc.
  • the bus can be one or more physical lines. When it is a plurality of physical lines, it can be divided into an address bus, a data bus, a control bus, and the like.
  • the memory 503 is configured to store executable program code, wherein the processor 501 runs a program corresponding to the executable program code by reading the executable program code stored in the memory 503 for:
  • a menu is generated, wherein the menu includes at least a service item whose number of operations in the current time period meets a preset rule.
  • the processor 501 when reading the program corresponding to the executable program code, by using the executable program code stored in the memory 503, for generating the menu, may specifically: the business item according to the size of the operation Arranging from high to low, and obtaining the first N service items as the service items to be adjusted, N being an integer greater than or equal to 1, and N being the number of icons of the service items that can be accommodated in the menu template of the user equipment;
  • the icon of the service item to be adjusted is added to the preset menu, or the icon of the existing service item in the preset menu is replaced by the icon of the service item to be adjusted. To generate a menu.
  • the processor 501 when reading the program corresponding to the executable program code, by using the executable program code stored in the memory 503, for generating the menu, may specifically: the number of operations is satisfied according to the number of operations
  • the icon of the business item of the rule is set in the corresponding position of the menu template of the user terminal to generate a menu.
  • the processor 501 further runs a program corresponding to the executable program code by reading the executable program code stored in the memory 503, and before using the menu, the method further includes:
  • the processor 501 can also execute a program corresponding to the executable program code by reading the executable program code stored in the memory 503 for:
  • the business items to be judged are arranged from large to small or from small to large;
  • the processor 501 may also execute a program corresponding to the executable program code by reading the executable program code stored in the memory 503 for:
  • the processor 501 may further execute a program corresponding to the executable program code by reading the executable program code stored in the memory 503 for:
  • the determination result is yes, displaying the menu generated last time in the current time period on the screen of the user terminal, and when the determination result is no, executing the generation The operation of the menu.
  • the apparatus 500 for generating a menu by generating different menus in different time periods, the actual needs of the user can be satisfied, the user experience is improved, and the operation of the user is facilitated.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Telephone Function (AREA)

Abstract

本发明提供一种生成菜单的方法和装置,其中方法包括:获取用户终端的当前时钟值,并根据预先划分的时间段,获取当前时钟值所在的当前时间段;根据当前时间段,获取该时间段内、用户终端使用的至少一个业务项的操作次数;生成菜单,其中,菜单中至少包括用户在当前时间段内的操作次数满足预设规则的业务项。根据发明的生成菜单的方法和装置,通过在不同的时间段内生成不同的菜单,能够满足用户的实际需要,提升了用户体验,方便了用户的操作。

Description

生成菜单的方法和装置 技术领域
本发明涉及通信终端技术,尤其涉及一种生成菜单的方法和装置。
背景技术
随着智能终端的广泛推广,使用智能终端的用户越来越多。现有技术中,会在智能终端的主屏幕上显示主菜单,该主菜单中包括至少一个用户经常使用的业务项的图标,以方便用户的使用。
实际运用中,该智能终端的主菜单是静态的,即按照固定布局的方式,排列了各业务项的图标。一旦主菜单生成,在使用过程中主菜单中各业务项的图标的布局是不会发生变化的。但是实际生活中,用户经常使用的业务项会随着时间的不同而不同,这样会使得用户所需要的业务项的个数较多,而当静态的主菜单不能容纳所有的业务项的图标时,很有可能会使得用户要进入很深的次菜单层次才能激活所需要的某项业务,这会给用户带来很大的不便。
发明内容
本发明提供一种生成菜单的方法和装置,以解决现有技术由于静态的主菜单不能不能容纳所有的业务项的图标给用户的使用带来不便的问题。
本发明第一个方面提供一种生成菜单的方法,包括:
获取所述用户终端的当前时钟值,并根据预先划分的时间段,获取所述当前时钟值所在的当前时间段;
根据所述当前时间段,获取所述时间段内、所述用户终端使用的至少一个业务项的操作次数;
生成菜单,其中,所述菜单中至少包括用户在当前时间段内的操作次数满足预设规则的业务项。
在第一种可能的实现方式中,根据第一方面,包括:
将所述业务项按照操作次数的大小从高到低进行排列,并获取前N个业务项作为待调整业务项,所述N为大于或等于1的整数,且N为所述用户设备的菜单模 板中容纳的业务项的图标的个数;
当判断出所述待调整业务项不在所述用户设备的预设菜单中时,将所述待调整业务项的图标加入所述预设菜单中,或者用所述待调整业务项图标替换预设菜单中的已有业务项的图标,以生成所述菜单。
在第二种可能的实现方式中,根据第一方面,所述将所述业务项的图标设置在所述用户终端的菜单模板的预设位置,生成所述菜单包括:
根据所述操作次数,将所述操作次数满足预设规则的业务项的图标,设置在所述用户终端的菜单模板的相应位置。
在第三种可能的实现方式中,结合第一方面或第一种可能的实现方式或第二种可能的实现方式,在所述生成菜单之前,还包括:
预测采用所述待调整业务项的图标根据预设规则生成的菜单的布局与所述预先存储的所述当前时间段内最近一次生成的菜单的布局是否一致;
当预测结果为否时,执行生成菜单的操作;
当预测结果为是时,在所述用户终端的屏幕上显示所述当前时间段内最近一次生成的菜单。
在第四种可能的实现方式中,根据第三种可能的实现方式,当预测出采用所述待调整业务项的图标、根据预设规则生成的菜单的布局与所述预先存储的所述当前时间段内最近一次生成的菜单的布局不一致之后,且在执行生成菜单的操作之前,还包括:
获取所述根据预设规则生成的菜单中与所述最近一次生成的菜单中的图标位置不一样的各待判断业务项;
按照操作次数由大到小或由小到大排列所述待判断业务项;
判断是否有相邻的两个业务项的操作次数的差值大于第一预设阈值;
当判断结果为是时,执行生成菜单的操作;
当判断结果为否时,在所述用户终端的屏幕上显示所述当前时间段内最近一次生成的菜单。
在第五种可能的实现方式中,结合第一方面,在生成菜单之后,还包括:
清空业务项的操作次数的记录,并将生成的菜单更新为预设菜单。
在第六种可能实现的方式中,根据第五种可能的实现方式,在生成菜单之前,还包括:
获取所述以当前时钟值为终点的目标时间段内更新所述预设菜单的次数的记录;
判断所述更新预设菜单的次数是否大于或等于第二预设阈值,当判断结果为是时,在所述用户终端的屏幕上显示所述当前时间段内最近一次生成的菜单,当判断结果为否时,执行生成菜单的操作。
本发明第二方面提供一种生成菜单的装置,包括:
第一获取单元,用于获取所述用户终端的当前时钟值,并根据预先划分的时间段,获取所述当前时钟值所在的当前时间段;
第二获取单元,用于根据所述当前时间段,获取所述时间段内、所述用户终端使用的至少一个业务项的操作次数;
所述生成单元,用于生成菜单,其中,所述菜单中至少包括用户在当前时间段内的操作次数满足预设规则的业务项。
在第一种可能的实现方式中,根据第二方面,所述生成单元具体用于:
将所述业务项按照操作次数的大小从高到低进行排列,并获取前N个业务项作为待调整业务项,所述N为大于或等于1的整数,且N为所述用户设备的菜单模板中能够容纳的业务项的图标的个数;
判断所述待调整业务是否在所述用户设备的预设菜单中,当判断出所述待调整业务项不在所述用户设备的预设菜单中时,将所述待调整业务项的图标加入所述预设菜单中,或者用所述待调整业务项图标替换预设菜单中的已有业务项的图标,以生成所述菜单。在第二种可能的实现方式中,根据第二方面,所述生成单元具体用于:
根据所述操作次数,将所述待调整业务项的图标设置在所述用户终端的菜单模板的预设位置,生成所述菜单。
在第三种可能的实现方式中,结合第二方面,其特征在于,还包括:
预测单元,用于预测采用所述待调整业务项的图标、根据预设规则生成的菜单的布局与所述预先存储的所述当前时间段内最近一次生成的菜单的布局是否一致,当预测结果为否时,触发所述生成单元,当预测结果为是时,在所述用户终端的屏幕上显示所述当前时间段内最近一次生成的菜单。
在第四种可能的实现方式中,根据第三种可能的实现方式,所述生成单元还用于:
获取所述根据预设规则生成的菜单中与所述最近一次生成的菜单中的图标位置不一样的各待判断业务项;
按照操作次数由大到小或由小到大排列所述待判断业务项;
判断是否有相邻的两个业务项的操作次数的差值大于第一预设阈值;
当判断结果为是时,执行生成菜单的操作;
当判断结果为否时,在所述用户终端的屏幕上显示所述当前时间段内最近一次生成的菜单。
在第五种可能的实现方式中,结合第一方面或第一种可能的实现方式至第四种可能的实现方式,还包括:
清空单元,用于清空业务项的操作次数的记录,并将生成的菜单更新为预设菜单。
在第六种可能实现的方式中,根据第五种可能的实现方式,还包括:
判断单元,用于获取所述以当前时钟值为终点的目标时间段内更新所述预设菜单的次数的记录,并判断所述更新预设菜单的次数是否大于或等于第二预设阈值,当判断结果为是时,在所述用户终端的屏幕上显示所述当前时间段内最近一次生成的菜单,当判断结果为否时,触发所述生成单元。
由上述技术方案可知,本发明提供的生成菜单的方法和装置,通过在不同的时间段内生成不同的菜单,能够满足用户的实际需要,提升了用户体验,方便了用户的操作。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1为根据本发明一实施例的生成菜单的方法的流程示意图;
图2A为根据本发明另一实施例的生成菜单的方法的流程示意图;
图2B和图2C为根据操作次数示出的业务项的图标的位置示意图;
图3为根据本发明又一实施例的生成菜单的装置的结构示意图;
图4为根据本发明再一实施例的生成菜单的装置的结构示意图;
图5为根据本发明另一实施例的生成菜单的装置的结构示意图。
具体实施方式
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
根据统计,在一天中,用户对业务项的使用会随着时间的不同而有所变化。例如,在工作时间段内,使用“通讯录”、“短消息”、“PDF”等业务项次数较多,在非工作时间段内,使用“QQ”、“小说阅读器”、“微信”等业务项次数较多。以下各实施例中,首先对时间划分时间段,统计各时间段内各业务项的使用次数,并根据各业务项的使用次数生成菜单或者判断是否生成新的菜单。
实施例一
本实施例提供一种生成菜单的方法,该方法适用于各种用户终端(User Equipment,UE),尤其适用于智能终端。本实施例的生成菜单的方法的执行主体为生成菜单的装置,该生成菜单的装置可以集成于用户终端中。
如图1所示,为根据本实施例的生成菜单的方法的流程示意图。
步骤101,获取用户终端的当前时钟值,并根据预先划分的时间段,获取当前时钟值所在的当前时间段。
用户终端中均有时钟单元,其用于显示时间。具体地,可以在用户终端开机时或者用户终端从待机状态进入非待机状态时,生成菜单的装置执行获取该用户终端的当前时钟值的操作。
用户可以根据使用习惯预先划分好M个时间段,M为大于或等于2的整数。生成菜单的装置可以根据该预先划分好的M个时间段,统计每个时间段内使用的业务项以及各业务项的操作次数。生成菜单的装置在获取到当前时钟值之后,就判断其所属于哪个时间段,并将所属的时间段作为当前时间段。
本实施例中的用户终端具体可以是手机、IPAD、笔记本电脑等等。
步骤102,根据当前时间段,获取该时间段内、该用户终端使用的至少一个 业务项的操作次数。
生成菜单的装置获取该时间段内所统计的业务项以及各业务项对应的操作次数。具体可以是,每一次使用某一业务项,就将该业务项对应的操作次数加1,并对应记录使用该业务项时所属的时间段。
步骤103,生成菜单。
其中,该菜单中至少包括用户在当前时间段内的操作次数满足预设规则的业务项。
具体地,该步骤可以包括:
将业务项按照操作次数的大小从高到低进行排列,并获取前N个业务项作为待调整业务项,N为大于或等于1的整数,且N为用户设备的菜单模板中能够容纳的业务项的图标的个数,并判断待调整业务是否在用户设备的预设菜单中,当判断出待调整业务项不在用户设备的预设菜单中时,将待调整业务项的图标加入预设菜单中,或者用待调整业务项图标替换预设菜单中的已有业务项的图标,以生成菜单。
该步骤还可以通过以下方式执行:根据所述操作次数,将所述操作次数满足预设规则的业务项的图标,设置在所述用户终端的菜单模板的相应位置。
由于菜单的界面一般受限于用户终端的屏幕,因此每个菜单中仅能设置N个业务项的图标。本实施例的菜单模板可以为空白的菜单,即未设置有业务项的图标的菜单,也可以将当前时间段内最近一次生成的菜单作为菜单模板,具体可以根据实际需要进行设定。
本实施例的预设菜单可以是用户所使用的最近一次的菜单,也可以是根据实际需要设定的菜单,具体可以根据实际情况进行设定。生成菜单的装置首先获取预设菜单中各业务项,与待调整业务项比较作比较,如果各待调整业务项即是预设菜单中的各业务项,可以选择不生成新的菜单,而是采用预设菜单,并在用户终端的屏幕上显示该预设菜单。如果待调整业务项中有业务项没有在预设菜单中,可以认为当前时间段用户的使用习惯发生了变化,需要采用菜单模板生成新的菜单,即采用新的布局的菜单。
需要指出的是,当以当前时间段内最近一次生成的菜单作为菜单模板时,该菜单模板的各个位置上预置有业务项的图标,生成菜单的装置在将待调整业务项设置在菜单模板的相应位置之前,可以与预设业务项比较一下,如果两者 一致,则采用菜单模板中预设的业务项的图标,以减轻生成菜单的装置的负担。这是由于,“比较”操作只涉及简单的逻辑运算,数据量小,速度快,而“替换”操作,涉及到外设的访问、大数据量的搬移、输出设备的刷新管理,速度慢、复杂、且系统负荷大。因此,先采用运算量较小的比较操作先比较业务项的图标,再根据比较结果判断是否进行替换业务项的图标的操作,能够尽可能地减小用户终端的负担。
本实施例的菜单可以是用户终端的主菜单,也可以是用户终端的次菜单。
根据本实施例的生成菜单的方法,通过在不同的时间段内生成不同的菜单,能够满足用户的实际需要,提升了用户体验,方便了用户的操作。
实施例二
本实施例基于实施例一提供一种生成菜单的方法。
如图2A所示,为根据本实施例的生成菜单的流程示意图。
步骤201,获取用户终端的当前时钟值,并根据预先划分的时间段,获取当前时钟值所在的当前时间段。
具体地,当用户终端开机时或者当用户终端从待机状态转入非待机状态时,生成菜单的装置可以获取用户终端的当前时钟值。
用户可以将一天的时间按照如下规则划分为时间段:
第一时间段:8:00~12:00;
第二时间段:12:01~14:00;
第三时间段:14:01~18:00;
第四时间段:18:01~8:00。
假设当前时钟值为9:00,则当前时钟值所在的预先划分的时间段为第一时间段,假设当前时钟值为14:00,则当前时钟值所在的时间段为第二时间段,以此类推。
步骤202,根据当前时钟值所在的预先划分的当前时间段,获取该时间段内用户终端使用的至少一个业务项的操作次数。
每个业务项在被使用1次时,生成菜单的装置就在该业务项对应的操作次数上加1。每个时间段内所使用的业务项的标识信息以及该业务项的操作次数可以记录在生成菜单的装置中,也可以单独进行存储,只要该生成菜单的装置能够获取到即可。
假设,第一时间段内,“QQ”业务项的操作次数为2,第四时间段内,“QQ”业务项的操作次数为30,其余时间段内,“QQ”业务项的操作次数为0。假设当前时钟值为9:00,则获取到的“QQ”业务项的操作次数为2。
步骤203,将业务项按照操作次数的大小从高到低进行排列,并获取前N个业务项作为待调整业务项,N为大于或等于1的整数,且N为用户设备的菜单模板中能够容纳的业务项的图标的个数。
本实施例中以当前时间段内最近一次生成的菜单作为菜单模板。
步骤204,判断待调整业务是否在用户设备的预设菜单中,当判断结果为待调整业务项在用户设备的预设菜单中时,执行步骤205,当判断结果为待调整业务项不在用户设备的预设菜单中时,执行步骤208。
本实施例以当前时间段内最近一次生成的菜单作为预设菜单。
步骤205,预测采用待调整业务项的图标、根据预设规则生成的菜单的布局与预先存储的当前时间段内最近一次生成的菜单的布局是否一致,当预测结果为是时,执行步骤207,当预测结果为否时,执行步骤206。
该步骤为一预测步骤。即生成菜单的装置根据预设规则和所获取的待调整业务项的操作次数,预测所生成的菜单的布局,然后将该预测的布局与当前时间段内最近生成一次的菜单的布局进行比较,如果各个待调整业务项的图标均一致,则说明采用待调整业务项的图标、根据预设规则生成的菜单的布局与预先存储的当前时间段内最近一次生成的菜单的布局一致,否则即为不一致。
本实施例的预设规则可以根据实际需要进行多种设定,具体举例为:
将操作次数最多的业务项的图标设置在菜单的中间,接下来,按照操作次数由大到小,依次将业务项的图标设置分别在菜单的左中、右中、左前、右前。如图2B和图2C所示,标识为1的位置即为操作次数最多的业务项的图标的位置。
步骤206,获取根据预设规则生成的菜单中与当前时间段内最近一次生成的菜单中的图标位置不一样的各待判断业务项,按照操作次数由大到小或由小到大排列待判断业务项,并判断是否有相邻的两个业务项的操作次数的差值大于第一预设阈值,当判断结果为是时,执行步骤208,当判断结果为否时,执行步骤207。
该第一预设阈值可以根据实际需要进行设定,例如3次、5次或10次。具体举例来说,假设预测出业务项A和业务项B的图标位置与最近一次生成的菜单中 的图标位置不一致,则业务项A和业务项B即为待判断业务项,业务项A的操作次数为20,业务B的操作次数为21,第一预设阈值为3,则可以看出业务项A和业务项B的操作次数的差值小于第一预设阈值,则将当前时间段内最近一次生成的菜单作为本次需生成的菜单,并在用户终端的屏幕上进行显示。
步骤207,在用户终端的屏幕上显示当前时间段内最近一次生成的菜单。
步骤208,生成菜单。
该生成菜单的具体操作方式可以是:
将待调整业务项的图标加入预设菜单中,或者用待调整业务项图标替换预设菜单中的已有业务项的图标,以生成菜单。
生成菜单的装置可以先判断待调整业务项是否与预设菜单中的预设位置处的业务项一致,当判断结果为否时,采用待调整业务项的图标替换相应位置处的图标,当判断结果为是时,可以选择直接采用该位置上原有的图标,以避免重复操作。
该生成菜单的步骤还可以为:
根据操作次数,将操作次数满足预设规则的业务项的图标,设置在用户终端的菜单模板的相应位置。
可选地,在生成菜单之后,本实施例的生成菜单的方法还包括:
清空业务项的操作次数的记录,将生成的菜单更新为预设菜单。
当生成新的菜单之后,即可以将原有的操作次数清空,重新计算,以使得业务项的操作次数的记录更加符合用户当前的习惯。
可选地,在生成菜单之前,还包括:
获取以当前时钟值为终点的目标时间段内更新预设菜单的次数的记录;
判断更新预设菜单的次数是否大于或等于第二预设阈值,当判断结果为是时,在用户终端的屏幕上显示当前时间段内最近一次生成的菜单,当判断结果为否时,执行生成菜单的操作。
该步骤是为了防止菜单刷新过于频繁给生成菜单的装置带来的负担,可以放在获取用户终端的当前时钟值与根据预设规则生成菜单之间的任意位置。第二预设阈值可以根据实际需要进行设定,例如10次或100次。目标时间段可以根据实际需要进行设定。例如2个小时或5个小时。假设当前时钟值为14:00,目标时间段为2个小时,则生成菜单的装置获取12:00~14:00之内的更新预设菜单 的次数,即生成的菜单的次数。生成菜单的装置可以记录每一次更新预设菜单次数以及相应的时间。该步骤可以在上述步骤201~步骤208任一步骤之间。
根据本实施例的生成菜单的方法,不仅通过在不同的时间段内生成不同的菜单以满足用户的实际需要,而且通过判断所生成的新的菜单的相应位置的图标是否与菜单模板中的一致而尽量减少生成菜单的装置的操作,节省资源。
实施例三
本实施例基于实施例一和实施例二,对生成菜单的方法做具体举例说明。
本实施例中,用户终端开机,假设用户终端的当前时钟值为18:56,则该当前时钟值所在的当前时钟段内所获取的业务项如表1所示。
表1
  操作次数
QQ 10
PDF 1
音乐播放器 2
微信 12
小说浏览器 8
生成菜单的装置将各业务项按照操作次数从大到小进行排列,依次为“微信”、“QQ”、“小说浏览器”、“音乐播放器”和“PDF”。由于菜单中所能容纳的业务项的图标为3个,则生成菜单的装置选取前3个业务项作为待调整业务项,分别为“微信”、“QQ”和“小说浏览器”。
生成菜单的装置查找该当前时间段内最近一次生成的菜单中的业务项,判断出所有业务项均一致。接下来,生成菜单的装置预测该3个待调整业务项根据预设规则生成菜单的布局是否与该当前时间段内最近一次生成的菜单的布局一致,判断出“微信”和“QQ”的位置需要调换。
接下来,生成菜单的装置比较出“微信”和“QQ”的操作次数的差值为2,本实施例中的第一预设阈值为3,则生成菜单的装置判断出该差值小于第一预设阈值,这样,生成菜单的装置采用前时间段内最近一次生成的菜单作为本次的菜单,并显示在用户终端的屏幕上。
本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可 以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。
实施例四
本实施例提供一种生成菜单的装置,用于执行实施例一的生成菜单的方法。
如图3所示,该生成菜单的装置包括第一获取单元301、第二获取单元302和生成单元303。
其中,第一获取单元301用于获取用户终端的当前时钟值,并根据预先划分的时间段,获取当前时钟值所在的当前时间段;第二获取单元302用于根据第一获取单元301获取到的当前时间段,获取该时间段内、用户终端使用的至少一个业务项的操作次数;生成单元303用于生成菜单,其中,该菜单中至少包括用户在当前时间段内的操作次数满足预设规则的业务项。
本实施例的生成菜单的装置的具体操作方法与实施例一一致,在此不再赘述。
根据本实施例的生成菜单的方法,通过在不同的时间段内生成不同的菜单,能够满足用户的实际需要,提升了用户体验,方便了用户的操作。
实施例五
本实施例对实施例四的生成菜单的装置做进一步补充说明。
可选地,本实施例中的生成单元303具体用于:
将业务项按照操作次数的大小从高到低进行排列,并获取前N个业务项作为待调整业务项,N为大于或等于1的整数,且N为用户设备的菜单模板中能够容纳的业务项的图标的个数;
判断待调整业务是否在用户设备的预设菜单中;
当判断出待调整业务项不在用户设备的预设菜单中时,将待调整业务项的图标加入预设菜单中,或者用待调整业务项图标替换预设菜单中的已有业务项的图标,以生成菜单。
可选地,该生成单元303用于根据操作次数,将待调整业务项的图标设置在用户终端的菜单模板的预设位置,生成菜单。
如图4所示,本实施例的生成菜单的装置还可以包括预测单元401,该预测单元401用于预测采用待调整业务项的图标、根据预设规则生成的菜单的布局与 预先存储的当前时间段内最近一次生成的菜单的布局是否一致,当预测结果为否时,触发生成单元303,当预测结果为是时,在用户终端的屏幕上显示当前时间段内最近一次生成的菜单。
可选地,生成单元303还用于:
获取根据预设规则生成的菜单中与最近一次生成的菜单中的图标位置不一样的各待判断业务项;
按照操作次数由大到小或由小到大排列待判断业务项;
判断是否有相邻的两个业务项的操作次数的差值大于第一预设阈值;
当判断结果为是时,执行生成菜单的操作;
当判断结果为否时,在用户终端的屏幕上显示当前时间段内最近一次生成的菜单。
可选地,本实施例的生成菜单的装置还包括清空单元402,该清空单元402用于清空业务项的操作次数的记录,并将生成的菜单更新为预设菜单。
可选地,本实施例中的还可以包括判断单元403,该判断单元403用于:
获取以当前时钟值为终点的目标时间段内更新预设菜单的次数的记录;
判断更新预设菜单的次数是否大于或等于第二预设阈值,当判断结果为是时,在用户终端的屏幕上显示当前时间段内最近一次生成的菜单,当判断结果为否时,触发生成单元303。
根据本实施例的生成菜单的装置,不仅通过在不同的时间段内生成不同的菜单以满足用户的实际需要,而且通过判断所生成的新的菜单的相应位置的图标是否与菜单模板中的一致而尽量减少生成菜单的装置的操作,节省资源。
实施例六
本实施例提供另一种生成菜单的装置,用于执行以上生成菜单的方法。
如图5所示,为根据本实施例的生成菜单的装置的结构示意图。该生成菜单的装置500包括至少一个处理器501、通信总线502、存储器503以及至少一个通信接口504。
其中,通信总线502用于实现上述组件之间的连接并通信,通信接口504用于与网络设备连接并通信。该总线可以是ISA(Industry Standard Architecture,工业标准体系结构)总线、PCI(Peripheral Component,外部设备互连)总线或EISA(Extended Industry Standard Architecture,扩展工 业标准体系结构)总线等。总线可以是一条或多条物理线路,当是多条物理线路时可以分为地址总线、数据总线、控制总线等。
其中,存储器503用于存储可执行程序代码,其中,处理器501通过读取存储器503中存储的可执行程序代码来运行与可执行程序代码对应的程序,以用于:
获取用户终端的当前时钟值,并根据预先划分的时间段,获取当前时钟值所在的当前时间段;
根据当前时间段,获取该时间段内、用户终端使用的至少一个业务项的操作次数;
生成菜单,其中,菜单中至少包括用户在当前时间段内的操作次数满足预设规则的业务项。
可选地,处理器501通过读取存储器503中存储的可执行程序代码来运行与可执行程序代码对应的程序,以用于生成菜单时,具体可以是:将业务项按照操作次数的大小从高到低进行排列,并获取前N个业务项作为待调整业务项,N为大于或等于1的整数,且N为用户设备的菜单模板中能够容纳的业务项的图标的个数;
判断待调整业务是否在用户设备的预设菜单中;
当判断出待调整业务项不在用户设备的预设菜单中时,将待调整业务项的图标加入预设菜单中,或者用待调整业务项图标替换预设菜单中的已有业务项的图标,以生成菜单。
可选地,处理器501通过读取存储器503中存储的可执行程序代码来运行与可执行程序代码对应的程序,以用于生成菜单时,具体可以是:根据操作次数,将操作次数满足预设规则的业务项的图标,设置在用户终端的菜单模板的相应位置,生成菜单。
可选地,处理器501还通过读取存储器503中存储的可执行程序代码来运行与可执行程序代码对应的程序,以用于在生成菜单之前,还包括:
预测采用待调整业务项的图标根据预设规则生成的菜单的布局与预先存储的当前时间段内最近一次生成的菜单的布局是否一致;
当预测结果为否时,执行生成菜单的操作;
当预测结果为是时,在用户终端的屏幕上显示当前时间段内最近一次生成 的菜单。
可选地,当预测出采用待调整业务项的图标、根据预设规则生成的菜单的布局与预先存储的当前时间段内最近一次生成的菜单的布局不一致之后,且在执行生成菜单的操作之前,处理器501还可以通过读取存储器503中存储的可执行程序代码来运行与可执行程序代码对应的程序,以用于:
获取根据预设规则生成的菜单中与最近一次生成的菜单中的图标位置不一样的各待判断业务项;
按照操作次数由大到小或由小到大排列待判断业务项;
判断是否有相邻的两个业务项的操作次数的差值大于第一预设阈值;
当判断结果为是时,执行生成菜单的操作;
当判断结果为否时,在用户终端的屏幕上显示当前时间段内最近一次生成的菜单。
可选地,当在生成菜单之后,处理器501还可以通过读取存储器503中存储的可执行程序代码来运行与可执行程序代码对应的程序,以用于:
清空业务项的操作次数的记录,并将生成的菜单更新为预设菜单。
可选地,在生成菜单之前,处理器501还可以通过读取存储器503中存储的可执行程序代码来运行与可执行程序代码对应的程序,以用于:
获取以当前时钟值为终点的目标时间段内更新预设菜单的次数的记录;
判断更新预设菜单的次数是否大于或等于第二预设阈值,当判断结果为是时,在用户终端的屏幕上显示当前时间段内最近一次生成的菜单,当判断结果为否时,执行生成菜单的操作。
根据本实施例的生成菜单的装置500,通过在不同的时间段内生成不同的菜单,能够满足用户的实际需要,提升了用户体验,方便了用户的操作。
最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。

Claims (14)

  1. 一种生成菜单的方法,其特征在于,包括:
    获取所述用户终端的当前时钟值,并根据预先划分的时间段,获取所述当前时钟值所在的当前时间段;
    根据所述当前时间段,获取所述时间段内、所述用户终端使用的至少一个业务项的操作次数;
    生成菜单,其中,所述菜单中至少包括用户在当前时间段内的操作次数满足预设规则的业务项。
  2. 根据权利要求1所述的生成菜单的方法,其特征在于,所述生成菜单包括:
    将所述业务项按照操作次数的大小从高到低进行排列,并获取前N个业务项作为待调整业务项,所述N为大于或等于1的整数,且N为所述用户设备的菜单模板中容纳的业务项的图标的个数;
    判断所述待调整业务是否在所述用户设备的预设菜单中;
    当判断出所述待调整业务项不在所述用户设备的预设菜单中时,将所述待调整业务项的图标加入所述预设菜单中,或者用所述待调整业务项图标替换预设菜单中的已有业务项的图标,以生成所述菜单。
  3. 根据权利要求1所述的生成菜单的方法,其特征在于,所述生成菜单,包括:
    根据所述操作次数,将所述操作次数满足预设规则的业务项的图标,设置在所述用户终端的菜单模板的相应位置。
  4. 根据权利要求1所述的生成菜单的方法,其特征在于,在所述生成菜单之前,还包括:
    预测采用所述待调整业务项的图标、根据预设规则生成的菜单的布局与所述预先存储的所述当前时间段内最近一次生成的菜单的布局是否一致;
    当预测结果为否时,执行生成菜单的操作;
    当预测结果为是时,在所述用户终端的屏幕上显示所述当前时间段内最近一次生成的菜单。
  5. 根据权利要求4所述的生成菜单的方法,其特征在于,当预测出采用所 述待调整业务项的图标、根据预设规则生成的菜单的布局与所述预先存储的所述当前时间段内最近一次生成的菜单的布局不一致之后,且在执行生成菜单的操作之前,还包括:
    获取所述根据预设规则生成的菜单中与所述最近一次生成的菜单中的图标位置不一样的各待判断业务项;
    按照操作次数由大到小或由小到大排列所述待判断业务项;
    判断是否有相邻的两个业务项的操作次数的差值大于第一预设阈值;
    当判断结果为是时,执行生成菜单的操作;
    当判断结果为否时,在所述用户终端的屏幕上显示所述当前时间段内最近一次生成的菜单。
  6. 根据权利要求1~5中任一项所述的生成菜单的方法,其特征在于,在生成菜单之后,还包括:
    清空业务项的操作次数的记录,并将生成的菜单更新为预设菜单。
  7. 根据权利要求1所述的生成菜单的方法,其特征在于,在生成菜单之前,还包括:
    获取所述以当前时钟值为终点的目标时间段内更新所述预设菜单的次数的记录;
    判断所述更新预设菜单的次数是否大于或等于第二预设阈值,当判断结果为是时,在所述用户终端的屏幕上显示所述当前时间段内最近一次生成的菜单,当判断结果为否时,执行生成菜单的操作。
  8. 一种生成菜单的装置,其特征在于,包括:
    第一获取单元,用于获取所述用户终端的当前时钟值,并根据预先划分的时间段,获取所述当前时钟值所在的当前时间段;
    第二获取单元,用于根据所述当前时间段,获取所述时间段内、所述用户终端使用的至少一个业务项的操作次数;
    所述生成单元,用于生成菜单,其中,所述菜单中至少包括用户在当前时间段内的操作次数满足预设规则的业务项。
  9. 根据权利要求8所述的生成菜单的装置,其特征在于,所述生成单元具体用于:
    将所述业务项按照操作次数的大小从高到低进行排列,并获取前N个业务项作为待调整业务项,所述N为大于或等于1的整数,且N为所述用户设备的菜单模 板中能够容纳的业务项的图标的个数;
    判断所述待调整业务是否在所述用户设备的预设菜单中,当判断出所述待调整业务项不在所述用户设备的预设菜单中时,将所述待调整业务项的图标加入所述预设菜单中,或者用所述待调整业务项图标替换预设菜单中的已有业务项的图标,以生成所述菜单。
  10. 根据权利要求8所述的生成菜单的装置,其特征在于,所述生成单元具体用于:
    根据所述操作次数,将所述待调整业务项的图标设置在所述用户终端的菜单模板的预设位置,生成所述菜单。
  11. 根据权利要求8所述的生成菜单的装置,其特征在于,还包括:
    预测单元,用于预测采用所述待调整业务项的图标、根据预设规则生成的菜单的布局与所述预先存储的所述当前时间段内最近一次生成的菜单的布局是否一致,当预测结果为否时,触发所述生成单元,当预测结果为是时,在所述用户终端的屏幕上显示所述当前时间段内最近一次生成的菜单。
  12. 根据权利要求11所述的生成菜单的装置,其特征在于,所述生成单元还用于:
    获取所述根据预设规则生成的菜单中与所述最近一次生成的菜单中的图标位置不一样的各待判断业务项;
    按照操作次数由大到小或由小到大排列所述待判断业务项;
    判断是否有相邻的两个业务项的操作次数的差值大于第一预设阈值;
    当判断结果为是时,执行生成菜单的操作;
    当判断结果为否时,在所述用户终端的屏幕上显示所述当前时间段内最近一次生成的菜单。
  13. 根据权利要求8~12中任一项所述的生成菜单的装置,其特征在于,还包括:
    清空单元,用于清空业务项的操作次数的记录,并将生成的菜单更新为预设菜单。
  14. 根据权利要求13所述的生成菜单的装置,其特征在于,还包括:
    判断单元,用于获取所述以当前时钟值为终点的目标时间段内更新所述预设菜单的次数的记录,并判断所述更新预设菜单的次数是否大于或等于第二预设阈值,当判断结果为是时,在所述用户终端的屏幕上显示所述当前时间段内最近一次生成的菜单,当判断结果为否时,触发所述生成单元。
PCT/CN2014/086778 2013-11-14 2014-09-18 生成菜单的方法和装置 WO2015070671A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310567674.5A CN103543901B (zh) 2013-11-14 2013-11-14 生成菜单的方法和装置
CN201310567674.5 2013-11-14

Publications (1)

Publication Number Publication Date
WO2015070671A1 true WO2015070671A1 (zh) 2015-05-21

Family

ID=49967413

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/086778 WO2015070671A1 (zh) 2013-11-14 2014-09-18 生成菜单的方法和装置

Country Status (2)

Country Link
CN (1) CN103543901B (zh)
WO (1) WO2015070671A1 (zh)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103543901B (zh) * 2013-11-14 2016-09-07 华为技术有限公司 生成菜单的方法和装置
CN104410912B (zh) * 2014-11-19 2018-03-16 深圳市九洲电器有限公司 电子节目指南刷新方法及系统
CN106161490A (zh) * 2015-03-23 2016-11-23 珠海金山网络游戏科技有限公司 一种用户在线行为状态更新方法、装置及系统
CN106708874A (zh) * 2015-11-16 2017-05-24 百度在线网络技术(北京)有限公司 用于调整搜索分类在搜索页面中的排布的方法和装置
CN109491275A (zh) * 2017-09-11 2019-03-19 佛山市顺德区美的电热电器制造有限公司 烹饪器具及用于烹饪器具的功能列表的排序方法
CN113064538B (zh) * 2020-01-02 2024-03-05 佛山市云米电器科技有限公司 设备参数设置方法、智能冰箱及计算机可读存储介质

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101651870A (zh) * 2008-08-13 2010-02-17 深圳富泰宏精密工业有限公司 实现功能菜单动态排序的手机、系统及方法
CN102004607A (zh) * 2010-11-16 2011-04-06 中兴通讯股份有限公司 一种菜单显示方法及系统
KR20110051375A (ko) * 2009-11-10 2011-05-18 삼성메디슨 주식회사 의료진단장치 및 메뉴표시방법
CN102073453A (zh) * 2010-12-24 2011-05-25 东莞宇龙通信科技有限公司 一种移动终端及应用图标显示方法
CN103309661A (zh) * 2013-05-27 2013-09-18 深圳市金立通信设备有限公司 一种控制界面应用图标的方法及终端
CN103543901A (zh) * 2013-11-14 2014-01-29 华为技术有限公司 生成菜单的方法和装置
CN103631486A (zh) * 2013-11-27 2014-03-12 中国科学院深圳先进技术研究院 一种调整屏幕显示应用程序菜单的方法、系统及移动终端

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100800870B1 (ko) * 2006-09-05 2008-02-04 삼성전자주식회사 동적 메뉴 디스플레이 방법
CN101150810A (zh) * 2007-10-10 2008-03-26 叶志宝 一种实现菜单动态排序显示的手机装置及其方法
CN101727278A (zh) * 2009-12-18 2010-06-09 深圳华为通信技术有限公司 一种排列菜单的方法及终端
KR101793999B1 (ko) * 2011-07-22 2017-11-06 삼성전자주식회사 휴대용 단말기에서 사용자 인터페이스 객체를 배치하는 방법 및 장치
CN102866831A (zh) * 2012-08-30 2013-01-09 广东欧珀移动通信有限公司 一种桌面图标的调整方法、装置和移动终端

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101651870A (zh) * 2008-08-13 2010-02-17 深圳富泰宏精密工业有限公司 实现功能菜单动态排序的手机、系统及方法
KR20110051375A (ko) * 2009-11-10 2011-05-18 삼성메디슨 주식회사 의료진단장치 및 메뉴표시방법
CN102004607A (zh) * 2010-11-16 2011-04-06 中兴通讯股份有限公司 一种菜单显示方法及系统
CN102073453A (zh) * 2010-12-24 2011-05-25 东莞宇龙通信科技有限公司 一种移动终端及应用图标显示方法
CN103309661A (zh) * 2013-05-27 2013-09-18 深圳市金立通信设备有限公司 一种控制界面应用图标的方法及终端
CN103543901A (zh) * 2013-11-14 2014-01-29 华为技术有限公司 生成菜单的方法和装置
CN103631486A (zh) * 2013-11-27 2014-03-12 中国科学院深圳先进技术研究院 一种调整屏幕显示应用程序菜单的方法、系统及移动终端

Also Published As

Publication number Publication date
CN103543901B (zh) 2016-09-07
CN103543901A (zh) 2014-01-29

Similar Documents

Publication Publication Date Title
WO2015070671A1 (zh) 生成菜单的方法和装置
US10440652B2 (en) Power management of a mobile communications device
CN104267874B (zh) 一种调整终端上应用图标布局的方法及终端
JP7450649B2 (ja) メッセージ処理方法および装置
CN106575196B (zh) 电子装置及用于显示其用户界面的方法
WO2017167123A1 (zh) 一种移动设备上资源入口的显示方法、装置及移动设备
CN105468416A (zh) 一种应用程序清理的方法及终端
CN105827510A (zh) 用于移动终端的推送消息处理方法以及移动终端
US9413556B2 (en) Unified account list
US20140019643A1 (en) Smart scheduled sync method for sync applications
CN106211292A (zh) 一种移动终端的导航方法及移动终端
CN103827820A (zh) 管理计算设备的数据使用
KR20130122737A (ko) 설정 변경으로 인한 배터리 수명의 디스플레이
CN107967278A (zh) 网页预读方法、网页访问方法、设备及可编程设备
CN107203425A (zh) 轻应用的切换方法、设备及电子设备
CN109582521A (zh) 测试存储系统读写性能的方法、装置、设备及介质
CN106200976A (zh) 一种运动激励方法及终端
US11656761B2 (en) Touch hotspot adjustment method, apparatus, and device, and touchscreen terminal device
CN104238931B (zh) 信息输入方法、装置及电子设备
CN106909488A (zh) 一种cpu温度控制方法及终端
CN106055688B (zh) 搜索结果的展现方法、装置和移动终端
US20120046075A1 (en) Method and apparatus for controlling output devices
US9001146B2 (en) Automatically determining an object display mode to display objects
US20120317408A1 (en) Method and Apparatus for Changing an Operational Characteristic of a Device in Order to Adjust the Power Consumption Level
EP2421235A1 (en) Method and apparatus for controlling output devices

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14862778

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14862778

Country of ref document: EP

Kind code of ref document: A1