WO2022253178A1 - 电量提示方法和装置 - Google Patents

电量提示方法和装置 Download PDF

Info

Publication number
WO2022253178A1
WO2022253178A1 PCT/CN2022/095954 CN2022095954W WO2022253178A1 WO 2022253178 A1 WO2022253178 A1 WO 2022253178A1 CN 2022095954 W CN2022095954 W CN 2022095954W WO 2022253178 A1 WO2022253178 A1 WO 2022253178A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
current interface
display mode
power
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2022/095954
Other languages
English (en)
French (fr)
Inventor
李阳勤
王建辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Hangzhou Co Ltd
Original Assignee
Vivo Mobile Communication Hangzhou Co Ltd
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 Vivo Mobile Communication Hangzhou Co Ltd filed Critical Vivo Mobile Communication Hangzhou Co Ltd
Publication of WO2022253178A1 publication Critical patent/WO2022253178A1/zh
Priority to US18/520,550 priority Critical patent/US20240094893A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/323Visualisation of programs or trace data
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/53Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • G06F1/3212Monitoring battery levels, e.g. power saving mode being initiated when battery voltage goes below a certain level
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/04817Interaction 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 using icons
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/16Sound input; Sound output
    • G06F3/165Management of the audio stream, e.g. setting of volume, audio stream path
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • the present application belongs to the technical field of electronic equipment, and in particular relates to a method and a device for indicating battery capacity.
  • the purpose of the embodiments of the present application is to provide a method and device for indicating battery capacity, which can solve the problem of poor effect of the existing battery indicator.
  • the embodiment of the present application provides a power prompt method, the method comprising:
  • the target adjustment operation is performed according to the display mode of the current interface, wherein the target adjustment operation is associated with the display mode of the current interface, and the display mode of the current interface includes a full-screen mode or a non-full-screen mode.
  • the embodiment of the present application provides a power prompt device, the device includes:
  • An acquisition module configured to acquire the display mode of the current interface of the electronic device when the electronic device is in an uncharged state and the power of the electronic device is less than a first preset power
  • An adjustment module configured to perform a target adjustment operation according to the display mode of the current interface, wherein the target adjustment operation is associated with the display mode of the current interface, and the display mode of the current interface includes a full-screen mode or a non-full-screen mode .
  • an embodiment of the present application provides an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored in the memory and operable on the processor, and the program or instruction is The processor implements the steps of the method described in the first aspect when executed.
  • an embodiment of the present application provides a readable storage medium, on which a program or an instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented .
  • the embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions, so as to implement the first aspect the method described.
  • a computer program/program product is provided, the computer program/program product is stored in a non-transitory storage medium, and the program/program product is executed by at least one processor to implement the first aspect The steps of the method.
  • the power prompt method of this embodiment when the electronic device is in an uncharged state and the power of the electronic device is less than the first preset power, it is necessary to obtain the interface currently displayed by the electronic device, that is, the display mode of the current interface, by executing The target adjustment operation associated with the display mode of the current interface realizes the power prompt. Since the display mode of the current interface is considered during the adjustment process, the target adjustment operation associated with the display mode is performed to realize the power prompt of the electronic device , so that the prompting effect can be improved.
  • FIG. 1 is one of the flow charts of the power prompt method provided by the embodiment of the present application.
  • Fig. 2 is the second flow chart of the power prompt method provided by the embodiment of the present application.
  • Fig. 3 is the third flowchart of the power prompt method provided by the embodiment of the present application.
  • Fig. 4 is a schematic diagram of a power prompt device provided in an embodiment of the present application.
  • Fig. 5 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • FIG. 6 is a schematic diagram of a hardware structure of an electronic device provided by an embodiment of the present application.
  • the present application provides a power prompt method of an embodiment, the method includes:
  • Step 101 Acquiring the display mode of the current interface of the electronic device when the electronic device is in an uncharged state and the power of the electronic device is less than a first preset power.
  • the current power of the electronic device can be obtained first, and the power can be obtained in real time or at a preset time interval (for example, 2 minutes) etc.) to obtain power. If the electronic device is in an uncharged state and the electric power of the electronic device is less than the first preset electric power, the running interface currently displayed by the electronic device, that is, the display mode of the current interface, can be acquired.
  • the display mode may include a full-screen mode and a non-full-screen mode, and the display mode of the current interface of the above-mentioned electronic device may be a full-screen mode or a non-full-screen mode.
  • Step 102 Perform a target adjustment operation according to the display mode of the current interface, where the target adjustment operation is associated with the display mode of the current interface.
  • a target adjustment operation corresponding to the display mode of the current interface is performed, so as to realize the power prompt. It can be understood that different adjustment operations can be performed for different display modes, that is, for different display modes, the power prompt is implemented in different ways.
  • the display mode can include full-screen display mode and non-full-screen display mode.
  • the status bar will not be displayed, that is, time information, battery information, etc. will not be displayed; in the non-full-screen display mode, the status bar will not be displayed. displayed on the top of the display interface.
  • the power prompt method of this embodiment when the electronic device is in an uncharged state and the power of the electronic device is less than the first preset power, it is necessary to obtain the current interface currently displayed by the electronic device, that is, the display mode of the current interface, by Execute the target adjustment operation associated with the display mode of the current interface to realize the power prompt. Since the display mode of the current interface is considered during the adjustment process, the target adjustment operation associated with the display mode is performed to realize the power of the electronic device. Tips, like this, can improve the hint effect.
  • the target adjustment operation is performed according to the display mode of the current interface, including:
  • the display mode of the current interface is the full screen mode
  • adjust the target attribute parameter of the electronic device wherein the target attribute parameter includes at least one of a volume parameter and a screen display parameter.
  • a prompt can be provided by adjusting the target attribute parameter of the electronic device, that is, the user can be reminded through the change of the attribute parameter.
  • At least one of the attribute parameters such as the volume parameter and the screen display parameter of the electronic device can be adjusted to prompt the user, for example, the attribute parameters such as the volume parameter and the screen display parameter of the electronic device can be reduced to realize the prompt
  • the power prompt effect can be improved.
  • the target adjustment operation is performed according to the display mode of the current interface, including:
  • the status bar of the electronic device can be enlarged, and the status bar includes a power indicator. It is understandable that after the status bar is enlarged, it will affect the status of other windows in the current interface.
  • the size of the display means that the user is more likely to see the power mark in the status bar, and because it affects the user's viewing of other windows in the current interface, the effect of prompting the user to charge through the power mark in the status bar can be enhanced.
  • the power symbol in the status bar can also be enlarged to enhance the power prompt.
  • the display area of other windows in the current interface of the electronic device except the status bar area is reduced. In this way, the user can be further prompted and the prompting effect can be enhanced.
  • the display mode of the current interface after performing the target adjustment operation, it further includes:
  • first prompt information is output, and the first prompt information is used for prompting to charge the electronic device.
  • the user's adjustment input and the adjustment direction of the target adjustment operation may be opposite, that is, the user's adjustment input may be a callback operation for the target adjustment operation. For example, if the adjustment direction of the target adjustment operation is to decrease, then the adjustment direction of the user's adjustment input is to increase, and if the adjustment direction of the target adjustment operation is to increase, then the adjustment direction of the adjustment input is to decrease.
  • the above-mentioned adjustment input is an adjustment input to the target attribute parameter of the electronic device, wherein, if the target attribute parameter of the electronic device is adjusted If the attribute parameter is to reduce the target attribute parameter, the user’s adjustment input is an increase input to the target attribute parameter. If the adjustment target attribute parameter of the electronic device is to increase the target attribute parameter, then the adjustment input is an adjustment input to the target attribute parameter. .
  • the target adjustment operation includes: adjusting the volume parameter of the electronic device, or adjusting the screen display parameter of the electronic device, or adjusting both at the same time
  • the volume of the electronic device after the target adjustment operation is changed from the first volume to If the volume is adjusted to the second volume, or the brightness of the screen is adjusted from the first brightness to the second brightness, then the user’s adjustment input can be understood as, because the user perceives a change in the electronic device, and the change has affected the user’s operation and viewing, Therefore, the user adjusts the second volume to the third volume, or adjusts the brightness of the screen from the second brightness to the third brightness by adjusting the input.
  • the target adjustment operation is adjusted in a direction that hinders the user's operation, that is, the second volume may be lower than the first volume, the second brightness may be lower than the first brightness, and the user's adjustment input is to adjust the attribute information To be normal, that is, the third volume may be greater than the second volume, and the third brightness may be higher than the second brightness.
  • the first volume is the same as the third volume, whether the first brightness is the same as the second brightness is not limited here.
  • the above adjustment input includes shrinking the status bar At least one of an input and a zoomed out input to the battery level icon in the status bar.
  • the target adjustment operation can be performed to provide a prompt
  • the first prompt message can be output to enhance the prompt effect.
  • the first prompt information may be displayed, so as to enhance the user's emphasis on the prompt information and improve the prompt effect.
  • the first prompt information can be used to prompt to charge the electronic device. As an example, it can also prompt that the battery of the electronic device will be damaged if the electronic device is not charged, that is, the first prompt information can not only prompt Charging, and can prompt the risk of not charging.
  • the first prompt information is output, including:
  • a first window is superimposed and displayed on the current interface, and the first prompt information is included in the first window.
  • the display mode of the current interface is full-screen mode, it means that the current interface is displayed on the entire screen of the electronic device. For example, when the display mode is in full-screen mode in a game scene, the entire screen displays the game screen. For example, when the video is playing in full-screen mode, the entire screen displays the playing video. For another example, when the novel reading scene is in full-screen mode, the novel content page is displayed on the entire screen. In full-screen mode, since the current interface fills the entire screen, if you just output a prompt in the status bar or turn the power indicator in the status bar red to remind the user that the power is not enough, and if you do not exit the full-screen mode, the user will not see the prompt , the hint is easily overlooked.
  • the barrage prompt information can be displayed in the current interface to realize the battery prompt, that is, when the display mode is full-screen mode, through
  • the first prompt information is displayed in a barrage mode
  • the first prompt information is the barrage prompt information for users to view.
  • a pop-up window can be displayed on the basis of the current interface, that is, the first window, and the first prompt information is included in the first window to realize the power prompt. That is, in the case of different display modes, different ways are used to output the first prompt information, so as to realize the power prompt and improve the flexibility of the power prompt.
  • the electronic device when the electronic device is in an uncharged state and the power of the electronic device is less than the first preset power, it is necessary to obtain the display mode of the current interface of the electronic device, and according to the display mode of the current interface of the electronic device
  • the mode determines the prompt method, that is, when the display mode of the current interface is full-screen mode, the barrage prompt information is displayed in the current interface to realize the power prompt, so that the user can view the prompt information on the current interface displayed, and improve the prompt effect .
  • the display mode of the current interface is non-full-screen mode
  • the first window is superimposed on the current interface, and the first prompt information is included in the first window to realize the power prompt, so that the user can display the first window in the displayed first window.
  • the electronic device uses different prompting methods to output prompt information in different display modes, so as to prompt the user to charge the electronic device, improve the flexibility of the power prompt, and the like.
  • the method when the power of the electronic device is less than the first preset power, the method further includes:
  • the electric power of the electronic device is less than the second preset electric power
  • the data of the first application running in the electronic device is saved, and the second preset electric power is less than the first preset electric power.
  • the first preset power level is a lower power threshold at which the electronic device needs to be charged
  • the second preset power level may be a lower power threshold at which the electronic device is about to be shut down.
  • the target adjustment operation can be performed to prompt the user to charge the electronic device. If the user does not charge the electronic device, the power will gradually decrease as the electronic device is used. Reduced, when the power of the electronic device is less than the second preset power, the data of the first application running in the electronic device can be saved, so as to prevent the loss of the data of the first application due to the shutdown due to power consumption, so as to achieve the first Application data protection.
  • saving may be performed every preset time period, for example, saving is performed every 2 minutes.
  • saving the data of the first application running in the electronic device includes at least one of the following:
  • the preset application list is included, and the preset application list has the same first target application as the running application of the electronic device, save the data of the first target application running in the electronic device;
  • Displaying a second window includes information of the running application of the electronic device; receiving a first input from the user on the information of the second target application in the running application; in response to the first input, saving the second target application running in the electronic device data of the target application;
  • the data can be saved according to the user's selection of the application, and the second window can be displayed, and the user can select the information (such as the name, etc.) of the running application displayed in the second window, and the first input selected
  • the data of the second target application that is, the first application includes the second target application, so as to avoid the loss of the data of the second target application due to shutdown of the electronic device due to insufficient power. It is also possible to not only save the data of the first target application in the preset application list that is the same as the running applications of the electronic device, but also save the data of the second target application selected by the first input.
  • Step 202 Determine the display mode of the current interface of the electronic device.
  • full screen There are mainly two display modes, full screen and non-full screen.
  • scenarios in full-screen mode may include but not limited to games, video playback, video calls, mobile phone calls, novel reading, etc.
  • Other states that are not in full-screen mode are collectively referred to as non-full-screen modes.
  • Step 203 Decrease the volume parameter of the electronic device, and display barrage prompt information in the current interface when the user's input of increasing the volume parameter is received.
  • the display mode when the display mode is full-screen mode, reduce attribute parameters such as volume, and then output a barrage prompt to charge when receiving an adjustment input from the user to adjust (for example, increase) the volume.
  • step 205 may also be executed.
  • step 204 may be performed:
  • Step 204 Enlarge the status bar, and display the first window superimposed on the current interface when the user's input of zooming out the status bar is received.
  • the power sign in the status bar can be gradually enlarged to highlight it, and the power prompt effect can be improved to prompt the user to charge.
  • the first window can be displayed superimposed on the current interface, that is, the user can be prompted to charge through a pop-up window. Charging will cause damage to the battery of the mobile phone, please connect to the power supply as soon as possible", requires the user to click confirm or cancel, that is, when the second input from the user on the first window is received, the display of the first window is canceled. Make sure the user does receive the prompt. It can also be set to prompt once every 2 minutes. After the first window is displayed, step 205 may also be executed.
  • Step 205 Detect whether the electronic device is connected to a power source.
  • FIG. 3 it is a flow chart of a power prompt method in another embodiment, and the process is as follows:
  • Step 301 Detect whether the current power of the electronic device is less than 5%.
  • step 302 can be executed.
  • Step 302 Detect whether the electronic device includes a preset application list.
  • step 303 it is detected whether there is a preset application list that needs to save data, and if there is no preset application list, step 303 can be performed.
  • Step 303 A second window pops up.
  • the information of the currently running application is displayed through the second window, allowing the user to independently select the application that needs to save data.
  • Step 304 receiving a user's first input of information on a second target application among running applications
  • the user makes a first input in the second window.
  • the application that needs to save data can be selected, and the order of saving the selected applications can be determined through the first input.
  • Step 306 can then be performed.
  • the first application Include the second target application.
  • Step 305 Detect whether the same first target application exists in the preset application list and the running applications of the electronic device.
  • step 306 can be executed, at this time, the first application includes the first target application.
  • a power prompt device 400 As shown in FIG. 4 , an embodiment of a power prompt device 400 is provided, and the device 400 includes:
  • the acquisition module 401 is used to acquire the display mode of the current interface of the electronic device when the electronic device is in an uncharged state and the power of the electronic device is less than the first preset power;
  • the adjustment module 402 is configured to perform a target adjustment operation according to the display mode of the current interface, wherein the target adjustment operation is associated with the display mode of the current interface, and the display mode of the current interface includes a full-screen mode or a non-full-screen mode.
  • the target adjustment operation is performed according to the display mode of the current interface, including:
  • the receiving module is configured to receive the user's adjustment input after performing the target adjustment operation according to the display mode of the current interface
  • the first prompt information is output, including:
  • the device 400 also includes:
  • the saving module is used to save the data of the first application running in the electronic device if the power of the electronic device is less than the first preset power, and the second preset power is less than the second preset power. less than the first preset power.
  • the preset application list is included, and the preset application list has the same first target application as the running application of the electronic device, save the data of the first target application running in the electronic device;
  • Displaying a second window includes information of the running application of the electronic device; receiving a first input from the user on the information of the second target application in the running application; in response to the first input, saving the second target application running in the electronic device data of the target application;
  • the first application includes at least one of the first target application and the second target application.
  • the power prompting device in the embodiment of the present application may be a device, or a component, an integrated circuit, or a chip in a terminal.
  • the device may be a mobile electronic device or a non-mobile electronic device.
  • the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle electronic device, a wearable device, an Ultra-Mobile personal computer (Ultra-Mobile [personal Computer, UMPC]), a netbook or a personal digital assistant (Personal Digital Assistant, PDA), etc.
  • Non-mobile electronic devices can be network attached storage (Network Attached Storage, NAS), personal computer (Personal Computer, PC), television (Television, TV), teller machine or self-service machine, etc. Examples are not specifically limited.
  • the power prompt device in the embodiment of the present application may be a device with an operating system.
  • the operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, which are not specifically limited in this embodiment of the present application.
  • the power indicator device provided in the embodiment of the present application can realize the various processes realized in the above-mentioned embodiments of the power indicator method, for example, can realize the various processes realized in the method embodiments shown in FIG. 1 to FIG. 3 .
  • the embodiment of the present application also provides an electronic device 500, including a processor 501, a memory 502, and a program or instruction stored in the memory 502 and operable on the processor 501.
  • the program when the instruction is executed by the processor 501, the various processes of the above embodiments of the battery prompting method can be realized, and the same technical effect can be achieved. To avoid repetition, details are not repeated here.
  • the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
  • FIG. 6 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
  • the electronic device 600 includes but is not limited to: a radio frequency unit 601, a network module 602, an audio output unit 603, an input unit 604, a sensor 605, a display unit 606, a user input unit 607, an interface unit 608, a memory 609, and a processor 610, etc. part.
  • the electronic device 600 can also include a power supply (such as a battery) for supplying power to various components, and the power supply can be logically connected to the processor 610 through the power management system, so that the management of charging, discharging, and function can be realized through the power management system. Consumption management and other functions.
  • a power supply such as a battery
  • the structure of the electronic device shown in FIG. 6 does not constitute a limitation to the electronic device, and the electronic device may include more or fewer components than shown in the figure, or combine some components, or arrange different components, which will not be repeated here. .
  • the processor 610 is configured to acquire the display mode of the current interface of the electronic device when the electronic device is in an uncharged state and the power of the electronic device is less than a first preset power;
  • the processor 610 is configured to perform a target adjustment operation according to a display mode of the current interface, wherein the target adjustment operation is associated with the display mode of the current interface, and the display mode of the current interface includes a full-screen mode or a non-full-screen mode.
  • the target adjustment operation is performed according to the display mode of the current interface, including:
  • the display mode of the current interface is the full screen mode
  • adjust the target attribute parameter of the electronic device wherein the target attribute parameter includes at least one of a volume parameter and a screen display parameter.
  • the target adjustment operation is performed according to the display mode of the current interface, including:
  • saving the data of the first application running in the electronic device includes at least one of the following:
  • Displaying a second window includes information of the running application of the electronic device; receiving a first input from the user on the information of the second target application in the running application; in response to the first input, saving the second target application running in the electronic device data of the target application;
  • the embodiment of the present application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions to realize the above-mentioned power prompt method embodiment
  • the chip includes a processor and a communication interface
  • the communication interface is coupled to the processor
  • the processor is used to run programs or instructions to realize the above-mentioned power prompt method embodiment
  • the embodiment of the present application also provides a computer program product, the computer program product is stored in a non-transitory storage medium, and the computer program product is executed by at least one processor to implement the method embodiment shown in Figure 1
  • Each process can achieve the same technical effect, so in order to avoid repetition, it will not be repeated here.
  • the term “comprising”, “comprising” or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the phrase “comprising a " does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that element.
  • the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved. Functions are performed, for example, the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • Software Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Data Mining & Analysis (AREA)
  • Quality & Reliability (AREA)
  • Optics & Photonics (AREA)
  • Environmental & Geological Engineering (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)
  • Power Sources (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

本申请公开了一种电量提示方法和装置,属于电子设备领域。该方法包括:在电子设备处于未充电状态,且电子设备的电量小于第一预设电量的情况下,获取电子设备当前界面的显示模式;根据当前界面的显示模式,执行目标调整操作,其中,目标调整操作与当前界面的显示模式关联,当前界面的显示模式包括全屏模式或非全屏模式。

Description

电量提示方法和装置
相关申请的交叉引用
本申请主张在2021年05月31日在中国提交的中国专利申请No.202110599483.1的优先权,其全部内容通过引用包含于此。
技术领域
本申请属于电子设备技术领域,具体涉及一种电量提示方法和装置。
背景技术
目前,用户在使用电子设备过程中,经常遇到设备电量即将耗尽但没有及时充电的情况,比如专注在打游戏或者沉迷于电视剧中等,在这些情况下,电子设备一般通过全屏模式显示,在进行电量提示的过程中,是将状态栏中电量标记调整为红色或者在状态栏输出提示(例如当前电量仅剩余X%),以提醒用户充电。然而,上述电量提示,容易被用户忽视,电量提示效果较差。
发明内容
本申请实施例的目的是提供一种电量提示方法和装置,能够解决现有电量提示效果较差的问题。
第一方面,本申请实施例提供了一种电量提示方法,所述方法包括:
在电子设备处于未充电状态,且所述电子设备的电量小于第一预设电量的情况下,获取所述电子设备当前界面的显示模式;
根据所述当前界面的显示模式,执行目标调整操作,其中,所述目标调整操作与所述当前界面的显示模式关联,所述当前界面的显示模式包括全屏模式或非全屏模式。
第二方面,本申请实施例提供了一种电量提示装置,所述装置包括:
获取模块,用于在电子设备处于未充电状态,且所述电子设备的电量小于第一预设电量的情况下,获取所述电子设备当前界面的显示模式;
调整模块,用于根据所述当前界面的显示模式,执行目标调整操作,其 中,所述目标调整操作与所述当前界面的显示模式关联,所述当前界面的显示模式包括全屏模式或非全屏模式。
第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的方法的步骤。
第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的方法的步骤。
第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的方法。
第六方面,提供了一种计算机程序/程序产品,所述计算机程序/程序产品被存储在非瞬态的存储介质中,所述程序/程序产品被至少一个处理器执行以实现如第一方面所述的方法的步骤。
在本实施例的电量提示方法中,在电子设备处于未充电状态,且电子设备的电量小于第一预设电量的情况下,需获取电子设备当前显示的界面即当前界面的显示模式,通过执行与当前界面的显示模式关联的目标调整操作,实现电量提示,由于在执行调整过程中,考虑了当前界面的显示模式,执行的是与显示模式关联的目标调整操作,以实现电子设备的电量提示,如此,可提高提示效果。
附图说明
图1是本申请实施例提供的电量提示方法的流程图之一;
图2是本申请实施例提供的电量提示方法的流程图之二;
图3是本申请实施例提供的电量提示方法的流程图之三;
图4是本申请实施例提供的电量提示装置的示意图;
图5是本申请实施例提供的电子设备的结构示意图
图6是本申请实施例提供的电子设备的硬件结构示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员获得的所有其他实施例,都属于本申请保护的范围。
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的电量提示方法进行详细地说明。
如图1所示,本申请提供一种实施例的电量提示方法,该方法包括:
步骤101:在电子设备处于未充电状态,且电子设备的电量小于第一预设电量的情况下,获取电子设备当前界面的显示模式。
该方法可应用在电子设备,由电子设备执行该方法,在本申请实施例的电量提示方法中,可先获取电子设备当前的电量,可实时获取电量或每间隔预设时长(例如,2分钟等)获取电量。若在电子设备处于未充电状态,且电子设备的电量小于第一预设电量,则可获取电子设备当前显示的运行界面即当前界面的显示模式。例如,显示模式可包括全屏模式和非全屏模式,上述电子设备的当前界面的显示模式可以是全屏模式或非全屏模式,需要说明的是,不是全屏模式的状态均可称为非全屏模式。
步骤102:根据当前界面的显示模式,执行目标调整操作,其中,目标调整操作与当前界面的显示模式关联。
也即是在获取当前界面的显示模式后,执行与当前界面的显示模式对应的目标调整操作,以实现电量提示。可以理解为,不同显示模式,可执行不同的调整操作,即对于不同的显示模式,通过不同的方式实现电量提示。
能够理解的,显示模式可以包括全屏显示模式和非全屏显示模式,在全屏显示模式下,不会显示状态栏,即时间信息、电量信息等均不会显示;在非全屏显示模式在,状态栏显示在显示界面上方。
在本实施例的电量提示方法中,在电子设备处于未充电状态,且电子设备的电量小于第一预设电量的情况下,需获取电子设备当前显示的当前界面即当前界面的显示模式,通过执行与当前界面的显示模式关联的目标调整操作,实现电量提示,由于在执行调整过程中,考虑了当前界面的显示模式,执行的是与显示模式关联的目标调整操作,以实现电子设备的电量提示,如此,可提高提示效果。
在一个实施例中,根据当前界面的显示模式,执行目标调整操作,包括:
在当前界面的显示模式为全屏模式的情况下,调整电子设备的目标属性参数,其中,目标属性参数包括音量参数和屏幕显示参数中的至少一项。
也即是,在当前界面的显示模式为全屏模式的情况下,可通过调节电子设备的目标属性参数来进行提示,即通过属性参数的变化,以提醒用户。
在本实施例中,可调整电子设备的音量参数和屏幕显示参数等属性参数中的至少一项,以提示用户,例如,可降低电子设备的音量参数和屏幕显示参数等属性参数,实现提示,可提高电量提示效果。
在一个实施例中,根据当前界面的显示模式,执行目标调整操作,包括:
在当前界面的显示模式为非全屏模式的情况下,执行以下至少一项:
将电子设备的状态栏放大;
放大状态栏中的电量标志。
也即是,在当前界面的显示模式为非全屏模式的情况下,可放大电子设备的状态栏,状态栏中包括电量标志,能够理解的,状态栏放大后,会影响当前界面中其他窗口的显示大小,用户查看到状态栏中电量标志的可能性越大,且由于影响到用户对当前界面中其他窗口的查看,可以增强通过状态栏中电量标志提示用户充电的效果。另外,也可以放大状态栏中的电量标志,以增强电量的提示。作为一个示例,在将电子设备的状态栏放大的情况下,电子设备的当前界面中除状态栏区域外的其他窗口的显示面积减小,如此,可进一步对用户进行提示,增强提示效果。
在一个实施例中,根据当前界面的显示模式,执行目标调整操作之后,还包括:
接收用户的调整输入;
响应于调整输入,输出第一提示信息,第一提示信息用于提示对电子设备进行充电。
可以理解的,上述用户的调整输入与目标调整操作的调整方向可以相反,即用户的调整输入可以是针对目标调整操作的回调操作。例如,若目标调整操作的调整方向为调小,则用户的调整输入的调整方向为调大,若目标调整操作的调整方向为调大,则调整输入的调整方向为调小。
可选地,若在当前界面的显示模式为全屏模式的情况下,调整电子设备的目标属性参数,则上述调整输入为对电子设备的目标属性参数的调整输入,其中,若调整电子设备的目标属性参数是降低目标属性参数,则用户的调整输入为对目标属性参数的调大输入,若调整电子设备的目标属性参数是调大目标属性参数,则调整输入为对目标属性参数的调小输入。
示例性的,在执行目标调整操作包括:调整电子设备的音量参数,或者调整电子设备的屏幕显示参数,或者两者同时调整的情况下,执行目标调整操作后的电子设备的音量从第一音量调整为第二音量,或者,屏幕亮度从第一亮度调整为第二亮度,那么用户的调整输入可以理解为,由于用户感知到电子设备的变化,而该变化已经影响到用户的操作和观看,因此,用户通过调整输入,将第二音量调整为第三音量,或者,将屏幕亮度从第二亮度调整为第三亮度。能够理解的,目标调整操作是朝向对用户操作有障碍的方向调整的,即第二音量可以小于第一音量,第二亮度可以低于第一亮度,而用户的调整输入是将属性信息又调整至正常,即第三音量可以是大于第二音量,第三亮度可以是高于第二亮度的。具体地,第一音量和第三音量是否相同,第一亮度和第二亮度是否相同,这里不作限定。
可选地,若在当前界面的显示模式为非全屏模式的情况下,执行将电子设备的状态栏放大和放大状态栏中的电量标志中的一项,则上述调整输入包括对状态栏的缩小输入和对状态栏中的电量标志的缩小输入中的至少一项。
本申请实施例中,不但可通过执行目标调整操作来进行提示,而且可以 输出第一提示提示信息,增强提示效果。进一步第,在检测到用户对电子设备的回调操作,则可显示第一提示信息,以增强用户对于该提示信息的重视程度,提高提示效果。
需要理解的是,第一提示信息可以用于提示对电子设备进行充电,作为一个示例,还可提示若不对电子设备进行充电将会对电子设备的电池造成损害,即第一提示信息不但可提示充电,而且可提示不充电的风险。
在一个实施例中,输出第一提示信息,包括:
在当前界面的显示模式为全屏模式的情况下,在当前界面中显示弹幕提示信息;或者
在当前界面的显示模式为非全屏模式的情况下,在当前界面上叠加显示第一窗口,在第一窗口中包括第一提示信息。
若当前界面的显示模式为全屏模式,表示电子设备的整个屏幕中显示当前界面,例如,在游戏场景下处于全屏模式时,整个屏幕均显示游戏画面。例如,在视频播放场景下处于全屏模式时,整个屏幕显示播放的视频画面。又例如,在小说阅读场景下处于全屏模式时,小说内容页面显示在整个屏幕中。在全屏模式下,由于当前界面充斥整个屏幕,若只是通过在状态栏输出提示或将状态栏中的电量标志变红以提示电量不足以提示用户,且若不退出全屏模式,用户查看不到提示,提示容易被忽视。从而,在本实施例中,在当前界面的显示模式为全屏模式的情况下,可在当前界面中显示弹幕提示信息,实现电量提示,也即是在显示模式为全屏模式的情况下,通过弹幕方式显示第一提示信息,第一提示信息即为弹幕提示信息,以便用户查看。若当前界面的显示模式为非全屏模式,可在当前界面的基础上显示弹窗,即第一窗口,在第一窗口中包括第一提示信息,实现电量的提示。也即是,在显示模式不同的情况下,采用不同的方式输出第一提示信息,实现电量提示,提高电量提示的灵活性。
在本实施例的电量提示方法中,在电子设备处于未充电状态,且电子设备的电量小于第一预设电量的情况下,需获取电子设备当前界面的显示模式,根据电子设备当前界面的显示模式确定提示方式,即在当前界面的显示模式为全屏模式的情况下,是在当前界面中显示弹幕提示信息,实现电量提示, 以便用户能够在显示的当前界面上查看提示信息,提高提示效果。在当前界面的显示模式为非全屏模式的情况下,是在当前界面上叠加显示第一窗口,在第一窗口中包括第一提示信息,实现电量提示,便于用户能够在显示的第一窗口中上查看提示信息。在本实施例中,电子设备在不同的显示模式下,采用不同给的提示方式进行提示信息的输出,以提示用户对电子设备进行充电,提高电量提示的灵活性等。
在一个实施例中,在电子设备的电量小于第一预设电量的情况下,方法还包括:
若电子设备的电量小于第二预设电量,则保存电子设备中运行的第一应用的数据,第二预设电量小于第一预设电量。
可以理解的,第一预设电量为电子设备需要充电的较低电量阈值,第二预设电量可以为电子设备即将关机的更低电量阈值。
在电子设备的电量小于第一预设电量的情况下,可通过执行目标调整操作,以提示用户对电子设备进行充电,若用户未对电子设备进行充电,随着电子设备的使用,电量会逐渐降低,在电子设备的电量小于第二预设电量的情况下,可保存电子设备中运行的第一应用的数据,以防止因为电量的消耗关机导致第一应用的数据的丢失,实现对第一应用的数据的保护。
作为一个示例,可每隔预设时长保存一次,例如,每隔2分钟进行一次保存。
在一个实施例中,保存电子设备中运行的第一应用的数据,包括以下至少一项:
在包括预设应用列表,且预设应用列表与电子设备的运行应用存在相同的第一目标应用的情况下,保存电子设备中运行的第一目标应用的数据;
显示第二窗口,第二窗口中包括电子设备的运行应用的信息;接收用户对运行应用中的第二目标应用的信息的第一输入;响应于第一输入,保存电子设备中运行的第二目标应用的数据;
其中,第一应用包括第一目标应用和第二目标应用中的至少一项。
需要说明的是,预设应用列表中的应用为预先设置的需要保存数据的应用,若预先没有设置需要保存数据的应用,则可以理解为预设应用列表为空, 或者不包括预设应用列表。在本实施例中,可检测预设应用列表与电子设备的运行应用中是否存在相同的应用,在预设应用列表与电子设备的运行应用存在相同的第一目标应用的情况下,表示预设应用列表与电子设备的运行应用中均包括第一目标应用,即正在运行的应用中包括预先设置的需要保存数据的第一目标应用,如此,可保存电子设备中运行的第一目标应用的数据,即第一应用包括第一目标应用,避免因为电子设备电量不足导致关机使第一目标应用的数据丢失。另外,可根据用户对应用的选择,进行数据保存,即可显示第二窗口,用户可对第二窗口中显示的运行应用的信息(例如,名称等)进行选择,可保存第一输入选中的第二目标应用的数据,即第一应用包括第二目标应用,避免因为电子设备电量不足导致关机使第二目标应用的数据丢失。也可以既保存预设应用列表与电子设备的运行应用中相同的第一目标应用的数据,又保存第一输入选中的第二目标应用的数据。需要说明的是,可以是不包括预设应用列表的情况下显示第二窗口,也可以在预设应用列表与电子设备的运行应用不存在相同的第一目标应用的情况下显示第二窗口,也可以是在预设应用列表与电子设备的运行应用存在相同的第一目标应用的情况下,显示第二窗口。
作为一个示例,第二窗口中包括的是电子设备的运行应用中除去预设应用列表与电子设备的运行应用之间相同的第一目标应用以外的其他应用的信息,即在预设应用列表与电子设备的运行应用存在相同的第一目标应用的情况下,保存电子设备中运行的第一目标应用的数据即可,对于运行应用中除去第一目标应用以外的其他应用的数据,可通过用户在第二窗口中的选择进行保存。如此,可提高应用的数据保存的灵活性以及提高保存的数据的覆盖范围等。
下面以一个具体实施例对上述电量提示方法的过程加以具体说明。以电子设备为手机、第一预设电量为10%,第二预设电量为5%,预设时长为2分钟为例进行说明。如图2所示,为一个实施例的电量提示方法的流程图,流程如下:
步骤201:检测电子设备的当前电量是否小于10%。
若电子设备的当前电量小于10%,则进入设备预断电处理模式,执行步 骤202。
步骤202:判断电子设备的当前界面的显示模式。
主要有两种显示模式,即全屏和非全屏模式。例如,全屏模式的场景可以包括但不限于游戏、视频播放、视频通话、手机通话、小说阅读等,其他不是全屏模式的状态统称为非全屏模式。
在显示模式为全屏模式的情况下,为了不影响用户当前对电子设备的使用,可执行步骤203:
步骤203:降低电子设备的音量参数,并在接收用户对于音量参数的调大输入的情况下,在当前界面中显示弹幕提示信息。
即在显示模式为全屏模式的情况下,降低音量等属性参数,然后在接收到用户调整(例如,调大)音量的调节输入的时候,输出弹幕提示充电。
例如,弹出弹幕提示用户“如不及时充电将会对手机电池造成损害,请尽快连接电源”,即不会打断电子设备的当前使用状态,例如,不会打断游戏或视频等,可每隔2分钟提示一次。在显示弹幕提示信息之后,还可执行步骤205。
在显示模式为非全屏模式的情况下,为了提高提示效果,可执行步骤204:
步骤204:将状态栏放大,并在接收用户对于状态栏的缩小输入的情况下,在当前界面上叠加显示第一窗口。
在非全屏模式下,可以随着电量的减小,逐渐放大状态栏中的电量标志,以突出显示,提高电量提示效果,以便提示用户充电。若接收到户对于状态栏的缩小输入,即可在当前界面上叠加显示第一窗口,即通过弹窗提示用户充电,例如,第一窗口中包括第一提示信息,可同样提示“如不及时充电将会对手机电池造成损害,请尽快连接电源”,需要用户点击确认或取消,即在接收到用户对第一窗口的第二输入的情况下,则取消第一窗口的显示。确保用户的确收到了该提示。同样可设置为每隔2分钟提示一次。在显示第一窗口之后,还可执行步骤205。
步骤205:检测电子设备是否连接电源。
即为了保证预断电处理模式持续进行,需要设置一个判断条件,可以设置为每2分钟检查一次,如果用户已经连接电源,则退出该模式,电量提示 过程结束,状态栏和音量等恢复到预断电处理模式之前的设置,否则返回步骤201继续执行。
如图3所示,为另一个实施例的电量提示方法的流程图,流程如下:
步骤301:检测电子设备的当前电量是否小于5%。
即在电子设备小10%之后,后续可检测电子设备的当前电量是否小于5%,若电子设备的当前电量小于5%,可执行步骤302。
步骤302:检测电子设备中是否包括预设应用列表。
即检测是否包括预先设置的需要保存数据的应用列表,如果没有预设应用列表,可执行步骤303。
步骤303:弹出第二窗口。
通过第二窗口展示当前正在运行的应用的信息,让用户自主选择需要保存数据的应用。
步骤304:接收用户对运行应用中的第二目标应用的信息的第一输入;
用户在第二窗口进行第一输入,通过第一输入可选择需要保存数据的应用,且通过第一输入可确定选中的应用的保存顺序,后续可执行步骤306,此时,其中的第一应用包括第二目标应用。
如果有预设应用列表,可执行步骤305.
步骤305:检测预设应用列表与电子设备的运行应用是否存在相同的第一目标应用。
若是,可执行步骤306,此时,其中的第一应用包括第一目标应用。
步骤306:保存电子设备中运行的第一应用的数据。
可以是根据用户的第一输入,按照第一输入的选择的顺序以及选中的第二目标应用,进行数据保存。也可以是对预设应用列表与运行应用之间相同的第一目标应用的数据保存。保存第一应用的数据之后,下次开机可以恢复。
以上过程可以设置每隔2分钟后台自动保存,直至重新连接电源为止。
在本申请实施例的电量提示方法中,本发明实施例能够实现强制提醒用户及时充电,且在过分放电前保存用户数据,防止信息丢失。
如图4所示,提供一种实施例的电量提示装置400,装置400包括:
获取模块401,用于在电子设备处于未充电状态,且电子设备的电量小 于第一预设电量的情况下,获取电子设备当前界面的显示模式;
调整模块402,用于根据当前界面的显示模式,执行目标调整操作,其中,目标调整操作与当前界面的显示模式关联,当前界面的显示模式包括全屏模式或非全屏模式。
在一个实施例中,根据当前界面的显示模式,执行目标调整操作,包括:
在当前界面的显示模式为全屏模式的情况下,调整电子设备的目标属性参数,其中,目标属性参数包括音量参数和屏幕显示参数中的至少一项。
在一个实施例中,根据当前界面的显示模式,执行目标调整操作,包括:
在当前界面的显示模式为非全屏模式的情况下,执行以下至少一项:
将当前界面的状态栏放大;
放大状态栏中的电量标志。
在一个实施例中,该装置400还包括:
接收模块,用于根据当前界面的显示模式,执行目标调整操作之后,接收用户的调整输入;
输出模块,用于响应于调整输入,输出第一提示信息,第一提示信息用于提示对电子设备进行充电。
在一个实施例中,输出第一提示信息,包括:
在当前界面的显示模式为全屏模式的情况下,在当前界面中显示弹幕提示信息;或者
在当前界面的显示模式为非全屏模式的情况下,在当前界面上叠加显示第一窗口,在第一窗口中包括第一提示信息。
在一个实施例中,装置400还包括:
保存模块,用于在电子设备的电量小于第一预设电量的情况下,若电子设备的电量小于第二预设电量,则保存电子设备中运行的第一应用的数据,第二预设电量小于第一预设电量。
在一个实施例中,保存电子设备中运行的第一应用的数据,包括以下至少一项:
在包括预设应用列表,且预设应用列表与电子设备的运行应用存在相同的第一目标应用的情况下,保存电子设备中运行的第一目标应用的数据;
显示第二窗口,第二窗口中包括电子设备的运行应用的信息;接收用户对运行应用中的第二目标应用的信息的第一输入;响应于第一输入,保存电子设备中运行的第二目标应用的数据;
其中,第一应用包括第一目标应用和第二目标应用中的至少一项。
本申请实施例中的电量提示装置可以是装置,也可以是终端中的部件、集成电路、或芯片。该装置可以是移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(Ultra-Mobile[ersonal Computer,UMPC)、上网本或者个人数字助理(Personal Digital Assistant,PDA)等,非移动电子设备可以为网络附属存储器(Network Attached Storage,NAS)、个人计算机(Personal Computer,PC)、电视机(Television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。
本申请实施例中的电量提示装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。
本申请实施例提供的电量提示装置能够实现上述电量提示方法实施例实现的各个过程,例如,能够实现图1至图3的方法实施例实现的各个过程,为避免重复,这里不再赘述。
可选地,如图5所示,本申请实施例还提供一种电子设备500,包括处理器501,存储器502,存储在存储器502上并可在处理器501上运行的程序或指令,该程序或指令被处理器501执行时实现上述电量提示方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
需要说明的是,本申请实施例中的电子设备包括上述的移动电子设备和非移动电子设备。
图6为实现本申请实施例的一种电子设备的硬件结构示意图。
该电子设备600包括但不限于:射频单元601、网络模块602、音频输出单元603、输入单元604、传感器605、显示单元606、用户输入单元607、接口单元608、存储器609、以及处理器610等部件。
本领域技术人员可以理解,电子设备600还可以包括给各个部件供电的 电源(比如电池),电源可以通过电源管理系统与处理器610逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图6中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。
其中,处理器610,用于在电子设备处于未充电状态,且电子设备的电量小于第一预设电量的情况下,获取电子设备当前界面的显示模式;
处理器610,用于根据当前界面的显示模式,执行目标调整操作,其中,目标调整操作与当前界面的显示模式关联,当前界面的显示模式包括全屏模式或非全屏模式。
在一个实施例中,根据当前界面的显示模式,执行目标调整操作,包括:
在当前界面的显示模式为全屏模式的情况下,调整电子设备的目标属性参数,其中,目标属性参数包括音量参数和屏幕显示参数中的至少一项。
在一个实施例中,根据当前界面的显示模式,执行目标调整操作,包括:
在当前界面的显示模式为非全屏模式的情况下,执行以下至少一项:
将当前界面的状态栏放大;
放大状态栏中的电量标志。
在一个实施例中,用户输入单元607,用于根据当前界面的显示模式,执行目标调整操作之后,接收用户的调整输入;
显示单元606,用于响应于调整输入,输出第一提示信息,第一提示信息用于提示对电子设备进行充电。
在一个实施例中,输出第一提示信息,包括:
在当前界面的显示模式为全屏模式的情况下,在当前界面中显示弹幕提示信息;或者
在当前界面的显示模式为非全屏模式的情况下,在当前界面上叠加显示第一窗口,在第一窗口中包括第一提示信息。
在一个实施例中,存储器609,用于在电子设备的电量小于第一预设电量的情况下,若电子设备的电量小于第二预设电量,则保存电子设备中运行的第一应用的数据,第二预设电量小于第一预设电量。
在一个实施例中,保存电子设备中运行的第一应用的数据,包括以下至 少一项:
在包括预设应用列表,且预设应用列表与电子设备的运行应用存在相同的第一目标应用的情况下,保存电子设备中运行的第一目标应用的数据;
显示第二窗口,第二窗口中包括电子设备的运行应用的信息;接收用户对运行应用中的第二目标应用的信息的第一输入;响应于第一输入,保存电子设备中运行的第二目标应用的数据;
其中,第一应用包括第一目标应用和第二目标应用中的至少一项。
应理解的是,本申请实施例中,输入单元604可以包括图形处理器(Graphics Processing Unit,GPU)6041和麦克风6042,图形处理器6041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元606可包括显示面板6061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板6061。用户输入单元607包括触控面板6071以及其他输入设备6072。触控面板6071,也称为触摸屏。触控面板6071可包括触摸检测装置和触摸控制器两个部分。其他输入设备6072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。存储器609可用于存储软件程序以及各种数据,包括但不限于应用程序和操作系统。处理器610可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器610中。
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,所述存储介质可以是易失的或非易失的,该程序或指令被处理器执行时实现上述电量提示方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所 述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述电量提示方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。
本申请实施例还提供一种计算机程序产品,所述计算机程序产品被存储在非瞬态的存储介质中,所述计算机程序产品被至少一个处理器执行以实现如图1所示方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以计算机软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的, 本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。

Claims (18)

  1. 一种电量提示方法,所述方法包括:
    在电子设备处于未充电状态,且所述电子设备的电量小于第一预设电量的情况下,获取所述电子设备当前界面的显示模式;
    根据所述当前界面的显示模式,执行目标调整操作,其中,所述目标调整操作与所述当前界面的显示模式关联,所述当前界面的显示模式包括全屏模式或非全屏模式。
  2. 根据权利要求1所述的方法,其中,所述根据所述当前界面的显示模式,执行目标调整操作,包括:
    在所述当前界面的显示模式为全屏模式的情况下,调整所述电子设备的目标属性参数,其中,所述目标属性参数包括音量参数和屏幕显示参数中的至少一项。
  3. 根据权利要求2所述的方法,其中,所述调整所述电子设备的目标属性参数,包括:
    降低所述电子设备的目标属性参数,以提高电量提示效果,其中,所述目标属性参数包括音量参数和屏幕显示参数中的至少一项。
  4. 根据权利要求1所述的方法,其中,所述根据所述当前界面的显示模式,执行目标调整操作,包括:
    在所述当前界面的显示模式为非全屏模式的情况下,执行以下至少一项:
    将所述电子设备的状态栏放大;
    放大所述状态栏中的电量标志。
  5. 根据权利要求1所述的方法,其中,所述根据所述当前界面的显示模式,执行目标调整操作之后,还包括:
    接收用户的调整输入;
    响应于所述调整输入,输出第一提示信息,所述第一提示信息用于提示对所述电子设备进行充电。
  6. 根据权利要求5所述的方法,其中,所述调整输入与所述目标调整操作的调整方向相反;
    其中,在所述目标调整操作用于降低目标属性参数的情况下,所述调整 输入用于增大所述目标属性参数;或者,在所述目标调整操作用于增大所述目标属性参数的情况下,所述调整输入用于降低所述目标属性参数;或者,在所述目标调整操作用于执行将电子设备的状态栏放大和放大状态栏中的电量标志中的至少一项的情况下,所述调整输入包括对状态栏的缩小输入和对状态栏中的电量标志的缩小输入中的至少一项。
  7. 根据权利要求5所述的方法,其中,所述输出第一提示信息,包括:
    在所述当前界面的显示模式为全屏模式的情况下,在所述当前界面中显示弹幕提示信息;或者
    在所述当前界面的显示模式为非全屏模式的情况下,在所述当前界面上叠加显示第一窗口,在所述第一窗口中包括所述第一提示信息。
  8. 根据权利要求1至7中任一项所述的方法,其中,在所述电子设备的电量小于第一预设电量的情况下,所述方法还包括:
    若所述电子设备的电量小于第二预设电量,则保存所述电子设备中运行的第一应用的数据,所述第二预设电量小于所述第一预设电量;
    其中,所述第一预设电量为电子设备需要充电的电量阈值,所述第二预设电量可以为电子设备即将关机的电量阈值。
  9. 一种电量提示装置,所述装置包括:
    获取模块,用于在电子设备处于未充电状态,且所述电子设备的电量小于第一预设电量的情况下,获取所述电子设备当前界面的显示模式;
    调整模块,用于根据所述当前界面的显示模式,执行目标调整操作,其中,所述目标调整操作与所述当前界面的显示模式关联,所述当前界面的显示模式包括全屏模式或非全屏模式。
  10. 根据权利要求9所述的装置,其中,所述根据所述当前界面的显示模式,执行目标调整操作,包括:
    在所述当前界面的显示模式为全屏模式的情况下,调整所述电子设备的目标属性参数,其中,所述目标属性参数包括音量参数和屏幕显示参数中的至少一项。
  11. 根据权利要求9所述的装置,其中,所述根据所述当前界面的显示模式,执行目标调整操作,包括:
    在所述当前界面的显示模式为非全屏模式的情况下,执行以下至少一项:
    将所述当前界面的状态栏放大;
    放大所述状态栏中的电量标志。
  12. 根据权利要求9所述的装置,还包括:
    接收模块,用于所述根据所述当前界面的显示模式,执行目标调整操作之后,接收用户的调整输入;
    输出模块,用于响应于所述调整输入,输出第一提示信息,所述第一提示信息用于提示对所述电子设备进行充电。
  13. 根据权利要求12所述的装置,其中,所述输出第一提示信息,包括:
    在所述当前界面的显示模式为全屏模式的情况下,在所述当前界面中显示弹幕提示信息;或者
    在所述当前界面的显示模式为非全屏模式的情况下,在所述当前界面上叠加显示第一窗口,在所述第一窗口中包括所述第一提示信息。
  14. 一种电子设备,包括处理器,存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,其中,所述程序或指令被所述处理器执行时实现如权利要求1至8中任一项所述的电量提示方法的步骤。
  15. 一种可读存储介质,所述可读存储介质上存储程序或指令,其中,所述程序或指令被处理器执行时实现如权利要求1至8中任一项所述的电量提示方法的步骤。
  16. 一种芯片,包括处理器和通信接口,其中,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如权利要求1至8中任一项所述的电量提示方法的步骤。
  17. 一种计算机程序产品,其中,所述计算机程序产品被存储在非易失的存储介质中,所述计算机程序产品被至少一个处理器执行以实现如权利要求1至8中任一项所述的电量提示方法的步骤。
  18. 一种通信设备,被配置为执行如权利要求1至8中任一项所述的电量提示方法中的步骤。
PCT/CN2022/095954 2021-05-31 2022-05-30 电量提示方法和装置 Ceased WO2022253178A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US18/520,550 US20240094893A1 (en) 2021-05-31 2023-11-27 Method and apparatus for prompting battery level

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110599483.1A CN113190420B (zh) 2021-05-31 2021-05-31 电量提示方法和装置
CN202110599483.1 2021-05-31

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US18/520,550 Continuation US20240094893A1 (en) 2021-05-31 2023-11-27 Method and apparatus for prompting battery level

Publications (1)

Publication Number Publication Date
WO2022253178A1 true WO2022253178A1 (zh) 2022-12-08

Family

ID=76986420

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/095954 Ceased WO2022253178A1 (zh) 2021-05-31 2022-05-30 电量提示方法和装置

Country Status (3)

Country Link
US (1) US20240094893A1 (zh)
CN (1) CN113190420B (zh)
WO (1) WO2022253178A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113190420B (zh) * 2021-05-31 2023-04-07 维沃移动通信(杭州)有限公司 电量提示方法和装置

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202230190U (zh) * 2011-10-18 2012-05-23 广东欧珀移动通信有限公司 一种电量提醒装置
CN103024179A (zh) * 2012-12-13 2013-04-03 广东欧珀移动通信有限公司 一种移动终端的电量提醒方法及装置
US20130097458A1 (en) * 2011-10-12 2013-04-18 Hitachi, Ltd. Storage system, and data backup method and system restarting method of storage system
CN105869605A (zh) * 2015-12-09 2016-08-17 乐视网信息技术(北京)股份有限公司 显示屏亮度控制方法及装置
CN107391012A (zh) * 2017-07-18 2017-11-24 维沃移动通信有限公司 一种信息提示方法及移动终端
CN107835302A (zh) * 2017-10-24 2018-03-23 珠海市魅族科技有限公司 一种终端的状态栏显示方法及设备
CN113190420A (zh) * 2021-05-31 2021-07-30 维沃移动通信(杭州)有限公司 电量提示方法和装置

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5218607A (en) * 1989-06-23 1993-06-08 Kabushiki Kaisha Toshiba Computer having a resume function and operable on an internal power source
US20030060765A1 (en) * 2000-02-16 2003-03-27 Arthur Campbell Infusion device menu structure and method of using the same
US8881065B2 (en) * 2005-07-14 2014-11-04 Red Hat, Inc. Presentation mode/full-screen mode interrupting action prevention
CN102523344A (zh) * 2011-12-14 2012-06-27 深圳市中兴移动通信有限公司 一种移动终端的电量提示方法及装置
EP2670118A1 (en) * 2012-05-28 2013-12-04 Doro AB Improved status notification for a mobile communications terminal
CN104572410A (zh) * 2015-01-28 2015-04-29 深圳市中兴移动通信有限公司 终端低电提示的方法及终端
CN106325670A (zh) * 2016-08-16 2017-01-11 北京小米移动软件有限公司 消息提醒方法及装置
CN107193716B (zh) * 2017-04-25 2021-08-03 北京小米移动软件有限公司 资源占用显示方法及装置
EP3674866B1 (en) * 2017-10-09 2024-05-22 Huawei Technologies Co., Ltd. Method for processing notification, and electronic device
CN109005283B (zh) * 2018-06-29 2021-05-14 Oppo(重庆)智能科技有限公司 显示通知消息的方法、装置、终端及存储介质
CN111710315B (zh) * 2020-06-15 2022-06-14 Oppo(重庆)智能科技有限公司 图像显示方法、装置、存储介质及电子设备

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130097458A1 (en) * 2011-10-12 2013-04-18 Hitachi, Ltd. Storage system, and data backup method and system restarting method of storage system
CN202230190U (zh) * 2011-10-18 2012-05-23 广东欧珀移动通信有限公司 一种电量提醒装置
CN103024179A (zh) * 2012-12-13 2013-04-03 广东欧珀移动通信有限公司 一种移动终端的电量提醒方法及装置
CN105869605A (zh) * 2015-12-09 2016-08-17 乐视网信息技术(北京)股份有限公司 显示屏亮度控制方法及装置
CN107391012A (zh) * 2017-07-18 2017-11-24 维沃移动通信有限公司 一种信息提示方法及移动终端
CN107835302A (zh) * 2017-10-24 2018-03-23 珠海市魅族科技有限公司 一种终端的状态栏显示方法及设备
CN113190420A (zh) * 2021-05-31 2021-07-30 维沃移动通信(杭州)有限公司 电量提示方法和装置

Also Published As

Publication number Publication date
US20240094893A1 (en) 2024-03-21
CN113190420A (zh) 2021-07-30
CN113190420B (zh) 2023-04-07

Similar Documents

Publication Publication Date Title
CN111816139B (zh) 屏幕刷新率切换方法和电子设备
US20230152956A1 (en) Wallpaper display control method and apparatus and electronic device
CN112135181A (zh) 视频预览方法、装置及电子设备
CN112383817B (zh) 音量调节方法及装置
US12353895B2 (en) Screen-off display method and apparatus
CN112099685A (zh) 通知消息显示控制方法、装置、电子设备和可读存储介质
CN111752451A (zh) 信息显示方法、装置和电子设备
US12493400B2 (en) Display method and electronic device
CN111897476A (zh) 防误触设置方法及装置
CN116225356A (zh) 屏幕更新方法、装置、电子设备及可读存储介质
CN112328070A (zh) 充电控制方法、充电控制装置和电子设备
US20240220711A1 (en) Text editing method and apparatus
WO2023083089A1 (zh) 拍摄控件显示方法, 装置, 电子设备及介质
CN112783406B (zh) 操作执行方法、装置和电子设备
WO2023066123A1 (zh) 终端省电显示方法、装置和电子设备
WO2022253178A1 (zh) 电量提示方法和装置
WO2023125553A1 (zh) 插帧方法、装置及电子设备
WO2023030304A1 (zh) 提示信息显示方法、装置及电子设备
WO2023045921A1 (zh) 显示方法、装置和电子设备
WO2023071981A1 (zh) 拍摄方法、装置及电子设备
WO2024153027A1 (zh) 应用显示方法和应用显示装置
WO2024061285A1 (zh) 视频播放方法和装置
CN113347478B (zh) 显示方法和显示装置
CN112416202B (zh) 消息通知方法、装置及电子设备
CN115437488A (zh) 省电方法、装置、电子设备及介质

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: 22815223

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: 22815223

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 11/06/2024)

122 Ep: pct application non-entry in european phase

Ref document number: 22815223

Country of ref document: EP

Kind code of ref document: A1