CN110958353A - Terminal charging method, electronic device and storage medium - Google Patents

Terminal charging method, electronic device and storage medium Download PDF

Info

Publication number
CN110958353A
CN110958353A CN201911197049.XA CN201911197049A CN110958353A CN 110958353 A CN110958353 A CN 110958353A CN 201911197049 A CN201911197049 A CN 201911197049A CN 110958353 A CN110958353 A CN 110958353A
Authority
CN
China
Prior art keywords
terminal
application program
state
screen
application
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.)
Granted
Application number
CN201911197049.XA
Other languages
Chinese (zh)
Other versions
CN110958353B (en
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.)
Shenzhen Microphone Holdings Co Ltd
Original Assignee
Shenzhen Microphone Holdings 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 Shenzhen Microphone Holdings Co Ltd filed Critical Shenzhen Microphone Holdings Co Ltd
Priority to CN201911197049.XA priority Critical patent/CN110958353B/en
Publication of CN110958353A publication Critical patent/CN110958353A/en
Application granted granted Critical
Publication of CN110958353B publication Critical patent/CN110958353B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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/3215Monitoring of peripheral devices
    • G06F1/3218Monitoring of peripheral devices of display devices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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/3234Power saving characterised by the action undertaken
    • G06F1/325Power saving in peripheral device
    • G06F1/3265Power saving in display device
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0261Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)

Abstract

The disclosure provides a terminal charging method, an electronic device and a storage medium. The method comprises the following steps: the terminal is in the charged state, detect the running state of the application at terminal, the state information at terminal is confirmed according to the running state of application, running state through the application to terminal detects, so that the state information at terminal is confirmed according to the running state of the application at terminal, so that when confirming the running state of different applications, the screen brightness at terminal, the sound at terminal and APP quantity isoparametric of terminal operation, and then realize the intellectuality of charging, thereby realize the technological effect of practicing thrift the electric energy.

Description

