Method and apparatus for playing alarm and electronic device
AssigneesShenzhen Heytap Technology Corp., Ltd., Guangdong Oppo Mobile Telecommunications Corp., Ltd.
InventorYajun Li
Life of this patent
Estimating the term…
Loading patent…
AssigneesShenzhen Heytap Technology Corp., Ltd., Guangdong Oppo Mobile Telecommunications Corp., Ltd.
InventorYajun Li
Estimating the term…
The present disclosure provides a method for playing an alarm. The method includes: receiving an instruction to play the alarm; monitoring, before playing the alarm, an occupation state of an audio resource for playing the alarm; obtaining information of an occupier in response to the occupation state indicating that the audio resource is occupied; and releasing the audio resource occupied by the occupier to use the audio resource to play the alarm, in response to the occupier being a non-call application. The present disclosure further provides an apparatus for playing an alarm, an electronic device, and a computer-readable storage medium, capable of solving the problem in the related art associated with abnormal playing of an alarm when an audio resource for playing the alarm is occupied, thereby achieving automatic correction of alarm playing, improving the stability of the system and enhancing the user experience.
A method for playing an alarm, comprising:
An electronic device, comprising a memory and a processor, wherein the memory is configured to store a computer program which, when executed by the processor, causes the processor to:
A non-transitory computer-readable storage medium, having a computer program stored thereon, the computer program, when executed by a processor, causes the processor to:
Dependencies are inferred from the claim text.