CN108519913B - Application program running state management method and device, storage medium and terminal - Google Patents

Application program running state management method and device, storage medium and terminal Download PDF

Info

Publication number
CN108519913B
CN108519913B CN201810302184.5A CN201810302184A CN108519913B CN 108519913 B CN108519913 B CN 108519913B CN 201810302184 A CN201810302184 A CN 201810302184A CN 108519913 B CN108519913 B CN 108519913B
Authority
CN
China
Prior art keywords
state
screen
terminal
application program
audio
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.)
Active
Application number
CN201810302184.5A
Other languages
Chinese (zh)
Other versions
CN108519913A (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.)
Guangzhou Kugou Computer Technology Co Ltd
Original Assignee
Guangzhou Kugou Computer Technology 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 Guangzhou Kugou Computer Technology Co Ltd filed Critical Guangzhou Kugou Computer Technology Co Ltd
Priority to CN201810302184.5A priority Critical patent/CN108519913B/en
Publication of CN108519913A publication Critical patent/CN108519913A/en
Application granted granted Critical
Publication of CN108519913B publication Critical patent/CN108519913B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/485Task life-cycle, e.g. stopping, restarting, resuming execution

Abstract

The invention discloses a method and a device for managing the running state of an application program, a storage medium and a terminal, and belongs to the technical field of terminals. The method comprises the following steps: monitoring the screen state of the terminal; when the terminal is converted from the screen unlocking state to the screen locking state, controlling the target application program to execute audio management operation in the screen locking state so as to enable the target application program to continuously maintain the running state in the screen locking state; and the target application program is in a running state in the screen unlocking state. When the terminal is converted from the screen unlocking state to the screen locking state, the terminal can control the target application program to execute the audio management operation in the screen locking state, so that the target application program can continuously maintain the running state in the screen locking state.

Description

