CN107864296B - Alarm clock ringtone setting method and mobile terminal - Google Patents

Alarm clock ringtone setting method and mobile terminal Download PDF

Info

Publication number
CN107864296B
CN107864296B CN201711404032.8A CN201711404032A CN107864296B CN 107864296 B CN107864296 B CN 107864296B CN 201711404032 A CN201711404032 A CN 201711404032A CN 107864296 B CN107864296 B CN 107864296B
Authority
CN
China
Prior art keywords
alarm clock
ring
ringing
alarm
time
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
CN201711404032.8A
Other languages
Chinese (zh)
Other versions
CN107864296A (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 CN201711404032.8A priority Critical patent/CN107864296B/en
Publication of CN107864296A publication Critical patent/CN107864296A/en
Application granted granted Critical
Publication of CN107864296B publication Critical patent/CN107864296B/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 invention provides a method for setting alarm clock ring and a mobile terminal, wherein the method comprises the following steps: recording the ringing time of N alarm clock events of an alarm clock task, wherein N is an integer greater than or equal to 2; judging whether the alarm clock task meets a preset ring change condition or not according to the ring time of the N alarm clock events; and if the alarm clock task meets the preset ring replacement condition, replacing the ring of the alarm clock task. Therefore, the mobile terminal can judge whether the ring of the alarm clock task needs to be replaced or not according to the ringing time, and automatically replace the ring with the appropriate alarm clock when the preset ring replacement condition is met, so that the reminding effect of the ring of the alarm clock task on the user is improved, and the user is not easy to miss the task items of ring reminding after the alarm clock task.

Description

Alarm clock ringtone setting method and mobile terminal
Technical Field
The invention relates to the technical field of communication, in particular to a method for setting alarm clock ring and a mobile terminal.
Background
The functions of the mobile terminal are more and more abundant, and convenience is brought to people, for example, in daily life, more and more people select to set an alarm clock on the mobile terminal to remind people of backlog, so that the alarm clock function is almost one of the functions with the highest use frequency of users. However, after a user uses a certain alarm clock task for a period of time, the user becomes more and more accustomed to and adapts to the ring of the alarm clock task, and the sensitivity of the reaction to the ring of the alarm clock task becomes lower and lower, that is, the reminding effect of the ring is significantly reduced, so that the user easily ignores the ring, and the user easily misses the processing of the task items corresponding to the alarm clock task. Therefore, after the alarm clock ring of the current mobile terminal is used for a period of time, the reminding effect of the alarm clock ring is reduced, so that a user easily misses task items reminded by the alarm clock ring.
Disclosure of Invention
The embodiment of the invention provides a setting method of an alarm clock ring and a mobile terminal, and aims to solve the problem that after the alarm clock ring of the mobile terminal is used for a period of time, the reminding effect of the alarm clock ring is reduced, so that a user easily misses task items reminded by the alarm clock ring.
In order to solve the technical problem, the invention is realized as follows: a setting method of alarm clock ring comprises the following steps: recording the ringing time of N alarm clock events of an alarm clock task, wherein N is an integer greater than or equal to 2; judging whether the alarm clock task meets a preset ring change condition or not according to the ring time of the N alarm clock events; and if the alarm clock task meets the preset ring replacement condition, replacing the ring of the alarm clock task.
In a first aspect, an embodiment of the present invention provides a method for setting an alarm clock ringtone, including:
recording the ringing time of N alarm clock events of an alarm clock task, wherein N is an integer greater than or equal to 2;
judging whether the alarm clock task meets a preset ring change condition or not according to the ring time of the N alarm clock events;
and if the alarm clock task meets the preset ring replacement condition, replacing the ring of the alarm clock task.
In a second aspect, an embodiment of the present invention further provides a mobile terminal, including:
the alarm clock task management system comprises a recording module, a processing module and a processing module, wherein the recording module is used for recording the ringing time of N alarm clock events of an alarm clock task, and N is an integer greater than or equal to 2;
the judging module is used for judging whether the alarm clock task meets a preset ring replacement condition or not according to the ring time of the N alarm clock events;
and the replacing module is used for replacing the ring of the alarm clock task if the alarm clock task meets the preset ring replacing condition.
In a third aspect, an embodiment of the present invention further provides a mobile terminal, including a processor, a memory, and a computer program stored on the memory and capable of running on the processor, where the computer program, when executed by the processor, implements the steps of the method for setting an alarm ring tone.
In a fourth aspect, an 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 being executed by a processor, the computer program implements the steps of the method for setting an alarm ring tone described above.
Therefore, in the embodiment of the invention, the mobile terminal can judge whether the ring of the alarm clock task needs to be replaced or not according to the ringing time, and automatically replace the ring with the appropriate alarm clock when the preset ring replacement condition is met, so that the reminding effect of the ring of the alarm clock task on the user can be improved, and the user is not easy to miss task items of ring reminding after the alarm clock task.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive exercise.
Fig. 1 is a flowchart of a setting method of an alarm clock ring according to an embodiment of the present invention;
fig. 2 is a flowchart of another setting method for an alarm ring tone according to an embodiment of the present invention;
fig. 3 is a flowchart of another setting method for an alarm ring tone according to an embodiment of the present invention;
fig. 4 is a block diagram of a mobile terminal according to an embodiment of the present invention;
fig. 5 is a block diagram of another mobile terminal according to an embodiment of the present invention;
fig. 6 is a block diagram of another 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.
Referring to fig. 1, fig. 1 is a flowchart of a setting method of an alarm clock ring tone according to an embodiment of the present invention, and as shown in fig. 1, the setting method includes the following steps:
step 101, recording the ringing time of N alarm clock events of an alarm clock task, wherein N is an integer greater than or equal to 2.
The alarm clock task can be understood as a task process which triggers a preset reminding mode when a certain triggering condition is met, the triggering condition can be a timing mode, and the preset reminding mode can be a mode of playing a preset audio file, namely a so-called alarm clock ring; in addition, the preset reminding mode can also be a mode of vibration or combination of vibration and alarm clock ring; for example, the user sets an alarm task or a process through an alarm function interface of the system, the ring of the alarm task is a default ring, and the trigger condition of the alarm task is whether the time of 8:00 of monday to friday morning is met, so that in 8 am of monday to friday: 00, will trigger the ring tone for this task. Of course, the alarm clock task may be generated by a third-party application program, in addition to the alarm clock function of the system itself, which is not limited.
The alarm clock event can be understood as an event capable of triggering an alarm clock task; notably, there can be multiple rings for an alarm event; for example, if the user creates an alarm task with a trigger condition of 8:00 a.m. on monday through friday, when the time is 8 a.m: 00, the alarm clock task rings, and at this time, after the alarm clock task is triggered, the user inputs an instruction of "ring again after 10 minutes" to finish playing the ring, and the alarm clock task rings again after 10 minutes, and if the user selects to close the alarm clock task at this time, the actions of the two rings are combined into one alarm clock event, that is, the one alarm clock event may include multiple rings. Thus, monday morning 8:00 is an alarm event for the alarm task, the rest of the four days, say tuesday to friday, 8 in the morning: 00 represents four alarm events respectively.
The ringing time can be understood as the time that the ringing lasts from the beginning to the end of playing after the alarm clock task is triggered; for example, the user created an alarm task with a trigger condition of 8:00 am each day, when the time reached 8 am: after 00, the alarm clock task starts playing the ring, i.e. starts ringing, and at this time, the user is still not waken yet, but closes the alarm clock task after waking up for 1 minute, and at this time, the ring lasts for 1 minute from the beginning to the end of playing, and then this 1 minute is the ringing time.
It should be noted that the ringing time may refer to the duration of the ring, and may also be the duration of other preset reminding manners, such as vibration, combination of vibration and ring, and so on, specifically looking at the setting of the user; for example, the reminding mode of the alarm clock task set by the user is vibration, and the ringing time can be understood as the time lasting from the beginning to the end of the vibration after the alarm clock task is triggered.
And step 102, judging whether the alarm clock task meets a preset ring replacement condition or not according to the ring time of the N alarm clock events.
The preset ring tone changing condition can be understood as a condition that the mobile terminal automatically changes the ring tone adopted by the alarm clock task at present into other ring tones. For example, the preset ring change condition may be that the ring time is longer and longer, or that the multiple ring time is equal to a certain preset maximum ring time.
And 103, if the alarm clock task meets the preset ring replacement condition, replacing the ring of the alarm clock task.
The alarm clock task meets the preset ring replacement condition, namely the alarm clock task meets the condition that the mobile terminal automatically replaces the currently adopted ring of the alarm clock task with other rings; the changing of the ring of the alarm clock task can be understood as changing an audio file corresponding to the currently adopted ring of the alarm clock task into an audio file different from the currently adopted ring; for example, the ring tone may be in Audio/MODEM Riser (AMR) format, Free Lossless Audio Coding (FLAC) format, or in Moving Picture Experts Group Audio Layer III (MP 3) format.
In addition, the alarm clock task meeting the preset ring replacement condition indicates that the reminding effect of the ring of the alarm clock task on the user is reduced.
The reminding effect of the ring of the alarm clock task on the user can be understood as an effect that the user can quickly or urgently process the ring of the alarm clock task, the shorter the ring is processed by the user, the better the reminding effect on the user is shown, and otherwise, the worse the reminding effect on the user is shown.
This is due to the fact that after a user uses a certain alarm clock task for a long time, the user becomes more and more accustomed to and adapted to the ring tone of the alarm clock task, and reacts, reflects or is less and less sensitive to the ring tone of the alarm clock task, and even no reflection or reaction may occur. For example, a user creates a task for reminding a user to get up, and after half a year of using a certain alarm clock task, the user is found to have longer and longer treatment time for the ring in the last week, even if the ring is not treated for several times without getting up on schedule, thereby resulting in a late arrival at work. Therefore, when the reminding effect of the ring of the alarm clock task on the user is judged to be reduced, the preset ring replacement condition can be determined to be met, and the ring of the alarm clock task can be replaced at the moment.
It should be noted that if the alarm clock task does not meet the preset ring change condition, the determination may be continued, or the process may be ended, which is exemplified by ending the process in fig. 1 in the embodiment of the present invention.
In an embodiment of the present invention, the Mobile terminal may be a Mobile phone, a Tablet personal Computer (Tablet personal Computer), a Laptop Computer (Laptop Computer), a Personal Digital Assistant (PDA), a Mobile Internet Device (MID), a Wearable Device (Wearable Device), or the like.
Therefore, according to the embodiment of the invention, the mobile terminal can judge whether the ring of the alarm clock task needs to be replaced or not according to the ringing time, and automatically replace the ring with the appropriate alarm clock when the preset ring replacement condition is met, so that the reminding effect of the ring of the alarm clock task on the user can be improved, and the user is not easy to miss the task item of ring reminding after the alarm clock task.
Referring to fig. 2, fig. 2 is a flowchart of another setting method for an alarm clock ring tone according to an embodiment of the present invention. The main difference between this embodiment and the previous embodiment is that in this embodiment, whether the alarm clock task meets the preset ring change condition is determined according to the average ring time of the alarm clock event. As shown in fig. 2, the method comprises the following steps:
step 201, recording the ringing time of the alarm clock events of the alarm clock task for N times, wherein N is an integer greater than or equal to 2.
The related description of step 201 has already been elaborated in the previous embodiment, and is not repeated herein to avoid repetition.
Step 202, determining the average ringing time of the ringing times of the N alarm clock events, and the average ringing time of M alarm times of the N alarm clock events, where N is the number of alarm clock events of the alarm clock task within a preset time, M is the ringing time of a manually-turned-off alarm clock event within the preset time period, the manually-turned-off alarm clock event refers to an alarm clock event whose ringing is turned off according to an instruction input by a user, and M is an integer greater than or equal to 2.
The N is the number of alarm clock events of the alarm clock task within a preset time, which can be understood as the number of alarm clock events of the alarm clock task searched within a preset time, and the final result is N; for example, the user creates an alarm task, the trigger condition of which is the time 9:00 am of monday to friday, if the number of rings of the alarm task in the alarm time of the whole month of 7 months is searched, it is determined how many monday to friday the 7 months have, and if 21 monday to friday exist, N is 21.
The determining the average time of the ringing times of the N alarm clock events may be understood as summing the ringing times of the N alarm clock events, and then calculating the average time according to the sum and the N times. For example, if N is 5, and the 5 alarm times are 30 seconds, 40 seconds, 50 seconds, 35 seconds, and 45 seconds, respectively, the average alarm time of the alarm times of the N alarm events is 40 seconds. Similarly, the average ringing time of M ringing times is the same logic, which is not described herein; the M alarm times may be understood as a data set composed of the time duration of each alarm of the M alarms.
It should be noted that, the instruction input by the user to turn off the alarm can be understood that the mobile terminal receives an operation instruction of the user to pause or directly end the ongoing alarm event, so that the alarm of the alarm event is not played any more. For example, after a certain alarm clock task rings, and the ring wakes up a sleeping user, the user wants to be in bed for a while again, and then inputs an instruction for ringing again after 10 minutes to the alarm clock task, and then the alarm clock event of the alarm clock task is not ended at this time, but is triggered again after 10 minutes, that is, the alarm clock task rings again.
Step 203, determining whether the average ringing time of the M ringing times is greater than a target time, wherein if the average ringing time of the M ringing times is greater than the target time, the alarm clock task meets the preset ring change condition, and the target time is a time obtained by multiplying the average ringing time of the ringing times of the N alarm clock events by a preset coefficient.
Wherein, the judging whether the average ringing time of the M ringing times is greater than the target time is based on that the shorter the ringing time is processed by the user, the better the reminding effect to the user is, otherwise, the worse the reminding effect to the user is judged by the logic; therefore, if the average ringing time of the M ringing times is greater than the target time, it can be considered that the time for the user to process the ring is longer and longer, so that the alarm clock task meets the preset ring replacement condition. The preset coefficient may be set as needed, and may be, for example, 1, 1.2, 1.5, or 2, which is not limited thereto.
For example, the user created one monday through friday 8 am: 00, searching for 20 rings of the alarm clock event one month before the current time in the preset time period, wherein the average ring time of the 20 alarm clock events is 40 seconds, namely the average ring time of the N alarm clock events is 40 seconds; then, 5 nearest ring times from the current time are searched in the 20 times, wherein 40 seconds are the ring average time of the 5 ring times, namely the ring average time of the M ring times is 90 seconds; if the preset coefficient is 2, the target time is 40 seconds × 2 — 80 seconds, so that the average ringing time of the M ringing times is 90 seconds longer than the target time 80 seconds, and the alarm clock task meets the preset ring change condition.
Optionally, the M ringing times are ringing times of a manual alarm event shutdown within a target time period in the preset time period, where the target time period is a sub-time period closest to the current time in the preset time period.
Wherein, the sub-period can be understood as dividing the preset period into several sub-periods; for example, if the predetermined time period is one month, each week of the month may be one sub-period. Then, a sub-time period closest to the current time in the preset time period is a week closest to the current recorded time of the mobile terminal in the preset time end; for example, if the current time recorded by the mobile terminal is 6 months and 8 days, the preset time period is one month, and the preset time period is divided into four sub-time periods, the target time period is a time period of a certain number of days before 6 months and 8 days, specifically, may be 6 months and 7 days, 6 months and 6 days and 5 days, 6 months and 4 days, and 6 months and 3 days.
Therefore, by comparing the average ringing time of the M ringing times in the sub-time period closest to the current time in the preset time period with the target time, whether the alarm clock task meets the preset ring change condition can be judged more accurately due to the fact that the selected data is closer to the current time, and therefore the probability of wrong judgment is reduced.
And 204, if the alarm clock task meets the preset ring replacing condition, replacing the ring of the alarm clock task.
The related description of step 204 has been elaborated in the previous embodiment, and is not repeated herein to avoid repetition.
It should be noted that if the alarm clock task does not meet the preset ring change condition, the determination may be continued, or the process may be ended, which is exemplified by ending the process in fig. 2 in the embodiment of the present invention.
In an embodiment of the present invention, the Mobile terminal may be a Mobile phone, a Tablet personal Computer (Tablet personal Computer), a Laptop Computer (Laptop Computer), a Personal Digital Assistant (PDA), a Mobile Internet Device (MID), a Wearable Device (Wearable Device), or the like.
According to the embodiment of the invention, the mobile terminal can judge whether the alarm clock task meets the preset ring change condition or not according to the average ring time of the N alarm clock events and the average ring time of M ring times of the N alarm clock events, so that the judgment on whether the alarm clock task meets the preset ring change condition or not can be more accurate, the alarm clock ring can be changed at a more accurate time, and a user cannot easily miss backlog of next alarm clock reminding.
Referring to fig. 3, fig. 3 is a flowchart of another setting method for an alarm clock ring tone according to an embodiment of the present invention. The main difference between this embodiment and the previous embodiment is that in this embodiment, whether the alarm clock task meets the preset ring change condition is determined according to the average ring time of the alarm clock event. As shown in fig. 2, the method comprises the following steps:
step 301, recording the ringing time of the alarm clock events of the alarm clock task for N times, wherein N is an integer greater than or equal to 2.
The related description of step 301 has already been elaborated in the first embodiment, and is not repeated herein to avoid repetition.
Optionally, the recording the ringing time of the N alarm events of the alarm task includes:
and recording the ringing time of the first ringing of each alarm clock event in the N alarm clock events of the alarm clock task.
The recording of the ringing time of the first ringing of each alarm clock event in the N alarm clock events of the alarm clock task can be understood as recording the duration of the alarm clock ringing which is played for the first time of each alarm clock event in the N alarm clock events of one alarm clock task; this is because the existing alarm clock task may set a later re-ringing function, and thus there may be multiple rings of an alarm clock event of one alarm clock task. For example, after a certain alarm clock task reaches a trigger condition, the alarm clock task rings, and after the alarm clock task wakes up a sleeping user, the user wants to go to bed for a while again, and then inputs an instruction for ringing again after 10 minutes, so that the alarm clock task does not play the alarm clock ring any more, but the alarm clock event does not end but triggers again after 10 minutes.
Therefore, the urgent degree of the alarm clock ring processed by the user can be more generally represented by the first ringing time, and whether the alarm clock ring needs to be replaced or not can be more accurately judged by recording the first ringing time of each alarm clock event in N alarm clock events of the alarm clock task.
Step 302, judging whether the N alarm events are all automatic alarm closing events according to the ringing time of the N alarm events, wherein if the N alarm events are all automatic alarm closing events, the alarm task meets the preset ring change condition, and the automatic alarm closing event is an alarm event that the ringing is automatically closed without receiving an instruction input by a user.
The step of automatically turning off the ringing when the instruction input by the user is not received may be understood as that the mobile terminal automatically turns off the playing of the ringing after a certain time since the instruction input by the user for pausing or ending the playing of the ringing is not received.
It should be noted that there are two termination modes for the ringing of the existing alarm clock task, namely manual and automatic, and the automatic termination is usually performed after the alarm clock is played for a long time, and if the long time reaches a preset certain time, the playing of the alarm clock is terminated, and the alarm clock is played again after another preset time interval.
For example, the triggering time of a certain alarm clock task is 9:00 a.m. every day, after a long period of use, the mobile terminal searches for the ring time of 3 alarm clock events within three days close to the current time, and finds that the 3 ring times are all the same as the preset automatic turn-off time set up before, and the 3 rings do not receive the turn-off instruction input by the user, that is, the 3 alarm clock events are all automatic turn-off alarm clock events, so that the alarm clock task meets the preset ring change condition.
And 303, if the alarm clock task meets the preset ring replacing condition, replacing the ring of the alarm clock task.
The related description of step 303 has already been elaborated in the first embodiment, and is not repeated herein to avoid repetition.
It should be noted that if the alarm clock task does not meet the preset ring change condition, the determination may be continued, or the process may be ended, which is exemplified by ending the process in fig. 1 in the embodiment of the present invention.
Optionally, the step of changing the ring tone of the alarm clock task includes:
and replacing the ring of the alarm clock task with a file in the first L music files with the minimum playing times stored in the mobile terminal, wherein L is a positive integer.
The music file can be understood as a file in any audio format, and is not limited to the content played by the file being music. It should be understood that, the more the alarm ring tone is played, the lower the reminding effect to the user is, and therefore, some audio with less playing times needs to be searched as the alarm ring tone.
Therefore, the mobile terminal can replace the ring of the alarm clock task with a music file which has a reminding effect on the user, so that the alarm clock task is more effective in reminding the user.
In an embodiment of the present invention, the Mobile terminal may be a Mobile phone, a Tablet personal Computer (Tablet personal Computer), a Laptop Computer (Laptop Computer), a Personal Digital Assistant (PDA), a Mobile Internet Device (MID), a Wearable Device (Wearable Device), or the like.
Therefore, in the embodiment of the invention, the mobile terminal can judge whether the alarm clock task meets the preset ring replacing condition by judging whether the alarm clock events of N times are all the automatic alarm clock closing events, so that the accuracy of judging whether the alarm clock task meets the preset ring replacing condition is higher, the misjudgment probability is reduced, and the user is not easy to miss the backlog reminded by the alarm clock task.
Referring to fig. 4, fig. 4 is a structural diagram of a mobile terminal according to an embodiment of the present invention, as shown in fig. 4, the mobile terminal 400 includes a recording module 401, a determining module 402, and a replacing module 403; wherein:
the recording module 401 is configured to record ring time of N alarm clock events of an alarm clock task, where N is an integer greater than or equal to 2.
A determining module 402, configured to determine whether the alarm clock task meets a preset ring change condition according to the ring time of the N alarm clock events.
A replacing module 403, configured to replace a ring of the alarm clock task if the alarm clock task meets the preset ring replacing condition.
Optionally, as shown in fig. 5, N is the number of alarm events of the alarm task in a preset time, and the determining module 402 includes:
a determining unit 4021, configured to determine a mean time to ring of the ring times of the N alarm clock events and a mean time to ring of M alarm times in the N alarm clock events, where the M alarm times are the ring times of manually turning off the alarm clock event within the preset time period, the manually turning off the alarm clock event is an alarm clock event that turns off the ring according to an instruction input by a user, and M is an integer greater than or equal to 2;
a determining unit 4022, configured to determine whether the average ringing time of the M ringing times is greater than a target time, where if the average ringing time of the M ringing times is greater than the target time, the alarm clock task satisfies the preset ring change condition, and the target time is a time obtained by multiplying the average ringing time of the ringing times of the N alarm clock events by a preset coefficient.
Optionally, the M ringing times are ringing times of a manual alarm event shutdown within a target time period in the preset time period, where the target time period is a sub-time period closest to the current time in the preset time period.
Optionally, the N alarm events are the N alarm events closest to the current time, and the determining module 402 is configured to determine whether the N alarm events are all automatic alarm turn-off events according to the ringing times of the N alarm events, where if the N alarm events are all automatic alarm turn-off events, the alarm task meets the preset ring change condition, and the automatic alarm turn-off event is an alarm event that does not receive an instruction input by a user and automatically turns off ringing.
Optionally, the replacing module 403 is configured to replace the ring tone of the alarm clock task with a file in the first L music files stored in the mobile terminal, where the playing frequency is the least, and L is a positive integer.
Optionally, the recording module is configured to record a ringing time of a first ringing of each alarm event in N alarm events of the alarm task.
The mobile terminal 400 can implement each process implemented by the mobile terminal in the method embodiments of fig. 1 to fig. 3, and is not described herein again to avoid repetition.
According to the mobile terminal 800 of the embodiment of the invention, whether the ring of the alarm clock task needs to be changed or not can be judged according to the ringing time, and the ring can be automatically changed into the appropriate alarm clock ring when the preset ring changing condition is met, so that the reminding effect of the ring of the alarm clock task on the user can be improved, and the user is not easy to miss the task item of ring reminding after the alarm clock task.
Figure 6 is a schematic diagram of a hardware configuration of a mobile terminal implementing various embodiments of the present invention,
the mobile terminal 600 includes, but is not limited to: a radio frequency unit 601, a network module 602, an audio output unit 603, an input unit 604, a sensor 605, a display unit 606, a user input unit 607, an interface unit 608, a memory 609, a processor 610, and a power supply 611. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 6 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 610 is configured to record ring times of N alarm clock events of an alarm clock task, where N is an integer greater than or equal to 2; judging whether the alarm clock task meets a preset ring change condition or not according to the ring time of the N alarm clock events; and if the alarm clock task meets the preset ring replacement condition, replacing the ring of the alarm clock task.
Optionally, the determining, executed by the processor 610, whether the alarm clock task meets a preset ring change condition according to the ring time of the N alarm clock events includes:
determining the average ringing time of the ringing times of the alarm clock events of the N times and the average ringing time of M ringing times in the alarm clock events of the N times, wherein the M ringing times are the ringing times of manually turning off the alarm clock events in the preset time period, the manually turning off the alarm clock events refers to turning off the alarm clock events according to instructions input by a user, and M is an integer greater than or equal to 2;
judging whether the average ringing time of the M ringing times is greater than a target time, wherein if the average ringing time of the M ringing times is greater than the target time, the alarm clock task meets the preset ring change condition, and the target time is the time obtained by multiplying the average ringing time of the ringing times of the N alarm clock events by a preset coefficient.
Optionally, the M ringing times are ringing times of a manual alarm event shutdown within a target time period in the preset time period, where the target time period is a sub-time period closest to the current time in the preset time period.
Optionally, the N alarm clock events are N alarm clock events closest to the current time, and the determining, by the processor 610, whether the alarm clock task meets a preset ring change condition according to the ring time of the N alarm clock events includes:
and judging whether the N alarm clock events are all automatic alarm clock closing events according to the ringing time of the N alarm clock events, wherein if the N alarm clock events are all automatic alarm clock closing events, the alarm clock task meets the preset ring replacement condition, and the automatic alarm clock closing events refer to alarm clock events which automatically close ringing without receiving an instruction input by a user.
Optionally, the changing the ring tone of the alarm clock task performed by the processor 610 includes:
and replacing the ring of the alarm clock task with a file in the first L music files with the minimum playing times stored in the mobile terminal, wherein L is a positive integer.
Optionally, the recording the ring time of the N alarm events of the alarm clock task executed by the processor 610 includes:
and recording the ringing time of the first ringing of each alarm clock event in the N alarm clock events of the alarm clock task.
The mobile terminal 600 can implement each process implemented by the mobile terminal in the foregoing embodiments, and details are not repeated here to avoid repetition.
Thus, the mobile terminal 600 according to the embodiment of the present invention can determine whether the ring of the alarm clock task needs to be changed according to the ringing time, and automatically change the ring to the appropriate alarm clock ring when the preset ring change condition is met, so that the reminding effect of the ring of the alarm clock task on the user can be improved, and the user is not easy to miss the task item of ring reminding after the alarm clock task.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 601 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 610; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 601 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. Further, the radio frequency unit 601 may 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 602, such as helping the user send and receive e-mails, browse webpages, access streaming media, and the like.
The audio output unit 603 may convert audio data received by the radio frequency unit 601 or the network module 602 or stored in the memory 609 into an audio signal and output as sound. Also, the audio output unit 603 may also provide audio output related to a specific function performed by the mobile terminal 600 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 603 includes a speaker, a buzzer, a receiver, and the like.
The input unit 604 is used to receive audio or video signals. The input Unit 604 may include a Graphics Processing Unit (GPU) 6041 and a microphone 6042, and the Graphics processor 6041 processes image data of a still picture or video obtained by an image capturing apparatus (such as a camera) in a video capture mode or an image capture mode. The processed image frames may be displayed on the display unit 606. The image frames processed by the graphic processor 6041 may be stored in the memory 609 (or other storage medium) or transmitted via the radio frequency unit 601 or the network module 602. The microphone 6042 can receive sound, and can process such sound 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 601 in case of the phone call mode.
The mobile terminal 600 also includes at least one sensor 605, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 6061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 6061 and/or the backlight when the mobile terminal 600 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 605 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 606 is used to display information input by the user or information provided to the user. The Display unit 606 may include a Display panel 6061, and the Display panel 6061 may be configured by a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 607 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 607 includes a touch panel 6071 and other input devices 6072. Touch panel 6071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 6071 using a finger, stylus, or any suitable object or accessory). The touch panel 6071 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 610, receives a command from the processor 610, and executes the command. In addition, the touch panel 6071 can be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The user input unit 607 may include other input devices 6072 in addition to the touch panel 6071. Specifically, the other input devices 6072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a track ball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 6071 can be overlaid on the display panel 6061, and when the touch panel 6071 detects a touch operation on or near the touch panel 6071, the touch operation is transmitted to the processor 610 to determine the type of the touch event, and then the processor 610 provides a corresponding visual output on the display panel 6061 according to the type of the touch event. Although the touch panel 6071 and the display panel 6061 are shown in fig. 6 as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 6071 and the display panel 6061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 608 is an interface through which an external device is connected to the mobile terminal 600. 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 608 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 600 or may be used to transmit data between the mobile terminal 600 and external devices.
The memory 609 may be used to store software programs as well as various data. The memory 609 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 609 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 610 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 609 and calling data stored in the memory 609, thereby integrally monitoring the mobile terminal. Processor 610 may include one or more processing units; preferably, the processor 610 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 610.
The mobile terminal 600 may further include a power supply 611 (e.g., a battery) for supplying power to the various components, and preferably, the power supply 611 is logically connected to the processor 610 via a power management system, so that functions of managing charging, discharging, and power consumption are performed via the power management system.
In addition, the mobile terminal 600 includes some functional modules that are not shown, and are not described in detail herein.
Preferably, an embodiment of the present invention further provides a mobile terminal, which includes a processor 610, a memory 609, and a computer program stored in the memory 609 and capable of running on the processor 610, where the computer program is executed by the processor 610 to implement each process of the above-mentioned method for setting an alarm ring tone, and can achieve the same technical effect, and in order to avoid 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 method for setting an alarm ring tone, and can achieve the same technical effect, and in order to avoid repetition, the 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 (11)