Terminal charging method, electronic device and storage medium
Technical Field
The present disclosure relates to the field of electric energy processing technologies, and in particular, to a terminal charging method, an electronic device, and a storage medium.
Background
With the popularization of internet application, terminals become essential products in daily life of people. And with the development of intelligent technology, people use terminals more and more frequently.
It can be understood that the power consumption of the terminal is relatively fast due to the frequent use of the terminal, and how to charge the terminal quickly becomes a focus of attention. In the prior art, under the condition that people prepare to charge a terminal, a memory can be cleaned or a hardware state can be optimized in a manual mode; of course, the running application can also be paused when the terminal detects that it is connected to the power supply.
However, in the process of implementing the present disclosure, the inventors found that at least the following problems exist: the application in use of people can be cleaned or suspended in the prior art, and normal use of the terminal by people is influenced.
Disclosure of Invention
The disclosure provides a terminal charging method, an electronic device and a storage medium, which are used for solving the problem that normal use of a terminal is influenced by people due to the fact that the application in use is cleaned or suspended in the prior art.
In one aspect, an embodiment of the present disclosure provides a terminal charging method, where the method includes:
the terminal is in a charging state;
detecting the running state of an application program of the terminal;
and determining the state information of the terminal according to the running state of the application program.
In some embodiments, the determining the state information of the terminal according to the running state of the application includes:
judging whether a foreground application program exists at present according to the running state of the application program;
if the foreground application program exists, judging whether the foreground application program has an interaction event;
and if the interactive event exists, continuing to run the foreground application program generating the interactive event.
In some embodiments, the determining the state information of the terminal according to the running state of the application includes:
judging whether a background application program exists at present according to the running state of the application program;
and if the background application program exists currently, closing the background application program.
In some embodiments, after determining that the interaction event occurs, the method further comprises:
acquiring screen state information of the terminal;
judging whether the terminal is in a bright screen state or not according to the screen state information;
if the terminal is in the bright screen state, acquiring a brightness parameter of a screen;
in response to the brightness parameter being greater than a preset threshold, adjusting the brightness coefficient to a brightness parameter that is less than the threshold.
In some embodiments, the method further comprises:
and if the interactive event does not occur, closing the foreground application program without the interactive event.
In some embodiments, after determining that the interaction event has not occurred, the method further comprises:
acquiring screen state information of the terminal;
judging whether the terminal is in a bright screen state or not according to the screen state information;
and if the terminal is in the screen lightening state, switching the screen lightening state to a screen extinguishing state.
In some embodiments, the method further comprises:
determining the currently running application program according to the running state of the application program;
and if the detected power consumption for operating the currently operated application program is larger than a preset first threshold value, or the detected temperature for operating the currently operated application program is larger than a preset second threshold value, stopping charging.
In some embodiments, the method further comprises:
the state information of the terminal corresponds to the running state of the application program;
and when the terminal has at least two pieces of state information of the terminal and the state information switching of the two terminals is detected, switching the running state of the application program of the terminal corresponding to the state information of the two terminals.
On the other hand, the embodiment of the present disclosure further provides an electronic device, including: a memory, a processor;
a memory for storing the processor-executable instructions;
wherein the processor, when executing the instructions in the memory, is configured to implement a method as in any of the embodiments above.
In another aspect, this disclosed embodiment also provides a computer-readable storage medium, in which computer-executable instructions are stored, and when executed by a processor, the computer-executable instructions are used to implement the method according to any one of the above embodiments.
The terminal that this disclosure provided is in charged state, detect the running state of terminal's application, the state information at terminal is confirmed according to the running state of application, running state through the application to the terminal detects, so that the state information at terminal is confirmed according to the running state of the application at terminal, so that when confirming the running state of different applications, the screen brightness at terminal, the sound at terminal and APP quantity isoparametric of terminal operation, and then realize the intellectuality of charging, thereby realize the technological effect of practicing thrift the electric energy.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a scene schematic diagram of a terminal charging method according to an embodiment of the disclosure;
fig. 2 is a schematic flowchart of a terminal charging method according to an embodiment of the disclosure;
fig. 3 is a flowchart illustrating a method for determining status information of a terminal according to an operating status of an application according to an embodiment of the present disclosure;
FIG. 4 is a schematic illustration of an interface display according to an embodiment of the disclosure;
FIG. 5 is a schematic illustration of an interface display according to another embodiment of the present disclosure;
FIG. 6 is a schematic illustration of an interface display according to another embodiment of the present disclosure;
fig. 7 is a flowchart illustrating a method for determining status information of a terminal according to an operating status of an application according to an embodiment of the present disclosure;
fig. 8 is a flowchart illustrating a method for determining status information of a terminal according to an operating status of an application according to another embodiment of the present disclosure;
fig. 9 is a flowchart illustrating a method for determining status information of a terminal according to an operating status of an application according to another embodiment of the present disclosure;
fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the disclosure;
reference numerals: 10. cell-phone, 20, power connection equipment, 30, power supply equipment.
With the foregoing drawings in mind, certain embodiments of the disclosure have been shown and described in more detail below. These drawings and written description are not intended to limit the scope of the disclosed concepts in any way, but rather to illustrate the concepts of the disclosure to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The terminal charging method and the terminal charging device provided by the embodiment of the disclosure can be applied to the scene shown in fig. 1.
In the application scenario shown in fig. 1, the terminal is specifically a mobile phone 10, a user is connected to a power supply device 30 through a power supply connection device 20 of the mobile phone 10, and the mobile phone 10 is charged by the power supply device 30 through the power supply connection device 20.
It should be noted that, this is only an exemplary description, and in other application scenarios, the terminal may also be a terminal that can run an application in the foreground, such as an iPad and a notebook, and can switch the foreground application to the background application.
In the application scenario shown in fig. 1, the power connection device 20 specifically includes a connection line and a charging head, and the charging of the mobile phone 10 by the power device 30 is implemented by inserting the charging head into a pin of the power device 30.
In other embodiments, the power supply device 30 may be a charger, and the power supply connection device 20 includes a connection line, and the power supply device 30 charges the mobile phone 10 through the connection line. The connection line may be a USB data line.
Of course, in other embodiments, the power device 30 may also be a computer, for example, by connecting the mobile phone 10 to the computer through a connection line, so that the mobile phone 10 can be charged by the computer through the connection line.
The following describes the technical solutions of the present disclosure and how to solve the above technical problems with specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present disclosure will be described below with reference to the accompanying drawings.
In one aspect, the present disclosure provides a flow diagram of a terminal charging method suitable for the foregoing scenario.
Referring to fig. 2, fig. 2 is a schematic flow chart illustrating a terminal charging method according to an embodiment of the disclosure.
As shown in fig. 2, the method includes:
s101: the terminal is in a charging state.
When the terminal is connected to the power supply device,
the execution main body for executing the terminal charging method of the embodiment of the present disclosure may be a terminal charging device, and the terminal charging device may specifically be a terminal.
Of course, the execution main body for executing the terminal charging method according to the embodiment of the present disclosure may also be a client provided in the terminal, such as an APP.
Exemplarily, when the user needs to charge the terminal, click the icon that the APP corresponds to open APP's operation, be connected with power supply unit by the APP to the terminal and monitor, specifically be connected to power supply unit and monitor for the power at terminal.
S102: and detecting the running state of the application program of the terminal.
And if the terminal is in a charging state, executing the step.
For example, based on the above example, when it is monitored that the terminal (i.e., specifically, the power supply of the terminal) has been connected to the power supply device, the step of detecting the operating state of the application program of the terminal is performed.
In this step, in particular, the running state of the application of the terminal may be detected by the terminal. The running state of the application program is the running state corresponding to each application program installed in the terminal, for example, the running state of the treasure panning application program is foreground running, and for example, the running state of the love art application program is background running.
In some embodiments, the running state of an application may include a foreground application state and/or a background application state. That is, in this step, the application in foreground running (foreground application) and the application in background running (background application) of the terminal are detected. And further, the load of the terminal when whether all the application programs in the terminal run in the foreground or the background is detected is reduced.
In some embodiments, when the terminal is connected to the power supply device, the terminal charging method according to the embodiments of the present disclosure may be performed every preset time, that is, the operation state of the application program of the terminal is detected every preset time, and the subsequent steps are performed. For example, the step of acquiring the running state of the application program of the terminal and the subsequent steps are performed every two minutes.
Of course, in other embodiments, the operation state of the application program of the terminal may also be monitored, and when the operation state of the application program of the terminal changes, the changed operation state is detected, and the subsequent steps are executed. For example, during the previous detection, the operating state of the aitchis application is a foreground operating state, that is, the previous foreground application is the aitchis application, and during the current detection, the operating state of the treasure-panning application is a foreground operating state, that is, the current foreground application is the treasure-panning application.
S103: and determining the state information of the terminal according to the running state of the application program.
The state information of the terminal corresponds to information corresponding to a charging scene of the terminal, and the information of the charging scene corresponding to different state information of the terminal is different, that is, the charging scenes corresponding to different state information of the terminal are different. The charging scene can be determined based on the difference of the screen brightness of the terminal, the sound of the terminal and the number of APP operated by the terminal. That is, the information corresponding to the charging scene includes terminal screen brightness, terminal sound, the number of APPs that the terminal runs, and the like.
That is, in this step, the screen brightness of the terminal, the sound of the terminal, the number of APPs operated by the terminal, and the like are determined by the operation state of the application program.
In an embodiment of the present disclosure, a new terminal charging method is provided, where the method includes: the terminal is in the charged state, detect the running state of the application at terminal, the state information at terminal is confirmed according to the running state of application, running state through the application to terminal detects, so that the state information at terminal is confirmed according to the running state of the application at terminal, so that when confirming the running state of different applications, the screen brightness at terminal, the sound at terminal and APP quantity isoparametric of terminal operation, and then realize the intellectuality of charging, thereby realize the technological effect of practicing thrift the electric energy.
As can be seen from fig. 3 (fig. 3 is a flowchart illustrating a method for determining state information of a terminal according to an operating state of an application according to an embodiment of the present disclosure), in some embodiments, S103 includes:
s31: and judging whether a foreground application program exists at present according to the running state of the application program, and if so, executing S32.
Based on the above example, the running state of the application includes information about whether each application runs, or the running state of the application shows a foreground application and a background application, so that whether a foreground application exists currently can be determined based on the running state of the application.
In the step, whether the foreground application program exists or not is judged, the foreground application program and the background application program can be independently opened, and the defect that normal use of the terminal by a user is influenced when all the application programs (including the foreground application program and the background application program) are closed or suspended in the prior art is avoided.
S32: and judging whether the foreground application program has an interactive event, if so, executing S33, and if not, executing S34.
In this step, the determination of the interaction event is to determine whether the user is using the foreground application, and if the interaction event exists between the user and the foreground application, it indicates that the user is using the foreground application.
S33: and continuing to run the foreground application program with the interactive event.
As can be seen from S32, in this step, if there is an interaction event between the foreground application and the user, that is, the user is using the foreground application, the running of the foreground application is continued.
S34: the foreground application that has not had an interactive event is closed.
It should be noted that if there are multiple foreground applications, it is determined whether an interaction event occurs between each foreground application and the user, and the foreground application having the interaction event continues to run.
Exemplarily, if there are five foreground applications, it is determined whether an interaction event occurs between each of the five foreground applications and the user, and if only one of the five foreground applications has an interaction event with the user, that is, the user operates only one of the five foreground applications, the application operated by the user continues to be run, and the other applications are closed.
If the five foreground application programs are respectively Bluetooth, WiFi, data traffic, local reading documents and GPS, if the application program used by the user is the local reading document, the application program is continuously operated to read the local reading document, and other application programs are closed. Specifically, refer to fig. 4 (fig. 4 is a schematic view of an interface display according to an embodiment of the disclosure).
For another example, the five foreground applications are bluetooth, WiFi, data traffic, network video, and GPS, respectively, and the network video is implemented based on WiFi, that is, the application being used by the user is the network video and WiFi, the application network video and the application WiFi continue to be run, and the other applications are closed. Specifically, refer to fig. 5 (fig. 5 is a schematic view of an interface display according to another embodiment of the present disclosure).
For another example, the five foreground applications are bluetooth headsets, WiFi, data traffic, local music, and GPS, respectively, and the local music is played through the bluetooth headsets, that is, the application being used by the user is the local music and the bluetooth headset, the local music and the bluetooth headset of the application continue to be run, and the other applications are closed. Specifically, refer to fig. 6 (fig. 6 is a schematic view of an interface display according to another embodiment of the present disclosure).
As shown in fig. 7 (fig. 7 is a flowchart illustrating a method for determining state information of a terminal according to an operating state of an application according to an embodiment of the present disclosure), in some embodiments, S103 further includes:
s35: and judging whether the background application program exists currently according to the running state of the application program, and if so, executing S36.
S36: and closing the background application program.
As can be seen from the above example, the running state of the application includes information about whether each application runs, or the running state of the application shows a foreground application and a background application, so that whether a background application exists currently can be determined based on the running state of the application.
In this step, if an application is a background application, the background application is closed in consideration of saving electric energy, improving charging efficiency, and the like.
As shown in fig. 8 (fig. 8 is a flowchart illustrating a method for determining state information of a terminal according to an operation state of an application according to another embodiment of the present disclosure), in some embodiments, if it is determined that an interaction event occurs, the method further includes:
s33': and acquiring screen state information of the terminal.
The screen state information is information indicating brightness of a screen of the terminal, such as that the screen of the terminal is in a bright screen state or that the screen of the terminal is in a dead screen state.
S34': and judging whether the terminal is in a bright screen state according to the screen state information, and if so, executing S35'.
S35': and acquiring the brightness parameter of the screen.
It can be understood that, when the screen is in the screen-off state, the brightness parameter of the screen is 0, when the screen is in the screen-on state, the brightness parameter of the screen is greater than 0, and the brighter the screen, the greater the brightness parameter of the screen, that is, the brightness of the screen is proportional to the brightness parameter of the screen.
S36': and adjusting the brightness coefficient to a brightness parameter smaller than the threshold value in response to the brightness parameter being larger than the preset threshold value.
The threshold value may be set based on requirements and experience.
In some embodiments, the threshold may be a value preset by the terminal.
In other embodiments, the threshold may be a value set by the user for the parameter of the terminal.
In this step, it specifically includes: and judging the brightness parameter and the threshold value, and if the brightness parameter is larger than the threshold value, adjusting the brightness coefficient to the brightness parameter smaller than the threshold value.
Exemplarily, the brightness parameter is 80% of the total brightness, and the threshold is 50% of the total brightness, then the brightness parameter is adjusted to 30% of the total brightness. Of course, the setting of the brightness parameters herein is for exemplary illustration only, and should not be construed as limiting the scope of the embodiments of the disclosure.
It is worth explaining that, by acquiring the brightness parameters and adjusting the brightness parameters, the consumption of the terminal screen to electric energy can be reduced, the electric energy can be saved, and the use of the screen to the electric energy is reduced, so that the charging speed is accelerated, and the technical effect of quick charging is further realized.
As shown in fig. 9 (fig. 9 is a flowchart illustrating a method for determining state information of a terminal according to an operation state of an application according to another embodiment of the present disclosure), in some embodiments, if it is determined that an interaction event does not occur, the method further includes:
s41': and acquiring screen state information of the terminal.
The screen state information is information indicating brightness of a screen of the terminal, such as that the screen of the terminal is in a bright screen state or that the screen of the terminal is in a dead screen state.
S42': and judging whether the terminal is in a bright screen state according to the screen state information, and if so, executing S43'.
It can be understood that, when the screen is in the screen-off state, the brightness parameter of the screen is 0, when the screen is in the screen-on state, the brightness parameter of the screen is greater than 0, and the brighter the screen, the greater the brightness parameter of the screen, that is, the brightness of the screen is proportional to the brightness parameter of the screen.
S43': and switching the bright screen state to the screen-off state.
In this step, if it is determined that no interaction event occurs between the foreground application and the user and the screen is in the on-screen state, the on-screen state is directly switched to the off-screen state, so that power consumption is saved and charging efficiency is improved.
In some embodiments, the method further comprises:
s104: and determining the currently running application program according to the running state of the application program.
S105: and if the detected power consumption for running the currently running application program is larger than a preset first threshold value, or the detected temperature for running the currently running application program is larger than a preset second threshold value, stopping charging.
The steps may specifically include: after the currently running application program is determined according to the running state of the application program, detecting the power consumption of the currently running application program, if the detected power consumption is larger than a first threshold value, indicating that the power consumption of the currently running application program is larger, and stopping charging in order to ensure the charging safety, the service life of the terminal and the like. Or,
after the currently running application program is determined according to the running state of the application program, detecting the temperature of the currently running application program, and if the detected temperature is greater than a second threshold value, indicating that the power consumption of the currently running application program is large, the heat dissipation effect of the terminal is limited, and the charging is stopped in order to ensure the charging safety, the service life of the terminal and the like.
It should be noted that there is no necessary sequence between S103 and S104 to S105, that is, after the operating state of the application program is determined, S103 or S104 to S105 may be preferentially executed, and of course, the execution may also be performed in parallel, that is, S103 may be executed while S104 to S105 are executed.
In some embodiments, the method further comprises:
s106: the state information of the terminal corresponds to the operation state of the application.
As can be seen from the above example, the operating states of different applications correspond to the state information of different terminals.
S107: and when the terminal has the state information of at least two terminals and the state information switching of the two terminals is detected, switching the running states of the application programs corresponding to the state information of the two terminals.
For example, when the user is using a QQ application, and the terminal receives a wechat voice request, the operating state of the corresponding application is switched. Specifically, the WeChat application program is switched to a foreground application program, and the QQ application program is switched to a background application program, or the QQ application program is closed.
According to another aspect of the embodiments of the present disclosure, there is also provided a mobile terminal, including: the apparatus as in any one of the above embodiments.
According to another aspect of the embodiments of the present disclosure, there is also provided an electronic device, including: a memory, a processor;
a memory for storing processor-executable instructions;
wherein, when executing the instructions in the memory, the processor is configured to implement the method of any of the embodiments above.
Referring to fig. 10, fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the disclosure.
As shown in fig. 10, the electronic device includes a memory and a processor, and the electronic device may further include a communication interface and a bus, wherein the processor, the communication interface, and the memory are connected by the bus; the processor is used to execute executable modules, such as computer programs, stored in the memory.
The Memory may include a high-speed Random Access Memory (RAM) and may also include a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Via at least one communication interface, which may be wired or wireless), the communication connection between the network element of the system and at least one other network element may be implemented using the internet, a wide area network, a local network, a metropolitan area network, etc.
The bus may be an ISA bus, PCI bus, EISA bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc.
The memory is used for storing a program, and the processor executes the program after receiving an execution instruction.
The processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the device can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component. The steps of the method disclosed in connection with the embodiments of the present disclosure may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and a processor reads information in the memory and completes the steps of the method in combination with hardware of the processor.
According to another aspect of the embodiments of the present disclosure, there is also provided a computer-readable storage medium having stored therein computer-executable instructions, which when executed by a processor, are configured to implement the method according to any one of the embodiments.
The reader should understand that in the description of this specification, reference to the description of the terms "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present disclosure. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of a unit is merely a logical division, and an actual implementation may have another division, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiments of the present disclosure.
In addition, functional units in the embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present disclosure may be substantially or partially contributed by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method of the embodiments of the present disclosure. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It should also be understood that, in the embodiments of the present disclosure, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present disclosure.
While the present disclosure has been described with reference to specific embodiments, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the disclosure. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims.