Application program running state management method and device, storage medium and terminal
Technical Field
The present invention relates to the field of terminal technologies, and in particular, to a method and an apparatus for managing an operating status of an application, a storage medium, and a terminal.
Background
In order to reduce power consumption of the terminal, the system usually terminates the currently running application program when the terminal is in the screen locking state, that is, the currently running application program is switched from the running state to the termination running state. Although this way reduces the power consumption of the terminal to a great extent, terminating the running of all the applications also brings inconvenience to the user in using the terminal, and the user may want some applications to be able to keep running in the locked state, so that in special cases, an application can be used immediately after being unlocked without restarting the application and waiting for the start time. Therefore, in the screen locking state, how to manage the running state of the application program so as to facilitate the user to use the terminal becomes a focus of attention of those skilled in the art.
Disclosure of Invention
The embodiment of the invention provides a method, a device, a storage medium and a terminal for managing the running state of an application program, and solves the problem of poor management effect on the running state of the application program in the related art. The technical scheme is as follows:
in one aspect, a method for managing an operating state of an application program is provided, where the method includes:
monitoring the screen state of the terminal;
when the terminal is converted from a screen unlocking state to a screen locking state, controlling a target application program to execute audio management operation in the screen locking state so as to enable the target application program to continuously maintain an operating state in the screen locking state;
wherein the target application is in a running state in the screen unlocked state.
In another embodiment, the controlling the target application to perform the audio management operation in the lock screen state includes:
and executing the recording operation in the screen locking state, and adjusting the audio recording volume of the recording operation to be zero.
In another embodiment, the controlling the target application to perform the audio management operation in the lock screen state includes:
and executing audio playing operation in the screen locking state, and adjusting the audio playing volume of the audio playing operation to be zero.
In another embodiment, the method further comprises:
and when the terminal is converted from the screen locking state to the screen unlocking state, controlling the target application program to stop executing the recording operation in the screen unlocking state.
In another embodiment, the target application is an application for audio management.
In another aspect, an apparatus for managing an operating state of an application is provided, the apparatus including:
the monitoring module is used for monitoring the screen state of the terminal;
the processing module is used for controlling a target application program to execute audio management operation in the screen locking state when the terminal is converted from the screen unlocking state to the screen locking state, so that the target application program can continuously maintain the running state in the screen locking state;
wherein the target application is in a running state in the screen unlocked state.
In another embodiment, the processing module is further configured to execute a recording operation in the screen lock state, and adjust an audio recording volume of the recording operation to zero.
In another embodiment, the processing module is further configured to execute an audio playing operation in the screen lock state, and adjust an audio playing volume of the audio playing operation to zero.
In another embodiment, the processing module is further configured to control the target application to terminate the recording operation in the screen unlock state when the terminal is switched from the screen lock state to the screen unlock state.
In another aspect, a storage medium is provided, where at least one instruction is stored, and the at least one instruction is loaded and executed by a processor to implement the method for managing the running state of an application program.
In another aspect, a terminal for managing an operating state of an application program is provided, where the terminal includes a processor and a memory, and the memory stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the above-mentioned method for managing an operating state of an application program.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
when the terminal is converted from the screen unlocking state to the screen locking state, the target application program can be controlled to execute the audio management operation in the screen locking state, so that the target application program can continuously maintain the running state in the screen locking state.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, 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 of a method for managing an operating state of an application according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for managing an operating state of an application according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an application running state management apparatus according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a terminal for managing an application running state according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
Before explaining the embodiments of the present invention in detail, terms and implementation scenarios related to the embodiments of the present invention will be explained below.
The application program comprises the following steps: refers to a software program installed on a terminal, which can improve the deficiency of a terminal system and embody user personalization. Among them, the application program is one of the important means for the terminal to improve its functions and provide richer use experience for the user.
In another embodiment, an execution subject of the method for managing the running state of the application program provided by the embodiment of the present invention is a terminal, and the method is specifically applied in a scene where a screen lock occurs in the terminal. The method can be theoretically implemented on a terminal with a display screen, and the terminal types include but are not limited to mobile phones, tablet computers and the like.
In another embodiment, the terminal system performs power consumption optimization processing in a high-version terminal system, so that the running application program is terminated by the terminal system when the terminal is in a screen locking state, so as to reduce the power consumption of the terminal. However, terminating all applications in the locked screen state will certainly bring a bad use experience to the user, especially for the audio playing application or some audio related applications. Therefore, the embodiment of the invention provides a method for preventing an application program from being terminated by a terminal system in a screen locking state.
Specifically, in the embodiment of the present invention, the running state of the application program is managed by performing silent recording and playing an audio segment with a volume of zero, and for a more detailed explanation, refer to the following implementation manners.
Fig. 1 is a flowchart of a method for managing an operating state of an application according to an embodiment of the present invention. Referring to fig. 1, the method provided by the implementation of the present invention comprises:
101. and monitoring the screen state of the terminal.
In the embodiment of the invention, the screen state of the terminal can be divided into a screen unlocking state (namely a normal use state) and a screen locking state. In a normal use state, after a terminal starts a target application program, background Service (Service) can be synchronously and automatically run, and a system is also registered to broadcast to monitor a screen locking unlocking state and a screen locking state. In another expression, the embodiment of the present invention utilizes system broadcast to monitor the screen status of the terminal.
The target application program refers to an application program which is not only in a running state in a screen unlocking state, but also can continuously maintain the running state in a screen locking state. For example, the target application may be an application for audio management, such as an audio playback application or some audio-related application. The application related to the audio may be an audio recognition application, which is not particularly limited in this embodiment of the present invention. And the audio recognition application is mainly used to recognize the singer, the name, etc. of the audio.
102. And when the terminal is converted from the screen unlocking state to the screen locking state, controlling the target application program to execute audio management operation in the screen locking state so as to enable the target application program to continuously maintain the running state in the screen locking state.
The target application executes the audio management operation in a mute state. The embodiment of the invention realizes that the target application program continuously maintains the running state in the screen locking state in a mode of carrying out mute recording and playing a section of audio with zero volume. Taking the target application as the audio recognition application as an example, the two modes will be described below.
First, silent recording mode
In this manner, the audio recognition application may invoke the system recording service AudioRecord-group new AudioRecord () to implement silent recording. Specifically, in the screen lock state, the embodiment of the present invention starts audio recording background. That is, the audio recording volume is adjusted to zero, so that in a mute state, the audio recognition application completes the mute recording by calling the system recording service.
In summary, the specific process of the silent recording mode is as follows: and executing the recording operation in the screen locking state, and adjusting the audio recording volume of the recording operation to be zero, namely recording a section of audio with the volume of zero.
Since the default audio recognition application of the terminal system refers to the system sound at this time, the audio recognition application currently in the running state is not terminated by the terminal system under the condition of screen locking.
It should be noted that, in order to avoid the adverse effect of the silent recording mode on other functions of the terminal, the volume of the system is kept unchanged in the whole process.
Second, a way to play a segment of audio with zero volume
This embodiment can produce the same effects as those of the first embodiment.
The specific execution process comprises the following steps: and executing the audio playing operation in the screen locking state, and adjusting the audio playing volume of the audio playing operation to be zero. The audio identification application may specifically call a background service or other application with an audio playing function to complete audio playing, which is not specifically limited in the embodiment of the present invention.
In addition, after the terminal is converted from the screen unlock state to the screen lock state, after a period of time, the terminal may be converted from the screen lock state to the screen unlock state again, and for such a situation, referring to fig. 2, the embodiment of the present invention further includes:
103. and when the terminal is converted into the screen unlocking state from the screen locking state, controlling the target application program to stop executing the recording operation in the screen unlocking state.
Continuing to take the target application as the audio recognition application as an example, when the terminal is switched from the screen locking state to the screen unlocking state again, the embodiment of the invention controls the audio recognition application to stop executing the silent recording in the unlocking state. Stop () is started, for example, to terminate the continuation of silent recording.
This is done to avoid the silent recording operation affecting other functions of the application. Continuing with the example of the audio recognition application, the audio recognition application also needs to record the audio, which will definitely conflict with the aforementioned silent recording, so that the previous silent recording needs to be released immediately in the screen unlock state to avoid interfering with the audio recognition application for audio recognition.
According to the method provided by the embodiment of the invention, when the terminal is converted from the screen unlocking state to the screen locking state, the target application program can be controlled to execute the audio management operation in the screen locking state, so that the target application program can continuously maintain the running state in the screen locking state.
Fig. 3 is a schematic structural diagram of an application running state management apparatus according to an embodiment of the present invention. Referring to fig. 3, the apparatus includes:
a monitoring module 301, configured to monitor a screen state of a terminal;
a processing module 302, configured to control a target application to execute an audio management operation in a screen locking state when the terminal is converted from a screen unlocking state to a screen locking state, so that the target application continues to maintain an operating state in the screen locking state;
wherein the target application is in a running state in the screen unlocked state.
According to the device provided by the embodiment of the invention, when the terminal is converted from the screen unlocking state to the screen locking state, the target application program can be controlled to execute the audio management operation in the screen locking state, so that the target application program can continuously maintain the running state in the screen locking state.
In another embodiment, the processing module is further configured to execute a recording operation in the screen lock state, and adjust an audio recording volume of the recording operation to zero.
In another embodiment, the processing module is further configured to execute an audio playing operation in the screen lock state, and adjust an audio playing volume of the audio playing operation to zero.
In another embodiment, the processing module is further configured to control the target application to terminate the recording operation in the screen unlock state when the terminal is switched from the screen lock state to the screen unlock state.
All the above optional technical solutions may be combined arbitrarily to form the optional embodiments of the present disclosure, and are not described herein again.
It should be noted that: the foregoing embodiment provides an operation state management apparatus for an application program, which only exemplifies the division of the functional modules when managing the operation state of the application program, and in an actual application program, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the above described functions. In addition, the operation state management device of the application program provided in the above embodiment and the operation state management method embodiment of the application program belong to the same concept, and specific implementation processes thereof are detailed in the method embodiment and are not described herein again.
Fig. 4 shows a block diagram of a terminal 400 according to an exemplary embodiment of the present invention. The terminal 400 may be a portable mobile terminal such as: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, motion video Experts compression standard Audio Layer 3), an MP4 player (Moving Picture Experts Group Audio Layer IV, motion video Experts compression standard Audio Layer 4), a notebook computer, or a desktop computer. The terminal 400 may also be referred to by other names such as user equipment, portable terminal, laptop terminal, desktop terminal, etc.
Generally, the terminal 400 includes: a processor 401 and a memory 402.
Processor 401 may include one or more processing cores, such as a 4-core processor, an 8-core processor, or the like. The processor 401 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 401 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 401 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed by the display screen. In some embodiments, the processor 401 may further include an AI (Artificial Intelligence) processor for processing computing operations related to machine learning.
Memory 402 may include one or more computer-readable storage media, which may be non-transitory. Memory 402 may also include high speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in the memory 402 is used to store at least one instruction for execution by the processor 401 to implement the method for managing the running state of an application provided by the method embodiments of the present application.
In some embodiments, the terminal 400 may further optionally include: a peripheral interface 403 and at least one peripheral. The processor 401, memory 402 and peripheral interface 403 may be connected by bus or signal lines. Each peripheral may be connected to the peripheral interface 403 via a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuitry 404, touch screen display 405, camera 406, audio circuitry 407, positioning components 408, and power supply 409.
The peripheral interface 403 may be used to connect at least one peripheral related to I/O (Input/Output) to the processor 401 and the memory 402. In some embodiments, processor 401, memory 402, and peripheral interface 403 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 401, the memory 402 and the peripheral interface 403 may be implemented on a separate chip or circuit board, which is not limited by this embodiment.
The Radio Frequency circuit 404 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuitry 404 communicates with communication networks and other communication devices via electromagnetic signals. The rf circuit 404 converts an electrical signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 404 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuitry 404 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: the world wide web, metropolitan area networks, intranets, generations of mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the rf circuit 404 may further include NFC (Near field communication) related circuits, which are not limited in this application.
The display screen 405 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 405 is a touch display screen, the display screen 405 also has the ability to capture touch signals on or over the surface of the display screen 405. The touch signal may be input to the processor 401 as a control signal for processing. At this point, the display screen 405 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the display screen 405 may be one, providing the front panel of the terminal 400; in other embodiments, the display screen 405 may be at least two, respectively disposed on different surfaces of the terminal 400 or in a folded design; in still other embodiments, the display 405 may be a flexible display disposed on a curved surface or a folded surface of the terminal 400. Even further, the display screen 405 may be arranged in a non-rectangular irregular pattern, i.e. a shaped screen. The Display screen 405 may be made of LCD (Liquid Crystal Display), OLED (organic light-Emitting Diode), and other materials.
The camera assembly 406 is used to capture images or video. Optionally, camera assembly 406 includes a front camera and a rear camera. Generally, a front camera is disposed at a front panel of the terminal, and a rear camera is disposed at a rear surface of the terminal. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments, camera assembly 406 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
The audio circuit 407 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals to the processor 401 for processing, or inputting the electric signals to the radio frequency circuit 404 for realizing voice communication. For the purpose of stereo sound collection or noise reduction, a plurality of microphones may be provided at different portions of the terminal 400. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is used to convert electrical signals from the processor 401 or the radio frequency circuit 404 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, audio circuitry 407 may also include a headphone jack.
The positioning component 408 is used to locate the current geographic position of the terminal 400 for navigation or LBS (Location Based Service). The Positioning component 408 can be a Positioning component based on the Global Positioning System (GPS) in the united states, the beidou System in china, or the galileo System in russia.
The power supply 409 is used to supply power to the various components in the terminal 400. The power source 409 may be alternating current, direct current, disposable or rechargeable. When the power source 409 includes a rechargeable battery, the rechargeable battery may be a wired rechargeable battery or a wireless rechargeable battery. The wired rechargeable battery is a battery charged through a wired line, and the wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, the terminal 400 also includes one or more sensors 410. The one or more sensors 410 include, but are not limited to: acceleration sensor 411, gyro sensor 412, pressure sensor 413, fingerprint sensor 414, optical sensor 415, and proximity sensor 416.
The acceleration sensor 411 may detect the magnitude of acceleration in three coordinate axes of the coordinate system established with the terminal 400. For example, the acceleration sensor 411 may be used to detect components of the gravitational acceleration in three coordinate axes. The processor 401 may control the touch display screen 405 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 411. The acceleration sensor 411 may also be used for acquisition of motion data of a game or a user.
The gyro sensor 412 may detect a body direction and a rotation angle of the terminal 400, and the gyro sensor 412 may cooperate with the acceleration sensor 411 to acquire a 3D motion of the terminal 400 by the user. From the data collected by the gyro sensor 412, the processor 401 may implement the following functions: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
The pressure sensor 413 may be disposed on a side bezel of the terminal 400 and/or a lower layer of the touch display screen 405. When the pressure sensor 413 is disposed on the side frame of the terminal 400, a user's holding signal to the terminal 400 can be detected, and the processor 401 performs left-right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 413. When the pressure sensor 413 is disposed at the lower layer of the touch display screen 405, the processor 401 controls the operability control on the UI interface according to the pressure operation of the user on the touch display screen 405. The operability control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.
The fingerprint sensor 414 is used for collecting a fingerprint of the user, and the processor 401 identifies the identity of the user according to the fingerprint collected by the fingerprint sensor 414, or the fingerprint sensor 414 identifies the identity of the user according to the collected fingerprint. Upon recognizing that the user's identity is a trusted identity, processor 401 authorizes the user to perform relevant sensitive operations including unlocking the screen, viewing encrypted information, downloading software, paying, and changing settings, etc. The fingerprint sensor 414 may be disposed on the front, back, or side of the terminal 400. When a physical key or vendor Logo is provided on the terminal 400, the fingerprint sensor 414 may be integrated with the physical key or vendor Logo.
The optical sensor 415 is used to collect the ambient light intensity. In one embodiment, the processor 401 may control the display brightness of the touch display screen 405 based on the ambient light intensity collected by the optical sensor 415. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 405 is increased; when the ambient light intensity is low, the display brightness of the touch display screen 405 is turned down. In another embodiment, the processor 401 may also dynamically adjust the shooting parameters of the camera assembly 406 according to the ambient light intensity collected by the optical sensor 415.
A proximity sensor 416, also known as a distance sensor, is typically disposed on the front panel of the terminal 400. The proximity sensor 416 is used to collect the distance between the user and the front surface of the terminal 400. In one embodiment, when the proximity sensor 416 detects that the distance between the user and the front surface of the terminal 400 gradually decreases, the processor 401 controls the touch display screen 405 to switch from the bright screen state to the dark screen state; when the proximity sensor 416 detects that the distance between the user and the front surface of the terminal 400 gradually becomes larger, the processor 401 controls the touch display screen 405 to switch from the breath screen state to the bright screen state.
Those skilled in the art will appreciate that the configuration shown in fig. 4 is not intended to be limiting of terminal 400 and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components may be used.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (7)