1. A method for setting alarm clock ring is characterized by comprising the following steps:
recording the ringing time of N alarm clock events of an alarm clock task, wherein N is an integer greater than or equal to 2;
judging whether the alarm clock task meets a preset ring change condition or not according to the ring time of the N alarm clock events;
if the alarm clock task meets the preset ring replacement condition, replacing the ring of the alarm clock task;
the N is the alarm clock event frequency of the alarm clock task in a preset time period, and whether the alarm clock task meets a preset ring change condition or not is judged according to the ringing time of the alarm clock event for N times, and the method comprises the following steps:
determining the average ringing time of the ringing times of the alarm clock events of the N times and the average ringing time of M ringing times in the alarm clock events of the N times, wherein the M ringing times are the ringing times of manually turning off the alarm clock events in the preset time period, the manually turning off the alarm clock events refers to turning off the alarm clock events according to instructions input by a user, and M is an integer greater than or equal to 2;
judging whether the average ringing time of the M ringing times is greater than a target time, wherein if the average ringing time of the M ringing times is greater than the target time, the alarm clock task meets the preset ring change condition, and the target time is the time obtained by multiplying the average ringing time of the ringing times of the N alarm clock events by a preset coefficient.
2. The method according to claim 1, wherein the M ringing times are ringing times of a manually turned off alarm event within a target time period in the preset time period, wherein the target time period is a sub-time period closest to a current time in the preset time period.
3. The method according to claim 1, wherein the N alarm clock events are N alarm clock events closest to a current time, and the step of determining whether the alarm clock task satisfies a preset ring change condition according to the ring times of the N alarm clock events comprises:
and judging whether the N alarm clock events are all automatic alarm clock closing events according to the ringing time of the N alarm clock events, wherein if the N alarm clock events are all automatic alarm clock closing events, the alarm clock task meets the preset ring replacement condition, and the automatic alarm clock closing events refer to alarm clock events which automatically close ringing without receiving an instruction input by a user.
4. Method according to any of claims 1-3, wherein said step of changing the ring tone of said alarm clock task comprises:
and replacing the ring of the alarm clock task with a file in the first L music files with the minimum playing times stored in the mobile terminal, wherein L is a positive integer.
5. Method according to any of claims 1-3, wherein said recording the ring time of N alarm events of an alarm clock task comprises:
and recording the ringing time of the first ringing of each alarm clock event in the N alarm clock events of the alarm clock task.
6. A mobile terminal, comprising:
the alarm clock task management system comprises a recording module, a processing module and a processing module, wherein the recording module is used for recording the ringing time of N alarm clock events of an alarm clock task, and N is an integer greater than or equal to 2;
the judging module is used for judging whether the alarm clock task meets a preset ring replacement condition or not according to the ring time of the N alarm clock events;
the replacing module is used for replacing the ring of the alarm clock task if the alarm clock task meets the preset ring replacing condition;
the N is the alarm clock event frequency of the alarm clock task in a preset time, and the judging module comprises:
a determining unit, configured to determine a ringing average time of ringing times of the N alarm clock events, and a ringing average time of M alarm times of the N alarm clock events, where the M alarm times are ringing times of manually turning off an alarm clock event within the preset time period, the manually turning off an alarm clock event is an alarm clock event that turns off a ringing according to an instruction input by a user, and M is an integer greater than or equal to 2;
and the judging unit is used for judging whether the average ringing time of the M ringing times is greater than a target time, wherein if the average ringing time of the M ringing times is greater than the target time, the alarm clock task meets the preset ringtone replacement condition, and the target time is the time obtained by multiplying the average ringing time of the ringing times of the N alarm clock events by a preset coefficient.
7. The mobile terminal according to claim 6, wherein the M ringing times are ringing times of a manual alarm event off within a target time period in the preset time period, wherein the target time period is a sub-time period closest to a current time in the preset time period.
8. The mobile terminal according to claim 6, wherein the N alarm events are N alarm events closest to a current time, and the determining module is configured to determine whether the N alarm events are all auto-off alarm events according to ring times of the N alarm events, wherein if the N alarm events are all auto-off alarm events, the alarm task satisfies the preset ring change condition, and the auto-off alarm event is an alarm event that does not receive an instruction input by a user and automatically turns off a ring.
9. The mobile terminal according to any of claims 6 to 8, wherein the replacing module is configured to replace the ringtone of the alarm clock task with a file of the first L music files stored in the mobile terminal, where the playing time is the least, where L is a positive integer.
10. The mobile terminal according to any of claims 6-8, wherein the recording module is configured to record the ring time of the first ring of each of the N alarm events of the alarm clock task.
11. A mobile terminal, comprising: memory, processor and computer program stored on the memory and executable on the processor, the processor implementing the steps in the method for setting an alarm ring tone according to any of claims 1-5 when executing the computer program.
CN201711404032.8A 2017-12-22 2017-12-22 Alarm clock ringtone setting method and mobile terminal Active CN107864296B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711404032.8A CN107864296B (en) 2017-12-22 2017-12-22 Alarm clock ringtone setting method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711404032.8A CN107864296B (en) 2017-12-22 2017-12-22 Alarm clock ringtone setting method and mobile terminal