Claims (10)

1. A terminal charging method, characterized in that the method comprises:
the terminal is in a charging state;
detecting the running state of an application program of the terminal;
and determining the state information of the terminal according to the running state of the application program.
2. The method according to claim 1, wherein the determining the state information of the terminal according to the running state of the application program comprises:
judging whether a foreground application program exists at present according to the running state of the application program;
if the foreground application program exists, judging whether the foreground application program has an interaction event;
and if the interactive event exists, continuing to run the foreground application program generating the interactive event.
3. The method according to claim 1, wherein the determining the state information of the terminal according to the running state of the application program comprises:
judging whether a background application program exists at present according to the running state of the application program;
and if the background application program exists currently, closing the background application program.
4. The method of claim 2, wherein after determining that the interaction event occurred, the method further comprises:
acquiring screen state information of the terminal;
judging whether the terminal is in a bright screen state or not according to the screen state information;
if the terminal is in the bright screen state, acquiring a brightness parameter of a screen;
in response to the brightness parameter being greater than a preset threshold, adjusting the brightness coefficient to a brightness parameter that is less than the threshold.
5. The method of claim 2, further comprising:
and if the interactive event does not occur, closing the foreground application program without the interactive event.
6. The method of claim 5, wherein after determining that the interactivity event has not occurred, the method further comprises:
acquiring screen state information of the terminal;
judging whether the terminal is in a bright screen state or not according to the screen state information;
and if the terminal is in the screen lightening state, switching the screen lightening state to a screen extinguishing state.
7. The method according to any one of claims 1 to 6, further comprising:
determining the currently running application program according to the running state of the application program;
and if the detected power consumption for operating the currently operated application program is larger than a preset first threshold value, or the detected temperature for operating the currently operated application program is larger than a preset second threshold value, stopping charging.
8. The method according to any one of claims 1 to 6, further comprising:
the state information of the terminal corresponds to the running state of the application program;
and when the terminal has at least two pieces of state information of the terminal and the state information switching of the two terminals is detected, switching the running state of the application program of the terminal corresponding to the state information of the two terminals.
9. An electronic device, comprising: a memory, a processor;
a memory for storing the processor-executable instructions;
wherein the processor, when executing the instructions in the memory, is configured to implement the method of any of claims 1 to 8.
10. A computer-readable storage medium having computer-executable instructions stored therein, which when executed by a processor, are configured to implement the method of any one of claims 1 to 8.
CN201911197049.XA 2019-11-29 2019-11-29 Terminal charging method, electronic device and storage medium Active CN110958353B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911197049.XA CN110958353B (en) 2019-11-29 2019-11-29 Terminal charging method, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911197049.XA CN110958353B (en) 2019-11-29 2019-11-29 Terminal charging method, electronic device and storage medium

