WO2020103045A1 - 一种对应用程序进行处理的方法、装置和电子设备 - Google Patents

一种对应用程序进行处理的方法、装置和电子设备

Info

Publication number
WO2020103045A1
WO2020103045A1 PCT/CN2018/116762 CN2018116762W WO2020103045A1 WO 2020103045 A1 WO2020103045 A1 WO 2020103045A1 CN 2018116762 W CN2018116762 W CN 2018116762W WO 2020103045 A1 WO2020103045 A1 WO 2020103045A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
call
application program
audio
application
Prior art date
Application number
PCT/CN2018/116762
Other languages
English (en)
French (fr)
Inventor
李亚军
Original Assignee
深圳市欢太科技有限公司
Oppo广东移动通信有限公司
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 深圳市欢太科技有限公司, Oppo广东移动通信有限公司 filed Critical 深圳市欢太科技有限公司
Priority to PCT/CN2018/116762 priority Critical patent/WO2020103045A1/zh
Priority to CN201880098218.1A priority patent/CN113039774B/zh
Publication of WO2020103045A1 publication Critical patent/WO2020103045A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones

Definitions

  • This application relates to the field of information technology, and in particular, to a method, device, electronic device, and computer-readable storage medium for processing application programs.
  • An embodiment of the present application provides a method for processing an application program, including:
  • the call status includes a call connection status and a call disconnection status
  • the audio playback behavior of the application program in the electronic device is monitored to determine the audio output state of the electronic device, the audio output state includes output audio and non-output audio;
  • the application program If it is determined that the application program outputs audio when the electronic device is in a call connection state, the application program is closed or muted.
  • An embodiment of the present application provides an apparatus for processing an application program, including:
  • the first monitoring module is used to monitor the call behavior of the electronic device and determine the call status of the electronic device, the call status includes a call connection status and a call disconnection status;
  • the second monitoring module is configured to monitor the audio playback behavior of the application program in the electronic device to determine the audio output state of the electronic device if the electronic device is determined to be in a call connection state.
  • the audio output state includes output Audio and non-output audio;
  • the first processing module is configured to close or mute the application program if it is determined that the electronic device outputs audio when it is in a call connection state.
  • An embodiment of the present application further provides an electronic device, including a memory and a processor, and the memory stores a computer program, wherein when the computer program is executed by the processor, the processor is caused to execute:
  • the call status includes a call connection status and a call disconnection status
  • the audio playback behavior of the application program in the electronic device is monitored to determine the audio output state of the electronic device, the audio output state includes output audio and non-output audio;
  • the application program If it is determined that the application program outputs audio when the electronic device is in a call connection state, the application program is closed or muted.
  • Embodiments of the present application also provide a computer non-volatile readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of processing the application program as described above are realized.
  • the application program is processed according to the call state of the electronic device and the audio playback behavior of the application program, which solves the problem of abnormal audio playback of the application program and improves the call quality.
  • FIG. 1 is a flowchart of a method for processing an application program according to an embodiment
  • FIG. 2 is a schematic structural diagram of an apparatus for processing an application according to an embodiment
  • FIG. 3 is a schematic diagram of the internal structure of an electronic device in an embodiment
  • FIG. 4 is a block diagram of a partial structure of an electronic device related to a computer device provided by an embodiment of the present application.
  • first”, “second”, etc. used in this application may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish the first element from another element.
  • the first monitoring module may be referred to as the second monitoring module, and similarly, the second monitoring module may be referred to as the first monitoring module. Both the first monitoring module and the second monitoring module are monitoring modules, but they are not the same monitoring module.
  • an embodiment of the present application provides a method for processing an application program, which is applied to an electronic device.
  • the method includes:
  • S110 Monitor the call behavior of the electronic device, and determine the call status of the electronic device, where the call status includes a call connection status and a call disconnection status.
  • the electronic device can monitor the voice signal of the call in real time, and determine whether the call hangup event is triggered according to the detected voice signal. If the call hangup event is not triggered, it is determined that the electronic device is in Call connection status; if the call hang up event has been triggered, it is determined that the electronic device is in a call hang up state
  • the electronic device detects in real time whether a voice signal is transmitted in the audio channel of the current electronic device, and the voice signal includes a voice signal input from a microphone of the current electronic device and a voice signal sent by the other party from the network side. If at least one voice signal is detected, it means that the electronic device is in a call connection state; if no voice signal is detected within a preset time, or the electronic device receives the user pressing the physical or virtual call end button, this When the electronic device determines that the call hang up event is triggered, it is determined that the call is in the call hang up state.
  • the preset time may be 30s, 1 minute, or 2 minutes, and the specific duration is determined according to the actual situation, and this embodiment is not limited.
  • the call may include any form of call such as voice call and video call.
  • the terminal monitors the voice signal of the call in real time. If the voice signal has not been detected within the preset time, the terminal determines that the call hang-up event is triggered, which means that both parties of the call have forgotten to hang up the phone, and the call will be automatically Hang up solves the problem of wasting resources caused by both parties forgetting to hang up.
  • the electronic device may also record the audio behavior of all applications in the electronic device to form a log record, and the log record may include: playback records and audio of all application programs in the electronic device
  • mode adjustment behavior records or call records for example, may only record playback records, or only record call records, or a combination of multiple records, the specific combination form is not limited.
  • a service with a monitoring and recording function is started to obtain the running information of all application programs in the electronic device in real time and record it.
  • the monitoring service that is started monitors the operation information of storm video in real time and records it to form a log record.
  • the log record can include the playback record of storm video and audio, and the adjustment behavior of audio mode Recording and / or recording behavior records.
  • the playback record may include various types of time such as the time taken by storm video to occupy resources in the background, the time released by resources in the background, the time occupied by resources in the foreground, and the time released by resources in the foreground, which are not specifically limited herein.
  • the playback record corresponding to each type may include multiple logs, and each log may include a time pair.
  • the time pair the time when the storm video is played once can be calculated.
  • the time for storm video to occupy resources at the front desk is 10:10; the time to release resources at the front desk is 11:00.
  • the time for occupying resources in the background is 13:20; the time for releasing resources in the background is 14:00.
  • Storm Video was played twice in the foreground, the first time was from 10:10 to 11:00, played for 50 minutes, and the second time was from 13:20 to 14:00, played 40 minute.
  • the call log can record the call time, call duration and other information.
  • the log records corresponding to all application programs in the electronic device can be stored in the memory of the electronic device in the form of a database, and the log records can be accessed through internal instructions when needed to determine the log records corresponding to the application programs .
  • the monitoring of the playback behavior of the application program may specifically be that the electronic device creates and releases audio resources of the monitoring interface at the application layer to obtain the audio playback behavior of the application program.
  • a service can be used to monitor the creation and release of interface audio resources through the service layer of the mobile phone, and obtain the audio output of the audio resources. If it is detected that the application creates audio resources, the application starts playback. In addition, the corresponding time is recorded when the audio resource is created and the audio resource is released, and the time that the application 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, which is the time that the application plays audio.
  • the electronic device can also monitor the audio playback behavior of the application through the built-in monitoring function.
  • a system-level monitoring can be created at the system framework layer (native / framework layer)
  • the module monitors the audio playback behavior of the application through the monitoring module, or independently creates a monitoring process and monitors the audio playback behavior of the application through a message transmission mechanism.
  • system_server system service program
  • the operation information of the application program is obtained, and the operation information includes the operation time of the application program and resources occupied during the operation;
  • the application program is closed or muted.
  • the frequency of use of the application can be judged according to the time of operation and the number of times of operation, or the application can be identified as frequently used and unused through identification information according to the frequency of use or usage habits of the user.
  • Information to close or mute the application For example, an audio output is detected during a call, and the identification information of the application program is obtained. If the identification information is commonly used, the application program is muted; if the identification information is unusual, the application program is closed.
  • the audio type can be determined according to the resources occupied by the application during operation.
  • the audio type can include music, prompt sound, etc.
  • it can be the prompt sound of applications such as WeChat and QQ, and applications such as Weibo and Taobao. Prompt sound of notification in the program, etc.
  • it is monitored whether the electronic device is in a call connection state, including whether there is currently an outgoing call or an incoming call.
  • the electronic device is in a call connection state and an audio output is detected during the call connection state, the resource occupied by the application that outputs audio when playing audio is acquired, the output audio type is judged according to the occupied resource, and the application is applied according to the audio type
  • the program is closed or mute.
  • the audio output in the call connection state is a WeChat prompt tone
  • WeChat can be muted.
  • the user can also pre-select certain message reminders, and do not process the prompt tone of the selected message to prevent missing important information; if the audio output in the call connection state is Kugou music, the Kugou application can be closed.
  • the electronic device may record the processed application program and processing method to form a record table, and store the record table in the electronic device.
  • the call status includes a call connection status and a call disconnection status; if it is determined that the electronic device is in a call connection status , Monitor the audio playback behavior of the application in the electronic device to determine the audio output state of the electronic device, the audio output state includes output audio and non-output audio; if it is determined that the electronic device is in a call connection state
  • the application program outputs audio, the application program is closed or muted, which solves the problem of abnormal audio playback of the application program in the prior art and improves the call quality.
  • the method further includes:
  • the application program is closed or played.
  • the process of closing or playing the application program may specifically be:
  • a prompt message is issued according to a preset manner, and the prompt message is used to prompt the user to process the application program;
  • the application program When receiving the user's preset operation instruction for the prompt message, the application program is closed or played according to the preset operation instruction.
  • the application program In the call connection state, the application program outputs audio, closes or mutes the application program, and when it is determined that the electronic device is in the call hang-up state, a prompt message is sent according to a preset method, and the prompt message is used to prompt The user processes the application program.
  • the electronic device receives the user's preset operation instruction for the prompt message, the application program is closed or played according to the preset operation instruction.
  • the preset method may be in the form of voice output, pop-up dialog box, etc.
  • the record table stored in the electronic device may be queried, and the call process is obtained according to the record table Whether the application is closed or muted in the application, if the application is muted, a dialog box pops up, and the dialog box can include the following information: whether to continue playing the A application and the corresponding yes and no buttons, The user chooses to process the application according to the actual situation. If you click Yes, the A application executes playback. If you click No, the A application closes.
  • the application may automatically close or play the application, for example, the application may be automatically closed or played according to the user's call duration.
  • the call duration exceeds a preset threshold, then Close the application program.
  • the preset threshold may be 30 minutes, 60 minutes, etc. The specific value is not limited in this embodiment.
  • the call duration can be obtained by calling the call record in the log record table.
  • a prompt message is sent according to a preset manner, and the prompt message is used to prompt the user to process the application program.
  • the application program is closed or played according to the preset operation instruction, so that the application program can be better managed, and the application program is prevented from being played randomly Problems that enhance the user experience.
  • the method further includes:
  • the icon of the application program and the icon of the call hang up are displayed on the display interface of the electronic device.
  • the electronic device will remain on the call end interface after the call ends, that is, the dial interface of the electronic device, and the user can continue to make other calls.
  • the electronic device remains on the call hang up interface, so that the user can continue to make other calls; if the user clicks on the icon of the application, the electronic device jumps the display interface to the application, the user Can manage the application.
  • the embodiment of the present application improves the user experience by displaying the icon of the application program and the icon of the call hangup on the display interface of the electronic device when the call hangup event is triggered.
  • closing or playing the application program according to the preset operation instruction includes: obtaining the priority of the application program; if the priority of the application program is greater than the preset priority level, The application program performs a playback operation; if the priority of the application program is less than or equal to the preset priority level, the application program is closed.
  • multiple applications output audio when the electronic device is in a call connection state
  • after muting the multiple applications if it is detected that the electronic device is in a call hang-up state, according to the pre- It is assumed that when performing playback processing on the application program, multiple application programs are played according to the priority of the application program.
  • each application may correspond to a priority.
  • the priority may be preset by the user, or may be set by the electronic device according to the running information or classification information of the application program. For example, the priority is set according to the category of the application.
  • the priority of the instant messaging application is higher, which is set as the first priority; the priority of the online video application is medium, which is set as the second priority; the backup type
  • the priority of the application is lower and it is set as the third priority. You can also let the user set the priority of each application.
  • online game applications can be set to the first level according to user instructions.
  • the priority of the application program is divided into three levels, but the number of priority levels of the application program is not limited.
  • the priority of the application program may include four levels, five levels, or even More.
  • the priority of the application program is obtained; if the priority of the application program is greater than a preset priority level, a playback operation is performed on the application program; If the priority of the application program is less than or equal to the preset priority level, the application program is closed. After the call is hung up, the application is played according to the priority order of the application, which can effectively manage the application, prevent random playback, and improve the user experience.
  • an embodiment of the present application provides an apparatus 20 for processing an application program.
  • the apparatus includes:
  • the first monitoring module 21 is configured to monitor the call behavior of the electronic device and determine the call status of the electronic device, where the call status includes a call connection status and a call disconnection status.
  • the first monitoring module 21 can monitor the voice signal of the call in real time, and determine whether the call hang-up event is triggered according to the detected voice signal. If the call hang-up event is not triggered, determine The electronic device is in a call connection state; if the call hangup event has been triggered, it is determined that the electronic device is in a call hangup state.
  • the electronic device detects in real time whether a voice signal is transmitted in the audio channel of the current electronic device, and the voice signal includes a voice signal input from a microphone of the current electronic device and a voice signal sent by the other party from the network side.
  • the voice signal includes a voice signal input from a microphone of the current electronic device and a voice signal sent by the other party from the network side.
  • the preset time may be 30s, 1 minute, or 2 minutes, and the specific duration is determined according to the actual situation, and this embodiment is not limited.
  • the call may include any form of call such as voice call and video call.
  • the terminal monitors the voice signal of the call in real time. If the voice signal has not been detected within the preset time, the terminal determines that the call hang-up event is triggered, which means that both parties of the call have forgotten to hang up the phone, and the call will be automatically Hang up solves the problem of wasting resources caused by both parties forgetting to hang up.
  • the electronic device may also record the audio behavior of all applications in the electronic device to form a log record, and the log record may include: playback records and audio of all application programs in the electronic device
  • the log record may include: playback records and audio of all application programs in the electronic device
  • One or more combinations of the mode adjustment behavior recording or the recording behavior recording, for example, only the playback record, or only the call record, or a combination of multiple records may be recorded, and the specific combination form is not limited.
  • a service with a monitoring and recording function is started to obtain the running information of all application programs in the electronic device in real time and record it.
  • the monitoring service that is started monitors the operation information of storm video in real time and records it to form a log record.
  • the log record can include the playback record of storm video and audio, and the adjustment behavior of audio mode Recording and / or recording behavior records.
  • the playback record may include various types of time such as the time taken by storm video to occupy resources in the background, the time released by resources in the background, the time occupied by resources in the foreground, and the time released by resources in the foreground, which are not specifically limited herein.
  • the playback record corresponding to each type may include multiple logs, and each log may include a time pair.
  • the time pair the time when the storm video is played once can be calculated.
  • the time for storm video to occupy resources at the front desk is 10:10; the time to release resources at the front desk is 11:00.
  • the time for occupying resources in the background is 13:20; the time for releasing resources in the background is 14:00.
  • Storm Video was played twice in the foreground, the first time was from 10:10 to 11:00, played for 50 minutes, and the second time was from 13:20 to 14:00, played 40 minute.
  • the log records corresponding to all application programs in the electronic device can be stored in the memory of the electronic device in the form of a database, and the log records can be accessed through internal instructions when needed to determine the log records corresponding to the application programs .
  • the second monitoring module 22 is configured to, if it is determined that the electronic device is in a call connection state, monitor the audio playback behavior of applications in the electronic device to determine the audio output state of the electronic device, the audio output state includes Audio output and no audio output.
  • the second monitoring module 22 monitors the playback behavior of the application program may specifically be that the electronic device acquires the audio playback behavior of the application program through the creation and release of a monitoring interface audio resource at the application layer.
  • a service can be used to monitor the creation and release of interface audio resources through the service layer of the mobile phone, and obtain the audio output of the audio resources. If it is detected that the application creates audio resources, the application starts playback. In addition, the corresponding time is recorded when the audio resource is created and the audio resource is released, and the time that the application 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, which is the time that the application plays audio.
  • the second monitoring module 22 can monitor the audio playback behavior of the application through the built-in monitoring function.
  • a system level can be created at the system framework layer (native / framework layer) Monitoring module, monitors the audio playback behavior of the application through the monitoring module, or independently creates a monitoring process and monitors the audio playback behavior of the application through a message transmission mechanism.
  • system_server system service program
  • the first processing module 23 is configured to close or mute the application program if it is determined that the application program outputs audio when the electronic device is in a call connection state.
  • the first processing module 23 closes or mutes the application program, which may specifically be:
  • the second monitoring module 21 detects that there is audio output, then
  • the running information of the application including the running time of the application and the resources occupied during the running; if the running time of the application exceeds a preset time threshold, and the resources occupied during the running exceed When the resource threshold is preset, the application program is closed or muted.
  • the first processing module 23 can determine the frequency of use of the application program according to the running time and the number of running times, and can also identify the application program as frequently used and unused through identification information according to the user's use frequency or usage habits. Close or mute the application according to the identification information of the application. For example, an audio output is detected during a call, and the identification information of the application program is obtained. If the identification information is commonly used, the application program is muted; if the identification information is unusual, the application program is closed.
  • the first processing module 23 may determine the audio type according to the resources occupied by the application during operation.
  • the audio type may include music, prompt sound, etc.
  • it may be the prompt sound of the application such as WeChat, QQ and the like. Notification sounds in applications such as Bo and Taobao.
  • it is monitored whether the electronic device is in a call connection state, including whether there is currently an outgoing call or an incoming call.
  • the electronic device is in a call connection state and an audio output is detected during the call connection state, the resource occupied by the application that outputs audio when playing audio is acquired, the output audio type is judged according to the occupied resource, and the application is applied according to the audio type
  • the program is closed or mute.
  • the audio output in the call connection state is a WeChat prompt tone
  • WeChat can be muted.
  • the user can also pre-select certain message reminders, and do not process the prompt tone of the selected message to prevent missing important information; if the audio output in the call connection state is Kugou music, the Kugou application can be closed.
  • the electronic device may record the processed application program and processing manner to form a record table, and store the record table in the electronic device.
  • the first monitoring module 21 monitors the call behavior of the electronic device to determine the call status of the electronic device, the call status includes a call connection status and a call disconnection status, and the second monitoring module 22 If it is determined that the electronic device is in a call connection state, the audio playback behavior of the application program in the electronic device is monitored to determine the audio output state of the electronic device.
  • the audio output state includes output audio and non-output audio. If a processing module 23 determines that the electronic device is outputting audio when it is in a call connection state, it closes or mutes the application program, which solves the problem of abnormal audio playback of the application program and improves the call quality.
  • the method further includes:
  • the second processing module 24 closes or plays the application program.
  • the second processing module 24 performs closing or playing processing on the application program, which may specifically be:
  • a prompt message is issued according to a preset manner, and the prompt message is used to prompt the user to process the application program;
  • the application program When receiving the user's preset operation instruction for the prompt message, the application program is closed or played according to the preset operation instruction.
  • the application program In the call connection state, the application program outputs audio, the first processing module 23 closes or mutes the application program, and when it is determined that the electronic device is in the call hang-up state, a prompt message is sent according to a preset manner, the The prompt message is used to prompt the user to process the application program.
  • the second processing module 24 performs processing of closing or playing the application program according to the preset operation instruction.
  • the preset method may be in the form of voice output, pop-up dialog box, etc.
  • the record table stored in the electronic device may be queried, and the call process is obtained according to the record table Whether the application is closed or muted in the application, if the application is muted, a dialog box pops up, and the dialog box can include the following information: whether to continue playing the A application and the corresponding yes and no buttons, The user chooses to process the application according to the actual situation. If you click Yes, the A application executes playback. If you click No, the A application closes.
  • the second processing module 24 can automatically close or play the application, for example, the application can be automatically closed or played according to the user's call duration, when the call duration exceeds a preset threshold At this time, the application program is closed.
  • the preset threshold may be 30 minutes, 60 minutes, etc. The specific value is not limited in this embodiment.
  • the call duration can be obtained by calling the call record in the log record table.
  • a prompt message is sent according to a preset manner, and the prompt message is used to prompt the user to process the application program.
  • the second processing module 24 closes or plays the application program according to the preset operation instruction, so that the application program can be better managed to avoid The problem of random playback of applications has been improved, improving the user experience.
  • the apparatus further includes a display module (not shown in the figure).
  • a display module (not shown in the figure).
  • the electronic device will remain on the call end interface after the call ends, that is, the dial interface of the electronic device, and the user can continue to make other calls.
  • the electronic device If the user clicks on the call hang up icon, the electronic device remains on the call hang up interface, so that the user can continue to make other calls; if the user clicks on the icon of the application, the electronic device jumps the display interface to the application. Can manage the application.
  • the embodiment of the present application improves the user experience by displaying the icon of the application program and the icon of the call hangup on the display interface of the electronic device when the call hangup event is triggered.
  • closing or playing the application program according to the preset operation instruction includes: obtaining the priority of the application program; if the priority of the application program is greater than the preset priority level, The application program performs a playback operation; if the priority of the application program is less than or equal to the preset priority level, the application program is closed.
  • multiple applications output audio when the electronic device is in a call connection state
  • after muting the multiple applications if it is detected that the electronic device is in a call hang-up state, according to the pre- It is assumed that when the operation instruction performs playback processing on the application program, multiple application programs are played according to the priority of the application program.
  • each application may correspond to a priority.
  • the priority may be preset by the user, or may be set by the electronic device according to the running information or classification information of the application program. For example, the priority is set according to the category of the application.
  • the priority of the instant messaging application is higher, which is set as the first priority; the priority of the online video application is medium, which is set as the second priority; the backup type
  • the priority of the application is lower and it is set as the third priority. You can also let the user set the priority of each application.
  • online game applications can be set to the first level according to user instructions.
  • the priority of the application program is divided into three levels, but the number of priority levels of the application program is not limited.
  • the priority of the application program may include four levels, five levels, or even More.
  • the priority of the application program is obtained; if the priority of the application program is greater than a preset priority level, a playback operation is performed on the application program; If the priority of the application program is less than or equal to the preset priority level, the application program is closed. After the call is hung up, the application is played according to the priority order of the application, which can effectively manage the application, prevent random playback, and improve the user experience.
  • the electronic device includes a processor connected through a system bus, a non-volatile storage medium, an internal memory and a network interface, a sound collection device, a speaker, a display screen, and an input device.
  • the non-volatile storage medium of the terminal stores an operating system and computer-readable instructions.
  • the processor is used to provide computing and control capabilities to support the operation of the entire electronic device.
  • the 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, etc.
  • the input device may be a touch layer covered on the display screen, a button, a trackball or a touch pad provided on the housing of the electronic device, or External keyboard, touchpad or mouse, etc.
  • the electronic device may be a mobile phone, a tablet computer, a personal digital assistant or a wearable device.
  • FIG. 3 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the electronic device to which the solution of the present application is applied.
  • the specific electronic device may It includes more or fewer components than shown in the figure, or some components are combined, or have a different component arrangement.
  • the method for processing the application mentioned above may specifically be:
  • the call status includes a call connection status and a call disconnection status
  • the audio playback behavior of the application program in the electronic device is monitored to determine the audio output state of the electronic device, the audio output state includes output audio and non-output audio;
  • the application program If it is determined that the application program outputs audio when the electronic device is in a call connection state, the application program is closed or muted.
  • the embodiments of the present application also provide a computer non-volatile readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of processing the application program as described above are realized.
  • An embodiment of the present invention also provides a computer device. As shown in FIG. 4, for ease of description, only parts related to the embodiments of the present invention are shown, and specific technical details are not disclosed, please refer to the method part of the embodiments 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), an in-vehicle computer, a wearable device, etc.
  • the computer device is an electronic device For example:
  • the electronic device includes: a radio frequency (Radio Frequency) circuit 410, a memory 420, an input unit 430, a display unit 440, a sensor 450, an audio circuit 460, a wireless fidelity (WiFi) module 470, a processor 480, and power supply 490 and other components.
  • a radio frequency (Radio Frequency) circuit 410 for detecting radio frequency (Radio Frequency)
  • a memory 420 for a digital signal
  • an input unit 430 a keyboard
  • a display unit 440 a sensor 450
  • an audio circuit 460 a wireless fidelity (WiFi) module
  • WiFi wireless fidelity
  • processor 480 and power supply 490 and other components.
  • power supply 490 other components.
  • the structure of the electronic device shown in FIG. 4 does not constitute a limitation on the electronic device, and may include more or fewer components than shown, or combine some components, or arrange different components.
  • the RF circuit 410 can be used to receive and send signals during the sending and receiving of information or during a call. It can receive the downlink information of the base station and process it to the processor 480; it can also send the uplink data to the base station.
  • RF circuits include but are not limited to antennas, at least one amplifier, transceiver, coupler, low noise amplifier (Low Noise Amplifier, LNA), duplexer, and so on.
  • the RF circuit 410 can also communicate with other devices through a wireless communication network.
  • the above wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobile (GSM), General Packet Radio Service (GPRS), and Code Division Multiple Access (Code Division) Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), e-mail, Short Message Service (SMS), etc.
  • GSM Global System of Mobile
  • GPRS General Packet Radio Service
  • CDMA Code Division Multiple Access
  • WCDMA Wideband Code Division Multiple Access
  • LTE Long Term Evolution
  • SMS Short Message Service
  • the memory 420 may be used to store software programs and modules.
  • the processor 480 executes various functional applications and data processing of the electronic device by running 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, where the program storage area may store an operating system and at least one function-required application program (such as a sound playback function application program, an image playback function application program, etc.), etc .;
  • the data storage area can store data (such as audio data, address book, etc.) created according to the use of electronic devices.
  • the memory 420 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
  • the input unit 430 may be used to receive input digital or character information, and generate key signal input related to user settings and function control of the electronic device 400.
  • the input unit 430 may include a touch panel 431 and other input devices 432.
  • the touch panel 431 also known as a touch screen, can collect user's touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers or stylus on or near the touch panel 431 Operation), and drive the corresponding connection device according to the preset program.
  • the touch panel 431 may include a touch detection device and a touch controller.
  • the touch detection device detects the user's touch orientation, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device and converts it into contact coordinates, and then sends To the processor 480, and can receive the command sent by the processor 480 and execute it.
  • the touch panel 431 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the input unit 430 may also include other input devices 432.
  • the 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.).
  • the display unit 440 may be used to display information input by the user or information provided to the user and various menus of the electronic device.
  • the display unit 440 may include a display panel 441.
  • the display panel 441 may be configured in the form of a liquid crystal display (Liquid Crystal) (LCD), an organic light-emitting diode (Organic Light-Emitting Diode, OLED), or the like.
  • the touch panel 431 may cover the display panel 441, and when the touch panel 431 detects a touch operation on or near it, it is transmitted to the processor 480 to determine the type of touch event, and then the processor 480 according to The type of touch event provides corresponding visual output on the display panel 441.
  • the touch panel 431 and the display panel 441 are implemented as two independent components to realize the input and input functions of the electronic device, in some embodiments, the touch panel 431 and the display panel 441 may be integrated And realize the input and output functions of electronic equipment.
  • the electronic device 400 may further include at least one sensor 450, such as a light sensor, a motion sensor, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 441 according to the brightness of the ambient light, and the proximity sensor may close the display panel 441 and the electronic device when moving to the ear / Or backlight.
  • the motion sensor may include an acceleration sensor. The acceleration sensor can detect the magnitude of acceleration in various directions, and can detect the magnitude and direction of gravity when at rest.
  • electronic devices can be used to identify the posture of electronic devices (such as horizontal and vertical screen switching), and vibration recognition related functions For example, pedometer, percussion, etc .; in addition, electronic devices can also be equipped with other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc.
  • the audio circuit 460, the speaker 461, and the microphone 462 may provide an audio interface between the user and the electronic device.
  • the audio circuit 460 can transmit the converted electrical signal of the received audio data to the speaker 461, which converts the speaker 461 into a sound signal for output; on the other hand, the microphone 462 converts the collected sound signal into an electrical signal, which is converted by the audio circuit 460 After receiving, it is converted into audio data, and then processed by the audio data output processor 480, and then sent to another electronic device via the RF circuit 410, or the audio data is output to the memory 420 for subsequent processing.
  • WiFi is a short-range wireless transmission technology. Electronic devices can help users send and receive emails, browse web pages, and access streaming media through the WiFi module 470. It provides users with wireless broadband Internet access.
  • FIG. 4 shows the WiFi module 470, it can be understood that it is not a necessary component of the electronic device 400, and may be omitted as needed.
  • the processor 480 is a control center of the electronic device, and uses various interfaces and lines to connect various parts of the entire electronic device, by running or executing software programs and / or modules stored in the memory 420, and calling data stored in the memory 420 , Perform various functions of electronic devices and process data, so as to monitor the electronic devices as a whole.
  • the processor 480 may include one or more processing units.
  • the processor 480 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, user interface, application programs, and the like; the modem processor mainly processes wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 480.
  • the electronic device 400 further includes a power supply 490 (such as a battery) that supplies power to various components.
  • a power supply 490 (such as a battery) that supplies power to various components.
  • the power supply can be logically connected to the processor 480 through the power management system, so as to implement functions such as charging, discharging, and power management through the power management system .
  • the electronic device 400 may further include a camera, a Bluetooth module, and the like.
  • the processor 480 included in the computer device implements the methods of the foregoing embodiments when executing the computer program stored on the memory.
  • the program may be stored in a non-volatile computer-readable storage medium
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM), etc.
  • An embodiment of the present invention also provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the methods of the foregoing embodiments.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

