CN111459759A - Electronic device, method for managing application program thereof, and computer storage medium - Google Patents

Electronic device, method for managing application program thereof, and computer storage medium Download PDF

Info

Publication number
CN111459759A
CN111459759A CN202010246980.9A CN202010246980A CN111459759A CN 111459759 A CN111459759 A CN 111459759A CN 202010246980 A CN202010246980 A CN 202010246980A CN 111459759 A CN111459759 A CN 111459759A
Authority
CN
China
Prior art keywords
application program
state
running state
application
judging whether
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.)
Pending
Application number
CN202010246980.9A
Other languages
Chinese (zh)
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202010246980.9A priority Critical patent/CN111459759A/en
Publication of CN111459759A publication Critical patent/CN111459759A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3051Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs

Abstract

The application mainly relates to a management method of electronic equipment and an application program thereof and a computer storage medium, wherein the management method comprises the following steps: judging whether the application program is in a background running state or not; if the application program is in the background running state, continuously judging whether the application program is in a mute output state; and if the application program is in a mute output state, marking the running state of the application program as an abnormal state. The application finds a new way to judge whether the application programs in the background running state on the electronic equipment are in the mute output state or not, and marks the application programs in the mute output state as the abnormal state so that the electronic equipment can manage and optimize the application programs running on the electronic equipment, and the body feeling of a user is improved.

Description