1. A method for managing an operating state of an application, the method comprising:
monitoring the screen state of the terminal;
when the terminal is converted from a screen unlocking state to a screen locking state, executing a recording operation in the screen locking state, and adjusting the audio recording volume of the recording operation to zero, or executing an audio playing operation in the screen locking state, and adjusting the audio playing volume of the audio playing operation to zero, so that the target application program continues to maintain the running state in the screen locking state;
wherein the target application is in a running state in the screen unlocked state.
2. The method of claim 1, further comprising:
and when the terminal is converted from the screen locking state to the screen unlocking state, controlling the target application program to stop executing the recording operation in the screen unlocking state.
3. The method of any one of claims 1 or 2, wherein the target application is an application for audio management.
4. An apparatus for managing an operating state of an application, the apparatus comprising:
the monitoring module is used for monitoring the screen state of the terminal;
the processing module is used for executing a recording operation in the screen locking state and adjusting the audio recording volume of the recording operation to zero when the terminal is converted from the screen unlocking state to the screen locking state, or executing an audio playing operation in the screen locking state and adjusting the audio playing volume of the audio playing operation to zero so that the target application program continues to maintain the running state in the screen locking state;
wherein the target application is in a running state in the screen unlocked state.
5. The apparatus of claim 4, wherein the processing module is further configured to control the target application to terminate the recording operation in the screen unlock state when the terminal is transitioned from the screen lock state to the screen unlock state.
6. A storage medium having stored therein at least one instruction, which is loaded and executed by a processor to implement a method for managing an operating state of an application program according to any one of claims 1 to 3.
7. A terminal for managing an operation state of an application, the terminal comprising a processor and a memory, the memory having stored therein at least one instruction, the at least one instruction being loaded and executed by the processor to implement the operation state management method of an application according to any one of claims 1 to 3.
CN201810302184.5A 2018-04-04 2018-04-04 Application program running state management method and device, storage medium and terminal Active CN108519913B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810302184.5A CN108519913B (en) 2018-04-04 2018-04-04 Application program running state management method and device, storage medium and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810302184.5A CN108519913B (en) 2018-04-04 2018-04-04 Application program running state management method and device, storage medium and terminal