本发明涉及一种对应用程序进行处理的方法,包括:监测所述电子设备的通话行为,并确定所述电子设备的通话状态,所述通话状态包括通话连接状态和通话断开状态;若确定所述电子设备处于通话连接状态,则监测所述电子设备中应用程序的音频播放行为,以确定所述电子设备的音频输出状态,所述音频输出状态包括输出音频和未输出音频;若确定所述电子设备处于通话连接状态时所述应用程序输出音频,则对所述应用程序进行关闭或静音处理。相应地,本发明还提供了一种对应用程序进行处理的装置、电子设备及可读存储介质,解决了应用程序的音频异常播放的问题,提升了通话质量。

Description

一种对应用程序进行处理的方法、装置和电子设备 技术领域
本申请涉及信息技术领域,特别是涉及一种对应用程序进行处理方法、装置、电子设备和计算机可读存储介质。
背景技术
随着互联网的飞速发展,智能移动终端已经成为许多用户最常用的电子设备,例如智能手机、平板电板等。目前手机的屏幕越来越大,用户安装的应用程序越来越多,尤其是一些音视频播放软件,例如酷狗音乐、暴风影音、快手、土豆视频等。用户可以使用安装的应用程序进行听音乐、看视频等各种娱乐活动,给用户的生活带来了很大便利。但是,移动终端对应用程序的管理不合理,在通话过程中,终端上的应用程序可以随意在后台播放,严重影响通话质量。
发明内容
基于此,有必要提供一种能够解决应用程序音频异常播放问题的方法、装置、电子设备和计算机可读存储介质。
本申请实施例提供一种对应用程序进行处理的方法,包括:
监测所述电子设备的通话行为,并确定所述电子设备的通话状态,所述通话状态包括通话连接状态和通话断开状态;
若确定所述电子设备处于通话连接状态,则监测所述电子设备中应用程序的音频播放行为,以确定所述电子设备的音频输出状态,所述音频输出状态包括输出音频和未输出音频;
若确定所述电子设备处于通话连接状态时所述应用程序输出音频,则对所述应用程序进行关闭或静音处理。
本申请实施例提供一种对应用程序进行处理的装置,包括:
第一监测模块,用于监测所述电子设备的通话行为,并确定所述电子设备的通话状态,所述通话状态包括通话连接状态和通话断开状态;
第二监测模块,用于若确定所述电子设备处于通话连接状态,则监测所述电子设备中应用程序的音频播放行为,以确定所述电子设备的音频输出状态,所述音频输出状态包括输出音频和未输出音频;
第一处理模块,用于若确定所述电子设备处于通话连接状态时输出了音频,则对所述应用程序进行关闭或静音处理。
本申请实施例还提供一种电子设备,包括存储器及处理器,所述存储器中储存有计算机程序,其特征在于,所述计算机程序被所述处理器执行时,使得所述处理器执行:
监测所述电子设备的通话行为,并确定所述电子设备的通话状态,所述通话状态包括通话连接状态和通话断开状态;
若确定所述电子设备处于通话连接状态,则监测所述电子设备中应用程序的音频播放行为,以确定所述电子设备的音频输出状态,所述音频输出状态包括输出音频和未输出音频;
若确定所述电子设备处于通话连接状态时所述应用程序输出音频,则对所述应用程序进行关闭或静音处理。
本申请实施例还提供一种计算机非易失性可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如上述的对应用程序进行处理的步骤。
电子设备和计算机可读存储介质在实现上述方法时,根据电子设备的通话状态和应用程序的音频播放行为对应用程序进行处理,解决了应用程序的音频异常播放问题,提升了通话质量。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他实施例的附图。
图1为一实施例的对应用程序进行处理的方法流程图;
图2为一实施例的对应用程序进行处理的装置结构示意图;
图3为一实施例中电子设备的内部结构示意图;
图4为与本申请实施例提供的计算机设备相关的电子设备的部分结构的框图。
具体实施方式
为了便于理解本发明,下面将参照相关附图对本发明进行更全面的描述。附图中给出了本发明的较佳实施例。但是,本发明可以以许多不同的形式来实现,并不限于 本文所描述的实施例。相反地,提供这些实施例的目的是使对本发明的公开内容的理解更加透彻全面。
可以理解,本申请所使用的术语“第一”、“第二”等可在本文中用于描述各种元件,但这些元件不受这些术语限制。这些术语仅用于将第一个元件与另一个元件区分。举例来说,在不脱离本申请的范围的情况下,可以将第一监测模块称为第二监测模块,且类似地,可将第二监测模块称为第一监测模块。第一监测模块和第二监测模块两者都是监测模块,但其不是同一监测模块。
如图1所示,本申请实施例提供了一种对应用程序进行处理的方法,应用于电子设备,该方法包括:
S110、监测所述电子设备的通话行为,并确定所述电子设备的通话状态,所述通话状态包括通话连接状态和通话断开状态。
在一个实施例中,在通话过程中,电子设备可以实时监测通话的语音信号,根据监测到的语音信号判断通话挂断事件是否被触发,若通话挂断事件未被触发,则确定电子设备处于通话连接状态;若所述通话挂断事件已被触发,则确定所述电子设备处于通话挂断状态
具体地,在通话过程中,电子设备实时检测当前电子设备的音频通道中是否传输有语音信号,该语音信号包括由当前电子设备的麦克风输入的语音信号和对方从网络侧发来的语音信号。若监测到至少有一种语音信号时,说明电子设备处于通话连接状态;若在预设时间内未监测到任意一种语音信号,或者电子设备接收到用户按压实体或虚拟的通话结束按键时,此时电子设备确定通话挂断事件被触发,确定通话处于通话挂断状态。
上述实施例中,预设时间可以为30s、1分钟、两分钟,具体时长根据实际情况确定,本实施例不做限制。可以理解的是,本实施例中通话可以包括语音通话、视频通话等任意形式的通话。在通话过程中,终端实时监测通话的语音信号,如果在预设时间内一直未监测到语音信号,则终端判定通话挂断事件被触发,即说明通话双方忘记挂断电话,此时自动将电话挂断,解决了双方因忘记挂断电话造成的资源浪费问题。
在一个实施例中,在监测电子设备的通话行为前,电子设备还可以记录电子设备内所有应用程序的音频行为以形成日志记录,日志记录可以包括:电子设备中所有应用程序的播放记录、音频模式调节行为记录或通话记录的一种或多种的组合,例如可以只记录播放记录,或只记录通话记录,或多个记录的组合,具体组合形式不做限定。
具体地,在电子设备被开启后,启动具有监测和记录功能的服务,以实时获取电 子设备内所有应用程序的运行信息,并进行记录。以应用程序暴风影音为例进行说明,在电子设备被开启后,启动的监测服务实时监测暴风影音的运行信息并进行记录以形成日志记录,日志记录可以包括暴风影音的播放记录、音频模式调节行为记录和/或录音行为记录。其中播放记录可以包括暴风影音在后台的占用资源的时间、在后台释放资源的时间、在前台的占用资源的时间、在前台释放资源的时间等多种类型,在此不作具体限定。每一张类型对应的播放记录可以包括多条日志,每一条日志可以包括一个时间对,根据时间对可以计算出暴风影音播放一次的时间。例如,暴风影音在前台的占用资源的时间为10:10;在前台释放资源的时间为11:00。在后台的占用资源的时间为13:20;在后台释放资源的时间为14:00。根据上述日志记录可以得出暴风影音在前台播放了两次,第一次是从10:10到11:00,播放了50分钟,第二次是从13:20到14:00,播放了40分钟。通话记录可以记录来电时间、通话时长等信息。
在一个实施例中,电子设备中所有应用程序对应的日志记录可以以数据库的形式存储在电子设备存储器中,需要调用时可通过内部指令进行日志记录的访问,以确定出应用程序对应的日志记录。
S120、若确定所述电子设备处于通话连接状态,则监测所述电子设备中应用程序的音频播放行为,以确定所述电子设备的音频输出状态,所述音频输出状态包括输出音频和未输出音频。
在一个实施例中,所述监测应用程序的播放行为具体可以是电子设备在应用层通过监测接口音频资源的创建和释放,以获取所述应用程序的音频播放行为。
具体地,可以在手机的应用层通过一个服务(service)来监测接口音频资源的创建和释放,并获得音频资源的音频输出情况。若监测到应用程序创建了音频资源,则该应用程序启动了播放。另外,在创建音频资源和释放音频资源时记录对应的时间,并根据创建音频资源和释放音频资源的时间差计算出该应用程序占用音频资源的时间,即为该应用程序播放音频的时间。
在一个实施例中,电子设备也可以通过内置的监测函数对应用程序的音频播放行为进行监测,以安卓系统的电子设备为例,可在系统框架层(native/framework层)创建系统级的监测模块,通过所述监测模块对所述应用程序的音频播放行为进行监测,或,独立创建监测进程,通过消息传输机制监测所述应用程序的音频播放行为。例如,可在框架层设立监测模块并运行在系统服务程序(system_server)中,由于该监测模块设立在系统级的服务框架层中,可方便与其他系统服务进行交互,同时无需担心系统调用时的权限问题。此外,也可以创建独立的监测进程,在该进程中设立并调用单独的监 测函数,可设置为开机自启动,并实时对其他任何一个应用程序的音频资源创建行为、音频资源释放行为、音频播放行为进行监控。
需要说明的是,电子设备是否有音频输出,具体如何监测本申请实施例不作唯一性限定。以上记载的监测方法,如果使用软件的服务实现,可以在应用层启动具有监测功能的服务来对音频播放行为进行监测。
S130、若确定所述电子设备处于通话连接状态时所述应用程序输出音频,则对所述应用程序进行关闭或静音处理。
对应用程序进行关闭或静音处理,具体可以是:
在通话过程中监测到有音频输出,则获取所述应用程序的运行信息,所述运行信息包括所述应用程序的运行时间及运行期间占用的资源;
若所述应用程序的运行时间超过预设时间阈值,且所述运行期间占用资源超过预设资源阈值时,对所述应用程序进行关闭或静音处理。
在一个实施例中,可以根据运行的时间和运行的次数判断应用程序的使用频率,也可以根据用户的使用频率或使用习惯通过标识信息将应用程序标识为常用和非常用,根据应用程序的标识信息对应用程序进行关闭或静音处理。例如,在通话过程中监测到有音频输出,获取应用程序的标识信息,若标识信息为常用,则对该应用程序作静音处理;若标识信息为非常用,则对该应用程序作关闭处理。
在一个实施例中,可以根据应用程序在运行期间占用的资源来判断音频类型,音频类型可以包括音乐、提示音等,例如可以是微信、QQ等应用程序的提示音以及微博、淘宝等应用程序中通知的提示音等。本申请实施例中,监测电子设备是否处于通话连接状态,包括当前是否有向外拨打电话或接听外面的来电。当电子设备处于通话连接状态,且在通话连接状态监测到有音频输出,则获取输出音频的应用程序在播放音频时所占用的资源,根据占用的资源判断输出的音频类型,根据音频类型对应用程序进行关闭或静音处理。例如,若在通话连接状态输出的音频为微信提示音,则可以对微信作静音处理。用户也可以预先选定某些消息提醒,不对选定的消息提示音处理,防止漏掉重要信息;若在通话连接状态输出的音频为酷狗音乐,则可以对酷狗应用程序作关闭处理。
在对所述应用程序进行关闭或静音处理之后,电子设备可以对处理的应用程序和处理方式进行记录形成记录表,并将记录表存储在电子设备中。
需要说明的是,上述对应用程序的处理方式可以根据实际情况手动设置,具体处理方式本申请实施例不作限制。
本申请实施例中,通过监测所述电子设备的通话行为,并确定所述电子设备的通话状态,所述通话状态包括通话连接状态和通话断开状态;若确定所述电子设备处于通话连接状态,则监测所述电子设备中应用程序的音频播放行为,以确定所述电子设备的音频输出状态,所述音频输出状态包括输出音频和未输出音频;若确定所述电子设备处于通话连接状态时所述应用程序输出音频,则对所述应用程序进行关闭或静音处理,解决了现有技术中解决了应用程序的音频异常播放的问题,提升了通话质量。
在一个实施例中,所述对所述应用程序进行关闭或静音处理后,还包括:
若监测到所述电子设备处于通话挂断状态,则对所述应用程序进行关闭或播放处理。
对所述应用程序进行关闭或播放处理,具体可以是:
当确定所述电子设备处于通话挂断状态时,按照预设方式发出提示消息,所述提示消息用于提示用户对所述应用程序进行处理;
当接收到用户针对所述提示消息的预设操作指令时,根据所述预设操作指令对所述应用程序进行关闭或播放处理。
在通话连接状态,所述应用程序输出了音频,对所述应用程序进行关闭或静音处理,当确定电子设备处于通话挂断状态时,按照预设方式发出提示消息,所述提示消息用于提示用户对所述应用程序进行处理。当电子设备接收到用户针对所述提示消息的预设操作指令时,根据所述预设操作指令对所述应用程序进行关闭或播放处理。
在一个实施例中,预设方式可以是语音输出、弹出对话框等形式,以弹出对话框为例,在通话挂断后,可以查询电子设备中存储的记录表,根据记录表获取在通话过程中是否对应用程序进行了关闭或静音处理,若对所述应用程序进行了静音处理,则弹出对话框,对话框可以包括以下信息:是否要继续播放A应用程序和对应的是、否按键,用户根据实际情况选择对该应用程序进行处理,若点击是,则A应用程序执行播放,若点击否,则A应用程序关闭。
在一个实施例中,应用程序可以自动对所述应用程序进行关闭或播放处理,例如可以根据用户的通话时长自动对所述应用程序进行关闭或播放处理,当通话时长超过预设阈值时,则对所述应用程序作关闭处理。其中预设阈值可以是30分钟、60分钟等,具体数值本实施例不做限制。通话时长可以通过调用日志记录表中的通话记录来获取。
本申请实施例,若监测到所述电子设备处于通话挂断状态,按照预设方式发出提示消息,所述提示消息用于提示用户对所述应用程序进行处理。当接收到用户针对所述提示消息的预设操作指令时,根据所述预设操作指令对所述应用程序进行关闭或播 放处理,可以对应用程序进行更好的管理,避免了应用程序随意播放的问题,提升了用户的体验。
在一个实施例中,在监测到所述电子设备处于通话挂断状态后,还包括:
在所述通话挂断事件被触发时,将所述应用程序的图标及所述通话挂断的图标显示在所述电子设备的显示界面上。
通常,电子设备在通话结束后会保持在通话挂断界面,即电子设备的拨打电话界面,用户可以继续拨打其他电话。通话挂断的方式包括主动和被动两种,主动挂断是用户在电话结束后点击挂断按钮进行挂断,被动挂断是通话对方先挂断电话。在本申请实施例中,无论通话挂断是主动或被动的方式,在通话挂断事件被触发时,使所述应用程序的图标及通话挂断的图标显示在所述电子设备的显示界面上,用户根据实际情况选择。若用户点击通话挂断的图标时,电子设备保持在通话挂断界面,以使用户继续拨打其他电话;若用户点击应用程序的图标时,电子设备将显示界面跳转到所述应用程序,用户可以对应用程序进行管理。
本申请实施例,通过在所述通话挂断事件被触发时,使所述应用程序的图标及所述通话挂断的图标显示在所述电子设备的显示界面上,提升了用户体验。
在一个实施例中,根据所述预设操作指令对所述应用程序进行关闭或播放处理,包括:获取所述应用程序的优先级;若所述应用程序的优先级大于预设优先等级,对所述应用程序进行播放操作;若所述应用程序的优先级小于或等于所述预设优先等级,对所述应用程序进行关闭操作。
在一个实施例中,若电子设备处于通话连接状态时多个应用程序输出了音频,则对多个应用程序进行静音处理后,若监测到所述电子设备处于通话挂断状态,根据所述预设操作对所述应用程序进行播放处理时,根据应用程序的优先级对多个应用程序进行播放。
具体地,多个应用程序中,每个应用程序可以对应一个优先级。该优先级可以为用户预设设置的,也可以是电子设备根据应用程序的运行信息或分类信息设置的。例如,根据应用程序的类别设置优先级,即时通讯应用程序的优先级较高,设为第一级优先级;在线视频类应用程序的优先级中等,设为第二级优先级;备份类的应用程序的优先级较低,设为第三级优先级。也可以在让用户自行设置各个应用程序的优先级,如在线游戏类的应用程序可以根据用户指令设置为第一级优先级。
需要说明的是,本实施例中,应用程序的优先级分成三个等级,但并不对应用程序的优先级的等级数进行限定,应用程序的优先级可以包括四个等级、五个等级,甚 至更多。
本申请实施例,通过对多个应用程序设置不同的优先级,通过获取所述应用程序的优先级;若所述应用程序的优先级大于预设优先等级,对所述应用程序进行播放操作;若所述应用程序的优先级小于或等于所述预设优先等级,对所述应用程序进行关闭操作。在通话挂断后,根据应用程序的优先级顺序对应用程序进行播放,可以对应用程序进行有效的管理,防止随意播放,提升了用户体验。
如图2所示,本申请实施例提供了一种对应用程序进行处理的装置20,该装置包括:
第一监测模块21,用于监测所述电子设备的通话行为,并确定所述电子设备的通话状态,所述通话状态包括通话连接状态和通话断开状态。
在一个实施例中,在通话过程中,第一监测模块21可以实时监测通话的语音信号,根据监测到的语音信号判断通话挂断事件是否被触发,若通话挂断事件未被触发,则确定电子设备处于通话连接状态;若所述通话挂断事件已被触发,则确定所述电子设备处于通话挂断状态。
具体地,在通话过程中,电子设备实时检测当前电子设备的音频通道中是否传输有语音信号,该语音信号包括由当前电子设备的麦克风输入的语音信号和对方从网络侧发来的语音信号。在监测到至少有一种语音信号时,说明电子设备处于通话连接状态;若在预设时间内未监测到任意一种语音信号,或者电子设备接收到用户按压实体或虚拟的通话结束按键时,此时电子设备确定通话挂断事件被触发,确定通话处于通话挂断状态。
上述实施例中,预设时间可以为30s、1分钟、两分钟,具体时长根据实际情况确定,本实施例不做限制。可以理解的是,本实施例中通话可以包括语音通话、视频通话等任意形式的通话。在通话过程中,终端实时监测通话的语音信号,如果在预设时间内一直未监测到语音信号,则终端判定通话挂断事件被触发,即说明通话双方忘记挂断电话,此时自动将电话挂断,解决了双方因忘记挂断电话造成的资源浪费问题。
在一个实施例中,在监测电子设备的通话行为前,电子设备还可以记录电子设备内所有应用程序的音频行为以形成日志记录,日志记录可以包括:电子设备中所有应用程序的播放记录、音频模式调节行为记录或录音行为记录的一种或多种的组合,例如可以只记录播放记录,或只记录通话记录,或多个记录的组合,具体组合形式不做限定。
具体地,在电子设备被开启后,启动具有监测和记录功能的服务,以实时获取电 子设备内所有应用程序的运行信息,并进行记录。以应用程序暴风影音为例进行说明,在电子设备被开启后,启动的监测服务实时监测暴风影音的运行信息并进行记录以形成日志记录,日志记录可以包括暴风影音的播放记录、音频模式调节行为记录和/或录音行为记录。其中播放记录可以包括暴风影音在后台的占用资源的时间、在后台释放资源的时间、在前台的占用资源的时间、在前台释放资源的时间等多种类型,在此不作具体限定。每一张类型对应的播放记录可以包括多条日志,每一条日志可以包括一个时间对,根据时间对可以计算出暴风影音播放一次的时间。例如,暴风影音在前台的占用资源的时间为10:10;在前台释放资源的时间为11:00。在后台的占用资源的时间为13:20;在后台释放资源的时间为14:00。根据上述日志记录可以得出暴风影音在前台播放了两次,第一次是从10:10到11:00,播放了50分钟,第二次是从13:20到14:00,播放了40分钟。
在一个实施例中,电子设备中所有应用程序对应的日志记录可以以数据库的形式存储在电子设备存储器中,需要调用时可通过内部指令进行日志记录的访问,以确定出应用程序对应的日志记录。
第二监测模块22,用于若确定所述电子设备处于通话连接状态,则监测所述电子设备中应用程序的音频播放行为,以确定所述电子设备的音频输出状态,所述音频输出状态包括输出音频和未输出音频。
在一个实施例中,第二监测模块22监测应用程序的播放行为具体可以是电子设备在应用层通过监测接口音频资源的创建和释放,获取所述应用程序的音频播放行为。
具体地,可以在手机的应用层通过一个服务(service)来监测接口音频资源的创建和释放,并获得音频资源的音频输出情况。若监测到应用程序创建了音频资源,则该应用程序启动了播放。另外,在创建音频资源和释放音频资源时记录对应的时间,并根据创建音频资源和释放音频资源的时间差计算出该应用程序占用音频资源的时间,即为该应用程序播放音频的时间。
在一个实施例中,第二监测模块22可以通过内置的监测函数对应用程序的音频播放行为进行监测,以安卓系统的电子设备为例,可在系统框架层(native/framework层)创建系统级的监测模块,通过所述监测模块对所述应用程序的音频播放行为进行监测,或,独立创建监测进程,通过消息传输机制监测所述应用程序的音频播放行为。例如,可在框架层设立监测模块并运行在系统服务程序(system_server)中,由于该监测模块设立在系统级的服务框架层中,可方便与其他系统服务进行交互,同时无需担心系统调用时的权限问题。此外,也可以创建独立的监测进程,在该进程中设立并调用单独的 监测函数,可设置为开机自启动,并实时对其他任何一个应用程序的音频资源创建行为、音频资源释放行为、音频播放行为进行监控。
需要说明的是,电子设备是否有音频输出,具体如何监测本申请实施例不作唯一性限定。以上记载的监测方法,如果使用软件的服务实现,可以在应用层启动具有监测功能的服务来对音频播放行为进行监测。
第一处理模块23,用于若确定所述电子设备处于通话连接状态时所述应用程序输出音频,则对所述应用程序进行关闭或静音处理。
第一处理模块23对应用程序进行关闭或静音处理,具体可以是:
具体地,在通话过程中第二监测模块21监测到有音频输出,则
获取所述应用程序的运行信息,所述运行信息包括所述应用程序的运行时间及运行期间占用的资源;若所述应用程序的运行时间超过预设时间阈值,且所述运行期间占用资源超过预设资源阈值时,对所述应用程序进行关闭或静音处理。
在一个实施例中,第一处理模块23可以根据运行的时间和运行的次数判断应用程序的使用频率,也可以根据用户的使用频率或使用习惯通过标识信息将应用程序标识为常用和非常用,根据应用程序的标识信息对应用程序进行关闭或静音处理。例如,在通话过程中监测到有音频输出,获取应用程序的标识信息,若标识信息为常用,则对该应用程序作静音处理;若标识信息为非常用,则对该应用程序作关闭处理。
在一个实施例中,第一处理模块23可以根据应用程序在运行期间占用的资源来判断音频类型,音频类型可以包括音乐、提示音等,例如可以是微信、QQ等应用程序的提示音以及微博、淘宝等应用程序中通知的提示音等。本申请实施例中,监测电子设备是否处于通话连接状态,包括当前是否有向外拨打电话或接听外面的来电。当电子设备处于通话连接状态,且在通话连接状态监测到有音频输出,则获取输出音频的应用程序在播放音频时所占用的资源,根据占用的资源判断输出的音频类型,根据音频类型对应用程序进行关闭或静音处理。例如,若在通话连接状态输出的音频为微信提示音,则可以对微信作静音处理。用户也可以预先选定某些消息提醒,不对选定的消息提示音处理,防止漏掉重要信息;若在通话连接状态输出的音频为酷狗音乐,则可以对酷狗应用程序作关闭处理。
在第一处理模块23对所述应用程序进行第一处理之后,电子设备可以对处理的应用程序和处理方式进行记录形成记录表,并将记录表存储在电子设备中。
需要说明的是,上述对应用程序的处理方式可以根据实际情况手动设置,具体处理方式本申请实施例不作限制。
本申请实施例中,通过第一监测模块21监测所述电子设备的通话行为,以确定所述电子设备的通话状态,所述通话状态包括通话连接状态和通话断开状态,第二监测模块22若确定所述电子设备处于通话连接状态,则监测所述电子设备中应用程序的音频播放行为,以确定所述电子设备的音频输出状态,所述音频输出状态包括输出音频和未输出音频,第一处理模块23若确定所述电子设备处于通话连接状态时输出了音频,则对所述应用程序进行关闭或静音处理,解决了应用程序的音频异常播放的问题,提升了通话质量。
在一个实施例中,第一处理模块23对所述应用程序进行关闭或静音处理后,还包括:
若监测到所述电子设备处于通话挂断状态,则通过第二处理模块24对所述应用程序进行关闭或播放处理。
第二处理模块24对所述应用程序进行关闭或播放处理,具体可以是:
当确定所述电子设备处于通话挂断状态时,按照预设方式发出提示消息,所述提示消息用于提示用户对所述应用程序进行处理;
当接收到用户针对所述提示消息的预设操作指令时,根据所述预设操作指令对所述应用程序进行关闭或播放处理。
在通话连接状态,所述应用程序输出了音频,第一处理模块23对所述应用程序进行关闭或静音处理,当确定电子设备处于通话挂断状态时,按照预设方式发出提示消息,所述提示消息用于提示用户对所述应用程序进行处理。当电子设备接收到用户针对所述提示消息的预设操作指令时,第二处理模块24根据所述预设操作指令对所述应用程序进行关闭或播放处理。
在一个实施例中,预设方式可以是语音输出、弹出对话框等形式,以弹出对话框为例,在通话挂断后,可以查询电子设备中存储的记录表,根据记录表获取在通话过程中是否对应用程序进行了关闭或静音处理,若对所述应用程序进行了静音处理,则弹出对话框,对话框可以包括以下信息:是否要继续播放A应用程序和对应的是、否按键,用户根据实际情况选择对该应用程序进行处理,若点击是,则A应用程序执行播放,若点击否,则A应用程序关闭。
在一个实施例中,第二处理模块24可以自动对所述应用程序进行关闭或播放处理,例如可以根据用户的通话时长自动对所述应用程序进行关闭或播放处理,当通话时长超过预设阈值时,则对所述应用程序作关闭处理。其中预设阈值可以是30分钟、60分钟等,具体数值本实施例不做限制。通话时长可以通过调用日志记录表中的通话记录 来获取。
本申请实施例,第一监测模块21若监测到所述电子设备处于通话挂断状态,按照预设方式发出提示消息,所述提示消息用于提示用户对所述应用程序进行处理。当接收到用户针对所述提示消息的预设操作指令时,第二处理模块24根据所述预设操作指令对所述应用程序进行关闭或播放处理,可以对应用程序进行更好的管理,避免了应用程序随意播放的问题,提升了用户的体验。
在一个实施例中,该装置还包括显示模块(图中未示出),当第一监测模块21在监测到所述电子设备处于通话挂断状态后,在所述通话挂断事件被触发时,电子设备将所述应用程序的图标及所述通话挂断的图标显示在所述电子设备的显示界面上。
通常,电子设备在通话结束后会保持在通话挂断界面,即电子设备的拨打电话界面,用户可以继续拨打其他电话。通话挂断的方式包括主动和被动两种,主动挂断是用户在电话结束后点击挂断按钮进行挂断,被动挂断是通话对方先挂断电话。在本申请实施例中,无论通话挂断是主动或被动的方式,在通话挂断事件被触发时,使所述应用程序的图标及通话挂断的图标显示在所述电子设备的显示界面上,用户根据实际情况选择。若用户点击通话挂断的图标时,电子设备保持在通话挂断界面,以使用户继续拨打其他电话;若用户点击应用程序的图标时,电子设备将显示界面跳转到所述应用程序,用户可以对应用程序进行管理。
本申请实施例,通过在所述通话挂断事件被触发时,使所述应用程序的图标及所述通话挂断的图标显示在所述电子设备的显示界面上,提升了用户体验。
在一个实施例中,根据所述预设操作指令对所述应用程序进行关闭或播放处理,包括:获取所述应用程序的优先级;若所述应用程序的优先级大于预设优先等级,对所述应用程序进行播放操作;若所述应用程序的优先级小于或等于所述预设优先等级,对所述应用程序进行关闭操作。
在一个实施例中,若电子设备处于通话连接状态时多个应用程序输出了音频,则对多个应用程序进行静音处理后,若监测到所述电子设备处于通话挂断状态,根据所述预设操作指令对所述应用程序进行播放处理时,根据应用程序的优先级对多个应用程序进行播放。
具体地,多个应用程序中,每个应用程序可以对应一个优先级。该优先级可以为用户预设设置的,也可以是电子设备根据应用程序的运行信息或分类信息设置的。例如,根据应用程序的类别设置优先级,即时通讯应用程序的优先级较高,设为第一级优先级;在线视频类应用程序的优先级中等,设为第二级优先级;备份类的应用程序 的优先级较低,设为第三级优先级。也可以在让用户自行设置各个应用程序的优先级,如在线游戏类的应用程序可以根据用户指令设置为第一级优先级。
需要说明的是,本实施例中,应用程序的优先级分成三个等级,但并不对应用程序的优先级的等级数进行限定,应用程序的优先级可以包括四个等级、五个等级,甚至更多。
本申请实施例,通过对多个应用程序设置不同的优先级,通过获取所述应用程序的优先级;若所述应用程序的优先级大于预设优先等级,对所述应用程序进行播放操作;若所述应用程序的优先级小于或等于所述预设优先等级,对所述应用程序进行关闭操作。在通话挂断后,根据应用程序的优先级顺序对应用程序进行播放,可以对应用程序进行有效的管理,防止随意播放,提升用户体验。
图3为一实施例中电子设备的内部结构示意图。如图3所示,该电子设备包括通过系统总线连接的处理器、非易失性存储介质、内存储器和网络接口、声音采集装置、扬声器、显示屏和输入装置。其中,终端的非易失性存储介质存储有操作系统和计算机可读指令。该计算机可读指令被处理器执行时以实现一种电子设备的对应用程序进行处理的方法。该处理器用于提供计算和控制能力,支撑整个电子设备的运行。电子设备中的内存储器为非易失性存储介质中的计算机可读指令的运行提供环境。电子设备的显示屏可以是液晶显示屏或者电子墨水显示屏等,输入装置可以是显示屏上覆盖的触摸层,也可以是电子设备外壳上设置的按键、轨迹球或触控板,也可以是外接的键盘、触控板或鼠标等。该电子设备可以是手机、平板电脑或者个人数字助理或穿戴式设备等。本领域技术人员可以理解,图3中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的电子设备的限定,具体的电子设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。
其中,上述提及的对应用程序进行处理的方法具体可以为:
监测所述电子设备的通话行为,并确定所述电子设备的通话状态,所述通话状态包括通话连接状态和通话断开状态;
若确定所述电子设备处于通话连接状态,则监测所述电子设备中应用程序的音频播放行为,以确定所述电子设备的音频输出状态,所述音频输出状态包括输出音频和未输出音频;
若确定所述电子设备处于通话连接状态时所述应用程序输出音频,则对所述应用程序进行关闭或静音处理。
此外,本申请实施例还提供了一种计算机非易失性可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如上述对应用程序进行处理的步骤。
本发明实施例还提供了一种计算机设备。如图4所示,为了便于说明,仅示出了与本发明实施例相关的部分,具体技术细节未揭示的,请参照本发明实施例方法部分。该计算机设备可以为包括电子设备、平板电脑、PDA(Personal Digital Assistant,个人数字助理)、POS(Point of Sales,销售终端)、车载电脑、穿戴式设备等任意终端设备,以计算机设备为电子设备为例:
图4为与本发明实施例提供的计算机设备相关的电子设备的部分结构的框图。参考图4,电子设备包括:射频(Radio Frequency,RF)电路410、存储器420、输入单元430、显示单元440、传感器450、音频电路460、无线保真(wireless fidelity,WiFi)模块470、处理器480、以及电源490等部件。本领域技术人员可以理解,图4所示的电子设备结构并不构成对电子设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。
其中,RF电路410可用于收发信息或通话过程中,信号的接收和发送,可将基站的下行信息接收后,给处理器480处理;也可以将上行的数据发送给基站。通常,RF电路包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,LNA)、双工器等。此外,RF电路410还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(Global System of Mobile communication,GSM)、通用分组无线服务(General Packet Radio Service,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband Code Division Multiple Access,WCDMA)、长期演进(Long Term Evolution,LTE))、电子邮件、短消息服务(Short Messaging Service,SMS)等。
存储器420可用于存储软件程序以及模块,处理器480通过运行存储在存储器420的软件程序以及模块,从而执行电子设备的各种功能应用以及数据处理。存储器420可主要包括程序存储区和数据存储区,其中,程序存储区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能的应用程序、图像播放功能的应用程序等)等;数据存储区可存储根据电子设备的使用所创建的数据(比如音频数据、通讯录等)等。此外,存储器420可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
输入单元430可用于接收输入的数字或字符信息,以及产生与电子设备400的用户设置以及功能控制有关的键信号输入。具体地,输入单元430可包括触控面板431以及其他输入设备432。触控面板431,也可称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板431上或在触控面板431附近的操作),并根据预先设定的程式驱动相应的连接装置。在一个实施例中,触控面板431可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器480,并能接收处理器480发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板431。除了触控面板431,输入单元430还可以包括其他输入设备432。具体地,其他输入设备432可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)等中的一种或多种。
显示单元440可用于显示由用户输入的信息或提供给用户的信息以及电子设备的各种菜单。显示单元440可包括显示面板441。在一个实施例中,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板441。在一个实施例中,触控面板431可覆盖显示面板441,当触控面板431检测到在其上或附近的触摸操作后,传送给处理器480以确定触摸事件的类型,随后处理器480根据触摸事件的类型在显示面板441上提供相应的视觉输出。虽然在图4中,触控面板431与显示面板441是作为两个独立的部件来实现电子设备的输入和输入功能,但是在某些实施例中,可以将触控面板431与显示面板441集成而实现电子设备的输入和输出功能。
电子设备400还可包括至少一种传感器450,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板441的亮度,接近传感器可在电子设备移动到耳边时,关闭显示面板441和/或背光。运动传感器可包括加速度传感器,通过加速度传感器可检测各个方向上加速度的大小,静止时可检测出重力的大小及方向,可用于识别电子设备姿态的应用(比如横竖屏切换)、振动识别相关功能(比如计步器、敲击)等;此外,电子设备还可配置陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器等。
音频电路460、扬声器461和传声器462可提供用户与电子设备之间的音频接 口。音频电路460可将接收到的音频数据转换后的电信号,传输到扬声器461,由扬声器461转换为声音信号输出;另一方面,传声器462将收集的声音信号转换为电信号,由音频电路460接收后转换为音频数据,再将音频数据输出处理器480处理后,经RF电路410可以发送给另一电子设备,或者将音频数据输出至存储器420以便后续处理。
WiFi属于短距离无线传输技术,电子设备通过WiFi模块470可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图4示出了WiFi模块470,但是可以理解的是,其并不属于电子设备400的必须构成,可以根据需要而省略。
处理器480是电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器420内的软件程序和/或模块,以及调用存储在存储器420内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。在一个实施例中,处理器480可包括一个或多个处理单元。在一个实施例中,处理器480可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等;调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器480中。
电子设备400还包括给各个部件供电的电源490(比如电池),优选的,电源可以通过电源管理系统与处理器480逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。
在一个实施例中,电子设备400还可以包括摄像头、蓝牙模块等。
在本发明实施例中,该计算机设备所包括的处理器480执行存储在存储器上的计算机程序时实现上述各实施例的方法。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一非易失性计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)等。本发明实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时上述各实施例的方法。
以上所述实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。
以上所述实施例仅表达了本发明的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干变形和改进,这些都属于本发明的保护范围。因此,本发明专利的保护范围应以所附权利要求为准。

Claims (12)

  1. 一种对应用程序进行处理的方法,应用于电子设备,其特征在于,包括:
    监测所述电子设备的通话行为,并确定所述电子设备的通话状态,所述通话状态包括通话连接状态和通话断开状态;
    若确定所述电子设备处于通话连接状态,则监测所述电子设备中应用程序的音频播放行为,以确定所述电子设备的音频输出状态,所述音频输出状态包括输出音频和未输出音频;
    若确定所述电子设备处于通话连接状态时所述应用程序输出音频,则对所述应用程序进行关闭或静音处理。
  2. 根据权利要求1所述的方法,其特征在于,所述对所述应用程序进行关闭或静音处理,包括:
    获取所述应用程序的运行信息,所述运行信息包括所述应用程序的运行时间及运行期间占用的资源;
    若所述应用程序的运行时间超过预设时间阈值,且所述运行期间占用资源超过预设资源阈值时,对所述应用程序进行关闭或静音处理。
  3. 根据权利要求2所述的方法,其特征在于,所述对所述应用程序进行关闭或静音处理后,还包括:
    若监测到所述电子设备处于通话挂断状态,则对所述应用程序进行关闭或播放处理。
  4. 根据权利要求3所述的方法,其特征在于,所述对所述应用程序进行关闭或播放处理,包括:
    当确定所述电子设备处于通话挂断状态时,按照预设方式发出提示消息,所述提示消息用于提示用户对所述应用程序进行处理;
    当接收到用户针对所述提示消息的预设操作指令时,根据所述预设操作指令对所述应用程序进行关闭或播放处理。
  5. 根据权利要求4所述的方法,其特征在于,在所述监测到所述电子设备处于通话挂断状态后,还包括:
    在所述通话挂断事件被触发时,将所述应用程序的图标及所述通话挂断的图标显示在所述电子设备的显示界面上。
  6. 根据权利要求4所述的方法,其特征在于,所述根据所述预设操作指令对所述应用程序进行关闭或播放处理,包括:
    获取所述应用程序的优先级;
    若所述应用程序的优先级大于预设优先等级,对所述应用程序进行播放操作;
    若所述应用程序的优先级小于或等于所述预设优先等级,对所述应用程序进行关闭操作。
  7. 根据权利要求1所述的方法,其特征在于,所述监测所述电子设备的通话行为,并确定所述电子设备的通话状态,包括:
    在通话过程中,监测通话的语音信号;
    根据所述语音信号判断通话挂断事件是否被触发;
    若所述通话挂断事件未被触发,则确定所述电子设备处于通话连接状态;
    若所述通话挂断事件已被触发,则确定所述电子设备处于通话挂断状态。
  8. 根据权利要求7所述的方法,其特征在于,所述根据所述语音信号判断通话挂断事件是否被触发,包括:
    判断在预设时间内是否监测到所述语音信号;
    当在所述预设时间内未监测到所述语音信号时,确定所述通话挂断事件被触发。
  9. 根据权利要求1所述的方法,其特征在于,所述监测所述电子设备中应用程序的音频播放行为,包括:
    所述电子设备在应用层通过监测接口音频资源的创建和释放,以获取应用程序的音频播放行为。
  10. 一种对应用程序进行处理的装置,其特征在于,包括:
    第一监测模块,用于监测电子设备的通话行为,并确定所述电子设备的通话状态,所述通话状态包括通话连接状态和通话断开状态;
    第二监测模块,用于若确定所述电子设备处于通话连接状态,则监测所述电子设备中应用程序的音频播放行为,以确定所述电子设备的音频输出状态,所述音频输出状态包括输出音频和未输出音频;
    第一处理模块,用于若确定所述电子设备处于通话连接状态时所述应用程序输出音频,则对所述应用程序进行关闭或静音处理。
  11. 一种电子设备,包括存储器及处理器,所述存储器中储存有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器执行如权利要求1至9中任一项所述的对应用程序进行处理的方法的步骤。
  12. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至9中任一项所述的方法的步骤。
