CN113039516A - Method and device for processing application program and electronic equipment - Google Patents
Method and device for processing application program and electronic equipment Download PDFInfo
- Publication number
- CN113039516A CN113039516A CN201880098195.4A CN201880098195A CN113039516A CN 113039516 A CN113039516 A CN 113039516A CN 201880098195 A CN201880098195 A CN 201880098195A CN 113039516 A CN113039516 A CN 113039516A
- Authority
- CN
- China
- Prior art keywords
- application program
- audio
- playing
- call
- behavior
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/16—Sound input; Sound output
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/725—Cordless telephones
Abstract
The invention relates to a method for processing an application program, which comprises the following steps: monitoring the conversation behavior of the electronic equipment to determine the conversation state of the electronic equipment; if the electronic equipment is determined to be in the hang-up state, monitoring the audio playing behavior of an application program in the electronic equipment to determine the audio output state of the electronic equipment; if the audio is output when the electronic equipment is determined to be in the hang-up state, analyzing the audio playing behavior of the application program to determine whether the application program is abnormally played; and if the application program is determined to be abnormally played, processing the application program. Correspondingly, the invention further provides a device for processing the application program, the electronic equipment and the readable storage medium, so that the problem of abnormal audio playing of the application program is solved, and the user experience is improved.
Description
The present application relates to the field of information technology, and in particular, to a method and an apparatus for processing an application program, an electronic device, and a computer-readable storage medium.
With the rapid development of the internet, the smart mobile terminal has become the most common electronic device for many users, such as a smart phone, a tablet phone, and the like. At present, the screen of the mobile phone is getting bigger and bigger, and more application programs are installed by a user, especially some audio and video playing software, such as dog music, storm video, fast-hand, potato video, and the like. The user can use the installed application program to carry out various entertainment activities such as listening to music, watching videos and the like, and great convenience is brought to the life of the user. However, the mobile terminal manages the application program unreasonably, so that the application program on the terminal can be played at random in the background, and the user experience is seriously influenced.
Disclosure of Invention
Based on this, there is a need to provide a method and apparatus capable of solving the problem of abnormal audio playing of an application program.
The embodiment of the application provides a method for processing an application program, which comprises the following steps:
monitoring the conversation behavior of the electronic equipment to determine the conversation state of the electronic equipment;
if the electronic equipment is determined to be in the hang-up state, monitoring the audio playing behavior of an application program in the electronic equipment to determine the audio output state of the electronic equipment;
if the audio is output when the electronic equipment is determined to be in the hang-up state, analyzing the audio playing behavior of the application program to determine whether the application program is abnormally played;
and if the application program is determined to be abnormally played, processing the application program.
An embodiment of the present application provides an apparatus for processing an application, including:
the first monitoring module is used for monitoring the conversation behavior of the electronic equipment so as to determine the conversation state of the electronic equipment;
the second monitoring module is used for monitoring the audio playing behavior of an application program in the electronic equipment to determine the audio output state of the electronic equipment if the electronic equipment is determined to be in a hang-up state;
the analysis module is used for analyzing the playing behavior of the application program to determine whether the application program is abnormally played or not if the audio is output when the electronic equipment is determined to be in the hang-up state;
and the processing module is used for processing the application program if the application program is determined to be abnormally played.
An embodiment of the present invention further provides an electronic device, including a memory and a processor, where the memory stores a computer program, and when the computer program is executed by the processor, the processor is enabled to execute:
monitoring the conversation behavior of the electronic equipment to determine the conversation state of the electronic equipment;
if the electronic equipment is determined to be in the hang-up state, monitoring the audio playing behavior of an application program in the electronic equipment to determine the audio output state of the electronic equipment;
if the audio is output when the electronic equipment is determined to be in the hang-up state, analyzing the audio playing behavior of the application program to determine whether the application program is abnormally played;
and if the application program is determined to be abnormally played, processing the application program.
Embodiments of the present application further provide a computer non-transitory readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of processing an application program as described above.
When the electronic equipment and the computer readable storage medium realize the method, the application program is processed according to the call state of the electronic equipment and the audio playing behavior of the application program, so that the problem of abnormal audio playing of the application program is solved, and the user experience is improved.
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings of the embodiments can be obtained according to the drawings without creative efforts.
FIG. 1 is a flowchart of a method for processing an application according to one embodiment;
FIG. 2 is a block diagram of an apparatus for processing an application according to an embodiment;
FIG. 3 is a schematic diagram of an internal structure of an electronic device according to an embodiment;
fig. 4 is a block diagram of a partial structure of an electronic device related to a computer device provided in an embodiment of the present application.
To facilitate an understanding of the invention, the invention will now be described more fully with reference to the accompanying drawings. Preferred embodiments of the present invention are shown in the drawings. This invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete.
It will be understood that, as used herein, the terms "first," "second," and the like may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another. For example, a first listening module may be referred to as a second listening module, and similarly, a second listening module may be referred to as a first listening module, without departing from the scope of the present application. Both the first and second listening modules are listening modules, but they are not the same listening module.
As shown in fig. 1, an embodiment of the present application provides a method for processing an application program, which is applied to an electronic device, and the method includes:
s110, monitoring the call behavior of the electronic equipment to determine the call state of the electronic equipment.
In one embodiment, during a call, an electronic device may monitor a voice signal of the call in real time, determine whether a call drop event is triggered according to the monitored voice signal, and determine that the electronic device is in a drop state when the call drop event is triggered.
Specifically, during the call, the electronic device detects in real time whether a voice signal is transmitted in an audio channel of the current electronic device, where the voice signal includes a voice signal input by a microphone of the current electronic device and a voice signal transmitted from the network side by the other party. When at least one voice signal is monitored, the communication is still carried out; if any voice signal is not monitored within the first preset time, or the electronic equipment receives that the user presses an entity or virtual call ending key, the electronic equipment determines that a call hang-up event is triggered and determines that the call is in a hang-up state.
In the above embodiment, the first preset time may be 30s, 1 minute, or two minutes, and the specific duration is determined according to an actual situation, which is not limited in this embodiment. In the process of calling, the terminal monitors the voice signal of the calling in real time, if the voice signal is not monitored in the first preset time, the terminal judges that the call hanging-up event is triggered, namely, the two calling parties forget to hang up the call, and the call is automatically hung up at the moment, so that the problem of resource waste caused by forgetting to hang up the call of the two calling parties is solved.
In one embodiment, before monitoring the call behavior of the electronic device, the electronic device may further record audio behaviors of all applications in the electronic device to form a log record, and the log record may include: one or more combinations of the play records, the audio mode adjustment behavior records or the recording behavior records of all the applications in the electronic device, for example, only the play records, only the audio mode adjustment behaviors or a combination of a plurality of records may be recorded, and the specific combination form is not limited.
Specifically, after the electronic device is turned on, a service with monitoring and recording functions is started to acquire and record running information of all application programs in the electronic device in real time. Taking the application program storm audio and video as an example for explanation, after the electronic device is turned on, the started monitoring service monitors and records the running information of the storm audio and video in real time to form a log record, and the log record may include the playing record, the audio mode adjustment behavior record and/or the recording behavior record of the storm audio and video. The playing record may include various types, such as time of occupying resources in the background, time of releasing resources in the background, time of occupying resources in the foreground, and time of releasing resources in the foreground, which are not specifically limited herein. The playing record corresponding to each type can comprise a plurality of logs, each log can comprise a time pair, and the time for playing the storm audio and video once can be calculated according to the time pairs. For example, the resource occupation time of storm audio and video in the foreground is 10: 10; the time to release resources at the foreground is 11: 00. resource occupation time in the background is 13: 20; the time to release resources in the background is 14: 00. according to the log records, the storm video can be played twice in the foreground, and the first time is from 10: 10 to 11: 00, played for 50 minutes, the second time from 13: 20 to 14: 00, played for 40 minutes.
In one embodiment, log records corresponding to all the application programs in the electronic device may be stored in a memory of the electronic device in a form of a database, and the log records may be accessed through an internal instruction when required to be called, so as to determine the log records corresponding to the application programs.
And S120, if the electronic equipment is determined to be in the hang-up state, monitoring the audio playing behavior of the application program in the electronic equipment to determine the audio output state of the electronic equipment.
In an embodiment, the monitoring the playing behavior of the application program may specifically be that the electronic device monitors creation and release of an audio resource through a service in an application layer to obtain the audio playing behavior of the application program.
Specifically, the creation and release of the audio resource are monitored through a service (service) in an application layer of the mobile phone, and the audio output condition of the audio resource is obtained. If the audio resource is created by the application program, the application program starts playing. In addition, corresponding time is recorded when the audio resource is created and released, and the time that the application program occupies the audio resource is calculated according to the time difference between the creation of the audio resource and the release of the audio resource, namely the time that the application program plays the audio.
In an embodiment, the electronic device may also monitor the audio playing behavior of the application through a built-in monitoring function, taking the electronic device of the android system as an example, a system-level monitoring module may be created in a system framework layer (native/frame layer), and the audio playing behavior of the application is monitored through the monitoring module, or a monitoring process is independently created, and the audio playing behavior of the application is monitored through a message transmission mechanism. For example, a monitoring module can be set up in the framework layer and run in a system service program (system _ server), and because the monitoring module is set up in the service framework layer of the system level, interaction with other system services can be facilitated without worrying about the authority problem when the system is called. In addition, an independent monitoring process can be created, an independent monitoring function is set and called in the process, the process can be set to be started automatically, and the audio resource creating behavior, the audio resource releasing behavior and the audio playing behavior of any other application program can be monitored in real time.
It should be noted that, whether the electronic device has an audio output or not, and how to monitor the embodiment of the present application are not limited uniquely. The above-mentioned monitoring method, if implemented by using software service, can start service with monitoring function in application layer to monitor the audio playing behavior.
S130, if the audio is output when the electronic equipment is determined to be in the hang-up state, analyzing the audio playing behavior of the application program to determine whether the application program is abnormally played.
When the electronic equipment determines that the call is in the hang-up state, whether audio output exists in an application program in the electronic equipment is further monitored, if the audio output is monitored when the electronic equipment is in the hang-up state, audio playing behaviors of the application program are obtained, the audio playing behaviors can include running time of the application program and audio resources occupied during running, whether a playing record exists before the call comes in the application program is determined according to the audio playing behaviors of the application program, and if the audio playing record does not exist, the application program is determined to be abnormally played.
Specifically, each application may carry identification information, which refers to information that can be used to uniquely identify the application, for example, a package name, a number, or the like of the application. The applications in the log record may be looked up based on the identification information of the application. The audio playback behavior may include a playback record of the application recorded in the log record. Firstly, searching a play record corresponding to the application program through a log record, and determining whether the application program has a play record before an incoming call according to the play record so as to determine that the application program is abnormally played.
Specifically, after the application program recorded in the log record is found according to the identification information of the application program, whether the application program has a play record before the call is received is determined according to the play records of all the application programs in the log record, and the play record corresponding to the application program in the log record can be found by setting an application program and play record mapping table and according to the mapping table. It should be noted that the mapping table may be stored in the electronic device memory in the form of a database, and when it needs to be called, the mapping table may be accessed through an internal instruction to determine the audio playing record corresponding to the application program. The mapping table may be in a one-to-one or one-to-many form, as described in the above example, in the mapping table, one application corresponds to multiple log records, and the corresponding log record is searched according to the actual requirement of the user.
After the log record corresponding to the application program is found, whether the application program is abnormally played can be determined according to the call record, namely the call time and the call hang-up time. For example, the incoming call time of the call is 14: 05, the time of hanging up the call is 14: 20, after the call hang-up is monitored, searching for the storm audio and video in 14: and 05, if a play record exists before the playing of the storm video, if the play record corresponding to the storm video is empty, determining that the playing of the storm video is abnormal playing, and if the playing is played under the condition that the user does not know, correspondingly processing the playing behavior of the storm video. If the storm audio and video has corresponding play records, the fact that the play of the storm audio and video is not abnormal is determined, the fact that the user plays the storm audio and video before a call comes is considered, normal play is interrupted after the call comes, and the user automatically plays the storm audio and video after the call is hung up. At this time, the storm audio and video are not processed correspondingly, so that the storm audio and video can be played normally.
In one embodiment, the playing record of the application program in the second preset time before the incoming call is searched according to the mapping table, and whether the application program is abnormally played or not is determined according to the playing record. For example, the incoming call time of the call is 14: 05, the time of hanging up the call is 14: 20, after the call hang-up is monitored, searching for the storm audio and video in 14: and 05, if a play record exists before the playing of the storm video, if the play record corresponding to the storm video is empty, determining that the playing of the storm video is abnormal playing, and if the playing is played under the condition that the user does not know, correspondingly processing the playing behavior of the storm video. If the storm audio and video is in 14: and 05, if the corresponding play record in the second preset time period before the call is empty, determining that the playing of the storm audio and video is not abnormal, considering that the user plays the storm audio and video before the call, interrupting normal playing after the call, and automatically playing after the call is disconnected. At this time, the storm audio and video are not processed correspondingly, so that the storm audio and video can be played normally. The second preset time may be 10s, 30s, 1 minute, and the like, and the specific time duration is determined according to an actual situation, which is not limited in this embodiment.
By setting an application program and play record mapping table and searching the play record of the application program in a second preset time before the call according to the mapping table, whether the application program is abnormally played or not is determined, the play behavior of the application program can be rapidly and accurately analyzed, the application program can be more effectively processed, and the user experience is improved.
And S140, if the application program is determined to be abnormally played, processing the application program.
When the application program is determined to be abnormally played, the application program is processed, which may specifically be:
and when the abnormal playing of the application program is determined, sending a prompt message according to a preset mode, wherein the prompt message is used for prompting a user to process the application program. And when the electronic equipment receives the preset operation of the user for the prompt message, closing or playing the application program according to the preset operation.
In one embodiment, the preset mode may be a voice output mode, a pop-up dialog box, and the like, taking the pop-up dialog box as an example, after the call is suspended, if it is monitored that the application program is abnormally played, the pop-up dialog box may include the following information: and if the application program A needs to be played and the corresponding yes key and no key are pressed, the user selects to process the application program according to the actual situation, if yes, the application program A executes playing, and if not, the application program A is closed.
When the abnormal playing of the application program is determined, a prompt message is sent according to a preset mode, and the prompt message is used for prompting a user to process the application program. When the electronic equipment receives the preset operation of the user aiming at the prompt message, the application program is closed or played according to the preset operation, so that the application program can be better managed, the problem that the application program is played randomly is avoided, and the user experience is improved.
In the embodiment of the application, the conversation state of the electronic equipment is determined by monitoring the conversation behavior of the electronic equipment; if the electronic equipment is determined to be in the hang-up state, monitoring the audio playing behavior of an application program to determine the audio output state of the electronic equipment; if the electronic equipment is determined to have audio output, analyzing the audio playing behavior of the application program to determine whether the application program is abnormally played; and if the application program is determined to be abnormally played, processing the application program, solving the problem of abnormal audio playing of the application program in the prior art, and improving user experience.
As shown in fig. 2, an embodiment of the present application provides an apparatus 20 for processing an application, the apparatus including:
the first monitoring module 21 is configured to monitor a call behavior of the electronic device to determine a call state of the electronic device;
in the process of calling, the first monitoring module 21 may monitor a voice signal of the calling in real time, determine whether a call hang-up event is triggered according to the monitored voice signal, and determine that the electronic device is in a hang-up state when the call hang-up event is triggered.
Specifically, during the call, the first monitoring module 21 monitors in real time whether a voice signal is transmitted in an audio channel of the current electronic device, where the voice signal includes a voice signal input by a microphone of the current electronic device and a voice signal sent by the other party from the network side. When at least one voice signal is monitored, the communication is still carried out; if any voice signal is not monitored within the first preset time, or the electronic equipment receives that the user presses an entity or virtual call ending key, the electronic equipment determines that a call hang-up event is triggered and determines that the call is in a hang-up state.
In the above embodiment, the first preset time may be 30s, 1 minute, or two minutes, and the specific duration is determined according to an actual situation, which is not limited in this embodiment. In the process of calling, the terminal monitors the voice signal of the calling in real time, if the voice signal is not monitored in the first preset time, the terminal judges that the call hanging-up event is triggered, namely, the two calling parties forget to hang up the call, and the call is automatically hung up at the moment, so that the problem of resource waste caused by forgetting to hang up the call of the two calling parties is solved.
In one embodiment, before monitoring the call behavior of the electronic device, audio behaviors of all applications in the electronic device may be recorded to form a log record, and the log record may include: one or more combinations of the play records, the audio mode adjustment behavior records or the recording behavior records of all the applications in the electronic device, for example, only the play records, only the audio mode adjustment behaviors or a combination of a plurality of records may be recorded, and the specific combination form is not limited.
Specifically, after the electronic device is turned on, a service with monitoring and recording functions is started to acquire and record running information of all application programs in the electronic device in real time. Taking the application program storm audio and video as an example for explanation, after the electronic device is turned on, the started monitoring service monitors and records the running information of the storm audio and video in real time to form a log record, and the log record may include the playing record, the audio mode adjustment behavior record and/or the recording behavior record of the storm audio and video. The playing record may include various types, such as time of occupying resources in the background, time of releasing resources in the background, time of occupying resources in the foreground, and time of releasing resources in the foreground, which are not specifically limited herein. Each type of corresponding play record can comprise a plurality of logs, each log can comprise a time pair, and the time for playing the storm audio and video once can be calculated according to the time pair. For example, the resource-occupied time at the foreground is 10: 10; the time to release the resources is 11: 00. the resource occupation time at the foreground is 13: 20; the time to release the resources is 14: 00. according to the log records, the storm video can be played twice in the foreground, and the first time is from 10: 10 to 11: 00, played for 50 minutes, the second time from 13: 20 to 14: 00, played for 40 minutes.
In one embodiment, log records corresponding to all the application programs in the electronic device may be stored in a memory of the electronic device in a form of a database, and the log records may be accessed through an internal instruction when required to be called, so as to determine the log records corresponding to the application programs.
The second monitoring module 22 is configured to monitor an audio playing behavior of an application program in the electronic device to determine an audio output state of the electronic device if it is determined that the electronic device is in a hang-up state;
in one embodiment, the monitoring of the playing behavior of the application by the second monitoring module 22 may specifically be monitoring creation and release of an audio resource through a service at an application layer to obtain the audio playing behavior of the application.
Specifically, the creation and release of the audio resource are monitored through a service (service) in an application layer of the mobile phone, and the audio output condition of the audio resource is obtained. If the audio resource is created by the application program, the application program starts playing. In addition, corresponding time is recorded when the audio resource is created and released, and the time of the application program occupying the audio resource and the time of playing the audio for the application program are calculated according to the time difference between the creation of the audio resource and the release of the audio resource.
In an embodiment, the second monitoring module 22 may also monitor the audio playing behavior of the application through a built-in monitoring function, taking an electronic device of an android system as an example, a system-level monitoring module may be created in a system framework layer (native/frame layer), and the audio playing behavior of the application is monitored through the monitoring module, or a monitoring process is independently created, and the audio playing behavior of the application is monitored through a message transmission mechanism. For example, a monitoring module can be set up in the framework layer and run in a system service program (system _ server), and because the monitoring module is set up in the service framework layer of the system level, interaction with other system services can be facilitated without worrying about the authority problem when the system is called. In addition, an independent monitoring process can be created, an independent monitoring function is set and called in the process, the process can be set to be started automatically, and the audio resource creating behavior, the audio resource releasing behavior and the audio playing behavior of any other application program can be monitored in real time.
It should be noted that, whether the electronic device has an audio output or not, and how to monitor the embodiment of the present application are not limited uniquely. The above-mentioned monitoring method, if implemented by using software service, can start service with monitoring function in application layer to monitor the audio playing behavior.
The analysis module 23 is configured to, if it is determined that the electronic device is in a hang-up state and audio is output, analyze a play behavior of the application program to determine whether the application program is abnormally played;
when the electronic device determines that the call is in the hang-up state, the second monitoring module 22 monitors whether an audio output exists in an application program in the electronic device, and if the audio output is detected when the electronic device is in the hang-up state, an audio playing behavior of the application program is obtained, where the audio playing behavior may include a running time of the application program and an audio resource occupied during the running, and determines whether a playing record exists before the call is received according to the audio playing behavior of the application program, and if not, determines that the application program is played abnormally.
Specifically, each application may carry identification information, which refers to information that can be used to uniquely identify the application, for example, a package name, a number, or the like of the application. The corresponding application program in the log record can be searched according to the identification information of the application program. The audio playback behavior may include a playback record of the application recorded in the log record. Firstly, searching a play record corresponding to the application program through a log record, and determining whether the application program has a play record before an incoming call according to the play record so as to determine that the application program is abnormally played.
It should be noted that the mapping table may be stored in the electronic device memory in the form of a database, and when it needs to be called, the mapping table may be accessed through an internal instruction to determine the audio playing record corresponding to the application program. The mapping table may be in a one-to-one or one-to-many form, as described in the above example, in the mapping table, one application corresponds to multiple log records, and the corresponding log record is searched according to the actual requirement of the user.
After the log record corresponding to the application program is found, whether the application program is abnormally played can be determined according to the call record, namely the call time and the call hang-up time. For example, the incoming call time of the call is 14: 05, the time of hanging up the call is 14: 20, after the call hang-up is monitored, searching for the storm audio and video in 14: and 05, if the playing record exists before the playing of the storm video, if the playing record corresponding to the storm video is empty, determining that the playing of the storm video is abnormal playing, and if the playing is considered to be playing under the condition that the user does not know, correspondingly processing the playing behavior of the storm video. If the storm audio and video has corresponding play records, the fact that the play of the storm audio and video is not abnormal is determined, the fact that the user plays the storm audio and video before a call comes is considered, normal play is interrupted after the call comes, and the user automatically plays the storm audio and video after the call is hung up. At this time, the storm audio and video are not processed correspondingly, so that the storm audio and video can be played normally.
In one embodiment, the playing record of the application program in the second preset time before the incoming call is searched according to the mapping table, and whether the application program is abnormally played or not is determined according to the playing record. For example, the incoming call time of the call is 14: 05, the time of hanging up the call is 14: 20, after the call hang-up is monitored, searching for the storm audio and video in 14: and 05, if the playing record exists before the playing of the storm video, if the playing record corresponding to the storm video is empty, determining that the playing of the storm video is abnormal playing, and if the playing is considered to be playing under the condition that the user does not know, correspondingly processing the playing behavior of the storm video. If the storm audio and video is in 14: and 05, if the corresponding play record in the second preset time period before the call is empty, determining that the playing of the storm audio and video is not abnormal, considering that the user plays the storm audio and video before the call, interrupting normal playing after the call, and automatically playing after the call is disconnected. At this time, the storm audio and video are not processed correspondingly, so that the storm audio and video can be played normally. The second preset time may be 10s, 30s, 1 minute, and the like, and the specific time duration is determined according to an actual situation, which is not limited in this embodiment.
By setting an application program and play record mapping table and searching the play record of the application program in a second preset time before the call according to the mapping table, whether the application program is abnormally played or not is determined, the play behavior of the application program can be rapidly and accurately analyzed, the application program can be more effectively processed, and the user experience is improved.
And the processing module 24 is configured to process the application program if it is determined that the application program is abnormally played.
When determining that the application program is abnormally played, the processing module 24 processes the application program, which may specifically be:
and when the abnormal playing of the application program is determined, sending a prompt message according to a preset mode, wherein the prompt message is used for prompting a user to process the application program. And when the electronic equipment receives the preset operation of the user for the prompt message, closing or playing the application program according to the preset operation.
In one embodiment, the preset mode may be a voice output mode, a pop-up dialog box, and the like, taking the pop-up dialog box as an example, after the call is suspended, if it is monitored that the application program is abnormally played, the pop-up dialog box may include the following information: and if the application program A needs to be played and the corresponding yes key and no key are pressed, the user selects to process the application program according to the actual situation, if yes, the application program A executes playing, and if not, the application program A is closed.
When the abnormal playing of the application program is determined, a prompt message is sent according to a preset mode, and the prompt message is used for prompting a user to process the application program. When the electronic equipment receives the preset operation of the user for the prompt message, the application program is closed or played according to the preset operation, so that the application program can be better managed, the problem of abnormal audio playing of the application program in the prior art is solved, and the user experience is improved.
In the embodiment of the present application, the first monitoring module 21 monitors a call behavior of the electronic device to determine a call state of the electronic device; if the second monitoring module 22 determines that the electronic device is in the hang-up state, monitoring an audio playing behavior of an application program to determine an audio output state of the electronic device; if the analysis module 23 determines that the electronic device has audio output, analyzing the audio playing behavior of the application program to determine whether the application program is abnormally played; if the processing module 24 determines that the application program is played abnormally, the processing module processes the application program, so that the problem of abnormal audio playing of the application program in the prior art is solved, and user experience is improved.
Fig. 3 is a schematic diagram of an internal structure of an electronic device according to an embodiment. As shown in fig. 3, the electronic device includes a processor, a nonvolatile storage medium, an internal memory, and a network interface, a sound collection device, a speaker, a display screen, and an input device, which are connected by a system bus. Wherein the non-volatile storage medium of the terminal stores an operating system and computer readable instructions. The computer readable instructions, when executed by a processor, implement a method of processing an application program for an electronic device. The processor is used for providing calculation and control capability and supporting the operation of the whole electronic equipment. Internal memory in the electronic device provides an environment for the execution of computer-readable instructions in the non-volatile storage medium. The display screen of the electronic device may be a liquid crystal display screen or an electronic ink display screen, and the input device may be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on a housing of the electronic device, or an external keyboard, a touch pad or a mouse. The electronic device may be a mobile phone, a tablet computer, or a personal digital assistant or a wearable device, etc. Those skilled in the art will appreciate that the architecture shown in fig. 3 is a block diagram of only a portion of the architecture associated with the subject application, and does not constitute a limitation on the electronic devices to which the subject application may be applied, and that a particular electronic device may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
The method for processing the application program may specifically be:
monitoring the conversation behavior of the electronic equipment to determine the conversation state of the electronic equipment;
if the electronic equipment is determined to be in the hang-up state, monitoring the audio playing behavior of an application program to determine the audio output state of the electronic equipment;
if the electronic equipment is determined to have audio output, analyzing the audio playing behavior of the application program to determine whether the application program is abnormally played;
and if the application program is determined to be abnormally played, processing the application program.
In addition, the embodiment of the present application also provides a computer non-volatile readable storage medium, on which a computer program is stored, and the computer program realizes the steps of processing the application program as described above when being executed by a processor.
The embodiment of the invention also provides computer equipment. As shown in fig. 4, for convenience of illustration, only the portion related to the embodiment of the present invention is shown, and details of the technology are not disclosed, please refer to the method portion of the embodiment of the present invention. The computer device may be any terminal device including an electronic device, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), a vehicle-mounted computer, a wearable device, and the like, taking the computer device as the electronic device as an example:
fig. 4 is a block diagram of a partial structure of an electronic device related to a computer device provided in an embodiment of the present invention. Referring to fig. 4, the electronic device includes: radio Frequency (RF) circuit 410, memory 420, input unit 430, display unit 440, sensor 450, audio circuit 460, wireless fidelity (WiFi) module 470, processor 480, and power supply 490. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 4 does not constitute a limitation of the electronic device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The RF circuit 410 may be used for receiving and transmitting signals during information transmission or communication, and may receive downlink information of a base station and then process the downlink information to the processor 480; the uplink data may also be transmitted to the base station. Typically, the RF circuitry includes, but is not limited to, an antenna, at least one Amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuitry 410 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE)), e-mail, Short Messaging Service (SMS), and the like.
The memory 420 may be used to store software programs and modules, and the processor 480 executes various functional applications and data processing of the electronic device by operating the software programs and modules stored in the memory 420. The memory 420 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function (such as an application program for a sound playing function, an application program for an image playing function, and the like), and the like; the data storage area may store data (such as audio data, an address book, etc.) created according to the use of the electronic device, and the like. Further, the memory 420 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 430 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device 400. Specifically, the input unit 430 may include a touch panel 431 and other input devices 432. The touch panel 431, which may also be referred to as a touch screen, may collect touch operations of a user on or near the touch panel 431 (e.g., operations of a user on or near the touch panel 431 using any suitable object or accessory such as a finger or a stylus) and drive a corresponding connection device according to a preset program. In one embodiment, the touch panel 431 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 480, and receives and executes commands sent from the processor 480. In addition, the touch panel 431 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The input unit 430 may include other input devices 432 in addition to the touch panel 431. In particular, other input devices 432 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), and the like.
The display unit 440 may be used to display information input by a user or information provided to the user and various menus of the electronic device. The display unit 440 may include a display panel 441. In one embodiment, the Display panel 441 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. In one embodiment, the touch panel 431 may cover the display panel 441, and when the touch panel 431 detects a touch operation thereon or nearby, the touch panel is transmitted to the processor 480 to determine the type of the touch event, and then the processor 480 provides a corresponding visual output on the display panel 441 according to the type of the touch event. Although in fig. 4, the touch panel 431 and the display panel 441 are two separate components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 431 and the display panel 441 may be integrated to implement the input and output functions of the electronic device.
The electronic device 400 may also include at least one sensor 450, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 441 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 441 and/or the backlight when the electronic device is moved to the ear. The motion sensor can comprise an acceleration sensor, the acceleration sensor can be used for detecting the magnitude of acceleration in each direction, the magnitude and the direction of gravity can be detected when the motion sensor is static, and the motion sensor can be used for identifying the application (such as horizontal and vertical screen switching) of the posture of the electronic equipment, and relevant functions (such as pedometer and knocking) of vibration identification and the like; the electronic device may be provided with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor.
The audio circuit 460, speaker 461 and microphone 462 may provide an audio interface between a user and the electronic device. The audio circuit 460 may transmit the electrical signal converted from the received audio data to the speaker 461, and convert the electrical signal into a sound signal for output by the speaker 461; on the other hand, the microphone 462 converts the collected sound signal into an electrical signal, which is received by the audio circuit 460 and converted into audio data, which is then processed by the audio data output processor 480 and then transmitted to another electronic device via the RF circuit 410, or the audio data is output to the memory 420 for subsequent processing.
WiFi belongs to short-range wireless transmission technology, and the electronic device can help the user send and receive e-mails, browse web pages, access streaming media, etc. through the WiFi module 470, which provides wireless broadband internet access for the user. Although fig. 4 illustrates WiFi module 470, it is understood that it does not belong to the essential components of electronic device 400 and may be omitted as desired.
The processor 480 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, and performs various functions of the electronic device and processes data by operating or executing software programs and/or modules stored in the memory 420 and calling data stored in the memory 420, thereby integrally monitoring the electronic device. In one embodiment, processor 480 may include one or more processing units. In one embodiment, processor 480 may integrate an application processor and a modem processor, wherein the application processor primarily handles operating systems, user interfaces, applications, and the like; the modem processor handles primarily wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 480.
The electronic device 400 further includes a power supply 490 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 480 via a power management system that may be configured to manage charging, discharging, and power consumption.
In one embodiment, the electronic device 400 may also include a camera, a bluetooth module, and the like.
In an embodiment of the invention, the computer device comprises a processor 480 which, when executing a computer program stored on a memory, implements the methods of the embodiments described above.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a non-volatile computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the program is executed. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), or the like. Embodiments of the present invention also provide a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, performs the methods of the above embodiments.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.
Claims (20)
- A method for processing an application program, applied to an electronic device, is characterized by comprising the following steps:monitoring the conversation behavior of the electronic equipment to determine the conversation state of the electronic equipment;if the electronic equipment is determined to be in the hang-up state, monitoring the audio playing behavior of an application program in the electronic equipment to determine the audio output state of the electronic equipment;if the audio is output when the electronic equipment is determined to be in the hang-up state, analyzing the audio playing behavior of the application program to determine whether the application program is abnormally played;and if the application program is determined to be abnormally played, processing the application program.
- The method of claim 1, further comprising, prior to the monitoring the call behavior of the electronic device:recording audio behaviors of all applications within the electronic device to form a log record, the log record comprising: a combination of one or more of a play record, an audio mode adjustment behavior record, or a record behavior record for all applications.
- The method of claim 2, wherein analyzing the audio playback behavior of the application to determine whether the application is playing abnormally comprises:acquiring audio playing behaviors of the application program, wherein the audio playing behaviors comprise the running time of the application program and audio resources occupied during the running time;and determining whether the application program has a playing record before the call according to the audio playing behavior of the application program, and if not, determining that the application program is abnormally played.
- The method according to claim 3, wherein the application program carries identification information, and the identification information is used for uniquely identifying the application program, and the determining whether the application program has a play record before the call according to the audio play behavior of the application program includes:searching the application program in the log record according to the identification information of the application program;and searching the playing record corresponding to the application program according to the log record.
- The method of claim 4, wherein the searching for the play record corresponding to the application program according to the log record comprises:setting the mapping table of the application program and the playing record;and searching the playing record of the application program in a second preset time before the incoming call according to the mapping table.
- The method of claim 1, wherein the processing the application program comprises:when the abnormal playing of the application program is determined, sending a prompt message according to a preset mode, wherein the prompt message is used for prompting a user to process the application program;and when receiving a preset operation of the user for the prompt message, closing or playing the application program according to the preset operation.
- The method of claim 1, wherein the monitoring the call behavior of the electronic device to determine the call state of the electronic device comprises:monitoring a voice signal of a call in the call process;judging whether a call hang-up event is triggered or not according to the voice signal;and when the call hang-up event is triggered, determining that the electronic equipment is in a hang-up state.
- The method of claim 7, wherein determining whether a call drop event is triggered based on the voice signal comprises:judging whether the voice signal is monitored within a first preset time;when the voice signal is not monitored in the first preset time, determining that the call hanging-up event is triggered.
- The method of claim 1, wherein the listening for the playback behavior of the application comprises:the electronic equipment monitors the creation and release of audio resources through services in an application layer to acquire the audio playing behavior of an application program.
- An apparatus for processing an application, comprising:the first monitoring module is used for monitoring the conversation behavior of the electronic equipment so as to determine the conversation state of the electronic equipment;the second monitoring module is used for monitoring the audio playing behavior of an application program in the electronic equipment to determine the audio output state of the electronic equipment if the electronic equipment is determined to be in a hang-up state;the analysis module is used for analyzing the audio playing behavior of the application program to determine whether the application program is abnormally played or not if the audio is output when the electronic equipment is determined to be in the hang-up state;and the processing module is used for processing the application program if the application program is determined to be abnormally played.
- The apparatus of claim 10, further comprising, before the first monitoring module monitors the call status of the electronic device:recording audio behaviors of all applications within the electronic device to form a log record, the log record comprising: a combination of one or more of a play record, an audio mode adjustment behavior record, or a record behavior record for all applications.
- The apparatus of claim 11, wherein the analysis module analyzes the audio playback behavior of the application to determine that the application is playing abnormally comprises:acquiring audio playing behaviors of the application program, wherein the audio playing behaviors comprise the running time of the application program and audio resources occupied during the running time;and determining whether the application program has a playing record before the call according to the audio playing behavior of the application program, and if not, determining that the application program is abnormally played.
- The apparatus according to claim 12, wherein the application program carries identification information, and the identification information is used to uniquely identify the application program, and the determining whether the application program has a play record before the call according to the audio play behavior of the application program includes:searching the application program in the log record according to the identification information of the application program;and searching the playing record corresponding to the application program according to the log record.
- The apparatus of claim 13, wherein the analyzing module searches for the playback record corresponding to the application program according to the log record, and comprises:setting the mapping table of the application program and the playing record;and searching the playing record of the application program in a second preset time before the incoming call according to the mapping table.
- The apparatus of claim 10, wherein the processing module processes the application program and comprises:when the abnormal playing of the application program is determined, sending a prompt message according to a preset mode, wherein the prompt message is used for prompting a user to process the application program;and when receiving a preset operation of the user for the prompt message, closing or playing the application program according to the preset operation.
- The apparatus of claim 10, wherein the first monitoring module monitors a call behavior of the electronic device to determine a call status of the electronic device, and comprises:monitoring a voice signal of a call in the call process;judging whether a call hang-up event is triggered or not according to the voice signal;and when the call hang-up event is triggered, determining that the electronic equipment is in a hang-up state.
- The apparatus of claim 16, wherein the first monitoring module determines whether a call drop event is triggered according to the voice signal, and comprises:judging whether the voice signal is monitored within a first preset time;when the voice signal is not monitored in the first preset time, determining that the call hanging-up event is triggered.
- The apparatus of claim 10, wherein the second listening module listens for audio playback behavior of an application, comprising:the electronic equipment monitors the creation and release of audio resources through services in an application layer to acquire the audio playing behavior of an application program.
- An electronic device comprising a memory and a processor, the memory having stored therein a computer program that, when executed by the processor, causes the processor to perform the steps of the method of processing an application as claimed in any one of claims 1 to 9.
- A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 9.
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2018/116894 WO2020103070A1 (en) | 2018-11-22 | 2018-11-22 | Method and apparatus for processing application program, and electronic device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113039516A true CN113039516A (en) | 2021-06-25 |
Family
ID=70773775
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201880098195.4A Pending CN113039516A (en) | 2018-11-22 | 2018-11-22 | Method and device for processing application program and electronic equipment |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN113039516A (en) |
WO (1) | WO2020103070A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114121050A (en) * | 2021-11-30 | 2022-03-01 | 云知声智能科技股份有限公司 | Audio playing method and device, electronic equipment and storage medium |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113904745B (en) * | 2020-06-22 | 2024-02-27 | 广州辉群智能科技有限公司 | Broadcast control method, electronic equipment and storage medium |
CN115225917A (en) * | 2021-04-15 | 2022-10-21 | 北京字节跳动网络技术有限公司 | Recording plug-flow method, device, equipment and medium |
CN117112269B (en) * | 2023-10-24 | 2024-01-26 | 湖南双鸿科技有限公司 | Method for realizing data transmission across APP based on android auxiliary service function |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104703035A (en) * | 2015-02-12 | 2015-06-10 | 卓易畅想(北京)科技有限公司 | Method and device for playing multimedia online through user device |
CN105530381A (en) * | 2015-12-24 | 2016-04-27 | 小米科技有限责任公司 | Call hanging-up method and device |
CN105895128A (en) * | 2016-03-30 | 2016-08-24 | 广东欧珀移动通信有限公司 | Playing method and associated device |
CN107623777A (en) * | 2017-08-29 | 2018-01-23 | 努比亚技术有限公司 | Terminal and its control method for playing back, computer-readable recording medium |
CN108319442A (en) * | 2018-01-23 | 2018-07-24 | 维沃移动通信有限公司 | A kind of control method and mobile terminal of audio broadcasting |
CN108668016A (en) * | 2018-04-16 | 2018-10-16 | Oppo广东移动通信有限公司 | Information processing method, device, mobile terminal and computer readable storage medium |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106126179B (en) * | 2016-06-24 | 2020-11-20 | 联想(北京)有限公司 | Information processing method and electronic equipment |
-
2018
- 2018-11-22 WO PCT/CN2018/116894 patent/WO2020103070A1/en active Application Filing
- 2018-11-22 CN CN201880098195.4A patent/CN113039516A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104703035A (en) * | 2015-02-12 | 2015-06-10 | 卓易畅想(北京)科技有限公司 | Method and device for playing multimedia online through user device |
CN105530381A (en) * | 2015-12-24 | 2016-04-27 | 小米科技有限责任公司 | Call hanging-up method and device |
CN105895128A (en) * | 2016-03-30 | 2016-08-24 | 广东欧珀移动通信有限公司 | Playing method and associated device |
CN107623777A (en) * | 2017-08-29 | 2018-01-23 | 努比亚技术有限公司 | Terminal and its control method for playing back, computer-readable recording medium |
CN108319442A (en) * | 2018-01-23 | 2018-07-24 | 维沃移动通信有限公司 | A kind of control method and mobile terminal of audio broadcasting |
CN108668016A (en) * | 2018-04-16 | 2018-10-16 | Oppo广东移动通信有限公司 | Information processing method, device, mobile terminal and computer readable storage medium |
Non-Patent Citations (1)
Title |
---|
WEIXIN_33991727: "后台播放音乐时进来电话或微信视频通话暂停音乐播放 网易云音乐喜马拉雅...", 《HTTPS://BLOG.CSDN.NET/WEIXIN_33991727/ARTICLE/DETAILS/91480043》, pages 1 - 3 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114121050A (en) * | 2021-11-30 | 2022-03-01 | 云知声智能科技股份有限公司 | Audio playing method and device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
WO2020103070A1 (en) | 2020-05-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10516640B2 (en) | Group message updating and displaying method, apparatus, and terminal | |
CN113039516A (en) | Method and device for processing application program and electronic equipment | |
CN106371964B (en) | Method and device for prompting message | |
CN107465841B (en) | Fault information reporting method and terminal | |
CN106254910B (en) | Method and device for recording image | |
CN107562539B (en) | Application program processing method and device, computer equipment and storage medium | |
CN106412311B (en) | A kind of data transmission method and terminal device | |
CN106294168B (en) | A kind of method and system carrying out Application testing | |
CN109068378A (en) | The method, apparatus of mobile terminal and control mobile terminal breath screen | |
CN108334345B (en) | Application processing method and device, readable storage medium and mobile terminal | |
CN108737254A (en) | Display control method, terminal and the computer storage media of application chat component | |
CN113039774B (en) | Method and device for processing application program, electronic equipment and storage medium | |
WO2020118495A1 (en) | Audio resource allocation method, device, and electronic apparatus | |
CN108668016B (en) | Information processing method, device, mobile terminal and computer readable storage medium | |
CN107872791B (en) | Access point connection method and device | |
CN107770449A (en) | continuous shooting method, electronic equipment and storage medium | |
CN110989816B (en) | Application processing method and device and storage medium | |
CN113039517B (en) | Audio resource calling method and device and electronic equipment | |
CN104166899A (en) | Voice interaction method and terminals | |
CN107688498B (en) | Application program processing method and device, computer equipment and storage medium | |
CN110891262A (en) | Bluetooth pairing method, system and terminal equipment | |
US20210286588A1 (en) | Method and apparatus for playing alarm and electronic device | |
CN106570096B (en) | Picture sort method and device | |
WO2020097787A1 (en) | Method, apparatus, and electronic device for audio resource release | |
CN108804434A (en) | A kind of message query method, server and terminal device |
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 |