CN108174044B - Alarm clock setting method and mobile terminal - Google Patents

Alarm clock setting method and mobile terminal Download PDF

Info

Publication number
CN108174044B
CN108174044B CN201810213087.9A CN201810213087A CN108174044B CN 108174044 B CN108174044 B CN 108174044B CN 201810213087 A CN201810213087 A CN 201810213087A CN 108174044 B CN108174044 B CN 108174044B
Authority
CN
China
Prior art keywords
time
alarm clock
reminding
historical
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810213087.9A
Other languages
Chinese (zh)
Other versions
CN108174044A (en
Inventor
乐永
王东生
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201810213087.9A priority Critical patent/CN108174044B/en
Publication of CN108174044A publication Critical patent/CN108174044A/en
Application granted granted Critical
Publication of CN108174044B publication Critical patent/CN108174044B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72451User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to schedules, e.g. using calendar applications

Landscapes

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

Abstract

The embodiment of the invention provides an alarm clock setting method and a mobile terminal, wherein the alarm clock setting method comprises the following steps: when the time after the preset duration of the current time is monitored to be the historical alarm clock reminding time, acquiring a first historical work and rest parameter of a first time period before the current time of a user; comparing the first historical work and rest parameter with the second historical work and rest parameter to obtain a comparison result; the second historical work and rest parameter is a work and rest parameter of a second time period before the first time period; and according to the comparison result, carrying out alarm clock setting reminding. The embodiment realizes automatic setting and reminding of the alarm clock, and avoids the problem that a user needs to memorize the alarm clock setting frequently according to work and rest arrangement.

Description

Alarm clock setting method and mobile terminal
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to an alarm clock setting method and a mobile terminal.
Background
At present, along with the popularity of the mobile terminal, the alarm clock function on the mobile terminal becomes a function with higher use frequency in the daily life of the user. When the user uses the alarm clock function on the mobile terminal, the user can preset alarm clock reminding time, and then when the preset alarm clock reminding time is reached, the mobile terminal reminds. However, if the user temporarily turns off the alarm function at a certain time and forgets to restart the alarm function, the alarm will not be reminded at the time that the alarm is preset for reminding, so that the user cannot do scheduled things according to the alarm reminding at the preset time, and inconvenience is brought to the user.
For example, the alarm clock reminding time preset by the user is 7:30 in the morning of each working day, the work and rest arrangement of the user in one day is 8:00 out of the house and 20:00 in the house, but when the user suddenly returns home at 1:00 in the morning of a certain day, the user manually turns off the alarm clock function in order not to affect rest, if the user normally enters the house at 20:00 in the evening of the day and forgets to restart the alarm clock function, the situation that the alarm clock is not started in the second day and the alarm clock cannot carry out time reminding possibly occurs, so that the user cannot normally arrange the original alarm clock reminding time, and great inconvenience is brought to the user.
In summary, in the prior art, a user needs to adjust the reminding time of the alarm clock and set the on-off state of the alarm clock at any time according to the schedule of work and rest, so that the user needs to memorize the set alarm clock frequently.
Disclosure of Invention
The embodiment of the invention provides an alarm clock setting method and a mobile terminal, and aims to solve the problem that a user needs to memorize the alarm clock setting frequently according to work and rest arrangement in the prior art.
In order to solve the above technical problem, in a first aspect, an embodiment of the present invention provides an alarm clock setting method applied to a mobile terminal, including:
when the time after the preset duration of the current time is monitored to be the historical alarm clock reminding time, acquiring a first historical work and rest parameter of a user in a first time period before the current time;
comparing the first historical work and rest parameter with a second historical work and rest parameter to obtain a comparison result; the second historical work and rest parameter is a work and rest parameter of a second time period before the first time period;
and setting alarm clock reminding according to the comparison result.
In a second aspect, an embodiment of the present invention provides a mobile terminal, including:
the first obtaining module is used for obtaining a first historical work and rest parameter of a user in a first time period before the current time when the time after the preset duration of the current time is monitored as the historical alarm clock reminding time;
the second acquisition module is used for comparing the first historical work and rest parameter with a second historical work and rest parameter to obtain a comparison result; the second historical work and rest parameter is a work and rest parameter of a second time period before the first time period;
and the reminding module is used for carrying out alarm clock setting reminding according to the comparison result.
In a third aspect, an embodiment of the present invention provides a mobile terminal, where the mobile terminal includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor, and when the computer program is executed by the processor, the steps of the alarm clock setting method are implemented.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and the computer program, when executed by a processor, implements the steps of the alarm setting method.
Therefore, according to the embodiment of the invention, when the time after the preset duration of the current time is the historical alarm clock reminding time, the first historical work and rest parameter of the user in the first time period before the current time is obtained, then the first historical work and rest parameter is compared with the second historical work and rest parameter to obtain the comparison result, and finally alarm clock setting reminding is carried out according to the comparison result, so that the mobile terminal can carry out alarm clock setting reminding according to the first historical work and rest parameter of the first time period and the second historical work and rest parameter of the second time period before the first time period, further automatic alarm clock setting reminding based on the work and rest parameter of the mobile terminal is realized, the user can carry out alarm clock setting according to the alarm clock setting reminding, and the condition that the user needs to frequently memorize and set the alarm clock according to the work and rest arrangement is avoided.
Drawings
FIG. 1 is a flow chart illustrating the steps of an alarm clock setting method in an embodiment of the present invention;
FIG. 2 illustrates a block diagram of modules of a mobile terminal in an embodiment of the invention;
fig. 3 shows a block diagram of a mobile terminal according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in fig. 1, which is a flowchart illustrating steps of an alarm clock setting method according to an embodiment of the present invention, the method includes the following steps:
step 101: when the time after the preset duration of the current time is monitored as the historical alarm clock reminding time, a first historical work and rest parameter of a user in a first time period before the current time is obtained.
In this step, specifically, the current alarm clock reminding time of the mobile terminal is the current alarm clock reminding time, and the reminding time when the current alarm clock reminding time is not changed is the historical alarm clock reminding time. For example, if the alarm clock reminding time set by the user at a certain time is a first reminding time, and then the alarm clock reminding time is changed from the first reminding time to a currently displayed second reminding time, the first reminding time is the historical alarm clock reminding time, and the second reminding time is the current alarm clock reminding time.
Specifically, when it is detected that the time after the preset duration of the current time is the historical alarm clock reminding time, a first historical work and rest parameter of the user in a first time period before the current time can be acquired. Therefore, the mobile terminal can acquire the first historical work and rest parameter in the first time period, and a basis is provided for comparing the first historical work and rest parameter with the second historical work and rest parameter.
Specifically, the preset time period may be set according to the user requirement, for example, may be set to 10 hours; further, the first time period may be a 24 hour time period prior to the current time. This is exemplified here. Assuming that the historical alarm clock reminding time is 8:00 am on weekday, the preset time is 10 hours, and the first time period is 24 hours, if the current time is 22:00 am on monday night, it may be monitored whether the time after the preset time of the current time is the historical alarm clock reminding time, and if the time after the preset time of the current time is 8:00 am, it may be obtained that the work and rest parameters of the user are within 24 hours before the current time, that is, the user is obtained from 10:00 am on monday night to 10 monday night: 00, so that the mobile terminal can compare the acquired first historical work and rest parameter with the second historical work and rest parameter of the user.
When a first historical work and rest parameter of a user in a first time period before the current time is obtained, the first historical work and rest parameter of the user in the current geographic position and in the first time period can be obtained when the current geographic position where the mobile terminal is located is detected to be a preset geographic position and the time after the preset duration of the current time is monitored to be the historical alarm clock reminding time, wherein the first historical work and rest parameter comprises first entering time of entering the current geographic position at the last time of the first time period. Specifically, the preset geographic location may be a home address of the user, but is not specifically limited herein.
Therefore, the time when the user enters the current geographic position in the first time period of the preset geographic position is used as the first historical work and rest parameter, so that the mobile terminal can acquire the last work and rest condition of the user in the first time period of the preset geographic position, the monitoring of the mobile terminal on the work and rest condition of the user in the preset geographic position is realized, and the mobile terminal can be operated and set based on the work and rest condition of the user in the preset geographic position.
Step 102: and comparing the first historical work and rest parameter with the second historical work and rest parameter to obtain a comparison result.
In this step, specifically, the second historical work and rest parameter is a work and rest parameter of the user in a second time period before the first time period. For example, if the first time period is 24 hours before the current time, the second time period may be 24 hours before a time point that is a time point 24 hours before the current time. This makes it possible to compare the historical event parameter of a time period before the current time with the historical event parameter more ahead than the time period when comparing the first historical event parameter with the second historical event parameter, thereby making it possible to determine whether the historical event parameter of the time period is abnormal.
Wherein the second historical event parameter comprises a second time of last entry into the current geographic location at a second time period. When the first historical work and rest parameter is compared with the second historical work and rest parameter to obtain a comparison result, whether the first entering time is within a preset time range to which the second entering time belongs can be detected; when the first entering time is within a preset time range, obtaining a first comparison result that the work and rest of the user are normal; and when the first entering time is not in the preset time range, obtaining a second comparison result of the abnormal work and rest of the user.
Therefore, whether the time of the user entering the current geographical position for the last time in the first time period is abnormal or not can be determined by comparing the first entering time of the user entering the current geographical position at the last time in the first time period with the preset time range of the second entering time of the user entering the current geographical position at the last time period, so that the comparison result of whether the user works and stops at the last time period and at the current geographical position in the first time period is abnormal or not can be obtained, the detection and analysis of the work and rest conditions of the user at the preset geographical position by the mobile terminal are realized, and the alarm clock setting operation can be carried out by the mobile terminal according to the obtained comparison result.
Step 103: and according to the comparison result, carrying out alarm clock setting reminding.
In this step, specifically, after the comparison result of whether the work and rest of the user is normal is obtained, alarm clock setting reminding can be performed according to the comparison result. This comparison is illustrated here.
First, when the comparison result is a first comparison result that the user works and stops normally, if the current state of the alarm clock is detected to be the off state, first prompt information for prompting the user to start the alarm clock is displayed.
Like this, if obtain the normal first comparison result of user's work and rest, then can confirm that the user need not change historical alarm clock and remind the time, and need the alarm clock carry out the alarm clock when historical alarm clock is reminded the time and remind, if detect the current state of alarm clock this moment and be off-state, then can show the first prompt message that the suggestion user opened the alarm clock, thereby make the user can start the alarm clock through this first prompt message, avoided because the alarm clock closes the emergence of the condition of the user's work and rest that leads to of disturbing, and avoided the user to arrange the condition that the memory set up the alarm clock according to the work and rest, the alarm clock that has realized mobile terminal based on user's work and rest condition sets up the warning.
And secondly, when the comparison result is a first comparison result that the work and rest of the user are normal, if the current state of the alarm clock is detected to be the on state and the current alarm clock reminding time is detected to be different from the historical alarm clock reminding time, displaying second prompt information for prompting the user to change the current alarm clock reminding time into the historical alarm clock reminding time.
Thus, if a first comparison result that the work and rest of the user are normal is obtained, it can be determined that the user does not need to change the reminding time of the historical alarm clock, and the alarm clock is required to be reminded when the reminding time of the historical alarm clock is the same as the reminding time of the historical alarm clock, if the alarm clock is detected to be started at the moment, but the reminding time of the current alarm clock is inconsistent with the reminding time of the historical alarm clock, second prompt information for prompting the user to change the reminding time of the current alarm clock into the reminding time of the historical alarm clock can be displayed, so that the user can change the reminding time of the alarm clock into the reminding time of the historical alarm clock according to the second prompt information, the disturbance of the reminding time of the current alarm clock to the user is avoided, the condition that the user needs to set the.
And thirdly, when the comparison result is a second comparison result that the work and rest of the user are abnormal, if the current state of the alarm clock is detected to be the on state, displaying third prompt information for prompting the user to turn off the alarm clock or fourth prompt information for prompting the user to change the reminding time of the historical alarm clock.
Thus, if the second comparison result indicating that the work and rest of the user are abnormal is obtained, the reminding time of the historical alarm clock is no longer suitable for the current requirement of the user, and if the current state of the alarm clock is in an on state, a third prompting message can be displayed for prompting the user to turn off the alarm clock, so that the user can turn off the alarm clock according to the third prompting message, the reminding time of the historical alarm clock can not influence the work and rest of the user, or displaying fourth prompt information for the user to change the reminding time of the historical alarm clock, so that the user can change the reminding time of the historical alarm clock according to the fourth prompt information, thereby enabling the user to work and rest according to the reminding time of the current alarm clock, avoiding the influence of the alarm clock in the on state on the user, the condition that the user needs to memorize and set the alarm clock according to work and rest arrangement is avoided, and alarm clock setting reminding of the mobile terminal based on the work and rest condition of the user is realized.
According to the alarm clock setting reminding method and device, when the time after the preset duration of the current time is detected to be the historical alarm clock reminding time, the first historical work and rest parameter of the user in the first time period before the current time is obtained, the first historical work and rest parameter is compared with the second historical work and rest parameter to obtain the comparison result, finally, alarm clock setting reminding is conducted according to the comparison result, the mobile terminal can conduct alarm clock setting reminding according to the first historical work and rest parameter of the first time period and the second historical work and rest parameter of the second time period before the first time period, alarm clock setting reminding is conducted, automatic alarm clock setting reminding of the mobile terminal based on the work and rest parameters is achieved, the user can conduct alarm clock setting according to the alarm clock setting reminding, and the situation that the user needs to frequently memorize and set the alarm clock according to the work and rest arrangement is avoided.
On the other hand, as shown in fig. 2, an embodiment of the present invention provides a mobile terminal, including:
the first obtaining module 201 is configured to obtain a first historical work and rest parameter of a user in a first time period before a current time when it is monitored that a time after a preset duration of the current time is a historical alarm clock reminding time;
the second obtaining module 202 is configured to compare the first historical work and rest parameter with a second historical work and rest parameter to obtain a comparison result; the second historical work and rest parameter is a work and rest parameter of a second time period before the first time period;
and the reminding module 203 is used for carrying out alarm clock setting reminding according to the comparison result.
The mobile terminal provided by this embodiment acquires, by a first acquisition module, a first historical event parameter of a user in a first time period before a current time when monitoring that a time after a preset duration of the current time is a historical alarm clock reminding time, and compares the first historical event parameter with a second historical event parameter by a second acquisition module to obtain a comparison result; the second historical work and rest parameter is a work and rest parameter of a second time period before the first time period; and setting reminding by the alarm clock through the reminding module according to the comparison result. According to the embodiment, the mobile terminal can perform alarm clock setting reminding according to the first historical work and rest parameter of the first time period and the second historical work and rest parameter of the second time period before the first time period, so that automatic alarm clock setting reminding of the mobile terminal based on the work and rest parameters is realized, a user can perform alarm clock setting according to the alarm clock setting reminding, and the condition that the user needs to set an alarm clock by frequent memory according to work and rest arrangement is avoided.
Optionally, the first obtaining module is configured to, when it is detected that a current geographic location where the mobile terminal is located is a preset geographic location and it is monitored that a time after a preset duration of a current time is a historical alarm clock reminding time, obtain a first historical work and rest parameter of the user at the current geographic location and in the first time period; wherein the first historical event parameter comprises a first time of entry into the current geographic location last for the first time period.
Optionally, the second historical event parameter includes a second entry time of a last entry into the current geographic location at the second time period; the second acquisition module includes:
the detection unit is used for detecting whether the first entering time is in a preset time range to which the second entering time belongs;
the first obtaining unit is used for obtaining a first comparison result that the work and rest of the user are normal when the first entering time is within the preset time range;
and the second acquisition unit is used for acquiring a second comparison result of the abnormal work and rest of the user when the first entering time is not in the preset time range.
Optionally, the reminding module includes:
the first display reminding unit is used for displaying first prompt information for prompting the user to start the alarm clock if the current state of the alarm clock is detected to be the off state when the comparison result is a first comparison result that the work and rest of the user are normal; alternatively, the first and second electrodes may be,
and the second display reminding unit is used for displaying and reminding the user to change the current alarm clock reminding time into second reminding information of the historical alarm clock reminding time if the current state of the alarm clock is detected to be the starting state and the current alarm clock reminding time is detected to be different from the historical alarm clock reminding time when the comparison result is the first comparison result that the work and rest of the user are normal.
Optionally, the reminding module includes:
and the third display reminding unit is used for displaying third reminding information for reminding the user to turn off the alarm clock or fourth reminding information for reminding the user to change the reminding time of the historical alarm clock if the current state of the alarm clock is detected to be the on state when the comparison result is a second comparison result that the work and rest of the user are abnormal.
According to the mobile terminal provided by the embodiment of the invention, when the time after the preset duration of the current time is detected to be the historical alarm clock reminding time, the first historical work and rest parameter of the user in the first time period before the current time is obtained, then the first historical work and rest parameter is compared with the second historical work and rest parameter to obtain the comparison result, and finally alarm clock setting reminding is carried out according to the comparison result, so that the mobile terminal can carry out alarm clock setting reminding according to the first historical work and rest parameter of the first time period and the second historical work and rest parameter of the second time period before the first time period, further automatic alarm clock setting reminding of the mobile terminal based on the work and rest parameters is realized, the user can carry out alarm clock setting according to the alarm clock setting reminding, and the situation that the user needs to frequently memorize and set the alarm clock according to the work and rest arrangement is avoided.
Fig. 3 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention. The mobile terminal 300 includes, but is not limited to: radio frequency unit 301, network module 302, audio output unit 303, input unit 304, sensor 305, display unit 306, user input unit 307, interface unit 308, memory 309, processor 310, and power supply 311. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 3 is not intended to be limiting of mobile terminals, and that a mobile terminal may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The processor 310 is configured to, when it is monitored that a time after a preset duration of a current time is a historical alarm clock reminding time, obtain a first historical work and rest parameter of a user in a first time period before the current time; comparing the first historical work and rest parameter with a second historical work and rest parameter to obtain a comparison result; the second historical work and rest parameter is a work and rest parameter of a second time period before the first time period; and setting alarm clock reminding according to the comparison result.
The mobile terminal provided by this embodiment obtains the first historical work and rest parameter of the user in the first time period before the current time by detecting that the time after the preset duration of the current time is the historical alarm clock reminding time, then compares the first historical work and rest parameter with the second historical work and rest parameter to obtain the comparison result, and finally carries out alarm clock setting reminding according to the comparison result, so that the mobile terminal can carry out alarm clock setting reminding according to the first historical work and rest parameter of the first time period and the second historical work and rest parameter of the second time period before the first time period, thereby realizing automatic alarm clock setting reminding of the mobile terminal based on the work and rest parameter, so that the user can carry out alarm clock setting according to the alarm clock setting reminding, and avoiding the situation that the user needs to frequently memorize and set an alarm clock according to the work and rest arrangement.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 301 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 310; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 301 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 301 can also communicate with a network and other devices through a wireless communication system.
The mobile terminal provides the user with wireless broadband internet access through the network module 302, such as helping the user send and receive e-mails, browse webpages, access streaming media, and the like.
The audio output unit 303 may convert audio data received by the radio frequency unit 301 or the network module 302 or stored in the memory 309 into an audio signal and output as sound. Also, the audio output unit 303 may also provide audio output related to a specific function performed by the mobile terminal 300 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 303 includes a speaker, a buzzer, a receiver, and the like.
The input unit 304 is used to receive audio or video signals. The input Unit 304 may include a Graphics Processing Unit (GPU) 3041 and a microphone 3042, and the Graphics processor 3041 processes image data of a still picture or video obtained by an image capturing apparatus (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 306. The image frames processed by the graphic processor 3041 may be stored in the memory 309 (or other storage medium) or transmitted via the radio frequency unit 301 or the network module 302. The microphone 3042 may receive sounds and may be capable of processing such sounds into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 301 in case of the phone call mode.
The mobile terminal 300 also includes at least one sensor 305, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel 3061 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 3061 and/or a backlight when the mobile terminal 300 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 305 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 306 is used to display information input by the user or information provided to the user. The Display unit 306 may include a Display panel 3061, and the Display panel 3061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 307 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 307 includes a touch panel 3071 and other input devices 3072. The touch panel 3071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 3071 (e.g., operations by a user on or near the touch panel 3071 using a finger, a stylus, or any suitable object or attachment). The touch panel 3071 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 310, and receives and executes commands sent by the processor 310. In addition, the touch panel 3071 may be implemented using various types, such as resistive, capacitive, infrared, and surface acoustic wave. The user input unit 307 may include other input devices 3072 in addition to the touch panel 3071. Specifically, the other input devices 3072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described herein.
Further, the touch panel 3071 may be overlaid on the display panel 3061, and when the touch panel 3071 detects a touch operation on or near the touch panel, the touch operation is transmitted to the processor 310 to determine the type of the touch event, and then the processor 310 provides a corresponding visual output on the display panel 3061 according to the type of the touch event. Although the touch panel 3071 and the display panel 3061 are shown as two separate components in fig. 3 to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 3071 and the display panel 3061 may be integrated to implement the input and output functions of the mobile terminal, which is not limited herein.
The interface unit 308 is an interface through which an external device is connected to the mobile terminal 300. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 308 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 300 or may be used to transmit data between the mobile terminal 300 and external devices.
The memory 309 may be used to store software programs as well as various data. The memory 309 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 by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 309 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 processor 310 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 309 and calling data stored in the memory 309, thereby performing overall monitoring of the mobile terminal. Processor 310 may include one or more processing units; preferably, the processor 310 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 310.
The mobile terminal 300 may further include a power supply 311 (such as a battery) for supplying power to various components, and preferably, the power supply 311 may be logically connected to the processor 310 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the mobile terminal 300 includes some functional modules that are not shown, and thus, the detailed description thereof is omitted.
Preferably, an embodiment of the present invention further provides a mobile terminal, including a processor 310, a memory 309, and a computer program stored in the memory 309 and capable of running on the processor 310, where the computer program is executed by the processor 310 to implement each process of the alarm clock setting method, and can achieve the same technical effect, and for avoiding repetition, details are not described here again.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above-mentioned alarm clock setting method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. An alarm clock setting method is applied to a mobile terminal and is characterized by comprising the following steps:
when the time after the preset duration of the current time is monitored to be the historical alarm clock reminding time, acquiring a first historical work and rest parameter of a user in a first time period before the current time; the reminding time when the current alarm clock reminding time is not changed is historical alarm clock reminding time;
comparing the first historical work and rest parameter with a second historical work and rest parameter to obtain a comparison result; the second historical work and rest parameter is a work and rest parameter of a second time period before the first time period;
and setting alarm clock reminding according to the comparison result.
2. The method of claim 1, wherein when it is monitored that the time after the preset duration of the current time is the historical alarm clock reminding time, acquiring a first historical work and rest parameter of a user in a first time period before the current time comprises:
when the current geographic position of the mobile terminal is detected to be a preset geographic position and the time after the preset duration of the current time is monitored to be the historical alarm clock reminding time, acquiring a first historical work and rest parameter of a user at the current geographic position and in the first time period;
wherein the first historical event parameter comprises a first time of entry into the current geographic location last for the first time period.
3. The method of claim 2, wherein the second historical event parameter comprises a second entry time at which the current geographic location was last entered during the second time period;
the comparing the first historical work and rest parameter with the second historical work and rest parameter to obtain a comparison result, comprising:
detecting whether the first entering time is in a preset time range to which the second entering time belongs;
when the first entering time is within the preset time range, obtaining a first comparison result that the work and rest of the user are normal;
and when the first entering time is not in the preset time range, obtaining a second comparison result of the abnormal work and rest of the user.
4. The method of claim 1, wherein performing an alarm clock setting reminder according to the comparison result comprises:
when the comparison result is a first comparison result that the work and rest of the user are normal, if the current state of the alarm clock is detected to be a closed state, displaying first prompt information for prompting the user to start the alarm clock; alternatively, the first and second electrodes may be,
and when the comparison result is a first comparison result that the work and rest of the user are normal, if the current state of the alarm clock is detected to be the on state and the reminding time of the current alarm clock is detected to be different from the reminding time of the historical alarm clock, displaying second prompt information for prompting the user to change the reminding time of the current alarm clock into the reminding time of the historical alarm clock.
5. The method of claim 1, wherein performing an alarm clock setting reminder according to the comparison result comprises:
and when the comparison result is a second comparison result that the work and rest of the user are abnormal, if the current state of the alarm clock is detected to be an on state, displaying third prompt information for prompting the user to turn off the alarm clock or fourth prompt information for prompting the user to change the reminding time of the historical alarm clock.
6. A mobile terminal, characterized in that the mobile terminal comprises:
the first obtaining module is used for obtaining a first historical work and rest parameter of a user in a first time period before the current time when the time after the preset duration of the current time is monitored as the historical alarm clock reminding time; the reminding time when the current alarm clock reminding time is not changed is historical alarm clock reminding time;
the second acquisition module is used for comparing the first historical work and rest parameter with a second historical work and rest parameter to obtain a comparison result; the second historical work and rest parameter is a work and rest parameter of a second time period before the first time period;
and the reminding module is used for carrying out alarm clock setting reminding according to the comparison result.
7. The mobile terminal according to claim 6, wherein the first obtaining module is configured to, when it is detected that a current geographic location of the mobile terminal is a preset geographic location and it is monitored that a time after a preset duration of the current time is a historical alarm clock reminding time, obtain a first historical work and rest parameter of the user at the current geographic location and in the first time period;
wherein the first historical event parameter comprises a first time of entry into the current geographic location last for the first time period.
8. The mobile terminal of claim 7, wherein the second historical event parameter comprises a second entry time at which the current geographic location was last entered during the second time period; the second acquisition module includes:
the detection unit is used for detecting whether the first entering time is in a preset time range to which the second entering time belongs;
the first obtaining unit is used for obtaining a first comparison result that the work and rest of the user are normal when the first entering time is within the preset time range;
and the second acquisition unit is used for acquiring a second comparison result of the abnormal work and rest of the user when the first entering time is not in the preset time range.
9. The mobile terminal of claim 6, wherein the alert module comprises:
the first display reminding unit is used for displaying first prompt information for prompting the user to start the alarm clock if the current state of the alarm clock is detected to be the off state when the comparison result is a first comparison result that the work and rest of the user are normal; alternatively, the first and second electrodes may be,
and the second display reminding unit is used for displaying and reminding the user to change the current alarm clock reminding time into second reminding information of the historical alarm clock reminding time if the current state of the alarm clock is detected to be the starting state and the current alarm clock reminding time is detected to be different from the historical alarm clock reminding time when the comparison result is the first comparison result that the work and rest of the user are normal.
10. The mobile terminal of claim 6, wherein the alert module comprises:
and the third display reminding unit is used for displaying third reminding information for reminding the user to turn off the alarm clock or fourth reminding information for reminding the user to change the reminding time of the historical alarm clock if the current state of the alarm clock is detected to be the on state when the comparison result is a second comparison result that the work and rest of the user are abnormal.
CN201810213087.9A 2018-03-15 2018-03-15 Alarm clock setting method and mobile terminal Active CN108174044B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810213087.9A CN108174044B (en) 2018-03-15 2018-03-15 Alarm clock setting method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810213087.9A CN108174044B (en) 2018-03-15 2018-03-15 Alarm clock setting method and mobile terminal

Publications (2)

Publication Number Publication Date
CN108174044A CN108174044A (en) 2018-06-15
CN108174044B true CN108174044B (en) 2020-11-03

Family

ID=62512009

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810213087.9A Active CN108174044B (en) 2018-03-15 2018-03-15 Alarm clock setting method and mobile terminal

Country Status (1)

Country Link
CN (1) CN108174044B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108960785B (en) * 2018-07-13 2020-10-27 维沃移动通信有限公司 Information prompting method and device
CN109068003A (en) * 2018-09-25 2018-12-21 努比亚技术有限公司 Sleep alarm clock setting method, device, mobile terminal and readable storage medium storing program for executing
CN109753327A (en) * 2018-11-19 2019-05-14 努比亚技术有限公司 A kind of control layout method, terminal and computer readable storage medium
CN109769062B (en) * 2018-12-11 2021-04-30 惠州Tcl移动通信有限公司 Alarm clock backup method, intelligent terminal and device with storage function
CN109474750A (en) * 2018-12-18 2019-03-15 Oppo广东移动通信有限公司 Method, apparatus, electronic equipment and the medium of alarm clock are set
CN110688184A (en) * 2019-09-24 2020-01-14 维沃移动通信有限公司 System function setting method and mobile terminal
CN110865757A (en) * 2019-11-29 2020-03-06 维沃移动通信有限公司 Alarm clock setting method and electronic equipment
CN114063843A (en) * 2021-11-22 2022-02-18 北京字跳网络技术有限公司 Interaction method, interaction device, electronic equipment, storage medium and computer program product

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9692874B2 (en) * 2015-09-30 2017-06-27 Apple Inc. Adjusting alarms based on sleep onset latency
CN106534522A (en) * 2016-10-28 2017-03-22 北京珠穆朗玛移动通信有限公司 Alarm clock prompting method and mobile terminal
CN106791193B (en) * 2017-02-13 2018-09-04 维沃移动通信有限公司 A kind of reminding method and mobile terminal
CN106990708B (en) * 2017-04-28 2021-01-15 深圳如果技术有限公司 Alarm clock ringing method and device and electronic equipment
CN107566611A (en) * 2017-08-07 2018-01-09 珠海市魅族科技有限公司 A kind of alarm clock setting method, device, computer installation and computer-readable recording medium

Also Published As

Publication number Publication date
CN108174044A (en) 2018-06-15

Similar Documents

Publication Publication Date Title
CN108174044B (en) Alarm clock setting method and mobile terminal
CN109343759B (en) Screen-turning display control method and terminal
CN108135033B (en) Bluetooth connection method and mobile terminal
CN108391008B (en) Message reminding method and mobile terminal
CN107888765B (en) Method for switching scene mode and mobile terminal
CN108322601B (en) Reminding method and terminal
CN108984066B (en) Application icon display method and mobile terminal
CN107608855B (en) Reminding method and mobile terminal
CN108174037B (en) Notification message prompting method and mobile terminal
CN108681413B (en) Control method of display module and mobile terminal
CN108600557B (en) Screen on-off control method and mobile terminal
CN108762877B (en) Control method of mobile terminal interface and mobile terminal
CN111107219B (en) Control method and electronic equipment
CN110784915B (en) Power consumption control method of electronic equipment and electronic equipment
CN107832067B (en) Application updating method, mobile terminal and computer readable storage medium
CN110933494A (en) Picture sharing method and electronic equipment
CN109889756B (en) Video call method and terminal equipment
CN107888780B (en) Illumination control method of mobile terminal and mobile terminal
CN110826115B (en) Management method, wearable device and electronic device
CN109660657B (en) Application program control method and device
CN108184029B (en) Alarm clock reminding method and mobile terminal
CN107613140B (en) Alarm clock setting prompting method, mobile terminal and computer readable storage medium
CN107770386B (en) Alarm clock setting method, mobile terminal and computer readable storage medium
CN109714462B (en) Method for marking telephone number and mobile terminal thereof
CN111240624A (en) Method for displaying application icons and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant