Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
Fig. 1 shows the realization flow figure of the alarm clock control method based on handheld device that the embodiment of the present invention provides, and details are as follows:
In step S101, in the process that the first jingle bell is reminded, if detect, described handheld device is converted to non-grip state by grip state, then terminate described first jingle bell and remind.
After carrying out the first jingle bell prompting, if the operation of user's handheld device do not detected, then the maximum length in time that the first jingle bell is reminded is the second preset value.Here, the second preset value can be 10 minutes, does not limit at this.The first time jingle bell prompting referring to and carry out after reaching the alarm time pre-set reminded by first jingle bell.
In embodiments of the present invention, the left and right sides of handheld device, up and down both sides and/or the back side arrange pressure transducer, are detected that handheld device is current is in grip state or non-grip state by the pressure transducer in handheld device.Here, grip state refers to that user is current holds handheld device, such as, be held by handheld device, and non-grip state refers to that user is current does not hold handheld device.In the process that the first jingle bell is reminded, if detect, handheld device is converted to non-grip state by grip state, then postpone jingle bell, as long as thus user hear jingle bell remind after pick up handheld device put down again handheld device just can realize fast postpone jingle bell, substantially increase postponement jingle bell convenience.When specific implementation, postponing jingle bell can for starting greedy pattern of sleeping.
In step s 102, when the described first jingle bell time after terminating of reminding reaches the first preset value, the second jingle bell prompting is carried out.
The jingle bell prompting referring to and carry out after postponing jingle bell reminded by second jingle bell.Here, the first preset value can be 5 minutes, does not limit at this.
In step s 103, in the process that described second jingle bell is reminded, if the operation of turn off the alarm detected, then terminate described second jingle bell and remind.
In embodiments of the present invention, the operation of turn off the alarm can be: the operation of the turn off the alarm performed by the combination of a button or multiple button in pre-set button in handheld device or existing button, or the operation of the turn off the alarm performed by the touch-screen of handheld device, is not limited at this.In the process that the second jingle bell is reminded, if the operation of turn off the alarm detected, then terminate the second jingle bell and remind, with turn off the alarm.
Fig. 2 shows the realization flow figure of the alarm clock control method based on handheld device that another embodiment of the present invention provides, and for convenience of explanation, illustrate only the part relevant to the embodiment of the present invention.With reference to Fig. 2, the method comprises:
In step s 201, alarm clock ring time being set, when reaching the alarm clock ring time of setting, carrying out the first jingle bell prompting;
In step S202, in the process that the first jingle bell is reminded, if detect, described handheld device is converted to non-grip state by grip state, then terminate described first jingle bell and remind;
In step S203, when the described first jingle bell time after terminating of reminding reaches the first preset value, carry out the second jingle bell prompting;
In step S204, in the process that described second jingle bell is reminded, if the operation of turn off the alarm detected, then terminate described second jingle bell and remind.
Preferably, described when described first jingle bell remind terminate after time reach the first preset value time, before carrying out the second jingle bell prompting, described method also comprises:
When the duration that described first jingle bell is reminded reaches the second preset value, terminate described first jingle bell and remind.
As one embodiment of the present of invention, when the duration that the first jingle bell is reminded reaches the second preset value, automatically postpone jingle bell.
Preferably, described when described first jingle bell remind terminate after time reach the first preset value time, after carrying out the second jingle bell prompting, described method also comprises:
When the duration that described second jingle bell is reminded reaches the second preset value, if judge, the number of starts that described second jingle bell is reminded reaches the 3rd preset value, then terminate described second jingle bell and remind.
As one embodiment of the present of invention, the maximum times of postponing jingle bell is the 3rd preset value, and the maximum number of starts that namely the second jingle bell is reminded is the 3rd preset value.Such as, the 3rd preset value is three times, then the second jingle bell carrying out at most three times is reminded.Reach the second preset value when the duration that the second jingle bell is reminded, and when the number of starts that the second jingle bell is reminded reaches the 3rd preset value, terminate the second jingle bell and remind, with turn off the alarm.
Preferably, described when described first jingle bell remind terminate after time reach the first preset value time, after carrying out the second jingle bell prompting, described method also comprises:
When the duration that described second jingle bell is reminded reaches the second preset value, if judge, the number of starts that described second jingle bell is reminded does not reach the 3rd preset value, then terminate described second jingle bell to remind, and when the described second jingle bell time after terminating of reminding reaches described first preset value, then carry out described second jingle bell prompting.
Reach the second preset value when the duration that the second jingle bell is reminded, and when the number of starts that the second jingle bell is reminded does not reach the 3rd preset value, again postpone jingle bell.
Further, described method also comprises: in the process that described first jingle bell is reminded, if the operation of turn off the alarm detected, then directly terminate described first jingle bell and remind, with turn off the alarm.
Fig. 3 shows the realization flow figure of the alarm clock control method based on handheld device that another embodiment of the present invention provides, and for convenience of explanation, illustrate only the part relevant to the embodiment of the present invention.With reference to Fig. 3:
In step S301, alarm clock ring time being set, when reaching the alarm clock ring time of setting, carrying out the first jingle bell prompting;
In step s 302, judge whether operation turn off the alarm being detected, if so, perform step S303; If not, step S304 is performed;
In step S303, terminate the first jingle bell and remind, with turn off the alarm;
In step s 304, judge whether to detect that handheld device is converted to non-grip state by grip state, if not, perform step S305; If so, step S306 is performed;
In step S305, judge whether the duration that the first jingle bell is reminded reaches the second preset value, if not, return and perform step S304; If so, step S306 is performed;
In step S306, terminate the first jingle bell and remind, to postpone jingle bell;
In step S307, detect first jingle bell remind terminate after time whether reach the first preset value, if not, continue detect; If so, step S308 is performed;
In step S308, carry out the second jingle bell prompting;
In step S309, judge whether operation turn off the alarm being detected, if so, perform step S310; If not, step S311 is performed;
In step S310, terminate the second jingle bell and remind, with turn off the alarm;
In step S311, judge whether to detect that handheld device is converted to non-grip state by grip state, if not, perform step S312; If so, step S313 is performed;
In step S312, judge whether the duration that the second jingle bell is reminded reaches the second preset value, if not, return and perform step S311; If so, step S313 is performed;
In step S313, judge whether the number of starts that the second jingle bell is reminded reaches the 3rd preset value, if so, perform step S310; If not, step S306 is performed.
As one embodiment of the present of invention, in the process that the second jingle bell is reminded, if detect, handheld device is converted to non-grip state by grip state, then judge whether the number of starts that the second jingle bell is reminded reaches the 3rd preset value further, if so, then terminate the second jingle bell to remind, with turn off the alarm.
Should be understood that in embodiments of the present invention, the size of the sequence number of above-mentioned each process does not also mean that the priority of execution sequence, and the execution sequence of each process should be determined with its function and internal logic, and should not form any restriction to the implementation process of the embodiment of the present invention.
The embodiment of the present invention is by the process of the first jingle bell prompting, if detect, handheld device is converted to non-grip state by grip state, then postpone jingle bell, judge whether to postpone jingle bell by detecting the grip state of handheld device thus, thus improve the simple operation that the alarm clock based on handheld device controls.
Fig. 4 shows the structured flowchart of the alarm clock control device based on handheld device that the embodiment of the present invention provides, and this device may be used for the alarm clock control method based on handheld device shown in service chart 1 to 3.For convenience of explanation, illustrate only the part relevant to the embodiment of the present invention.
With reference to Fig. 4, this device comprises:
Postpone jingle bell unit 41, in the process of the first jingle bell prompting, if detect, described handheld device is converted to non-grip state by grip state, then terminate described first jingle bell and remind;
Second jingle bell unit 42, for when the described first jingle bell time after terminating of reminding reaches the first preset value, carries out the second jingle bell prompting;
Alarm clock closing unit 43, in the process of described second jingle bell prompting, if the operation of turn off the alarm detected, then terminates described second jingle bell and reminds.
Preferably, described device also comprises:
First jingle bell unit 44, for arranging alarm clock ring time, when reaching the alarm clock ring time of setting, carries out the first jingle bell prompting.
Preferably, described postponement jingle bell unit 41 also for:
When the duration that described first jingle bell is reminded reaches the second preset value, terminate described first jingle bell and remind.
Preferably, described alarm clock closing unit 43 also for:
When the duration that described second jingle bell is reminded reaches the second preset value, if judge, the number of starts that described second jingle bell is reminded reaches the 3rd preset value, then terminate described second jingle bell and remind.
Preferably, described postponement jingle bell unit 41 also for:
When the duration that described second jingle bell is reminded reaches the second preset value, if judge, the number of starts that described second jingle bell is reminded does not reach the 3rd preset value, then terminate described second jingle bell to remind, and when the described second jingle bell time after terminating of reminding reaches described first preset value, then carry out described second jingle bell prompting.
The embodiment of the present invention is by the process of the first jingle bell prompting, if detect, handheld device is converted to non-grip state by grip state, then postpone jingle bell, judge whether to postpone jingle bell by detecting the grip state of handheld device thus, thus improve the simple operation that the alarm clock based on handheld device controls.
Those of ordinary skill in the art can recognize, in conjunction with unit and the algorithm steps of each example of embodiment disclosed herein description, can realize with the combination of electronic hardware or computer software and electronic hardware.These functions perform with hardware or software mode actually, depend on application-specific and the design constraint of technical scheme.Professional and technical personnel can use distinct methods to realize described function to each specifically should being used for, but this realization should not thought and exceeds scope of the present invention.
Those skilled in the art can be well understood to, and for convenience and simplicity of description, the device of foregoing description and the specific works process of unit, with reference to the corresponding process in preceding method embodiment, can not repeat them here.
In several embodiments that the application provides, should be understood that disclosed apparatus and method can realize by another way.Such as, device embodiment described above is only schematic, such as, the division of described unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of unit or communication connection can be electrical, machinery or other form.
The described unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated.
If described function using the form of SFU software functional unit realize and as independently production marketing or use time, can be stored in a computer read/write memory medium.Based on such understanding, the part of the part that technical scheme of the present invention contributes to prior art in essence in other words or this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, portable hard drive, ROM (read-only memory) (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. various can be program code stored medium.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; change can be expected easily or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should described be as the criterion with the protection domain of claim.