Publications (2)

Publication Number Publication Date
CN108519913A CN108519913A (en) 2018-09-11
CN108519913B true CN108519913B (en) 2021-08-27

Family

ID=63432166

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810302184.5A Active CN108519913B (en) 2018-04-04 2018-04-04 Application program running state management method and device, storage medium and terminal

Country Status (1)

Country Link
CN (1) CN108519913B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114115793A (en) * 2021-12-01 2022-03-01 维沃移动通信有限公司 Audio adjusting method and audio adjusting device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102497469A (en) * 2011-11-25 2012-06-13 深圳市五巨科技有限公司 Method and device for operating music player in screen lock state
CN102752431A (en) * 2012-06-29 2012-10-24 武汉钢铁(集团)公司 Method for achieving voice intercom of Android mobile phone
CN105867759A (en) * 2015-12-15 2016-08-17 乐视移动智能信息技术(北京)有限公司 Operation method and apparatus in screen-locking mode

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8042049B2 (en) * 2003-11-03 2011-10-18 Openpeak Inc. User interface for multi-device control
CN102750066A (en) * 2011-04-20 2012-10-24 上海三旗通信科技股份有限公司 Control mode for realizing specific function under screen locking state of touch screen terminal
US9088450B2 (en) * 2012-10-31 2015-07-21 Elwha Llc Methods and systems for data services
CN103150112B (en) * 2013-02-28 2017-03-01 小米科技有限责任公司 Control method, device and terminal that audio frequency is play
CN103941998A (en) * 2014-03-25 2014-07-23 惠州Tcl移动通信有限公司 Method and system for controlling music playing of mobile terminal through screen tapping or gesture recognizing

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102497469A (en) * 2011-11-25 2012-06-13 深圳市五巨科技有限公司 Method and device for operating music player in screen lock state
CN102752431A (en) * 2012-06-29 2012-10-24 武汉钢铁(集团)公司 Method for achieving voice intercom of Android mobile phone
CN105867759A (en) * 2015-12-15 2016-08-17 乐视移动智能信息技术(北京)有限公司 Operation method and apparatus in screen-locking mode

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
锁屏或Home键继续播放音乐;LIN1986LIN;《CSDN》;20140416;第1页 *

Also Published As

Publication number Publication date
CN108519913A (en) 2018-09-11

Similar Documents

Publication Publication Date Title
CN110602321B (en) Application program switching method and device, electronic device and storage medium
CN109874312B (en) Method and device for playing audio data
CN110022489B (en) Video playing method, device and storage medium
CN110971930A (en) Live virtual image broadcasting method, device, terminal and storage medium
CN110308956B (en) Application interface display method and device and mobile terminal
CN108762881B (en) Interface drawing method and device, terminal and storage medium
CN108881286B (en) Multimedia playing control method, terminal, sound box equipment and system
CN109862412B (en) Method and device for video co-shooting and storage medium
CN110288689B (en) Method and device for rendering electronic map
CN109783176B (en) Page switching method and device
CN107888975B (en) Video playing method, device and storage medium
CN111191227A (en) Method and device for preventing malicious code from executing
CN110868642B (en) Video playing method, device and storage medium
CN108966026B (en) Method and device for making video file
CN108519913B (en) Application program running state management method and device, storage medium and terminal
CN112181915A (en) Method, device, terminal and storage medium for executing service
CN112669884B (en) Audio data processing method, device, equipment and storage medium
CN111711841B (en) Image frame playing method, device, terminal and storage medium
CN111464829B (en) Method, device and equipment for switching media data and storage medium
CN114594885A (en) Application icon management method, device and equipment and computer readable storage medium
CN114388001A (en) Multimedia file playing method, device, equipment and storage medium
CN112015612B (en) Method and device for acquiring stuck information
CN108877845B (en) Song playing method and device
CN108881715B (en) Starting method and device of shooting mode, terminal and storage medium
CN109275015B (en) Method, device and storage medium for displaying virtual article

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