PCT/CN2018/116762 2018-11-21 2018-11-21 一种对应用程序进行处理的方法、装置和电子设备 WO2020103045A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2018/116762 WO2020103045A1 (zh) 2018-11-21 2018-11-21 一种对应用程序进行处理的方法、装置和电子设备
CN201880098218.1A CN113039774B (zh) 2018-11-21 2018-11-21 一种对应用程序进行处理的方法、装置、电子设备和存储介质

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/116762 WO2020103045A1 (zh) 2018-11-21 2018-11-21 一种对应用程序进行处理的方法、装置和电子设备

Publications (1)

Publication Number Publication Date
WO2020103045A1 true WO2020103045A1 (zh) 2020-05-28

Family

ID=70773770

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/116762 WO2020103045A1 (zh) 2018-11-21 2018-11-21 一种对应用程序进行处理的方法、装置和电子设备

Country Status (2)

Country Link
CN (1) CN113039774B (zh)
WO (1) WO2020103045A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114095616A (zh) * 2021-12-17 2022-02-25 北京小米移动软件有限公司 通话实现方法和装置、电子设备、可读存储介质
CN115022766A (zh) * 2022-07-21 2022-09-06 荣耀终端有限公司 音频数据播放方法及设备

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116028005B (zh) * 2022-05-16 2023-10-20 荣耀终端有限公司 音频会话获取方法、装置、设备和存储介质

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103795787A (zh) * 2014-01-20 2014-05-14 四川长虹电器股份有限公司 基于电话状态控制设备端音量的移动终端、设备端及系统
CN105245719A (zh) * 2015-10-27 2016-01-13 广东欧珀移动通信有限公司 通过通信设备控制播放设备音量的方法、装置和通信设备
CN107071152A (zh) * 2017-03-20 2017-08-18 广州视源电子科技股份有限公司 基于通话设备状态自动调整音响设备音量的方法及系统

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105677160A (zh) * 2016-02-16 2016-06-15 上海斐讯数据通信技术有限公司 在通话挂断时跳转到指定应用程序的装置和方法
CN106804010B (zh) * 2017-03-16 2020-02-14 北京安云世纪科技有限公司 基于虚拟现实设备的来电处理方法、装置及虚拟现实设备

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103795787A (zh) * 2014-01-20 2014-05-14 四川长虹电器股份有限公司 基于电话状态控制设备端音量的移动终端、设备端及系统
CN105245719A (zh) * 2015-10-27 2016-01-13 广东欧珀移动通信有限公司 通过通信设备控制播放设备音量的方法、装置和通信设备
CN107071152A (zh) * 2017-03-20 2017-08-18 广州视源电子科技股份有限公司 基于通话设备状态自动调整音响设备音量的方法及系统

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114095616A (zh) * 2021-12-17 2022-02-25 北京小米移动软件有限公司 通话实现方法和装置、电子设备、可读存储介质
CN115022766A (zh) * 2022-07-21 2022-09-06 荣耀终端有限公司 音频数据播放方法及设备