Publications (2)

Publication Number Publication Date
CN110958353A true CN110958353A (en) 2020-04-03
CN110958353B CN110958353B (en) 2024-05-03

Family

ID=69978936

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911197049.XA Active CN110958353B (en) 2019-11-29 2019-11-29 Terminal charging method, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN110958353B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103473048A (en) * 2013-08-30 2013-12-25 贝壳网际(北京)安全技术有限公司 Information pushing method and system
CN105700922A (en) * 2016-01-07 2016-06-22 广东欧珀移动通信有限公司 Method and device for automatically cleaning memory when charging is carried out and mobile terminal
CN105807873A (en) * 2016-03-08 2016-07-27 北京小米移动软件有限公司 Temperature control method and device
CN107678567A (en) * 2017-09-26 2018-02-09 珠海市魅族科技有限公司 Charging method and device, computer installation and computer-readable recording medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103473048A (en) * 2013-08-30 2013-12-25 贝壳网际(北京)安全技术有限公司 Information pushing method and system
CN105700922A (en) * 2016-01-07 2016-06-22 广东欧珀移动通信有限公司 Method and device for automatically cleaning memory when charging is carried out and mobile terminal
CN105807873A (en) * 2016-03-08 2016-07-27 北京小米移动软件有限公司 Temperature control method and device
CN107678567A (en) * 2017-09-26 2018-02-09 珠海市魅族科技有限公司 Charging method and device, computer installation and computer-readable recording medium

Also Published As

Publication number Publication date
CN110958353B (en) 2024-05-03

Similar Documents

Publication Publication Date Title
CN106256116B (en) A kind of method and terminal controlling application program
CN107843802B (en) Internal short circuit detection method and device
JP5888535B2 (en) Imaging processing method and terminal device
US9639256B2 (en) Method for starting activity of mobile terminal and the mobile terminal
CN108040352B (en) Method for processing business, device and mobile terminal under a kind of hybrid network standard
EP2881838A1 (en) Adjustment method and boot method for power-off threshold voltage and electronic device thereof
CN107454344B (en) A kind of acquisition parameters setting method and user terminal
CN104866212A (en) Method for fast calling program or function and system thereof
US11264822B2 (en) Method for determining charger, related device, and system
CN107329659B (en) Permission setting method and device, electronic equipment and storage medium
CN102647515B (en) Terminal state displaying control method and device
CN108710539B (en) Information processing method, terminal and readable storage medium
CN112083988A (en) Screen refresh rate control method, mobile terminal and computer readable storage medium
CN106569917B (en) Data backup method and mobile terminal
CN105744034B (en) A kind of screen intensity output method and device
CN108572866B (en) Application program management method, application program management device and mobile terminal
CN106569848A (en) Terminal and starting management method for application program thereof
CN108650702B (en) Broadcast information processing method and user terminal
CN104503674A (en) Screenshot picture generating method
CN112217242A (en) Charging control method and device
CN110958353A (en) Terminal charging method, electronic device and storage medium
CN106569579A (en) Power-saving control method and device of terminal
CN111293748A (en) Method and device for monitoring electric quantity data
CN105468124A (en) Information processing method and electronic equipment
CN109219112B (en) Mobile terminal and power saving method and device thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant