WO2019037082A1 - Method for displaying power level of a mobile terminal, mobile terminal and storage medium - Google Patents
Method for displaying power level of a mobile terminal, mobile terminal and storage medium Download PDFInfo
- Publication number
- WO2019037082A1 WO2019037082A1 PCT/CN2017/099046 CN2017099046W WO2019037082A1 WO 2019037082 A1 WO2019037082 A1 WO 2019037082A1 CN 2017099046 W CN2017099046 W CN 2017099046W WO 2019037082 A1 WO2019037082 A1 WO 2019037082A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- battery icon
- power
- mobile terminal
- displaying
- attribute information
- Prior art date
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
-
- H—ELECTRICITY
- H01—ELECTRIC ELEMENTS
- H01M—PROCESSES OR MEANS, e.g. BATTERIES, FOR THE DIRECT CONVERSION OF CHEMICAL ENERGY INTO ELECTRICAL ENERGY
- H01M10/00—Secondary cells; Manufacture thereof
- H01M10/42—Methods or arrangements for servicing or maintenance of secondary cells or secondary half-cells
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02E—REDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
- Y02E60/00—Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
- Y02E60/10—Energy storage using batteries
Definitions
- the present invention relates to the field of mobile terminals, and in particular, to a method for displaying a power of a mobile terminal, a mobile terminal, and a storage medium.
- the current function machine design when the power-saving mode is turned on, is mostly a functional change to save power, such as reducing screen brightness, shortening backlight time, and reducing sound.
- the playback time of the video reducing the playback loudness and other operations.
- the main purpose of the present invention is to provide a method for displaying power of a mobile terminal, a mobile terminal, and a storage medium, which are aimed at solving the technical problem that the user cannot use the power saving mode in the prior art.
- the present invention provides a method for displaying a power of a mobile terminal, and the method for displaying a power of the mobile terminal includes the following steps:
- the mobile terminal acquires the current power when in the power saving mode
- the battery icon is adjusted according to the target number of cells, and the adjusted battery icon is displayed.
- the battery icon is adjusted according to the target number of cells, and the adjusted battery icon is displayed, which specifically includes:
- the first attribute information includes first size information
- the first attribute information includes first color information
- the first attribute information includes first skin information
- the method further includes:
- the battery icon is adjusted according to the second attribute information, and the adjusted battery icon is displayed.
- the method further includes:
- the battery icon is adjusted according to the third attribute information, and the adjusted battery icon is displayed.
- the method before the determining the ratio of the current power according to the current power and the preset saturated power, the method further includes:
- the electric quantity in the charging saturation state is collected multiple times, and the average value of the electric quantity of the collected charging saturation state is calculated, and the average value of the electric quantity is taken as the preset saturated electric quantity.
- the method before the determining the ratio of the current power according to the current power and the preset saturated power, the method further includes:
- the power quantity information is monitored in real time, and when the power quantity information reaches a preset threshold, the step of determining the ratio of the current power quantity according to the current power quantity and the preset saturated power quantity is performed.
- the present invention further provides a mobile terminal, where the mobile terminal includes: a memory, a processor, and a power display program of the mobile terminal stored on the memory and operable on the processor,
- the power display program of the mobile terminal is configured to implement the steps of the power display method of the mobile terminal as described above.
- the present invention further provides a storage medium on which a power display program of a mobile terminal is stored, and when the power display program of the mobile terminal is executed by the processor, the mobile device as described above is implemented. The steps of the terminal's power display method.
- the battery icon is adjusted by the above solution, thereby improving the user experience.
- FIG. 1 is a schematic structural diagram of a mobile terminal in a hardware operating environment according to an embodiment of the present invention
- FIG. 2 is a schematic flowchart of a first embodiment of a method for displaying a power of a mobile terminal according to the present invention
- FIG. 3 is a schematic flowchart of a second embodiment of a method for displaying a power quantity of a mobile terminal according to the present invention
- FIG. 4 is a schematic flowchart of a third embodiment of a method for displaying a power of a mobile terminal according to the present invention.
- FIG. 5 is a schematic flowchart of a fourth embodiment of a method for displaying a power of a mobile terminal according to the present invention.
- FIG. 6 is a schematic flowchart of a fifth embodiment of a method for displaying a power of a mobile terminal according to the present invention.
- FIG. 7 is a schematic flowchart of a sixth embodiment of a method for displaying a power of a mobile terminal according to the present invention.
- FIG. 8 is a schematic flowchart diagram of a seventh embodiment of a method for displaying a power of a mobile terminal according to the present invention.
- FIG. 1 is a schematic structural diagram of a mobile terminal in a hardware operating environment according to an embodiment of the present invention.
- the mobile terminal may include a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005.
- the communication bus 1002 is used to implement connection communication between these components.
- the user interface 1003 can include a display, an input unit such as a keyboard, and the optional user interface 1003 can also include a standard wired interface, a wireless interface.
- the network interface 1004 can optionally include a standard wired interface, a wireless interface (such as a WI-FI interface).
- the memory 1005 may be a high speed RAM memory or a stable memory (non-volatile) Memory), such as disk storage.
- the memory 1005 can also optionally be a storage device independent of the aforementioned processor 1001.
- the mobile terminal structure shown in FIG. 1 does not constitute a limitation of the mobile terminal, and may include more or less components than those illustrated, or combine some components, or different component arrangements.
- the memory 1005 as a storage medium may include an operating system, a network communication module, a user interface module, and a power display program of the mobile terminal.
- the network interface 1004 is mainly used to connect to the Internet and perform data communication with the Internet;
- the user interface 1003 is mainly used to connect other terminals and perform data communication with other terminals;
- the mobile terminal passes the processor 1001.
- the power display program of the mobile terminal stored in the memory 1005 is called, and the following operations are performed:
- the mobile terminal acquires the current power when in the power saving mode
- the battery icon is adjusted according to the target number of cells, and the adjusted battery icon is displayed.
- processor 1001 may call the power display program of the mobile terminal stored in the memory 1005, and further perform the following operations:
- processor 1001 may call the power display program of the mobile terminal stored in the memory 1005, and further perform the following operations:
- processor 1001 may call the power display program of the mobile terminal stored in the memory 1005, and further perform the following operations:
- processor 1001 may call the power display program of the mobile terminal stored in the memory 1005, and further perform the following operations:
- processor 1001 may call the power display program of the mobile terminal stored in the memory 1005, and further perform the following operations:
- the battery icon is adjusted according to the second attribute information, and the adjusted battery icon is displayed.
- processor 1001 may call the power display program of the mobile terminal stored in the memory 1005, and further perform the following operations:
- the battery icon is adjusted according to the third attribute information, and the adjusted battery icon is displayed.
- processor 1001 may call the power display program of the mobile terminal stored in the memory 1005, and further perform the following operations:
- the electric quantity in the charging saturation state is collected multiple times, and the average value of the electric quantity of the collected charging saturation state is calculated, and the average value of the electric quantity is taken as the preset saturated electric quantity.
- processor 1001 may call the power display program of the mobile terminal stored in the memory 1005, and further perform the following operations:
- the power quantity information is monitored in real time, and when the power quantity information reaches a preset threshold, the step of determining the ratio of the current power quantity according to the current power quantity and the preset saturated power quantity is performed.
- the battery icon is adjusted by the above solution, thereby improving the user experience.
- FIG. 2 is a schematic flowchart diagram of a first embodiment of a method for displaying a power of a mobile terminal according to the present invention.
- the method for displaying the power of the mobile terminal includes the following steps:
- Step S10 The mobile terminal acquires the current power when in the power saving mode
- the power saving mode may be performed by the user to switch to the power saving mode according to actual requirements, or may be automatically switched to the power saving mode when the mobile terminal reaches the preset threshold according to the power consumption.
- the mobile terminal After entering the power saving mode, the mobile terminal will reduce the brightness time, reduce the screen brightness, turn off the screen backlight, reduce the audio and video playback time, reduce the audio and video playback volume, and turn off the audio and video sounds, thereby saving battery usage.
- the user cannot intuitively feel the actual battery power.
- the mobile terminal when the user switches the mobile terminal to the power saving mode, the mobile terminal performs an instruction to acquire the current power amount to the battery management module, thereby acquiring the current power of the mobile terminal.
- Step S20 determining a current current power ratio according to the current power and the preset saturated power
- the preset saturated electric quantity may be a electric quantity value of the saturated electric quantity pre-stored in the mobile terminal, and the current electric quantity is compared with the preset saturated electric quantity to obtain the electric quantity percentage of the current electric quantity.
- the saturation power of a mobile terminal is 3000mah, and when the current power is 1000mah, the current power 1000mah is compared with the saturated power 3000mah, and the current power percentage is 30%.
- Step S30 searching for a target number of cells corresponding to the current power ratio in the preset power range table
- the electric quantity displayed in the battery icon is converted into a segmented display, thereby giving the user a feeling of more electric power.
- a preset power range table is pre-stored, and the preset power range table may be a correspondence between a power ratio and a displayed target format, and the current power is obtained through the corresponding relationship.
- the ratio the number of target cells corresponding to the current power ratio can be found.
- the full grid number is taken as an example, wherein the percentage of the power is 0-20%, and the corresponding target format is 1 grid.
- the power is segmented and displayed. When the percentage of power is 20-40%, the corresponding target format is segmented by 2 grids.
- the corresponding target format is 3 grids. Segmentation appears. When the percentage of power is 60-80%, the corresponding target format is segmented by 4 grids. When the percentage of power is 80-100%, the corresponding target format is 5 grids. Performing segmentation display. When the current power percentage of the terminal is 30%, the percentage of the current power is in the range of 20-40%, and the target format of the current power is in the form of 2 segments. Display.
- step S40 the battery icon is adjusted according to the target number of cells, and the adjusted battery icon is displayed.
- the battery icon can be displayed as the status of the progress bar. In this state, the power can be increased, but the display is not obvious, which is not conducive to the user experience.
- the user checks the state in which the mobile terminal enters the power saving mode, but the power feeling does not change much.
- the user switches the mobile terminal to the power saving mode and adjusts the battery icon to the segment display, so that the user can directly view the battery state of the battery, thereby improving the user experience.
- the battery icon when the user switches to the power saving mode, the battery icon is adjusted to improve the user experience.
- the step S40 includes:
- Step S401 Acquire first attribute information of the battery icon, adjust the battery icon according to the first attribute information, and display the adjusted battery icon.
- Step S401 includes:
- Step S402 acquiring first size information of the battery icon, adjusting the battery icon according to the first size information, and displaying the adjusted battery icon.
- the battery icon can be adjusted to a preset size, that is, adjusted to display a large battery icon, thereby improving the user experience.
- the battery power is displayed in segments, thereby providing a better intuitive experience for the user, and it is easier to guide the user to use the power saving mode.
- the battery icon when the user switches to the power saving mode, the battery icon is adjusted to a large size display, thereby improving the user experience.
- the step S401 includes:
- Step S403 Acquire first color information of the battery icon, adjust a battery icon according to the first color information, and display the adjusted battery icon.
- the color of the battery icon can be adjusted to a preset color, that is, the battery icon color is adjusted to be displayed in a dark color, thereby improving the user experience.
- the battery power is displayed in segments, thereby providing a better intuitive experience for the user, and it is easier to guide the user to use the power saving mode.
- the battery icon when the user switches to the power saving mode, the battery icon is adjusted to a dark color display, thereby improving the user experience.
- the step S401 includes:
- Step S404 Acquire first skin information of the battery icon, adjust a battery icon according to the first skin information, and display the adjusted battery icon.
- the skin of the battery icon can be adjusted to the preset skin, that is, the battery icon skin is adjusted to display the skin with clearer texture, thereby improving the user experience.
- the battery icon texture is adjusted to a clearer skin
- the battery level is displayed in segments, thereby providing a better intuitive experience for the user, and it is easier to guide the user to use the power saving mode.
- the skin of the battery icon is adjusted to a skin display with a clearer texture, thereby improving the user experience.
- the fifth embodiment of the method for displaying the power of the mobile terminal of the present invention is proposed based on the first embodiment.
- the method further includes:
- Step S501 when switching from the power saving mode to the normal mode, acquiring first attribute information of the battery icon, and switching the first attribute information to second attribute information;
- the normal mode may refer to a preset brightness time, a preset screen brightness, a preset on-screen backlight, a preset audio and video playback time, and a preset audio and video playback volume.
- the user may set the appropriate according to actual needs.
- the first attribute is a configuration attribute of each function of the mobile terminal in the power saving mode, for example, the battery icon becomes larger, the battery icon's power is displayed in a segmented form, and the battery icon has a clearer skin texture.
- the second attribute may be that the battery icon is restored to the initial preset size, the battery icon's power is displayed in a progress bar or other form, and the skin texture of the battery icon is restored to the initial state.
- Step S502 the battery icon is adjusted according to the second attribute information, and the adjusted battery icon is displayed.
- the battery icon when the user switches from the power saving mode to the normal mode, the battery icon can be switched from the display state of the power saving mode to the display state of the normal mode.
- a sixth embodiment of the method for displaying the power of the mobile terminal of the present invention is provided based on the first embodiment.
- the method further includes:
- Step S503 when switching from the power saving mode to the charging mode, acquiring first attribute information of the battery icon, and switching the first attribute information to third attribute information;
- the mobile terminal When the mobile terminal is in the power saving mode, the mobile terminal is charged, and after the charger is plugged in, the power of the battery icon is displayed as a charging state, that is, charging in the form of a dynamic charging bar, and
- a charging state that is, charging in the form of a dynamic charging bar, and
- the embodiment is not limited herein.
- the third attribute information may display the state of charge with a dynamic progress bar for displaying the power of the icon.
- Step S504 the battery icon is adjusted according to the third attribute information, and the adjusted battery icon is displayed.
- the battery icon is displayed in the state of the first attribute information.
- the display state of the battery icon is switched, and the power level of the battery icon is displayed as the charging state, thereby improving the user experience.
- a seventh embodiment of the method for displaying the power of the mobile terminal of the present invention is provided based on the first embodiment.
- the method before the step S20, the method further includes:
- step S201 the amount of charge in the state of charge saturation is collected multiple times, and the average value of the charge of the collected charge saturation state is calculated, and the average value of the charge is used as the preset saturated power.
- the power value in the state of charge saturation is collected multiple times in advance, and the power value in the state of charge saturation is different, so the calculation is performed under the condition of multiple acquisition and charge saturation.
- the average value of the electric quantity value is used as the preset saturated electric quantity, so that the electric quantity value in the state of charging saturation is more accurate.
- the power value in the state of charge saturation is collected multiple times, and the average value of the power value is calculated, thereby improving the accuracy of calculating the power ratio.
- the embodiment of the present invention further provides a storage medium, where the storage device stores a power display program of the mobile terminal, and when the power display program of the mobile terminal is executed by the processor, the following operations are implemented:
- the mobile terminal acquires the current power when in the power saving mode
- the battery icon is adjusted according to the target number of cells, and the adjusted battery icon is displayed.
- the battery icon is adjusted according to the second attribute information, and the adjusted battery icon is displayed.
- the battery icon is adjusted according to the third attribute information, and the adjusted battery icon is displayed.
- the electric quantity in the charging saturation state is collected multiple times, and the average value of the electric quantity of the collected charging saturation state is calculated, and the average value of the electric quantity is taken as the preset saturated electric quantity.
- the power quantity information is monitored in real time, and when the power quantity information reaches a preset threshold, the step of determining the ratio of the current power quantity according to the current power quantity and the preset saturated power quantity is performed.
- the battery icon is adjusted by the above solution, thereby improving the user experience.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Manufacturing & Machinery (AREA)
- Chemical & Material Sciences (AREA)
- Chemical Kinetics & Catalysis (AREA)
- Electrochemistry (AREA)
- General Chemical & Material Sciences (AREA)
- Telephone Function (AREA)
Abstract
The present invention discloses a method for displaying the power level of a mobile terminal, a mobile terminal and a storage medium. The method comprises: acquiring a current power level when the mobile terminal is in a power saving mode; determining, according to the current power level and a preset saturated power level, a corresponding current power level ratio; searching a preset power level range table for a target grid number corresponding to the current power level ratio; adjusting a battery icon according to the target grid number, and displaying the adjusted battery icon. The present invention adjusts a battery icon when a user switches to a power saving mode, thereby enhancing user experience.
Description
技术领域Technical field
本发明涉及移动终端领域,尤其涉及一种移动终端的电量展示方法、移动终端及存储介质。The present invention relates to the field of mobile terminals, and in particular, to a method for displaying a power of a mobile terminal, a mobile terminal, and a storage medium.
背景技术Background technique
随着时代发展,人们对移动终端的要求越来越高,目前的功能机设计,当开启省电模式后,大多是功能上的变更以节约电量,诸如降低屏幕亮度,缩短背光时间,减少音视频的播放时间,降低播放响度等操作。With the development of the times, people's requirements for mobile terminals are getting higher and higher. The current function machine design, when the power-saving mode is turned on, is mostly a functional change to save power, such as reducing screen brightness, shortening backlight time, and reducing sound. The playback time of the video, reducing the playback loudness and other operations.
发明内容Summary of the invention
本发明的主要目的在于提出一种移动终端的电量展示方法、移动终端及存储介质,旨在解决现有技术中无法很好的引导用户使用省电模式的技术问题。The main purpose of the present invention is to provide a method for displaying power of a mobile terminal, a mobile terminal, and a storage medium, which are aimed at solving the technical problem that the user cannot use the power saving mode in the prior art.
为实现上述目的,本发明提供一种移动终端的电量展示方法,所述移动终端的电量展示方法包括以下步骤:To achieve the above objective, the present invention provides a method for displaying a power of a mobile terminal, and the method for displaying a power of the mobile terminal includes the following steps:
移动终端在处于省电模式时,获取当前电量;The mobile terminal acquires the current power when in the power saving mode;
根据所述当前电量与预设饱和电量确定对应的当前电量比例;Determining a corresponding current power ratio according to the current power and the preset saturated power;
在预设电量范围表中查找所述当前电量比例对应的目标格数;Finding a target number of the current power ratio in the preset power range table;
根据所述目标格数对电池图标进行调整,将调整后的电池图标进行展示。The battery icon is adjusted according to the target number of cells, and the adjusted battery icon is displayed.
优选地,所述根据所述目标格数对电池图标进行调整,将调整后的电池图标进行展示,具体包括:Preferably, the battery icon is adjusted according to the target number of cells, and the adjusted battery icon is displayed, which specifically includes:
获取电池图标的第一属性信息,根据所述第一属性信息对电池图标进行调整,并将调整后的电池图标进行展示。Obtaining first attribute information of the battery icon, adjusting the battery icon according to the first attribute information, and displaying the adjusted battery icon.
优选地,所述第一属性信息包括第一尺寸信息;Preferably, the first attribute information includes first size information;
所述获取电池图标的第一属性信息,根据所述第一属性信息对电池图标进行调整,并将调整后的电池图标进行展示,具体包括:Obtaining the first attribute information of the battery icon, adjusting the battery icon according to the first attribute information, and displaying the adjusted battery icon, specifically:
获取所述电池图标的第一尺寸信息,根据所述第一尺寸信息对电池图标进行调整,并将调整后的电池图标进行展示。Acquiring the first size information of the battery icon, adjusting the battery icon according to the first size information, and displaying the adjusted battery icon.
优选地,所述第一属性信息包括第一颜色信息;Preferably, the first attribute information includes first color information;
所述获取电池图标的第一属性信息,根据所述第一属性信息对电池图标进行调整,并将调整后的电池图标进行展示,具体包括:Obtaining the first attribute information of the battery icon, adjusting the battery icon according to the first attribute information, and displaying the adjusted battery icon, specifically:
获取所述电池图标的第一颜色信息,根据所述第一颜色信息对电池图标进行调整,并将调整后的电池图标进行展示。Acquiring the first color information of the battery icon, adjusting the battery icon according to the first color information, and displaying the adjusted battery icon.
优选地,所述第一属性信息包括第一皮肤信息;Preferably, the first attribute information includes first skin information;
所述获取电池图标的第一属性信息,根据所述第一属性信息对电池图标进行调整,并将调整后的电池图标进行展示,具体包括:Obtaining the first attribute information of the battery icon, adjusting the battery icon according to the first attribute information, and displaying the adjusted battery icon, specifically:
获取所述电池图标的第一皮肤信息,根据所述第一皮肤信息对电池图标进行调整,并将调整后的电池图标进行展示。Acquiring the first skin information of the battery icon, adjusting the battery icon according to the first skin information, and displaying the adjusted battery icon.
优选地,所述根据所述目标格数对电池图标进行调整,将调整后的电池图标进行展示之后,所述方法还包括:Preferably, after the battery icon is adjusted according to the target number of cells, and the adjusted battery icon is displayed, the method further includes:
在从省电模式切换到普通模式时,获取所述电池图标的第一属性信息,将所述第一属性信息切换为第二属性信息;Obtaining the first attribute information of the battery icon, and switching the first attribute information to the second attribute information when switching from the power saving mode to the normal mode;
根据所述第二属性信息对电池图标进行调整,并将调整后的电池图标进行展示。The battery icon is adjusted according to the second attribute information, and the adjusted battery icon is displayed.
优选地,所述根据所述目标格数对电池图标进行调整,将调整后的电池图标进行展示之后,所述方法还包括:Preferably, after the battery icon is adjusted according to the target number of cells, and the adjusted battery icon is displayed, the method further includes:
在从省电模式切换到充电模式时,获取所述电池图标的第一属性信息,将所述第一属性信息切换为第三属性信息;Obtaining first attribute information of the battery icon, and switching the first attribute information to third attribute information when switching from the power saving mode to the charging mode;
根据所述第三属性信息对电池图标进行调整,并将调整后的电池图标进行展示。The battery icon is adjusted according to the third attribute information, and the adjusted battery icon is displayed.
优选地,所述根据所述当前电量与预设饱和电量确定所述当前电量的比例值之前,所述方法还包括:Preferably, before the determining the ratio of the current power according to the current power and the preset saturated power, the method further includes:
多次采集充电饱和状态的电量,计算采集的充电饱和状态的电量平均值,将所述电量平均值作为所述预设饱和电量。The electric quantity in the charging saturation state is collected multiple times, and the average value of the electric quantity of the collected charging saturation state is calculated, and the average value of the electric quantity is taken as the preset saturated electric quantity.
优选地,所述根据所述当前电量与预设饱和电量确定所述当前电量的比例值之前,所述方法还包括:Preferably, before the determining the ratio of the current power according to the current power and the preset saturated power, the method further includes:
实时监控电量信息,在所述电量信息达到预设阈值时,执行所述根据所述当前电量与预设饱和电量确定所述当前电量的比例值的步骤。The power quantity information is monitored in real time, and when the power quantity information reaches a preset threshold, the step of determining the ratio of the current power quantity according to the current power quantity and the preset saturated power quantity is performed.
此外,为实现上述目的,本发明还提出一种移动终端,所述移动终端包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的移动终端的电量展示程序,所述移动终端的电量展示程序配置为实现如上文所述的移动终端的电量展示方法的步骤。In addition, in order to achieve the above object, the present invention further provides a mobile terminal, where the mobile terminal includes: a memory, a processor, and a power display program of the mobile terminal stored on the memory and operable on the processor, The power display program of the mobile terminal is configured to implement the steps of the power display method of the mobile terminal as described above.
此外,为实现上述目的,本发明还提出一种存储介质,所述存储介质上存储有移动终端的电量展示程序,所述移动终端的电量展示程序被处理器执行时实现如上文所述的移动终端的电量展示方法的步骤。In addition, in order to achieve the above object, the present invention further provides a storage medium on which a power display program of a mobile terminal is stored, and when the power display program of the mobile terminal is executed by the processor, the mobile device as described above is implemented. The steps of the terminal's power display method.
本实施例通过上述方案,通过用户切换到省电模式时,对电池图标进行调整,从而提高用户体验。 In this embodiment, when the user switches to the power saving mode, the battery icon is adjusted by the above solution, thereby improving the user experience.
附图说明DRAWINGS
图1是本发明实施例方案涉及的硬件运行环境的移动终端结构示意图;1 is a schematic structural diagram of a mobile terminal in a hardware operating environment according to an embodiment of the present invention;
图2为本发明移动终端的电量展示方法第一实施例的流程示意图;2 is a schematic flowchart of a first embodiment of a method for displaying a power of a mobile terminal according to the present invention;
图3为本发明移动终端的电量展示方法第二实施例的流程示意图;3 is a schematic flowchart of a second embodiment of a method for displaying a power quantity of a mobile terminal according to the present invention;
图4为本发明移动终端的电量展示方法第三实施例的流程示意图;4 is a schematic flowchart of a third embodiment of a method for displaying a power of a mobile terminal according to the present invention;
图5为本发明移动终端的电量展示方法第四实施例的流程示意图;5 is a schematic flowchart of a fourth embodiment of a method for displaying a power of a mobile terminal according to the present invention;
图6为本发明移动终端的电量展示方法第五实施例的流程示意图;6 is a schematic flowchart of a fifth embodiment of a method for displaying a power of a mobile terminal according to the present invention;
图7为本发明移动终端的电量展示方法第六实施例的流程示意图;7 is a schematic flowchart of a sixth embodiment of a method for displaying a power of a mobile terminal according to the present invention;
图8为本发明移动终端的电量展示方法第七实施例的流程示意图。FIG. 8 is a schematic flowchart diagram of a seventh embodiment of a method for displaying a power of a mobile terminal according to the present invention.
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The implementation, functional features, and advantages of the present invention will be further described in conjunction with the embodiments.
具体实施方式Detailed ways
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
参照图1,图1为本发明实施例方案涉及的硬件运行环境的移动终端结构示意图。Referring to FIG. 1, FIG. 1 is a schematic structural diagram of a mobile terminal in a hardware operating environment according to an embodiment of the present invention.
如图1所示,该移动终端可以包括:处理器1001,例如CPU,通信总线1002、用户接口1003,网络接口1004,存储器1005。其中,通信总线1002用于实现这些组件之间的连接通信。用户接口1003可以包括显示屏(Display)、输入单元比如键盘(Keyboard),可选用户接口1003还可以包括标准的有线接口、无线接口。网络接口1004可选的可以包括标准的有线接口、无线接口(如WI-FI接口)。存储器1005可以是高速RAM存储器,也可以是稳定的存储器(non-volatile
memory),例如磁盘存储器。存储器1005可选的还可以是独立于前述处理器1001的存储装置。As shown in FIG. 1, the mobile terminal may include a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to implement connection communication between these components. The user interface 1003 can include a display, an input unit such as a keyboard, and the optional user interface 1003 can also include a standard wired interface, a wireless interface. The network interface 1004 can optionally include a standard wired interface, a wireless interface (such as a WI-FI interface). The memory 1005 may be a high speed RAM memory or a stable memory (non-volatile)
Memory), such as disk storage. The memory 1005 can also optionally be a storage device independent of the aforementioned processor 1001.
本领域技术人员可以理解,图1中示出的移动终端结构并不构成对移动终端的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。It will be understood by those skilled in the art that the mobile terminal structure shown in FIG. 1 does not constitute a limitation of the mobile terminal, and may include more or less components than those illustrated, or combine some components, or different component arrangements.
如图1所示,作为一种存储介质的存储器1005中可以包括操作系统、网络通信模块、用户接口模块以及移动终端的电量展示程序。As shown in FIG. 1, the memory 1005 as a storage medium may include an operating system, a network communication module, a user interface module, and a power display program of the mobile terminal.
在图1所示的移动终端中,网络接口1004主要用于连接互联网,与互联网进行数据通信;用户接口1003主要用于连接其他终端,与其他终端进行数据通信;所述移动终端通过处理器1001调用存储器1005中存储的移动终端的电量展示程序,并执行以下操作:In the mobile terminal shown in FIG. 1 , the network interface 1004 is mainly used to connect to the Internet and perform data communication with the Internet; the user interface 1003 is mainly used to connect other terminals and perform data communication with other terminals; the mobile terminal passes the processor 1001. The power display program of the mobile terminal stored in the memory 1005 is called, and the following operations are performed:
移动终端在处于省电模式时,获取当前电量;The mobile terminal acquires the current power when in the power saving mode;
根据所述当前电量与预设饱和电量确定对应的当前电量比例;Determining a corresponding current power ratio according to the current power and the preset saturated power;
在预设电量范围表中查找所述当前电量比例对应的目标格数;Finding a target number of the current power ratio in the preset power range table;
根据所述目标格数对电池图标进行调整,将调整后的电池图标进行展示。The battery icon is adjusted according to the target number of cells, and the adjusted battery icon is displayed.
进一步地,处理器1001可以调用存储器1005中存储的移动终端的电量展示程序,还执行以下操作:Further, the processor 1001 may call the power display program of the mobile terminal stored in the memory 1005, and further perform the following operations:
获取电池图标的第一属性信息,根据所述第一属性信息对电池图标进行调整,并将调整后的电池图标进行展示。Obtaining first attribute information of the battery icon, adjusting the battery icon according to the first attribute information, and displaying the adjusted battery icon.
进一步地,处理器1001可以调用存储器1005中存储的移动终端的电量展示程序,还执行以下操作:Further, the processor 1001 may call the power display program of the mobile terminal stored in the memory 1005, and further perform the following operations:
获取所述电池图标的第一尺寸信息,根据所述第一尺寸信息对电池图标进行调整,并将调整后的电池图标进行展示。Acquiring the first size information of the battery icon, adjusting the battery icon according to the first size information, and displaying the adjusted battery icon.
进一步地,处理器1001可以调用存储器1005中存储的移动终端的电量展示程序,还执行以下操作:Further, the processor 1001 may call the power display program of the mobile terminal stored in the memory 1005, and further perform the following operations:
获取所述电池图标的第一颜色信息,根据所述第一颜色信息对电池图标进行调整,并将调整后的电池图标进行展示。Acquiring the first color information of the battery icon, adjusting the battery icon according to the first color information, and displaying the adjusted battery icon.
进一步地,处理器1001可以调用存储器1005中存储的移动终端的电量展示程序,还执行以下操作:Further, the processor 1001 may call the power display program of the mobile terminal stored in the memory 1005, and further perform the following operations:
获取所述电池图标的第一皮肤信息,根据所述第一皮肤信息对电池图标进行调整,并将调整后的电池图标进行展示。Acquiring the first skin information of the battery icon, adjusting the battery icon according to the first skin information, and displaying the adjusted battery icon.
进一步地,处理器1001可以调用存储器1005中存储的移动终端的电量展示程序,还执行以下操作:Further, the processor 1001 may call the power display program of the mobile terminal stored in the memory 1005, and further perform the following operations:
在从省电模式切换到普通模式时,获取所述电池图标的第一属性信息,将所述第一属性信息切换为第二属性信息;Obtaining the first attribute information of the battery icon, and switching the first attribute information to the second attribute information when switching from the power saving mode to the normal mode;
根据所述第二属性信息对电池图标进行调整,并将调整后的电池图标进行展示。The battery icon is adjusted according to the second attribute information, and the adjusted battery icon is displayed.
进一步地,处理器1001可以调用存储器1005中存储的移动终端的电量展示程序,还执行以下操作:Further, the processor 1001 may call the power display program of the mobile terminal stored in the memory 1005, and further perform the following operations:
在从省电模式切换到充电模式时,获取所述电池图标的第一属性信息,将所述第一属性信息切换为第三属性信息;Obtaining first attribute information of the battery icon, and switching the first attribute information to third attribute information when switching from the power saving mode to the charging mode;
根据所述第三属性信息对电池图标进行调整,并将调整后的电池图标进行展示。The battery icon is adjusted according to the third attribute information, and the adjusted battery icon is displayed.
进一步地,处理器1001可以调用存储器1005中存储的移动终端的电量展示程序,还执行以下操作:Further, the processor 1001 may call the power display program of the mobile terminal stored in the memory 1005, and further perform the following operations:
多次采集充电饱和状态的电量,计算采集的充电饱和状态的电量平均值,将所述电量平均值作为所述预设饱和电量。The electric quantity in the charging saturation state is collected multiple times, and the average value of the electric quantity of the collected charging saturation state is calculated, and the average value of the electric quantity is taken as the preset saturated electric quantity.
进一步地,处理器1001可以调用存储器1005中存储的移动终端的电量展示程序,还执行以下操作:Further, the processor 1001 may call the power display program of the mobile terminal stored in the memory 1005, and further perform the following operations:
实时监控电量信息,在所述电量信息达到预设阈值时,执行所述根据所述当前电量与预设饱和电量确定所述当前电量的比例值的步骤。The power quantity information is monitored in real time, and when the power quantity information reaches a preset threshold, the step of determining the ratio of the current power quantity according to the current power quantity and the preset saturated power quantity is performed.
本实施例通过上述方案,通过用户切换到省电模式时,对电池图标进行调整,从而提高用户体验。 In this embodiment, when the user switches to the power saving mode, the battery icon is adjusted by the above solution, thereby improving the user experience.
基于上述硬件结构,提出本发明移动终端的电量展示方法实施例。Based on the above hardware structure, an embodiment of a power display method of the mobile terminal of the present invention is proposed.
参照图2,图2为本发明移动终端的电量展示方法第一实施例的流程示意图。Referring to FIG. 2, FIG. 2 is a schematic flowchart diagram of a first embodiment of a method for displaying a power of a mobile terminal according to the present invention.
在第一实施例中,所述移动终端的电量展示方法包括以下步骤:In the first embodiment, the method for displaying the power of the mobile terminal includes the following steps:
步骤S10,移动终端在处于省电模式时,获取当前电量;Step S10: The mobile terminal acquires the current power when in the power saving mode;
需要说明的是,所述省电模式可为用户根据实际需求进行模式切换到省电模式,也可为移动终端根据电量达到预设阈值时,自动切换到省电模式。It should be noted that the power saving mode may be performed by the user to switch to the power saving mode according to actual requirements, or may be automatically switched to the power saving mode when the mobile terminal reaches the preset threshold according to the power consumption.
在进入到省电模式后,移动终端会减少亮屏时间,降低屏幕亮度,关闭屏背光灯,减少音视频播放时间,降低音视频的播放音量以及关闭音视频的声音,从而对节约电池的用量,但是用户无法直观感受到电池的实际电量。After entering the power saving mode, the mobile terminal will reduce the brightness time, reduce the screen brightness, turn off the screen backlight, reduce the audio and video playback time, reduce the audio and video playback volume, and turn off the audio and video sounds, thereby saving battery usage. However, the user cannot intuitively feel the actual battery power.
为了提高用户对电池的实际电量的直观感受,用户将移动终端切换到省电模式时,所述移动终端向电池管理模块执行获取当前电量的指令,从而获取到所述移动终端的当前电量。In order to improve the user's intuitive feeling of the actual battery power, when the user switches the mobile terminal to the power saving mode, the mobile terminal performs an instruction to acquire the current power amount to the battery management module, thereby acquiring the current power of the mobile terminal.
步骤S20,根据所述当前电量与预设饱和电量确定对应的当前电量比例;Step S20, determining a current current power ratio according to the current power and the preset saturated power;
所述预设饱和电量可为在所述移动终端中预存的饱和电量的电量值,通过获取到当前电量与预设饱和电量进行对比,获取到当前电量的电量百分比。例如某一移动终端的饱和电量为3000mah,获取到当前电量为1000mah,则将当前电量1000mah与饱和电量3000mah进行对比,获取到当前的电量百分比为30%。The preset saturated electric quantity may be a electric quantity value of the saturated electric quantity pre-stored in the mobile terminal, and the current electric quantity is compared with the preset saturated electric quantity to obtain the electric quantity percentage of the current electric quantity. For example, the saturation power of a mobile terminal is 3000mah, and when the current power is 1000mah, the current power 1000mah is compared with the saturated power 3000mah, and the current power percentage is 30%.
步骤S30,在预设电量范围表中查找所述当前电量比例对应的目标格数;Step S30, searching for a target number of cells corresponding to the current power ratio in the preset power range table;
为了实现电量的可视化,将电池图标中显示的电量转换为分段的显示,从而给用户感觉电量变多。In order to realize the visualization of the electric quantity, the electric quantity displayed in the battery icon is converted into a segmented display, thereby giving the user a feeling of more electric power.
需要说明的是,在所述移动终端中预存有预设电量范围表,所述预设电量范围表可为电量比例与显示的目标格式的对应关系,通过所述对应关系,在获取到当前电量比例的情况下,可查找到与所述当前电量比例对应的目标格数。例如在移动终端中预存的预设电量范围表中的对应关系中,以满格的格数以5格为例进行说明,其中电量的百分比在0-20%时,对应的目标格式以1格的电量进行分段显示,电量的百分比在20-40%时,对应的目标格式以2格的电量进行分段显现,电量的百分比在40-60%时,对应的目标格式以3格的电量进行分段显现,电量的百分比在60-80%时,对应的目标格式以4格的电量进行分段显现,电量的百分比在80-100%时,对应的目标格式以5格的满格形式进行分段显现,当所述一种终端的当前电量百分比为30%时,则所述当前电量的百分比在20-40%的范围内,则将当前电量的目标格式以2格的分段形式进行显示。It should be noted that, in the mobile terminal, a preset power range table is pre-stored, and the preset power range table may be a correspondence between a power ratio and a displayed target format, and the current power is obtained through the corresponding relationship. In the case of the ratio, the number of target cells corresponding to the current power ratio can be found. For example, in the corresponding relationship in the preset power range table pre-stored in the mobile terminal, the full grid number is taken as an example, wherein the percentage of the power is 0-20%, and the corresponding target format is 1 grid. The power is segmented and displayed. When the percentage of power is 20-40%, the corresponding target format is segmented by 2 grids. When the percentage of power is 40-60%, the corresponding target format is 3 grids. Segmentation appears. When the percentage of power is 60-80%, the corresponding target format is segmented by 4 grids. When the percentage of power is 80-100%, the corresponding target format is 5 grids. Performing segmentation display. When the current power percentage of the terminal is 30%, the percentage of the current power is in the range of 20-40%, and the target format of the current power is in the form of 2 segments. Display.
步骤S40,根据所述目标格数对电池图标进行调整,将调整后的电池图标进行展示。In step S40, the battery icon is adjusted according to the target number of cells, and the adjusted battery icon is displayed.
在一般情况下,在用户将移动终端切换到省电模式时,可将电池图标显示为进度条的状态,在这种状态下,可感觉电量会有增多,但是显示不明显,不利于用户体验,用户查看移动终端进入到省电模式的状态,但是电量感觉并没有多大变化。Under normal circumstances, when the user switches the mobile terminal to the power saving mode, the battery icon can be displayed as the status of the progress bar. In this state, the power can be increased, but the display is not obvious, which is not conducive to the user experience. The user checks the state in which the mobile terminal enters the power saving mode, but the power feeling does not change much.
在本实施例中,通过用户将移动终端切换到省电模式,并将电池图标调整为分段显示,从而使用户可直接查看到电池的电量状态,从而提高用户体验。In this embodiment, the user switches the mobile terminal to the power saving mode and adjusts the battery icon to the segment display, so that the user can directly view the battery state of the battery, thereby improving the user experience.
在本实施例中通过用户切换到省电模式时,对电池图标进行调整,从而提高用户体验。In the embodiment, when the user switches to the power saving mode, the battery icon is adjusted to improve the user experience.
进一步地,如图3所示,基于第一实施例提出本发明移动终端的电量展示方法第二实施例,在本实施例中,所述步骤S40,具体包括:Further, as shown in FIG. 3, a second embodiment of the method for displaying the power of the mobile terminal of the present invention is provided based on the first embodiment. In this embodiment, the step S40 includes:
步骤S401,获取电池图标的第一属性信息,根据所述第一属性信息对电池图标进行调整,并将调整后的电池图标进行展示。Step S401: Acquire first attribute information of the battery icon, adjust the battery icon according to the first attribute information, and display the adjusted battery icon.
其中步骤S401,具体包括:Step S401 includes:
步骤S402,获取所述电池图标的第一尺寸信息,根据所述第一尺寸信息对电池图标进行调整,并将调整后的电池图标进行展示。Step S402, acquiring first size information of the battery icon, adjusting the battery icon according to the first size information, and displaying the adjusted battery icon.
在用户将移动终端切换到省电模式时,可将电池图标调整为预设尺寸,即调整为大电池图标进行显示,从而提高用户体验。When the user switches the mobile terminal to the power saving mode, the battery icon can be adjusted to a preset size, that is, adjusted to display a large battery icon, thereby improving the user experience.
在电池图标变大的情况下,电池电量进行分段显示,从而提供给用户更好的直观体验,更容易引导用户使用省电模式。In the case where the battery icon becomes large, the battery power is displayed in segments, thereby providing a better intuitive experience for the user, and it is easier to guide the user to use the power saving mode.
在本实施例中通过用户切换到省电模式时,将电池图标调整为大尺寸显示,从而提高用户体验。In the embodiment, when the user switches to the power saving mode, the battery icon is adjusted to a large size display, thereby improving the user experience.
进一步地,如图4所示,基于第二实施例提出本发明移动终端的电量展示方法第三实施例,在本实施例中,所述步骤S401,具体包括:Further, as shown in FIG. 4, a third embodiment of the power display method of the mobile terminal of the present invention is proposed based on the second embodiment. In this embodiment, the step S401 includes:
步骤S403,获取所述电池图标的第一颜色信息,根据所述第一颜色信息对电池图标进行调整,并将调整后的电池图标进行展示。Step S403: Acquire first color information of the battery icon, adjust a battery icon according to the first color information, and display the adjusted battery icon.
在用户将移动终端切换到省电模式时,可将电池图标的颜色调整为预设颜色,即电池图标颜色调整为深颜色进行显示,从而提高用户体验。When the user switches the mobile terminal to the power saving mode, the color of the battery icon can be adjusted to a preset color, that is, the battery icon color is adjusted to be displayed in a dark color, thereby improving the user experience.
在电池图标颜色调整为深颜色的情况下,电池电量进行分段显示,从而提供给用户更好的直观体验,更容易引导用户使用省电模式。In the case where the battery icon color is adjusted to a dark color, the battery power is displayed in segments, thereby providing a better intuitive experience for the user, and it is easier to guide the user to use the power saving mode.
在本实施例中通过用户切换到省电模式时,将电池图标调整为深颜色显示,从而提高用户体验。In the embodiment, when the user switches to the power saving mode, the battery icon is adjusted to a dark color display, thereby improving the user experience.
进一步地,如图5所示,基于第二实施例提出本发明移动终端的电量展示方法第四实施例,在本实施例中,所述步骤S401,具体包括:Further, as shown in FIG. 5, a fourth embodiment of the method for displaying the power of the mobile terminal of the present invention is provided based on the second embodiment. In this embodiment, the step S401 includes:
步骤S404,获取所述电池图标的第一皮肤信息,根据所述第一皮肤信息对电池图标进行调整,并将调整后的电池图标进行展示。Step S404: Acquire first skin information of the battery icon, adjust a battery icon according to the first skin information, and display the adjusted battery icon.
在用户将移动终端切换到省电模式时,可将电池图标的皮肤调整为预设皮肤,即电池图标皮肤调整为纹理更清晰的皮肤进行显示,从而提高用户体验。When the user switches the mobile terminal to the power saving mode, the skin of the battery icon can be adjusted to the preset skin, that is, the battery icon skin is adjusted to display the skin with clearer texture, thereby improving the user experience.
在电池图标纹理调整为更清晰的皮肤的情况下,电池电量进行分段显示,从而提供给用户更好的直观体验,更容易引导用户使用省电模式。In the case where the battery icon texture is adjusted to a clearer skin, the battery level is displayed in segments, thereby providing a better intuitive experience for the user, and it is easier to guide the user to use the power saving mode.
在本实施例中通过用户切换到省电模式时,将电池图标的皮肤调整为纹理更清晰的皮肤显示,从而提高用户体验。In the embodiment, when the user switches to the power saving mode, the skin of the battery icon is adjusted to a skin display with a clearer texture, thereby improving the user experience.
进一步地,如图6所示,基于第一实施例提出本发明移动终端的电量展示方法第五实施例,在本实施例中,所述步骤S40之后,所述方法还包括:Further, as shown in FIG. 6, the fifth embodiment of the method for displaying the power of the mobile terminal of the present invention is proposed based on the first embodiment. In this embodiment, after the step S40, the method further includes:
步骤S501,在从省电模式切换到普通模式时,获取所述电池图标的第一属性信息,将所述第一属性信息切换为第二属性信息;Step S501, when switching from the power saving mode to the normal mode, acquiring first attribute information of the battery icon, and switching the first attribute information to second attribute information;
所述普通模式可指预设的亮屏时间,预设的屏幕亮度,预设开启屏背光灯,预设音视频播放时间,预设音视频的播放音量,用户可根据实际需求,设定适合的移动终端的音量、屏背光时间等。The normal mode may refer to a preset brightness time, a preset screen brightness, a preset on-screen backlight, a preset audio and video playback time, and a preset audio and video playback volume. The user may set the appropriate according to actual needs. The volume of the mobile terminal, the screen backlight time, and the like.
第一属性为所述移动终端处于省电模式下的各功能的配置属性,例如电池图标变大,电池图标的电量以分段的形式显示,以及电池图标的皮肤纹理更清晰等属性配置。The first attribute is a configuration attribute of each function of the mobile terminal in the power saving mode, for example, the battery icon becomes larger, the battery icon's power is displayed in a segmented form, and the battery icon has a clearer skin texture.
所述第二属性可为电池图标恢复到初始预设尺寸大小,电池图标的电量以进度条或其他的形式显示,以及电池图标的皮肤纹理回复初始状态等。The second attribute may be that the battery icon is restored to the initial preset size, the battery icon's power is displayed in a progress bar or other form, and the skin texture of the battery icon is restored to the initial state.
步骤S502,根据所述第二属性信息对电池图标进行调整,并将调整后的电池图标进行展示。Step S502, the battery icon is adjusted according to the second attribute information, and the adjusted battery icon is displayed.
根据所述第二属性信息将电池图标的属性状态恢复初始状态,并将调整后的电池图标进行展示。And returning the attribute state of the battery icon to the initial state according to the second attribute information, and displaying the adjusted battery icon.
本实施例用户在从省电模式切换到普通模式时,可将电池图标从省电模式的显示状态切换到普通模式的显示状态。In this embodiment, when the user switches from the power saving mode to the normal mode, the battery icon can be switched from the display state of the power saving mode to the display state of the normal mode.
进一步地,如图7所示,基于第一实施例提出本发明移动终端的电量展示方法第六实施例,在本实施例中,所述步骤S40之后,所述方法还包括:Further, as shown in FIG. 7 , a sixth embodiment of the method for displaying the power of the mobile terminal of the present invention is provided based on the first embodiment. In this embodiment, after the step S40, the method further includes:
步骤S503,在从省电模式切换到充电模式时,获取所述电池图标的第一属性信息,将所述第一属性信息切换为第三属性信息;Step S503, when switching from the power saving mode to the charging mode, acquiring first attribute information of the battery icon, and switching the first attribute information to third attribute information;
所述移动终端在处于省电模式时,对所述移动终端进行充电,在插上充电器之后,所述电池图标的电量将显示为充电状态,即以动态充电条的形式进行充电,还可为其他形式,本实施例在此不作限制。When the mobile terminal is in the power saving mode, the mobile terminal is charged, and after the charger is plugged in, the power of the battery icon is displayed as a charging state, that is, charging in the form of a dynamic charging bar, and For other forms, the embodiment is not limited herein.
所述第三属性信息可为显示图标的电量显示以动态的进度条显示充电状态。The third attribute information may display the state of charge with a dynamic progress bar for displaying the power of the icon.
步骤S504,根据所述第三属性信息对电池图标进行调整,并将调整后的电池图标进行展示。Step S504, the battery icon is adjusted according to the third attribute information, and the adjusted battery icon is displayed.
需要说的是,在所述移动终端处于充电状态后,如果拔掉充电线,电池图标还是以第一属性信息的状态进行显示。It should be noted that, after the mobile terminal is in the charging state, if the charging line is unplugged, the battery icon is displayed in the state of the first attribute information.
本实施例通过在移动终端从省电模式在进行充电时,将电池图标的显示状态进行切换,将电池图标的电量显示为充电状态,从而提高用户体验。In this embodiment, when the mobile terminal is charging from the power saving mode, the display state of the battery icon is switched, and the power level of the battery icon is displayed as the charging state, thereby improving the user experience.
进一步地,如图8所示,基于第一实施例提出本发明移动终端的电量展示方法第七实施例,在本实施例中,所述步骤S20之前,所述方法还包括:Further, as shown in FIG. 8 , a seventh embodiment of the method for displaying the power of the mobile terminal of the present invention is provided based on the first embodiment. In the embodiment, before the step S20, the method further includes:
步骤S201,多次采集充电饱和状态的电量,计算采集的充电饱和状态的电量平均值,将所述电量平均值作为所述预设饱和电量。In step S201, the amount of charge in the state of charge saturation is collected multiple times, and the average value of the charge of the collected charge saturation state is calculated, and the average value of the charge is used as the preset saturated power.
为了提高电量比例的准确性,在计算电量的比例之前,预先多次采集充电饱和状态下的电量值,由于充电饱和状态下的电量值出现不同的情况,因此计算多次采集充电饱和状态下的电量值的平均值,将所述平均值作为预设饱和电量,从而使充电饱和状态下的电量值更为精确。In order to improve the accuracy of the power ratio, before calculating the ratio of the power, the power value in the state of charge saturation is collected multiple times in advance, and the power value in the state of charge saturation is different, so the calculation is performed under the condition of multiple acquisition and charge saturation. The average value of the electric quantity value is used as the preset saturated electric quantity, so that the electric quantity value in the state of charging saturation is more accurate.
本实施例通过多次采集充电饱和状态下的电量值,并计算所述电量值的平均值,从而提高计算电量比例的准确性。In this embodiment, the power value in the state of charge saturation is collected multiple times, and the average value of the power value is calculated, thereby improving the accuracy of calculating the power ratio.
此外,本发明实施例还提出一种存储介质,所述存储介质上存储有移动终端的电量展示程序,所述移动终端的电量展示程序被处理器执行时实现如下操作:In addition, the embodiment of the present invention further provides a storage medium, where the storage device stores a power display program of the mobile terminal, and when the power display program of the mobile terminal is executed by the processor, the following operations are implemented:
移动终端在处于省电模式时,获取当前电量;The mobile terminal acquires the current power when in the power saving mode;
根据所述当前电量与预设饱和电量确定对应的当前电量比例;Determining a corresponding current power ratio according to the current power and the preset saturated power;
在预设电量范围表中查找所述当前电量比例对应的目标格数;Finding a target number of the current power ratio in the preset power range table;
根据所述目标格数对电池图标进行调整,将调整后的电池图标进行展示。The battery icon is adjusted according to the target number of cells, and the adjusted battery icon is displayed.
进一步地,所述移动终端的电量展示程序被处理器执行时还实现如下操作:Further, when the power display program of the mobile terminal is executed by the processor, the following operations are also implemented:
获取电池图标的第一属性信息,根据所述第一属性信息对电池图标进行调整,并将调整后的电池图标进行展示。Obtaining first attribute information of the battery icon, adjusting the battery icon according to the first attribute information, and displaying the adjusted battery icon.
进一步地,所述移动终端的电量展示程序被处理器执行时还实现如下操作:Further, when the power display program of the mobile terminal is executed by the processor, the following operations are also implemented:
获取所述电池图标的第一尺寸信息,根据所述第一尺寸信息对电池图标进行调整,并将调整后的电池图标进行展示。Acquiring the first size information of the battery icon, adjusting the battery icon according to the first size information, and displaying the adjusted battery icon.
进一步地,所述移动终端的电量展示程序被处理器执行时还实现如下操作:Further, when the power display program of the mobile terminal is executed by the processor, the following operations are also implemented:
获取所述电池图标的第一颜色信息,根据所述第一颜色信息对电池图标进行调整,并将调整后的电池图标进行展示。Acquiring the first color information of the battery icon, adjusting the battery icon according to the first color information, and displaying the adjusted battery icon.
进一步地,所述移动终端的电量展示程序被处理器执行时还实现如下操作:Further, when the power display program of the mobile terminal is executed by the processor, the following operations are also implemented:
获取所述电池图标的第一皮肤信息,根据所述第一皮肤信息对电池图标进行调整,并将调整后的电池图标进行展示。Acquiring the first skin information of the battery icon, adjusting the battery icon according to the first skin information, and displaying the adjusted battery icon.
进一步地,所述移动终端的电量展示程序被处理器执行时还实现如下操作:Further, when the power display program of the mobile terminal is executed by the processor, the following operations are also implemented:
根据所述第二属性信息对电池图标进行调整,并将调整后的电池图标进行展示。The battery icon is adjusted according to the second attribute information, and the adjusted battery icon is displayed.
进一步地,所述移动终端的电量展示程序被处理器执行时还实现如下操作:Further, when the power display program of the mobile terminal is executed by the processor, the following operations are also implemented:
根据所述第三属性信息对电池图标进行调整,并将调整后的电池图标进行展示。The battery icon is adjusted according to the third attribute information, and the adjusted battery icon is displayed.
进一步地,所述移动终端的电量展示程序被处理器执行时还实现如下操作:Further, when the power display program of the mobile terminal is executed by the processor, the following operations are also implemented:
多次采集充电饱和状态的电量,计算采集的充电饱和状态的电量平均值,将所述电量平均值作为所述预设饱和电量。The electric quantity in the charging saturation state is collected multiple times, and the average value of the electric quantity of the collected charging saturation state is calculated, and the average value of the electric quantity is taken as the preset saturated electric quantity.
进一步地,所述移动终端的电量展示程序被处理器执行时还实现如下操作:Further, when the power display program of the mobile terminal is executed by the processor, the following operations are also implemented:
实时监控电量信息,在所述电量信息达到预设阈值时,执行所述根据所述当前电量与预设饱和电量确定所述当前电量的比例值的步骤。The power quantity information is monitored in real time, and when the power quantity information reaches a preset threshold, the step of determining the ratio of the current power quantity according to the current power quantity and the preset saturated power quantity is performed.
本实施例通过上述方案,通过用户切换到省电模式时,对电池图标进行调整,从而提高用户体验。In this embodiment, when the user switches to the power saving mode, the battery icon is adjusted by the above solution, thereby improving the user experience.
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above are only the preferred embodiments of the present invention, and are not intended to limit the scope of the invention, and the equivalent structure or equivalent process transformations made by the description of the present invention and the drawings are directly or indirectly applied to other related technical fields. The same is included in the scope of patent protection of the present invention.
Claims (10)
- 一种移动终端的电量展示方法,其特征在于,所述方法包括以下步骤: A method for displaying a power of a mobile terminal, characterized in that the method comprises the following steps:移动终端在处于省电模式时,获取当前电量;The mobile terminal acquires the current power when in the power saving mode;根据所述当前电量与预设饱和电量确定对应的当前电量比例;Determining a corresponding current power ratio according to the current power and the preset saturated power;在预设电量范围表中查找所述当前电量比例对应的目标格数;Finding a target number of the current power ratio in the preset power range table;根据所述目标格数对电池图标进行调整,将调整后的电池图标进行展示。The battery icon is adjusted according to the target number of cells, and the adjusted battery icon is displayed.
- 如权利要求1所述的移动终端的电量展示方法,其特征在于,所述根据所述目标格数对电池图标进行调整,将调整后的电池图标进行展示,具体包括:The method for displaying a power quantity of a mobile terminal according to claim 1, wherein the adjusting the battery icon according to the target number of cells and displaying the adjusted battery icon comprises:获取电池图标的第一属性信息,根据所述第一属性信息对电池图标进行调整,并将调整后的电池图标进行展示。Obtaining first attribute information of the battery icon, adjusting the battery icon according to the first attribute information, and displaying the adjusted battery icon.
- 如权利要求2所述的移动终端的电量展示方法,其特征在于,所述第一属性信息包括第一尺寸信息;The method for displaying a power quantity of a mobile terminal according to claim 2, wherein the first attribute information comprises first size information;所述获取电池图标的第一属性信息,根据所述第一属性信息对电池图标进行调整,并将调整后的电池图标进行展示,具体包括:Obtaining the first attribute information of the battery icon, adjusting the battery icon according to the first attribute information, and displaying the adjusted battery icon, specifically:获取所述电池图标的第一尺寸信息,根据所述第一尺寸信息对电池图标进行调整,并将调整后的电池图标进行展示。Acquiring the first size information of the battery icon, adjusting the battery icon according to the first size information, and displaying the adjusted battery icon.
- 如权利要求2所述的移动终端的电量展示方法,其特征在于,所述第一属性信息包括第一颜色信息;The method for displaying a power quantity of a mobile terminal according to claim 2, wherein the first attribute information comprises first color information;所述获取电池图标的第一属性信息,根据所述第一属性信息对电池图标进行调整,并将调整后的电池图标进行展示,具体包括:Obtaining the first attribute information of the battery icon, adjusting the battery icon according to the first attribute information, and displaying the adjusted battery icon, specifically:获取所述电池图标的第一颜色信息,根据所述第一颜色信息对电池图标进行调整,并将调整后的电池图标进行展示。Acquiring the first color information of the battery icon, adjusting the battery icon according to the first color information, and displaying the adjusted battery icon.
- 如权利要求2所述的移动终端的电量展示方法,其特征在于,所述第一属性信息包括第一皮肤信息;The method for displaying a power quantity of a mobile terminal according to claim 2, wherein the first attribute information comprises first skin information;所述获取电池图标的第一属性信息,根据所述第一属性信息对电池图标进行调整,并将调整后的电池图标进行展示,具体包括:Obtaining the first attribute information of the battery icon, adjusting the battery icon according to the first attribute information, and displaying the adjusted battery icon, specifically:获取所述电池图标的第一皮肤信息,根据所述第一皮肤信息对电池图标进行调整,并将调整后的电池图标进行展示。Acquiring the first skin information of the battery icon, adjusting the battery icon according to the first skin information, and displaying the adjusted battery icon.
- 如权利要求1所述的移动终端的电量展示方法,其特征在于,所述根据所述目标格数对电池图标进行调整,将调整后的电池图标进行展示之后,所述方法还包括:The method for displaying a power of a mobile terminal according to claim 1, wherein the method further comprises: after the battery icon is adjusted according to the target number of cells, and the adjusted battery icon is displayed, the method further comprises:在从省电模式切换到普通模式时,获取所述电池图标的第一属性信息,将所述第一属性信息切换为第二属性信息;Obtaining the first attribute information of the battery icon, and switching the first attribute information to the second attribute information when switching from the power saving mode to the normal mode;根据所述第二属性信息对电池图标进行调整,并将调整后的电池图标进行展示;Adjusting the battery icon according to the second attribute information, and displaying the adjusted battery icon;相应地,所述根据所述目标格数对电池图标进行调整,将调整后的电池图标进行展示之后,所述方法还包括:Correspondingly, after the battery icon is adjusted according to the target number of cells, and the adjusted battery icon is displayed, the method further includes:在从省电模式切换到充电模式时,获取所述电池图标的第一属性信息,将所述第一属性信息切换为第三属性信息;Obtaining first attribute information of the battery icon, and switching the first attribute information to third attribute information when switching from the power saving mode to the charging mode;根据所述第三属性信息对电池图标进行调整,并将调整后的电池图标进行展示。The battery icon is adjusted according to the third attribute information, and the adjusted battery icon is displayed.
- 如权利要求1所述的移动终端的电量展示方法,其特征在于,所述根据所述当前电量与预设饱和电量确定所述当前电量的比例值之前,所述方法还包括:The method for displaying a power of a mobile terminal according to claim 1, wherein the method further comprises: before determining the ratio of the current power according to the current power and the preset saturated power, the method further comprising:多次采集充电饱和状态的电量,计算采集的充电饱和状态的电量平均值,将所述电量平均值作为所述预设饱和电量。The electric quantity in the charging saturation state is collected multiple times, and the average value of the electric quantity of the collected charging saturation state is calculated, and the average value of the electric quantity is taken as the preset saturated electric quantity.
- 如权利要求1所述的移动终端的电量展示方法,其特征在于,所述根据所述当前电量与预设饱和电量确定所述当前电量的比例值之前,所述方法还包括:The method for displaying a power of a mobile terminal according to claim 1, wherein the method further comprises: before determining the ratio of the current power according to the current power and the preset saturated power, the method further comprising:实时监控电量信息,在所述电量信息达到预设阈值时,执行所述根据所述当前电量与预设饱和电量确定所述当前电量的比例值的步骤。The power quantity information is monitored in real time, and when the power quantity information reaches a preset threshold, the step of determining the ratio of the current power quantity according to the current power quantity and the preset saturated power quantity is performed.
- 一种移动终端,其特征在于,所述移动终端包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的移动终端的电量展示程序,所述移动终端的电量展示程序配置为实现如权利要求1所述的移动终端的电量展示方法的步骤。A mobile terminal, comprising: a memory, a processor, and a power display program of a mobile terminal stored on the memory and operable on the processor, the power display of the mobile terminal The program is configured to implement the steps of the power display method of the mobile terminal according to claim 1.
- 一种存储介质,其特征在于,所述存储介质上存储有移动终端的电量展示程序,所述移动终端的电量展示程序被处理器执行时实现如权利要求1所述的移动终端的电量展示方法的步骤。 A storage medium, wherein the storage medium stores a power display program of the mobile terminal, and when the power display program of the mobile terminal is executed by the processor, the power display method of the mobile terminal according to claim 1 is implemented. A step of.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201780096292.5A CN111279290A (en) | 2017-08-25 | 2017-08-25 | Electric quantity display method of mobile terminal, mobile terminal and storage medium |
PCT/CN2017/099046 WO2019037082A1 (en) | 2017-08-25 | 2017-08-25 | Method for displaying power level of a mobile terminal, mobile terminal and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2017/099046 WO2019037082A1 (en) | 2017-08-25 | 2017-08-25 | Method for displaying power level of a mobile terminal, mobile terminal and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2019037082A1 true WO2019037082A1 (en) | 2019-02-28 |
Family
ID=65438246
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2017/099046 WO2019037082A1 (en) | 2017-08-25 | 2017-08-25 | Method for displaying power level of a mobile terminal, mobile terminal and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN111279290A (en) |
WO (1) | WO2019037082A1 (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102073577A (en) * | 2011-01-17 | 2011-05-25 | 惠州Tcl移动通信有限公司 | System for displaying electrical quantity of bluetooth headset on portable electronic device and method thereof |
EP2533579A2 (en) * | 2011-06-07 | 2012-12-12 | Lg Electronics Inc. | Mobile terminal and battery power saving mode switching method thereof |
CN103199310A (en) * | 2013-02-05 | 2013-07-10 | 北京奇虎科技有限公司 | Battery power guaranteeing method and battery power guaranteeing apparatus for portable electronic product, and mobile terminal |
CN104168392A (en) * | 2014-09-09 | 2014-11-26 | 北京奇虎科技有限公司 | Mobile terminal and charging/residual use time display method and device thereof |
CN105607727A (en) * | 2015-12-29 | 2016-05-25 | 北京金山安全软件有限公司 | Information display method and device and electronic equipment |
US20160246351A1 (en) * | 2015-02-25 | 2016-08-25 | Verizon Patent And Licensing Inc. | Battery save mode |
-
2017
- 2017-08-25 WO PCT/CN2017/099046 patent/WO2019037082A1/en active Application Filing
- 2017-08-25 CN CN201780096292.5A patent/CN111279290A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102073577A (en) * | 2011-01-17 | 2011-05-25 | 惠州Tcl移动通信有限公司 | System for displaying electrical quantity of bluetooth headset on portable electronic device and method thereof |
EP2533579A2 (en) * | 2011-06-07 | 2012-12-12 | Lg Electronics Inc. | Mobile terminal and battery power saving mode switching method thereof |
CN103199310A (en) * | 2013-02-05 | 2013-07-10 | 北京奇虎科技有限公司 | Battery power guaranteeing method and battery power guaranteeing apparatus for portable electronic product, and mobile terminal |
CN104168392A (en) * | 2014-09-09 | 2014-11-26 | 北京奇虎科技有限公司 | Mobile terminal and charging/residual use time display method and device thereof |
US20160246351A1 (en) * | 2015-02-25 | 2016-08-25 | Verizon Patent And Licensing Inc. | Battery save mode |
CN105607727A (en) * | 2015-12-29 | 2016-05-25 | 北京金山安全软件有限公司 | Information display method and device and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN111279290A (en) | 2020-06-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2018129977A1 (en) | Charging control method and apparatus, storage medium, and computer device | |
WO2017150784A1 (en) | Electronic apparatus and method for controlling charge | |
WO2018161571A1 (en) | Method, device, medium, and electronic apparatus for dynamically adjusting power saving level of terminal | |
WO2018161601A1 (en) | Screen backlight adjusting method, device, storage medium and electronic device | |
WO2018076818A1 (en) | Data backup method, apparatus, electronic device, storage medium, and system | |
WO2017206878A1 (en) | Wakeup lock-based processing method and apparatus, storage medium, and electronic device | |
WO2017057960A1 (en) | Electronic device and method for controlling the same | |
WO2018166199A1 (en) | Method for adjusting precision level of positioning, device, storage medium and electronic device | |
WO2018161592A1 (en) | Method, device, storage medium, and electronic apparatus for changing background grayscale level to save power | |
WO2018145597A1 (en) | Mobile terminal-based screen light-supplementing photographing method and system, and mobile terminal | |
WO2021042566A1 (en) | Quick charging system and method for handheld device, and handheld device | |
WO2015126180A1 (en) | Method for creating a content and electronic device thereof | |
WO2018058835A1 (en) | Call mode monitoring method, system and communication terminal | |
WO2017206870A1 (en) | Sensor shutdown method and apparatus, storage medium, and electronic device | |
WO2018076830A1 (en) | Method and device for adjusting data synchronization cycle, electronic device, storage medium, and system | |
WO2019233190A1 (en) | Display terminal-based text-to-speech conversion method, display terminal, and storage medium | |
WO2021042565A1 (en) | Quick charging system and method for handheld device, and handheld device | |
WO2019114565A1 (en) | Air conditioner adjusting method and device, and storage medium | |
WO2019041356A1 (en) | Method, apparatus, and computer readable storage medium for handling power loss of terminal | |
WO2017206873A1 (en) | Application program shutdown method and apparatus, storage medium, and electronic device | |
WO2020125430A1 (en) | Method and device for eliminating power-off image persistence on panel | |
WO2017206871A1 (en) | Application program shutdown method and apparatus, storage medium, and electronic device | |
WO2016095362A1 (en) | Display terminal and displaying method for screen thereof | |
WO2018034535A1 (en) | Display apparatus and content display method thereof | |
WO2019037082A1 (en) | Method for displaying power level of a mobile terminal, mobile terminal and storage medium |
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: 17922773 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: 17922773 Country of ref document: EP Kind code of ref document: A1 |