Abstract:
A method for controlling an alarm clock of an electronic device and an electronic device is provided. The method for controlling an alarm clock of an electronic device includes detecting a non-contact behavior after the alarm clock of the electronic device is triggered, where the non-contact behavior includes a sound and/or a non-contact action, matching the detected non-contact behavior with at least one standard model, and when the matching is successful, controlling the alarm clock of the electronic device according to an alarm clock control manner corresponding to the successfully matched standard model. The technical solutions provided by the embodiments of the present invention help to simplify a user operation of controlling an alarm clock of an electronic device, thereby improving user experience.