Publications (2)

Publication Number Publication Date
CN107864296A CN107864296A (en) 2018-03-30
CN107864296B true CN107864296B (en) 2020-06-16

Family

ID=61707003

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711404032.8A Active CN107864296B (en) 2017-12-22 2017-12-22 Alarm clock ringtone setting method and mobile terminal

Country Status (1)

Country Link
CN (1) CN107864296B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104683558A (en) * 2013-12-02 2015-06-03 中国移动通信集团公司 Method, device and system for updating alarm clock mode of mobile terminal
WO2016161953A1 (en) * 2015-04-09 2016-10-13 乐视控股(北京)有限公司 Alarm reminding method and intelligent terminal
CN107071199A (en) * 2017-04-19 2017-08-18 珠海市魅族科技有限公司 Notify the control method and terminal device of tone
CN107453779A (en) * 2017-09-06 2017-12-08 惠州Tcl移动通信有限公司 A kind of multi-mode alarm clock calling control method, mobile terminal and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104683558A (en) * 2013-12-02 2015-06-03 中国移动通信集团公司 Method, device and system for updating alarm clock mode of mobile terminal
WO2016161953A1 (en) * 2015-04-09 2016-10-13 乐视控股(北京)有限公司 Alarm reminding method and intelligent terminal
CN107071199A (en) * 2017-04-19 2017-08-18 珠海市魅族科技有限公司 Notify the control method and terminal device of tone
CN107453779A (en) * 2017-09-06 2017-12-08 惠州Tcl移动通信有限公司 A kind of multi-mode alarm clock calling control method, mobile terminal and storage medium