Electronic device, method for managing application program thereof, and computer storage medium
Technical Field
The present application relates to the field of electronic devices, and in particular, to an electronic device, a method for managing an application program thereof, and a computer storage medium.
Background
With the continuous popularization of electronic devices, electronic devices have become indispensable social and entertainment tools in people's daily life, and people have higher and higher requirements for electronic devices. For electronic devices such as mobile phones, a large number of Applications (APP) with rich types can be installed on the electronic devices to meet the use requirements of users, however, the capacity of the battery of the electronic devices is generally 4000mAh, so that the single use duration and the standby duration of the electronic devices are often limited, and the experience and the sensitivity of the users are easily affected.
Disclosure of Invention
The embodiment of the application provides a management method of an application program, wherein the management method comprises the following steps: judging whether the application program is in a background running state or not; if the application program is in the background running state, continuously judging whether the application program is in a mute output state; and if the application program is in a mute output state, marking the running state of the application program as an abnormal state.
The embodiment of the application further provides electronic equipment, wherein the electronic equipment comprises a first judging module, a second judging module and an executing module, the first judging module is used for judging whether the application program is in the background running state, the second judging module is used for judging whether the application program is in the mute output state, and the executing module is used for marking the running state of the application program as the abnormal state.
The embodiment of the application further provides an electronic device, wherein the electronic device comprises a processor and a memory, and the processor is coupled with the memory; wherein the memory is used for storing a computer program, and the processor executes the computer program when in operation to implement the management method of the above-mentioned embodiments.
The present application further provides a computer storage medium having a computer program stored thereon, where the computer program can be executed by a processor to implement the management method described in the foregoing embodiments.
The beneficial effect of this application is: the application program management method provided by the application program judges whether the application programs in the background running state on the electronic equipment are in the mute output state or not in a new way, and marks the application programs in the mute output state as the abnormal state so that the electronic equipment can manage and optimize the application programs running on the electronic equipment, and therefore the good feeling of a user is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a flowchart illustrating an embodiment of a method for managing an application program provided in the present application;
FIG. 2 is a flowchart illustrating an application management method according to another embodiment of the present disclosure;
FIG. 3 is a flowchart illustrating a method for managing applications according to another embodiment of the present disclosure;
FIG. 4 is a flowchart illustrating a method for managing applications according to another embodiment of the present disclosure;
FIG. 5 is a flowchart illustrating a method for managing applications according to yet another embodiment of the present disclosure;
FIG. 6 is a schematic structural diagram of an embodiment of an electronic device provided in the present application;
FIG. 7 is a schematic structural diagram of another embodiment of an electronic device provided herein;
FIG. 8 is a schematic diagram of the overall structure of the electronic device in FIG. 7;
FIG. 9 is a schematic structural diagram of an embodiment of a computer storage medium provided in the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be noted that the following examples are only illustrative of the present application, and do not limit the scope of the present application. Likewise, the following examples are only some examples and not all examples of the present application, and all other examples obtained by a person of ordinary skill in the art without any inventive work are within the scope of the present application.
Reference in the specification to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the specification. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The inventors of the present application have found, through long-term research: for electronic devices such as mobile phones, users generally install a large number of application programs with rich varieties in order to meet the use requirements of daily life and work. However, some application programs may have abnormal situations that do not operate normally, for example, some audio data that is not audible to the user is played in the background, and the operating resources of the electronic device are additionally occupied, so that the normal use of the electronic device is disturbed. To this end, the present application proposes the following examples.
Referring to fig. 1, fig. 1 is a schematic flowchart illustrating an embodiment of a method for managing an application according to the present application. The management method comprises the following steps:
s101: and judging whether the application program is in a background running state or not.
When the judgment result of the step S101 is that the application program is in the background running state, executing step S102; otherwise, if the determination result in step S101 is that the application is not in the background running state, step S104 is executed.
Generally, a user may use a plurality of applications simultaneously during the daily use of the electronic device. For example: the user may use social communication applications such as WeChat, QQ, TIM, nailing and microblog while using game applications such as hero alliance, fifth personality, Happy Xiaole, simulated city, etc. At this time, as the user may use the game application to perform touch, chat, and other operations more, the game application is mostly in a foreground operating state, and the communication social application is mostly in a background operating state. For another example: the user may use the music station application programs such as QQ music, internet music, himalayan, and the like while using the communication social application program. At this time, as the user may use the social communication application program for browsing, chatting, etc., the social communication application program is mostly in a foreground running state, and the music station application program is mostly in a background running state.
Based on the above, in the process of daily use of the electronic device by the user, the current state of the application program can be simply divided into an operating state and a non-operating state according to whether the user starts the application program. The application program in the running state may occupy running resources (such as a memory, a processor, an electric quantity, and the like) of the electronic device; while an application in a non-running state may simply be viewed as not occupying running resources. Further, according to the situation of using the application program by the user, the current state of the application program may be subdivided into a foreground running state and a background running state.
It should be noted that, no matter the application program is in the foreground operating state or the background operating state, the application program is in the operating state, that is, the application program occupies the operating resources of the electronic device. Further, under different use conditions, the same application program may be in a foreground running state or a background running state. In other words, the current state of an application can be switched between a foreground running state and a background running state. Generally, the application program in the foreground running state is only one, that is, the application program currently being used by the user; the application program in the background running state may be a plurality of application programs, that is, application programs that may be used by the user later.
Further, when the application program is in the running state, it may specifically determine, by means of any one of RunningProcess, Activity L ifycyclecallbacks, usagestatmanager, accessibilityserve, self-analysis/process, and the like, and a combination thereof, whether the current state of the application program is in the foreground running state or the background running state.
S102: and judging whether the application program is in a mute output state or not.
When the judgment result of the step S102 is that the application program is in the mute output state, the step S103 is executed; otherwise, if the determination result in step S102 is that the application is not in the mute output state, step S104 is executed.
Generally, a user interacts with an electronic device mainly through vision, hearing and touch in the process of using the electronic device daily. In particular, users are most often interacting with applications running on the electronic device (including in a background running state, in a foreground running state). However, due to different types of applications, different usage habits of users, and the like, users often focus on interacting with applications through one or more of visual, auditory, and tactile ways. For example: for the communication social application program, users mainly interact with the communication social application program through vision. For example: for the above music station type application, the user interacts with it mainly by hearing. For another example, for the game-like application, the user interacts with the game-like application mainly through vision and touch (or vision, hearing, and touch). For example, for video playing applications such as tremble, fast hand, music and music, live fish and Tencent video, and educational learning applications such as job help and fluent speech, users interact with the applications mainly through vision and hearing.
Further, for the application program that interacts with the user at least through hearing, when the user switches the current state of the application program from the foreground operating state to the background operating state, normally, the application program will not output any more audio signals, that is, the user will not hear any more sound from the electronic device. However, since the user's hearing ability is somewhat limited, many sounds cannot be heard by the user. Based on this, some application programs may play some audio data that is inaudible to the user in the background running process, and additionally occupy the running resources of the electronic device, thereby causing troubles to the normal use of the user. At this time, the application program can be considered to have an abnormal condition of irregular operation.
It should be noted that, for the music station application, the user mainly interacts with the music station application through hearing. Moreover, the user can switch the music station application program to background operation in most cases so as to enjoy the auditory feast; or the application program can be operated with other communication social contact application programs or game application programs operated in the foreground at the same time, so that the interactive experience of multiple types of application programs can be considered conveniently. Therefore, in the embodiment of the present application, the music station application can be skipped during the process of executing step S101, so as to increase the experience quality of the user. In other words, the application programs described in the embodiments of the present application may include game-type application programs, video-type application programs, and education-type application programs.
Based on the above detailed description, the mute output state in the embodiment of the present application may refer to that the application program is in a background running state and outputs an audio signal; but the user cannot hear the audio signal (corresponding sound) so that the electronic device is in a "pseudo-silent" state.
S103: and marking the running state of the application program as an abnormal state.
For an application program in a running state on an electronic device, when an application program is in a background running state and in a mute output state, the running state of the application program is marked as an abnormal state, so as to perform subsequent processing, which will be described in detail later. However, the operation of marking the running state of the application program as an abnormal state may be unknown to the user.
S104: no treatment is done.
For an application program in a running state on the electronic equipment, when a certain application program is in a foreground running state; or, the running state of the application program is not marked as an abnormal state when the application program is in the background running state but is not in the mute output state. In other words, the electronic device does not process the application program that normally runs, but only continues to execute the above determining step.
In conclusion, the application provides a new way to judge whether the application program in the background running state on the electronic equipment is in the mute output state or not, and marks the application program in the mute output state as the abnormal state, so that the electronic equipment can manage and optimize the application program running on the electronic equipment, and the body feeling and the feeling of a user are improved.
Referring to fig. 2, fig. 2 is a schematic flowchart illustrating another embodiment of a management method for an application program according to the present application. The management method comprises the following steps:
s201: and judging whether the application program is in a background running state or not.
When the judgment result of the step S201 is that the application program is in the background running state, executing a step S202; otherwise, if the determination result in step S201 is that the application is not in the background running state, step S206 is executed.
The step S201 is performed mainly for those applications in a running state, so as to increase the execution efficiency of the management method. In addition, when the current state of the application program is in the foreground running state, the foreground running state of the application program can be defaulted to be in the normal state; and when the current state of the application program is in the background running state, further judging whether the application program is in a mute output state, and then judging whether the background running state of the application program has an abnormal condition.
S202: and sampling the audio data stream of the application program.
The electronic device can play sound mainly because an audio file stored on the electronic device generates binary digital audio after being decoded, and the digital audio generates corresponding analog audio after being subjected to digital-to-analog conversion, and the analog audio acts on hardware such as a loudspeaker of the electronic device to produce sound. The audio data stream according to the embodiment of the present application may refer to the binary digital audio.
Based on this, after the digital audio corresponding to the audio file is obtained, the digital audio can be decoded into analog audio by using Pulse Code Modulation (PCM) technology, so as to obtain the amplitude of the analog audio corresponding to the audio data stream.
Further, the audio data stream of the application program may be sampled according to a certain sampling period based on the shannon sampling theorem to obtain a plurality of sampling points. At this time, the initial data of each sampling point corresponds to digital audio, and then corresponding analog audio can be obtained after PCM decoding, so that the amplitude of each sampling point is obtained. Wherein, the initial data of each sampling point can be stored by adopting one of 4, 8, 16 and 32 bit (bit) equivalent depth. For example: when the quantization depth is 8 bits, each sample point can represent (2^8 ═ 256 different quantization values; and the quantization depth is 16 bits, each sample point can represent (2^16 ═ 65536 different quantization values. Obviously, the bit size of the quantization depth affects the quality of sound. That is, the more bits of the quantized depth, the closer the quantized waveform is to the original waveform, the higher the sound quality is, and the more storage space is required; the fewer the number of bits of quantized depth, the lower the quality of the sound and the less storage space required. Generally, 16-bit quantization depth is used for CD sound quality, and 8-bit depth is used for mobile communication. In the embodiment of the present application, an example is given by taking the quantization depth of a sampling point as 16 bits.
S203: it is determined whether the amplitude of each sample point is less than or equal to-60 db.
When the judgment result of the step S203 is that the amplitude of the sampling point is less than or equal to-60 db, executing a step S204; otherwise, if the judgment result of step S203 is that the amplitude of the sampling point is greater than-60 db, step S206 is executed.
Because of the nature of the human ear, the human perception of sound magnitude is logarithmic, and so sound magnitude is often described in decibels. Decibel (decibel) is a unit that measures the ratio of the number of two identical units, and is used primarily to measure sound intensity, often expressed in dB. In acoustics, the intensity of sound is defined as the sound pressure. Decibel values were calculated using 20 micro pascals as a reference (usually considered as the minimum audible response of humans, about mosquito sounds flying over 3 meters). This reference value is the lower threshold limit that humans can perceive sound. The sound pressure is a field quantity, and thus the following formula can be used when calculating decibels using the sound pressure:
Figure BDA0002434216430000081
wherein p in the above formularefRepresenting a standard reference sound pressure value of 20 micro pascals.
Further, in the program, the dynamic range between two sounds can be calculated in decibels using the following formula:
dB=20*log(A1/A2)
wherein a1 and a2 represent the amplitudes of two sounds; the size of each sample point is indicated in the program.
With a sample size (i.e., quantization depth) of 1 bit, the dynamic range is 0, since only one amplitude is possible.
With a sample point size of 8 bits, the maximum amplitude is 256 times the minimum amplitude. Therefore, its dynamic range is (20 × log (256) ═ 48 decibels). Wherein a dynamic range of 48 db is about the difference between a quiet room and an operating electric mower.
With a sample point size of 16 bits, the maximum amplitude is 65536 times the minimum amplitude. Therefore, its dynamic range is (20 × log (65536) ═ 96 decibels. Wherein the 96db dynamic range is very close to the lowest threshold of human hearing and gives rise to the difference between pain sensations.
In general, each sample point is represented by two numbers: { abscissa (time) }, ordinate (amplitude). Where infinity cannot be represented numerically. Therefore, to express the sampling points numerically requires a limit to the amplitude of the ordinate. This limit, in digital audio, is the maximum undistorted peak. In other words, as long as the ordinate of the waveform does not exceed this value, this signal can be represented entirely numerically; otherwise, clipping distortion occurs. Thus, it can be defined that this maximum undistorted peak corresponds to 0db of the amplitude of the digital audio, and takes negative values down; negative infinity corresponds to a complete absence of an audio signal.
Based on the above detailed description, for an audio data stream with 16 bits of quantization depth at sample points, the corresponding amplitude range may be-96 db-0 db. Where-96 db may correspond to a complete absence of the audio signal. The inventors of the present application have found, through long-term research, that when the amplitude of the sampling point is less than or equal to-60 db, the audio signal (corresponding sound) is not heard by the user although the audio signal is present. At this time, the electronic device is in a "pseudo-mute" state.
S204: and determining that the application program is in a mute output state.
In the embodiment of the application, when the amplitude of the sampling point is less than or equal to-60 db, the application program is determined to be in a mute output state.
S205: and marking the running state of the application program as an abnormal state.
For an application program in a running state on an electronic device, when an application program is in a background running state and in a mute output state, the running state of the application program is marked as an abnormal state, so as to perform subsequent processing, which will be described in detail later. However, the operation of marking the running state of the application program as an abnormal state may be unknown to the user.
S206: no treatment is done.
For an application program in a running state on the electronic equipment, when a certain application program is in a foreground running state; or, the running state of the application program is not marked as an abnormal state when the amplitude of the sampling point is larger than-60 db although the application program is in the background running state, namely the application program is not in the mute output state. In other words, the electronic device does not process the application program that normally runs, but only continues to execute the above determining step.
Referring to fig. 3, fig. 3 is a schematic flowchart of a management method of an application according to another embodiment of the present application. The management method comprises the following steps:
s301: and judging whether the application program is in a background running state or not.
When the judgment result of the step S301 is that the application program is in the background running state, executing a step S302; otherwise, if the determination result in step S301 is that the application is not in the background running state, step S307 is executed.
The step S301 is executed mainly for those application programs in a running state, so as to increase the execution efficiency of the management method. In addition, when the current state of the application program is in the foreground running state, the foreground running state of the application program can be defaulted to be in the normal state; and when the current state of the application program is in the background running state, further judging whether the application program is in a mute output state, and then judging whether the background running state of the application program has an abnormal condition.
S302: and judging whether the application program is in a mute output state or not.
When the judgment result of the step S302 is that the application program is in the mute output state, the step S303 is executed; otherwise, if the determination result in step S302 is that the application is not in the mute output state, step S307 is executed.
In this embodiment of the present application, the mute output state may refer to that the application program is in a background running state and outputs an audio signal; but the user cannot hear the audio signal (corresponding sound) so that the electronic device is in a "pseudo-silent" state.
S303: and marking the running state of the application program as an abnormal state.
For an application program in a running state on an electronic device, when an application program is in a background running state and in a mute output state, the running state of the application program is marked as an abnormal state, so as to facilitate subsequent processing. However, the operation of marking the running state of the application program as an abnormal state may be unknown to the user.
S304: and timing the running time of the application program in the abnormal state.
In the process of daily use of the electronic equipment by a user, the current state of the application program can be switched between a foreground running state and a background running state according to the use condition of the user, namely the application program is not always in the foreground running state or the background running state. Further, when the current state of the application program is in the foreground running state, the foreground running state of the application program may be defaulted to be the normal state.
Based on this, when an application is in the background running state and in the mute output state, not only the running state of the application is marked as the abnormal state, but also the running duration of the application in the abnormal state is timed, so as to facilitate subsequent processing, which will be described in detail later.
S305: and judging whether the time length exceeds a preset time length.
If the determination result in the step S305 is that the duration exceeds the preset duration, executing a step S306; otherwise, if the determination result in step S305 is that the duration does not exceed the preset duration, step S307 is executed.
In this embodiment of the application, the preset time period may be set by the default of the electronic device, or may be set by the user, for example, 5 minutes, 10 minutes, 30 minutes, and the like. According to different types of application programs, the user can also set preset duration differently and respectively.
Further, before the running time of the application program in the abnormal state reaches the preset time, if the application program is in the non-silent output state, the running time of the application program in the abnormal state is cleared. At this time, the application originally in the background running state may be switched to the foreground running state by the user, and the foreground running state of the application may be defaulted to the normal state. Therefore, when the application program is switched to the background running state by the user again, whether the application program is in the mute output state or not can be preferentially judged, and then whether the background running state of the application program has an abnormal condition or not can be judged.
It should be noted that the non-silent output state described in the embodiment of the present application may refer to that the application program is in a background running state and outputs an audio signal; and the user can hear the audio signal (corresponding sound). At this time, the amplitude of the audio signal may be greater than-60 db.
S306: and reminding the abnormal state of the application program.
In the embodiment of the application, when the running state of an application is determined to be an abnormal state, the electronic device may remind the user through one of or a combination of a frame flipping mode, a vibration mode, a voice mode and the like. At this time, the user may select whether to terminate the background running state of the application program based on the reminder of the electronic device.
S307: no treatment is done.
Referring to fig. 4, fig. 4 is a schematic flowchart of a management method of an application according to another embodiment of the present disclosure. The management method comprises the following steps:
s401: and judging whether the electronic equipment is in a screen turning state or not.
When the judgment result of the step S401 is that the electronic equipment is in the screen turning-off state, executing a step S402; otherwise, when the determination result in step S401 is that the electronic device is not in the screen-turning-off state, step S406 is executed.
The information screen state described in the embodiment of the present application may refer to that the Display screen of the electronic device does not Display a picture, at this time, for the Display screen such as L CD (L acquired Crystal Display), the backlight module may be in a power-off state, and for the Display screen such as O L ED (Organic L bright-Emitting Diode), the Organic electroluminescent layer is in a power-off state.
S402: and judging whether the application program is in a background running state or not.
When the judgment result of the step S402 is that the application program is in the background running state, executing a step S403; otherwise, if the determination result in step S402 is that the application program is not in the background running state, step S406 is executed.
The step S402 is mainly performed for the application programs in the running state, so as to increase the execution efficiency of the management method. In addition, when the current state of the application program is in the foreground running state, the foreground running state of the application program can be defaulted to be in the normal state; and when the current state of the application program is in the background running state, further judging whether the application program is in a mute output state, and then judging whether the background running state of the application program has an abnormal condition.
S403: and judging whether the application program is in a mute output state or not.
When the judgment result of the step S403 is that the application program is in the mute output state, the step S404 is executed; otherwise, if the determination result in step S403 is that the application is not in the mute output state, step S406 is executed.
In this embodiment of the present application, the mute output state may refer to that the application program is in a background running state and outputs an audio signal; but the user cannot hear the audio signal (corresponding sound) so that the electronic device is in a "pseudo-silent" state.
S404: and marking the running state of the application program as an abnormal state.
For an application program in a running state on an electronic device, when an application program is in a background running state and in a mute output state, the running state of the application program is marked as an abnormal state, so as to facilitate subsequent processing. However, the operation of marking the running state of the application program as an abnormal state may be unknown to the user.
S405: forcibly terminating the background running state of the application.
Based on the above detailed description, the electronic device is in the screen saver state mainly for saving power, and if the application program is in the background running state and also in the mute output state, the application program will occupy the running resources of the electronic device, so that the abnormal state of the application program is obviously contrary to the original purpose that the electronic device is in the screen saver state. At this time, the electronic device can forcibly terminate the background running state of the application program to avoid the running resources of the electronic device from being occupied without any reason, thereby improving the body feeling and the good feeling of the user.
S406: no treatment is done.
Referring to fig. 5, fig. 5 is a schematic flowchart illustrating a method for managing an application according to still another embodiment of the present disclosure. The management method comprises the following steps:
s501: and judging whether the current time is within a preset time period.
When the judgment result of the step S501 is that the current time is within the preset time period, the step S502 is executed; otherwise, if the determination result in step S501 is that the current time is not within the preset time period, step S506 is executed.
In the embodiment of the application, the preset time period can be set by a user according to factors such as use requirements and use habits. The preset time period may be 23:00 of the day to 07:00 of the next day. At this time, since the user is generally in the sleep state, the electronic device is also in the screen turning state, and the user cannot use the electronic device even when sleeping.
S502: and judging whether the application program is in a background running state or not.
When the judgment result of the step S502 is that the application program is in the background running state, executing a step S503; otherwise, if the determination result in step S502 is that the application program is not in the background running state, step S506 is executed.
The step S502 is executed mainly for those applications in a running state, so as to increase the execution efficiency of the management method. In addition, when the current state of the application program is in the foreground running state, the foreground running state of the application program can be defaulted to be in the normal state; and when the current state of the application program is in the background running state, further judging whether the application program is in a mute output state, and then judging whether the background running state of the application program has an abnormal condition.
S503: and judging whether the application program is in a mute output state or not.
When the judgment result of the step S503 is that the application program is in the mute output state, the step S504 is executed; on the contrary, if the determination result in step S503 is that the application is not in the mute output state, step S506 is executed.
In this embodiment of the present application, the mute output state may refer to that the application program is in a background running state and outputs an audio signal; but the user cannot hear the audio signal (corresponding sound) so that the electronic device is in a "pseudo-silent" state.
S504: and marking the running state of the application program as an abnormal state.
For an application program in a running state on an electronic device, when an application program is in a background running state and in a mute output state, the running state of the application program is marked as an abnormal state, so as to facilitate subsequent processing. However, the operation of marking the running state of the application program as an abnormal state may be unknown to the user.
S505: forcibly terminating the background running state of the application.
Based on the above detailed description, within the preset time period, the user may be in a sleep state and cannot use the electronic device, so that the electronic device is also in a screen-off state. In this case, the electronic device is primarily aimed at saving electric energy. If the application program is in the background running state and also in the mute output state, which may occupy the running resources of the electronic device, such an abnormal state of the application program is obviously contrary to the purpose of the electronic device being in the screen-saving state. At this time, the electronic device can forcibly terminate the background running state of the application program to avoid the running resources of the electronic device from being occupied without any reason, thereby improving the body feeling and the good feeling of the user.
S506: no treatment is done.
Referring to fig. 6, fig. 6 is a schematic structural diagram of an embodiment of an electronic device provided in the present application.
The electronic device 60 of the present embodiment may include a first judging module 61, a second judging module 62, and an executing module 63. The first determining module 61 is configured to determine whether the application program is in a background running state, the second determining module 62 is configured to determine whether the application program is in a mute output state, and the executing module 63 is configured to mark the running state of the application program as an abnormal state.
It should be noted that the electronic device 60 of this embodiment is a virtual terminal based on any of the above management method embodiments, and the implementation principle and steps are similar, and are not described herein again.
Referring to fig. 7 and 8 together, fig. 7 is a schematic structural diagram of another embodiment of the electronic device provided in the present application, and fig. 8 is a schematic structural diagram of the electronic device in fig. 7.
In this embodiment, the electronic device 70 may be a portable device such as a mobile phone, a tablet computer, a notebook computer, and a wearable device. In this embodiment, the electronic device 70 is taken as a mobile phone for exemplary explanation.
The electronic device 70 may include a processor 71, a memory 72, radio frequency circuitry 73, an input unit 74, a display unit 75, audio circuitry 76, a speaker 77, and a power supply 78. The memory 72, the radio frequency circuit 73, the input unit 74, the display unit 75, and the audio circuit 76 may be coupled to the processor 71 through a data bus, for example. Further, the power source 78 is used to provide power to the electronic device 70.
Specifically, the radio frequency circuit 73 is used for transmitting and receiving signals; the input unit 74 is used for a user to input information, and may specifically include a touch panel 741, an operation key 742, and the like; the display unit 75 is used for displaying a screen, and specifically may include a display panel 751 and the like; the speaker 77 is electrically coupled to the processor 71 through the audio circuit 76 to facilitate a user hearing an audio file played by the electronic device 70.
Further, the memory 72 is adapted to store a computer program which is executed by the processor 71, when being operated, to carry out the method steps of:
judging whether the application program is in a background running state or not; if the application program is in the background running state, continuously judging whether the application program is in a mute output state; and if the application program is in a mute output state, marking the running state of the application program as an abnormal state.
It should be noted that the electronic device 70 of this embodiment is a physical terminal based on any of the above method embodiments, and the implementation principle and steps are similar, and are not described herein again. Therefore, when being executed by the processor 71, the computer program may also implement other method steps in any of the above embodiments, which are not described herein again.
Referring to fig. 9, fig. 9 is a schematic structural diagram of an embodiment of a computer storage medium provided in the present application.
The computer storage medium 90 of the present embodiment is used for storing a computer program 91, the computer program 91 being executable by a processor for implementing the method steps of:
judging whether the application program is in a background running state or not; if the application program is in the background running state, continuously judging whether the application program is in a mute output state; and if the application program is in a mute output state, marking the running state of the application program as an abnormal state.
It should be noted that the method steps executed by the computer program 91 of the present embodiment are based on any of the above-mentioned method embodiments, and the implementation principle and steps are similar. Therefore, the computer program 91, when being executed by the processor, may also implement other method steps in any of the above embodiments, which are not described herein again.
Embodiments of the present application may be implemented in software functional units and may be stored in a computer readable storage medium when sold or used as a stand-alone product. Based on such understanding, the technical solution of the present application may be substantially implemented or 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, a network device, or the like) or a processor (processor) to execute all or part of the steps of the method according to the embodiments of the present application. 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.
The above description is only a part of the embodiments of the present application, and not intended to limit the scope of the present application, and all equivalent devices or equivalent processes that can be directly or indirectly applied to other related technologies, which are made by using the contents of the present specification and the accompanying drawings, are also included in the scope of the present application.

Claims (10)

1. A method for managing an application, the method comprising:
judging whether the application program is in a background running state or not;
if the application program is in a background running state, continuously judging whether the application program is in a mute output state;
and if the application program is in a mute output state, marking the running state of the application program as an abnormal state.
2. The method according to claim 1, wherein the step of determining whether the application is in a mute output state comprises:
sampling the audio data stream of the application program;
judging whether the amplitude of each sampling point is less than or equal to-60 db or not;
and if the amplitude of the sampling point is less than or equal to-60 db, judging that the application program is in a mute output state.
3. The method for managing according to claim 1, wherein after the step of marking the running status of the application program as an abnormal status, the method further comprises:
timing the running time of the application program in the abnormal state;
judging whether the time length exceeds a preset time length or not;
if the time length exceeds the preset time length; then the abnormal state of the application program is reminded.
4. The management method according to claim 3, wherein before the time length of the application program running in the abnormal state reaches a preset time length, if the application program is in a non-silent output state, the time length of the application program running in the abnormal state is cleared.
5. The method for managing according to claim 1, wherein before the step of determining whether the application program is in a background running state, the method further comprises:
judging whether the electronic equipment is in a screen turning state or not;
if the electronic equipment is in a screen turning state, executing the step of judging whether the application program is in a background running state;
after the step of marking the running state of the application program as the abnormal state, the method further comprises the following steps:
forcibly terminating the background running state of the application program.
6. The method for managing according to claim 1, wherein before the step of determining whether the application program is in a background running state, the method further comprises:
judging whether the current time is within a preset time period;
if the current time is within a preset time period, executing the step of judging whether the application program is in a background running state;
after the step of marking that the running of the application program is in an abnormal state, the method further comprises the following steps:
forcibly terminating the background running state of the application program.
7. The method of claim 1, wherein the application programs include game-type application programs, video-playing-type application programs, and educational learning-type application programs.
8. An electronic device is characterized by comprising a first judging module, a second judging module and an executing module, wherein the first judging module is used for judging whether an application program is in a background running state, the second judging module is used for judging whether the application program is in a mute output state, and the executing module is used for marking the running state of the application program as an abnormal state.
9. An electronic device, comprising a processor and a memory, the processor coupled with the memory;
wherein the memory is adapted to store a computer program which, when executed by the processor, is adapted to carry out the management method of any one of claims 1 to 7.
10. A computer storage medium having a computer program stored thereon, the computer program being executable by a processor to implement the management method of any one of claims 1 to 7.
CN202010246980.9A 2020-03-31 2020-03-31 Electronic device, method for managing application program thereof, and computer storage medium Pending CN111459759A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010246980.9A CN111459759A (en) 2020-03-31 2020-03-31 Electronic device, method for managing application program thereof, and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010246980.9A CN111459759A (en) 2020-03-31 2020-03-31 Electronic device, method for managing application program thereof, and computer storage medium

Publications (1)

Publication Number Publication Date
CN111459759A true CN111459759A (en) 2020-07-28

Family

ID=71680970

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010246980.9A Pending CN111459759A (en) 2020-03-31 2020-03-31 Electronic device, method for managing application program thereof, and computer storage medium

Country Status (1)

Country Link
CN (1) CN111459759A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023078262A1 (en) * 2021-11-02 2023-05-11 维沃移动通信有限公司 Application processing method and apparatus, and electronic device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140052438A1 (en) * 2012-08-20 2014-02-20 Microsoft Corporation Managing audio capture for audio applications
CN110046076A (en) * 2019-04-25 2019-07-23 广州河东科技有限公司 Intelligence system facility environment inspection method, system, equipment and can storage medium
CN110069333A (en) * 2019-04-29 2019-07-30 努比亚技术有限公司 Backstage management-control method, mobile terminal and the computer readable storage medium of application
US20190327284A1 (en) * 2016-12-30 2019-10-24 Huawei Technologies Co., Ltd. Audio Data Processing Method and Apparatus

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140052438A1 (en) * 2012-08-20 2014-02-20 Microsoft Corporation Managing audio capture for audio applications
US20190327284A1 (en) * 2016-12-30 2019-10-24 Huawei Technologies Co., Ltd. Audio Data Processing Method and Apparatus
CN110046076A (en) * 2019-04-25 2019-07-23 广州河东科技有限公司 Intelligence system facility environment inspection method, system, equipment and can storage medium
CN110069333A (en) * 2019-04-29 2019-07-30 努比亚技术有限公司 Backstage management-control method, mobile terminal and the computer readable storage medium of application

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023078262A1 (en) * 2021-11-02 2023-05-11 维沃移动通信有限公司 Application processing method and apparatus, and electronic device

Similar Documents

Publication Publication Date Title
CN105872253B (en) Live broadcast sound processing method and mobile terminal
CN106953990B (en) Incoming call answering method of mobile terminal and mobile terminal
CN107580113B (en) Reminding method, device, storage medium and terminal
CN102172044B (en) Control method and apparatus for audio output
US20090176540A1 (en) Audio selection control for personal communication devices
JP2015515643A (en) Instant communication speech recognition method and terminal
CN107465824B (en) Volume adjusting method and device, mobile terminal and storage medium
CN107371102B (en) Audio playing volume control method and device, storage medium and mobile terminal
US11201598B2 (en) Volume adjusting method and mobile terminal
WO2017215654A1 (en) Method for preventing abrupt change of sound effect, and terminal
KR100783113B1 (en) Method for shortened storing of music file in mobile communication terminal
CN107799113B (en) Audio processing method and device, storage medium and mobile terminal
CN107526570B (en) Volume adjusting method and device, terminal equipment and storage medium
CN111459759A (en) Electronic device, method for managing application program thereof, and computer storage medium
CN113824835A (en) Volume control method and device, electronic equipment and storage medium
CN106126170B (en) Sound effect setting method of terminal and terminal
CN111277697B (en) Audio processing method and device, storage medium and electronic equipment
CN111147730B (en) Shooting control method and device, electronic equipment and storage medium
WO2020051881A1 (en) Information prompt method and related product
CN107681993B (en) Method for adjusting audio parameters and mobile terminal
CN108235288B (en) A kind of Bluetooth audio frequency playback method and mobile terminal
CN110392878B (en) Sound control method and mobile terminal
CN113039518B (en) Playing control method and device, computer readable storage medium and electronic equipment
CN111324331A (en) Interactive message prompting method and device, electronic equipment and storage medium
CN111739496A (en) Audio processing method, device and storage medium

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200728

RJ01 Rejection of invention patent application after publication