Also Published As

Publication number Publication date
CN113039774B (zh) 2022-07-15
CN113039774A (zh) 2021-06-25

Similar Documents

Publication Publication Date Title
WO2020103070A1 (zh) 一种对应用程序进行处理的方法、装置和电子设备
CN108781236B (zh) 音频播放方法及电子设备
CN109525707A (zh) 一种音频播放方法及移动终端
CN106371964B (zh) 一种进行消息提示的方法和装置
CN107465841B (zh) 一种故障信息上报方法及终端
WO2020118495A1 (zh) 一种音频资源分配方法、装置和电子设备
WO2020103045A1 (zh) 一种对应用程序进行处理的方法、装置和电子设备
WO2018049934A1 (zh) 一种数据迁移的方法及终端
WO2020052307A1 (zh) 权限配置方法及相关产品
CN108762869A (zh) 一种信息处理方法及移动终端
WO2019200614A1 (zh) 一种免打扰方法和终端
WO2020118496A1 (zh) 音频通路切换方法和装置、可读存储介质、电子设备
CN104917667A (zh) 基于多媒体信息的交互方法、装置和系统
CN105162930B (zh) 移动终端的录音方法及装置
CN109669662A (zh) 一种语音输入方法、装置、存储介质及移动终端
WO2015078349A1 (zh) 麦克风收音状态的切换方法和装置
WO2020097927A1 (zh) 通话控制方法和装置、计算机可读存储介质、电子设备
WO2020107177A1 (zh) 一种音频资源调用的方法、装置及电子设备
JP2020535774A (ja) 通知メッセージ処理方法及び端末
US20210286588A1 (en) Method and apparatus for playing alarm and electronic device
WO2020097787A1 (zh) 一种音频资源释放的方法、装置及电子设备
WO2020107169A1 (zh) 一种音频模式校正的方法、装置及电子设备
US10075739B2 (en) Information release method, apparatus, and system
CN106713673A (zh) 一种信息处理方法和电子设备
WO2020103073A1 (zh) 音频资源处理方法和装置、计算机可读存储介质、电子设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18940608

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

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

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 13/12/2021)

122 Ep: pct application non-entry in european phase

Ref document number: 18940608

Country of ref document: EP

Kind code of ref document: A1