Also Published As

Publication number Publication date
CN107864296A (en) 2018-03-30

Similar Documents

Publication Publication Date Title
CN109343759B (en) Screen-turning display control method and terminal
CN109509473B (en) Voice control method and terminal equipment
CN107196363B (en) Method for adjusting charging current, terminal and computer readable storage medium
CN108089891B (en) Application program starting method and mobile terminal
CN108135033B (en) Bluetooth connection method and mobile terminal
CN108174044B (en) Alarm clock setting method and mobile terminal
CN108681498B (en) CPU occupancy rate monitoring method and device and mobile terminal
CN107613146B (en) Volume adjustment method and device and mobile terminal
CN108073458B (en) Memory recovery method, mobile terminal and computer-readable storage medium
CN108984066B (en) Application icon display method and mobile terminal
CN107888765B (en) Method for switching scene mode and mobile terminal
CN107734170B (en) Notification message processing method, mobile terminal and wearable device
CN110908513B (en) Data processing method and electronic equipment
CN108322601B (en) Reminding method and terminal
CN108681413B (en) Control method of display module and mobile terminal
CN111124207B (en) Multimedia file playing method and electronic equipment
CN107832067B (en) Application updating method, mobile terminal and computer readable storage medium
CN111415722B (en) Screen control method and electronic equipment
CN111324247A (en) Information display method and electronic equipment
CN111221602A (en) Interface display method and electronic equipment
CN109660657B (en) Application program control method and device
CN108184029B (en) Alarm clock reminding method and mobile terminal
CN107908348A (en) The method and mobile terminal of display
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

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