Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
When the embodiment of the present invention mentions the ordinal number such as " first ", " second ", unless the meaning of based on context its certain order of representation, should be understood to has been only the use of differentiation.
Fig. 1 is the control method process flow diagram of a kind of mobile terminal of the embodiment of the present invention, and as shown in Figure 1, the method comprises:
Step 101, judge whether mobile terminal is positioned under water at least partly.
Mobile terminal in various embodiments of the present invention is the mobile terminal with water-proof function, and this mobile terminal comprises touch-screen and at least one physical button; This mobile terminal can be such as mobile phone, panel computer, notebook computer, UMPC (super mobile personal computer, ultra-mobile PC), netbook (net book), PDA (personal digital assistant, personal digital assistant), POS (point of sales, point-of-sale terminal) etc., and be not limited thereto.Wherein, described touch-screen can be capacitance plate or touch screens, or the tangible screen of other types.
The touch-screen of mobile terminal is used for controlling this mobile terminal in normal state, and user can, by the operation to touch-screen, realize operating this mobile terminal.Wherein, this normal condition is the general scene that user uses mobile terminal, such as: the touch-screen of mobile terminal is in opening, and mobile terminal is in air.
By detecting mobile terminal, can judge whether mobile terminal is positioned under water at least partly, described being positioned at least partly refers under water and is partly or entirely positioned under water.The method detected can be such as: 1, detect the touch-screen of mobile terminal, can detect whether this touch-screen is positioned under water at least partly, when touch-screen is positioned under water at least partly, can know that this mobile terminal is positioned under water at least partly; 2, detect the material density in environment residing for mobile terminal, if detect, the material density in environment residing for mobile terminal is identical with the density of water or close, then can judge that this mobile terminal is positioned under water at least partly.Such as, or before mobile terminal is placed under water by user, before waterproofing guaranteeding jacket overlaps on mobile terminals by user, mobile terminal can be set to pattern under water by user, and mobile terminal can judge that self is positioned under water at least partly thus.
Be positioned under water described in various embodiments of the present invention, refer to and be positioned at below the water surface, be namely in water; Mobile terminal described in various embodiments of the present invention is positioned under water at least partly, refers to that the touch-screen of mobile terminal is positioned at below the water surface at least partly, comprises only touch-screen and is positioned at least partly under water, also comprise mobile terminal entirety and be positioned at least partly under water.
If step 102 mobile terminal is positioned under water at least partly, then enable preset physical button function, uses under water to realize controlling mobile terminal by described physical button.
Wherein, preset physical button function can comprise: be used alone by any one in physical button or any number ofly combinationally use, and controls the function that mobile terminal uses under water.Described preset physical button function, is generally different from physical button function in normal state.By using preset physical button function, make to be can be implemented under normal condition only by operation that touch-screen realizes by physical button.
When mobile terminal is positioned under water, can severe deviations be caused by touch screen operation mobile terminal, accurately cannot control mobile terminal.Thus, the embodiment of the present invention, judging that mobile terminal is positioned under water at least partly, regulates mobile terminal, to make mobile terminal can use under water, that is makes mobile terminal under water can by exact operations.Judge that mobile terminal is positioned under water at least partly, enable preset physical button function, namely opens the function of preset physical button.Can the function of one or more sets physical buttons pre-configured, make to carry out operating mobile terminal by means of only physical button, thus realize mobile terminal and can use under water.
In the embodiment of the present invention, judging that mobile terminal is positioned under water at least partly, the physical button function of enable preset mobile terminal, making just can operating mobile terminal by means of only physical button, realizes mobile terminal thus and can use under water.
Fig. 2 is the control method process flow diagram of the another kind of mobile terminal of the embodiment of the present invention, and on basis embodiment illustrated in fig. 1, as shown in Figure 2, the method comprises:
The quantity of the touch control point that step 201, acquisition touch-screen are triggered.
Whole touch screen zone can be divided into X*Y region, and each region is a touch control point, and whole touch-screen is divided into X*Y touch control point; Wherein X-axis has x touch control point, and Y-axis has y touch control point.
Whether at least partly under water to distinguish touch-screen by having how many touch control points to be triggered in acquisition X*Y touch control point, touch-screen is just equivalent to mobile terminal under water under water.Mobile terminal can in real time or interval predetermined time obtain the quantity of the touch control point be triggered, concrete, the quantity of the touch control point be triggered can be obtained by the driving circuit of mobile terminal.
If the quantity >=first threshold of the touch control point that step 202 is triggered, then judge that mobile terminal is positioned under water at least partly; Or, if the quantity >=first threshold of the touch control point be triggered, then obtain the area that touch-screen is blocked by obstructions, if area≤Second Threshold that touch-screen is blocked by obstructions, then judge that mobile terminal is positioned under water at least partly.
After the quantity of the touch control point that acquisition for mobile terminal is triggered, judge whether mobile terminal is positioned under water at least partly; Concrete determination methods can comprise in following two kinds any one:
The first, if the quantity >=first threshold of the touch control point be triggered, then judge that mobile terminal is positioned under water at least partly;
Wherein, the quantity of first threshold≤all touch control points; First threshold can be determined according to actual conditions or empirical value;
When mobile terminal completely under water time, its X*Y touch control point (i.e. all touch control points) is all triggered, and namely whole touch-screen is all awash, causes all touch control points to be all triggered; Thus when all touch controls point is all triggered, can judge that mobile terminal is positioned under water;
When mobile terminal part under water time, the touch control point that the touch-screen of part comprises under water is triggered, but when less touch control point is triggered, often due to the operation of user, so set first threshold herein, only have when the touch control point be triggered arrives some, be just judged as mobile terminal part under water.
The second, if the quantity >=first threshold of the touch control point be triggered, then obtains the area that touch-screen is blocked by obstructions, if area≤Second Threshold that touch-screen is blocked by obstructions, then judges that mobile terminal is positioned under water at least partly; Wherein, Second Threshold >=0; Second Threshold can be determined according to actual conditions or empirical value;
When user's palm or with can sensing touch screen other object will touch-screen covers all or in part time, touch control point that is all or part also can be triggered, and now mobile terminal may not under water; Thus, in order to improve the operating accuracy of the embodiment of the present invention further, can after the quantity of the touch control point judging to be triggered be more than or equal to first threshold, further judgement is no has shelter to block on the touchscreen, if there is no shelter or only have little shelter to block touch-screen, then judge that mobile terminal is positioned under water at least partly again, if now judged, large area shelter blocks touch-screen, then judge that mobile terminal is not positioned under water; Such as: when touch-screen is under water completely, and the finger obscures of user part touch-screen, now be all touch control points to be all triggered, and the situation that the area being less than Second Threshold is blocked, this kind of situation can be judged as mobile terminal and be positioned under water.
Wherein, can judge whether that shelter blocks on the touchscreen by the proximity transducer of mobile terminal, and judge the area that shelter blocks, concrete deterministic process is identical with the deterministic process of proximity transducer in prior art, does not repeat them here.
The touch function of step 203, forbidden energy touch-screen, enable preset physical button function.
Judging that mobile terminal is positioned under water at least partly, mobile terminal can enable preset physical button function, thus mobile terminal can be used under water.Optionally, judge that mobile terminal is positioned under water at least partly, mobile terminal is except enable preset physical button function, and the touch function of all right forbidden energy touch-screen, forbids normal physical button function.Concrete application scenarios can be such as: mobile terminal by judge self whether at least part of under water, realize the switching of normal mode and pattern under water; Wherein, under water in pattern: touch-screen lost efficacy, and physical button can carry out operating mobile terminal by preset function; The preparatory function of physical button under water in pattern only under water pattern time come into force.
For mobile phone, physical button at least can comprise: key (volume down) under key (volumeup) and volume in power key (power), volume.Preset physical button function can comprise: be used alone by any one in key under key in power key, volume and volume or any number ofly combinationally use, and controls the function that mobile terminal uses under water.Can in advance for the various of physical button during pattern be under water used alone operation or combinationally use the corresponding function of Operation Definition, this operation can comprise: short by, longly to press etc. by, combination bond distance by, Macintosh is short.Such as: in volume, key is used for handle icon and moves up, and supports that row are changed left in top, after arriving most upper left corner icon, continue to press key in volume, then turn left and skip, until homepage; Under volume, key is used for handle icon and moves down, and supports to change row to the right on earth, after last cell icon, continues to press key under volume, then turns right and skip, until last page; When moving to object run icon or menu item, to press in volume key under key and volume is the operation confirming target approach application simultaneously.Namely when normal mode, in volume under key and volume key for regulating the size of volume, and under water pattern time, in volume, under key and volume, key is used for moving icon or confirms operation.
In specific implementation process, can according to the physical button layout of mobile terminal reality and quantity, define the physical button under pattern under water, the embodiment of the present invention does not limit concrete keypress function definition.
Step 204, touch function at forbidden energy touch-screen, after enable preset physical button function, if mobile terminal is not positioned under water at least partly, then the touch function of enable touch-screen, the physical button function that forbidden energy is preset.
It should be noted that, if do not have the touch function of forbidden energy touch-screen in step 203, only enable preset physical button function, then when step 204 determines that mobile terminal is not positioned under water at least partly, the physical button function that only forbidden energy is preset, and without the need to the touch function of enable touch-screen.
At mobile terminal from when returning to normal condition under water, need to recover the touch-screen of mobile terminal and the normal function of physical button; Thus, mobile terminal, entering under water after pattern, self leaves under water if judge, then recovers the touch function of touch-screen, prohibit the use the physical button function in preset pattern under water, recovers the normal function of physical button.
Wherein, mobile terminal judges that the method self left under water can be: be under water after pattern at mobile terminal, namely after the touch function, enable preset physical button function of mobile terminal forbidden energy touch-screen, acquisition for mobile terminal to only having fraction touch control point to be triggered or not having touch control point to be triggered, then judges that now mobile terminal is not positioned under water.
In the embodiment of the present invention, the quantity of touch control point of mobile terminal by touch-screen is triggered, or by the quantity of touch control point that touch-screen is triggered and the area be blocked by obstructions, judge whether mobile terminal is positioned under water at least partly, and judging that mobile terminal is positioned under water at least partly, the physical button function of enable preset mobile terminal, making just can operating mobile terminal by means of only physical button, and can the touch function of forbidden energy mobile terminal touch screen, touch-screen was lost efficacy, realizing thus under water can operating mobile terminal accurately, and, mobile terminal enters under water, mobile terminal is after the quantity of the touch control point by touch-screen is triggered judges that mobile terminal leaves under water, the physical button function that mobile terminal forbidden energy is preset, the touch function of enable touch-screen, namely mobile terminal recovers the function of normal mode, automatic adjustment when thus achieving mobile terminal pattern and normal mode switch under water.
Fig. 3 is the control method process flow diagram of the another kind of mobile terminal of the embodiment of the present invention, and on basis embodiment illustrated in fig. 1, as shown in Figure 3, the method comprises:
The density of the material that step 301, acquisition contact with touch-screen.
Mobile terminal by the density sensor of himself, can obtain the density of the material contacted with touch-screen.
If step 302 | ρ 1-ρ 0|≤k1, then judge that mobile terminal is positioned under water at least partly; Wherein, ρ 0 is the density of the material contacted with touch-screen, and ρ 1 is the density of water, and k1 is the 3rd default threshold value, and the 3rd threshold value can be empirical value or experiment value.
When ρ 0 is identical with the density of water or close, can judge that mobile terminal is positioned under water at least partly.Under normal condition, mobile terminal uses in atmosphere.The density difference of air and water is very large, and the density (under standard state) of air is 1.293kg/m
3, the density of water is 1000kg/m
3.The density of water can be different according to the difference of water quality, air temperature and air pressure, but compare with the density difference of water with air, and the variable density amplitude of water is very little, accordingly, can based on experience value or experiment value the concrete value of k1 is set.
It should be noted that, when a mobile terminal part is positioned under water, when a part is arranged in air, the density of air and the density of water may be got simultaneously, now because get the density of water, so can judge that terminal is positioned under water at least partly.
The touch function of step 303, forbidden energy touch-screen, enable preset physical button function.
Step 203 in the detailed process embodiment shown in Figure 2 of this step, does not repeat them here.
Step 304, touch function at forbidden energy touch-screen, after enable preset physical button function, if mobile terminal is not positioned under water at least partly, then the touch function of enable touch-screen, the physical button function that forbidden energy is preset.
At mobile terminal from when returning to normal condition under water, need to recover the touch-screen of mobile terminal and the normal function of physical button; Thus, mobile terminal, entering under water after pattern, self leaves under water if judge, then recovers the touch function of touch-screen, prohibit the use the physical button function in preset pattern under water, recovers the normal function of physical button.
Wherein, mobile terminal judges that the method self left under water can be: be under water after pattern at mobile terminal, namely after the touch function, enable preset physical button function of mobile terminal forbidden energy touch-screen, acquisition for mobile terminal is identical with the density of air or close to the density of the material contacted with touch-screen, then judge that now mobile terminal is not positioned under water at least partly.Concrete, if | ρ 2-ρ 0|≤k2, then judge that mobile terminal is not positioned under water; Wherein, ρ 0 is the density of the material contacted with touch-screen, and ρ 2 is the density of air, and k2 is the 4th default threshold value, and the 4th threshold value can be empirical value or experiment value.
In the embodiment of the present invention, mobile terminal is by obtaining the density of the material contacted with touch-screen, judge whether mobile terminal is positioned under water at least partly, and judging that mobile terminal is positioned under water at least partly, the physical button function of enable preset mobile terminal, making just can operating mobile terminal by means of only physical button, and can the touch function of forbidden energy mobile terminal touch screen, touch-screen was lost efficacy, and realizing thus under water can operating mobile terminal accurately; And, mobile terminal enters under water, mobile terminal is after judging that mobile terminal leaves under water, the physical button function that mobile terminal forbidden energy is preset, the touch function of enable touch-screen, namely mobile terminal recovers the function of normal mode, automatic adjustment when thus achieving mobile terminal pattern and normal mode switch under water.
Fig. 4 is the control method process flow diagram of the another kind of mobile terminal of the embodiment of the present invention, and on Fig. 1 and basis embodiment illustrated in fig. 2, as shown in Figure 4, the method comprises:
The quantity of the touch control point that step 401, acquisition touch-screen are triggered.
The quantity of the touch control point be triggered specifically can be obtained by the driving circuit of mobile terminal.
In the embodiment of the present invention, when judging whether mobile terminal is positioned under water at least partly according to the quantity of the touch control point be triggered, can judge whether the quantity of the touch control point be triggered is more than or equal to first threshold, wherein, first threshold is less than or equal to the quantity of all touch controls point.Thus in specific implementation, when first threshold is less than the quantity of all touch controls point, judge whether the quantity of the touch control point be triggered is more than or equal to first threshold; When first threshold equals the quantity of all touch controls point, judge whether the quantity of the touch control point be triggered equals first threshold, namely judges whether that all touch control points are all triggered.The quantity that the embodiment of the present invention equals all touch controls point for first threshold is described.
Step 402, judge whether that all touch control points are all triggered, if not, then perform step 403, if so, then perform step 404.
Wherein, the process of this judgement can be judged by driving circuit.
Step 403, maintenance mobile terminal are normal mode, perform step 401.
The original state of mobile terminal is normal mode, if detect, the touch control point of also not all is all triggered, then keep this normal mode.Wherein, this normal mode is the pattern of user when normally using this mobile terminal, and such as user normally uses the pattern of mobile phone in daily life.
Step 404, the state reporting that is all triggered by all touch controls point are to upper strata processor.
In the embodiment of the present invention, when the area be blocked by obstructions according to touch-screen judges whether mobile terminal is positioned under water at least partly, can judge whether the area that touch-screen is blocked by obstructions is less than or equal to Second Threshold, and wherein, Second Threshold is more than or equal to 0.Thus in specific implementation, when Second Threshold is greater than 0, judge whether the area that touch-screen is blocked by obstructions is less than or equal to Second Threshold; When Second Threshold equals 0, judge whether the area that touch-screen is blocked by obstructions equals Second Threshold, has namely judged whether that shelter blocks touch-screen.The embodiment of the present invention equals 0 for Second Threshold and is described.
Step 405, judge whether that shelter blocks touch-screen, if not, then performed step 403, if so, then perform step 406.
After upper strata processor knows that all touch control points are all triggered, the proximity transducer of upper strata processor indicating mobile terminal goes to have judged whether that shelter blocks touch-screen.
Step 406, mobile terminal is set to pattern under water.
Be specifically as follows: the touch function of forbidden energy touch-screen, enable preset physical button function.
Be mobile phone below with mobile terminal be example, illustrate how to realize taking pictures under water or browsing photo by key (volume down) under key (volume up) in power key (power), volume and volume by table 1.In table 1, the action description of each physical button is only and illustrates, the embodiment of the present invention is not limited to this.
Table 1
It should be noted that, according to the rule arranged, under certain scene under water in pattern, the function of physical button can be identical with the function under normal mode.Such as: enter after audio or video file plays under water in pattern, in volume, under key and volume, key still can be used for regulating the size of volume; Press power button then mobile phone blank screen separately in pattern under water, be in holding state.
The quantity of the touch control point that step 407, acquisition touch-screen are triggered.
Step 408, judge whether that all touch control points are all triggered, if so, then perform step 409, if not, then perform step 410.
Step 409, mobile terminal is kept be pattern under water, execution step 407.
Step 410, mobile terminal is set to normal mode, then performs step 401.
Be specifically as follows: the touch function of enable touch-screen, the physical button function that forbidden energy is preset, the normal function of enable physical button.
In the embodiment of the present invention, mobile terminal can carry out the quantity statistics of the touch control point be triggered according to the time interval of presetting.
It should be noted that: 1, step 405 is optional steps, mobile terminal after judging that all touch control points are all triggered, can just be switched to pattern under water.2, in step 402 and step 404, judge whether that all touch control points are all triggered by driving circuit, then result is reported upper strata processor; And in another embodiment, driving circuit the quantity of the touch control be triggered point can will be offered upper strata processor, judge whether that all touch control points are all triggered by upper strata processor.
In the embodiment of the present invention, the quantity of touch control point of mobile terminal by touch-screen is triggered, or by the quantity of touch control point that touch-screen is triggered and to the judgement whether having shelter, judge whether mobile terminal is positioned under water, and judging that mobile terminal is positioned under water, the touch function of forbidden energy mobile terminal touch screen, touch-screen was lost efficacy, and the physical button function of enable preset mobile terminal, making just can operating mobile terminal by means of only physical button, and realizing thus under water can operating mobile terminal accurately; And, mobile terminal enters under water, mobile terminal is after the quantity of the touch control point by touch-screen is triggered judges that mobile terminal leaves under water, the touch function of the enable touch-screen of mobile terminal, the physical button function that forbidden energy is preset, namely mobile terminal recovers the function of normal mode, automatic adjustment when thus achieving mobile terminal pattern and normal mode switch under water.
The structural representation of a kind of mobile terminal that Fig. 5 provides for the embodiment of the present invention, the mobile terminal that the embodiment of the present invention provides may be used for the method implementing the various embodiments of the present invention realization shown in above-mentioned Fig. 1-Fig. 4, for convenience of explanation, illustrate only the part relevant to the embodiment of the present invention, concrete ins and outs do not disclose, and please refer to the various embodiments of the present invention shown in Fig. 1-Fig. 4.
This mobile terminal can be the terminal device such as mobile phone, panel computer, notebook computer, UMPC, net book, PDA, POS, the embodiment of the present invention take mobile terminal as mobile phone for example is described, and shown in Fig. 5 is the block diagram of the part-structure of the mobile phone 500 relevant to various embodiments of the present invention.As shown in Figure 5, mobile phone 500 comprises the parts such as storer 520, input block 530, driving circuit 540, display unit 550, sensor 560, camera 570, processor 580 and power supply 590.It will be understood by those skilled in the art that the handset structure shown in Fig. 5 does not form the restriction to mobile phone, the parts more more or less than diagram can be comprised, or combine some parts, or different parts are arranged.
Concrete introduction is carried out below in conjunction with Fig. 5 each component parts to mobile phone 500:
Storer 520 can be used for storing software program and module, and processor 580 is stored in software program and the module of storer 520 by running, thus performs various function application and the data processing of mobile phone 500.Storer 520 mainly can comprise storage program district and store data field, and wherein, storage program district can store operating system, application program (such as sound-playing function, image player function etc.) etc. needed at least one function; Store data field and can store the data (such as voice data, view data, phone directory etc.) etc. created according to the use of mobile phone 500.In addition, storer 520 can comprise high-speed random access memory, can also comprise nonvolatile memory, such as at least one disk memory, flush memory device or other volatile solid-state parts.
Input block 530 can be used for the numeral or the character information that receive input, and generation arranges with the user of mobile phone 500 and function controls the input of relevant key signals.Particularly, input block 530 can comprise touch-screen 531 and other input equipments 532.Touch-screen 531, also referred to as contact panel, user can be collected or neighbouring touch operation (such as user uses any applicable object or the operations of annex on touch-screen 531 or near touch-screen 531 such as finger, stylus) thereon, and drive corresponding coupling arrangement according to the formula preset.Optionally, touch-screen 531 can comprise touch detecting apparatus and touch controller two parts.Wherein, touch detecting apparatus detects the touch orientation of user, and detects the signal that touch operation brings, and sends signal to touch controller; Touch controller receives touch information from touch detecting apparatus, and converts it to contact coordinate, then gives processor 580, and the order that energy receiving processor 580 is sent also is performed.In addition, the polytypes such as resistance-type, condenser type, infrared ray and surface acoustic wave can be adopted to realize touch-screen 531.Except touch-screen 531, input block 530 can also comprise other input equipments 532.Particularly, other input equipments 532 can include but not limited to one or more in physical keyboard, function key (such as volume control button, power switch button etc.), trace ball, mouse, control lever etc.
Driving circuit 540, may be used for the position and the quantity that obtain the touch control point be triggered in touch-screen.Such as in capacitance touch screen, driving circuit by calculating the capacitance variations of each touch control point of touch-screen, can draw position and the quantity of the touch control point be triggered.Optionally, driving circuit 540 can be included in touch detecting apparatus or touch controller.
Display unit 550 can be used for the various menus showing information or the information being supplied to user and the mobile phone 500 inputted by user.Display unit 550 can comprise display panel 541, optionally, the forms such as LCD (LiquidCrystal Display, liquid crystal display), OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) can be adopted to configure display panel 541.Further, touch-screen 531 can cover display panel 541, when touch-screen 531 detects thereon or after neighbouring touch operation, send processor 580 to determine the type of touch event, on display panel 541, provide corresponding vision to export with preprocessor 580 according to the type of touch event.Although in Figure 5, touch-screen 531 and display panel 541 be as two independently parts to realize input and the input function of mobile phone 500, but in certain embodiments, can by integrated to touch-screen 531 and display panel 541 and realize the input and output function of mobile phone 500.
Mobile phone 500 also can comprise at least one sensor 560, such as optical sensor, motion sensor, density sensor and other sensors.Particularly, optical sensor can comprise ambient light sensor and proximity transducer.Wherein, ambient light sensor the light and shade of environmentally light can regulate the brightness of display panel 541; Whether proximity transducer can detect has object to come close to or in contact with mobile phone, when mobile phone 500 moves in one's ear, can close display panel 541 and/or backlight.As the one of motion sensor, accelerometer sensor can detect the size of all directions (are generally three axles) acceleration, size and the direction of gravity can be detected time static, can be used for identifying the application (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating) of mobile phone attitude, Vibration identification correlation function (such as passometer, knock) etc.Density sensor can detect the density of the material that mobile phone contacts.As for mobile phone 500 also other sensors such as configurable gyroscope, barometer, hygrometer, thermometer, infrared ray sensor, do not repeat them here.
Camera 570 is the built-in camera of mobile phone, can be front-facing camera, also can be post-positioned pick-up head.
Processor 580 is control centers of mobile phone 500, utilize the various piece of various interface and the whole mobile phone of connection, software program in storer 520 and/or module is stored in by running or performing, and call the data be stored in storer 520, perform various function and the process data of mobile phone 500, thus integral monitoring is carried out to mobile phone.Optionally, processor 580 can comprise one or more processing unit; Preferably, processor 580 accessible site application processor and modem processor, wherein, application processor mainly processes operating system, user interface and application program etc., and modem processor mainly processes radio communication.Be understandable that, above-mentioned modem processor also can not be integrated in processor 580.
Mobile phone 500 also comprises the power supply 590 (such as battery) of powering to all parts, preferably, power supply can be connected with processor 580 logic by power-supply management system, thus realizes the functions such as management charging, electric discharge and power managed by power-supply management system.
Although not shown, mobile phone 500 can also comprise RF (radio frequency, radio frequency) circuit, voicefrequency circuit, WiFi (wireless fidelity, Wireless Fidelity) module, bluetooth module etc., does not repeat them here.
The structural representation of the another kind of mobile terminal that Fig. 6 provides for the embodiment of the present invention, as shown in Figure 6, this mobile terminal 600 comprises:
One or more processor 602;
Storer 604; And
One or more program, wherein this one or more program stores in the memory 604 and is configured to be performed by described one or more processor 602, and described one or more program comprises:
Judge whether described mobile terminal is positioned at instruction under water at least partly;
If described mobile terminal is positioned under water at least partly, then the physical button function of enable preset mobile terminal, to realize controlling by described physical button the instruction that described mobile terminal uses under water.
Further, judge whether described mobile terminal is positioned at instruction under water at least partly, specifically can comprise:
Obtain the instruction of the quantity of the touch control point that described touch-screen is triggered; If described in the quantity >=first threshold of touch control point that is triggered, then judge that described mobile terminal is positioned at instruction under water at least partly; Or
Obtain the quantity of the touch control point that described touch-screen is triggered, if described in the quantity >=first threshold of touch control point that is triggered, then obtain the area that described touch-screen is blocked by obstructions, if area≤Second Threshold that described touch-screen is blocked by obstructions, then judge that described mobile terminal is positioned at instruction under water at least partly; Or
Obtain the density of the material contacted with described touch-screen; If | ρ 1-ρ 0|≤k1, then judge that described mobile terminal is positioned at instruction under water at least partly; Wherein, ρ 0 is the density of the material contacted with touch-screen, and ρ 1 is the density of water, and k1 is the 3rd threshold value.
Further, at least one physical button described at least comprises: key under key and volume in power key, volume; Described preset physical button function comprises: be used alone by any one in key under key in power key, volume and volume or any number ofly combinationally use, control the function that described mobile terminal uses under water, such as: control that described mobile terminal is taken pictures under water, the function of make a video recording, browse photo or browsing pictures.
Further, described one or more program can also comprise: if described mobile terminal is positioned under water at least partly, then the instruction of the touch function of touch-screen described in forbidden energy.
Further, described one or more program can also comprise:
After enable preset physical button function, if described mobile terminal is not positioned under water at least partly, then the instruction of preset described in forbidden energy physical button function; Or
At the touch function of forbidden energy touch-screen, after enable preset physical button function, if mobile terminal is not positioned under water at least partly, then the touch function of enable touch-screen, the instruction of the physical button function that forbidden energy is preset.
The mobile terminal that the embodiment of the present invention provides, for implementing the method that the various embodiments of the present invention shown in above-mentioned Fig. 1-Fig. 4 realize, concrete ins and outs do not disclose, and please refer to the various embodiments of the present invention shown in Fig. 1-Fig. 4.
Mobile terminal in the embodiment of the present invention, comprise processor and storer, whether processor obtains mobile terminal by the program stored in storer and is positioned at least partly under water, and be positioned at least partly under water at acquisition mobile terminal, the physical button function of enable preset mobile terminal, making just can operating mobile terminal by means of only physical button, and realizing thus under water can operating mobile terminal accurately; And, mobile terminal enters under water, processor can by the program stored in storer, judge whether mobile terminal leaves under water, after judging that mobile terminal leaves under water, the physical button function that forbidden energy is preset, namely mobile terminal recovers the function of normal mode, automatic adjustment when thus achieving mobile terminal pattern and normal mode switch under water.
The structural representation of the regulating device of a kind of mobile terminal that Fig. 7 provides for the embodiment of the present invention, the device that the embodiment of the present invention provides may be used for the method implementing the embodiment realization shown in above-mentioned Fig. 1, concrete ins and outs do not disclose, and please refer to the embodiment shown in Fig. 1.
As shown in Figure 7, the regulating device 70 of this mobile terminal comprises judge module 72 and processing module 74.Wherein, mobile terminal comprises touch-screen and at least one physical button.
Judge module 72, for judging whether mobile terminal is positioned under water at least partly, and whether the judged result be positioned at least partly under water sends to processing module 74 by mobile terminal.
Processing module 74, if the mobile terminal sent for receiving judge module 72 is positioned at judged result under water at least partly, then enable preset physical button function, uses under water to realize controlling mobile terminal by physical button.
Wherein, in specific implementation process, judge module can be independently circuit module, also can integrate with processing module.
In the embodiment of the present invention, judge that mobile terminal is positioned under water at judge module, the physical button function of the enable preset mobile terminal of processing module, making just can operating mobile terminal by means of only physical button, realizes mobile terminal thus and can use under water.
The structural representation of the regulating device of the another kind of mobile terminal that Fig. 8 provides for the embodiment of the present invention, the regulating device of the mobile terminal that the embodiment of the present invention provides may be used for the method implementing the embodiment realization shown in above-mentioned Fig. 2, concrete ins and outs do not disclose, and please refer to the embodiment shown in Fig. 2.
On basis embodiment illustrated in fig. 7, as shown in Figure 8, judge module 72 can comprise: first obtains submodule 721 and first judges submodule 723, and/or, second obtains submodule 725 and second judges submodule 727, and/or the 3rd obtains submodule 729 and the 3rd judges submodule 720.
First obtains submodule 721, for obtaining the quantity of the touch control point that touch-screen is triggered.First judges submodule 723, if obtain the quantity >=first threshold of the touch control the be triggered point that submodule 721 obtains for first, then judge that mobile terminal is positioned under water at least partly, and the judged result be positioned at least partly under water sends to processing module 74 by mobile terminal.
Second obtains submodule 725, for obtaining the quantity of the touch control point that touch-screen is triggered, also for obtaining the area that touch-screen is blocked by obstructions.Second judges submodule 727, if obtain the quantity >=first threshold of the touch control the be triggered point that submodule 725 obtains for second, then instruction second acquisition submodule 725 obtains the area that touch-screen is blocked by obstructions, if area≤Second Threshold that touch-screen is blocked by obstructions, then judge that mobile terminal is positioned under water at least partly, and the judged result be positioned at least partly under water sends to processing module 74 by mobile terminal.
3rd obtains submodule 729, for obtaining the density of the material contacted with touch-screen, and sends to the 3rd to judge submodule 720 density of acquisition.3rd judges submodule 720, if for | ρ 1-ρ 0|≤k1, then judge that mobile terminal is positioned under water at least partly, and the judged result be positioned at least partly under water sends to processing module 74 by mobile terminal; Wherein, ρ 0 is the density of the material contacted with touch-screen, and ρ 1 is the density of water, and k1 is the 3rd threshold value.
Processing module 74, receive mobile terminal that the first judgement submodule 723, second judges that submodule 727 or the 3rd judges that submodule 720 sends if specifically may be used for and be positioned at judged result under water at least partly, the then touch function of forbidden energy touch-screen, enable preset physical button function, uses under water to realize mobile terminal.
Further, at least one physical button of mobile terminal at least comprises: key under key and volume in power key, volume.Preset physical button function comprises: be used alone by any one in key under key in power key, volume and volume or any number ofly combinationally use, and controls the function that mobile terminal uses under water; Such as: control mobile terminal is taken pictures under water, the function of make a video recording, browse photo or browsing pictures.
Further, processing module 74, can also be used for, after enable preset physical button function, not being positioned at least partly under water, then the physical button function that forbidden energy is preset if get mobile terminal; Or, the touch function at forbidden energy touch-screen can also be used for, after enable preset physical button function, not be positioned at least partly under water if get mobile terminal, then the touch function of enable touch-screen, the physical button function that forbidden energy is preset.
It should be noted that: in a specific embodiment, first obtains submodule 721 can comprise in driving circuit in the embodiment shown in fig. 5; First judges that submodule 723 can be included in driving circuit embodiment illustrated in fig. 5, also can be included in processor 580 embodiment illustrated in fig. 5; Second obtains submodule 725 can partly comprise in driving circuit in the embodiment shown in fig. 5, and part comprises in proximity transducer in the embodiment shown in fig. 5; Second judges in the driving circuit that submodule 727 can partly comprise in the embodiment shown in fig. 5, and part is included in processor 580 embodiment illustrated in fig. 5, also can all be included in processor 580 embodiment illustrated in fig. 5; 3rd obtains submodule 729 can comprise in density sensor in the embodiment shown in fig. 5; 3rd judges that submodule 720 can be included in density sensor embodiment illustrated in fig. 5, also can be included in processor 580 embodiment illustrated in fig. 5; Processing module 74 can be included in processor 580 embodiment illustrated in fig. 5.
In the embodiment of the present invention, whether processing module 74 obtains mobile terminal by judge module 72 and is positioned under water, and be positioned under water at acquisition mobile terminal, the touch function of forbidden energy mobile terminal touch screen, touch-screen was lost efficacy, and the physical button function of enable preset mobile terminal, making just can operating mobile terminal by means of only physical button, and realizing thus under water can operating mobile terminal accurately; And, mobile terminal enters under water, by judge module 72, processing module 74 is after judging that mobile terminal leaves under water, the touch function of the enable touch-screen of processing module 74, the physical button function that forbidden energy is preset, namely mobile terminal recovers the function of normal mode, automatic adjustment when thus achieving mobile terminal pattern and normal mode switch under water.
The embodiment of the present invention also provides a kind of mobile terminal, comprises shell, circuit board, touch-screen and at least one physical button, also comprises the control device of the arbitrary mobile terminal described in Fig. 7 and Fig. 8.
Wherein, the judge module of the control device of mobile terminal and processing module are arranged on circuit board respectively; Circuit board is placed in the interior volume that shell surrounds; Touch-screen is settled on the housing.
The control device of mobile terminal, for judging whether mobile terminal is positioned under water at least partly; If mobile terminal is positioned under water at least partly, then enable preset physical button function, uses under water to realize mobile terminal.
The control method of this mobile terminal, see the description in the various embodiments described above, does not repeat them here.
The embodiment of the present invention also provides a kind of mobile terminal, comprises shell, circuit board, touch-screen and at least one physical button, also comprises the control device of mobile terminal;
The control device of described mobile terminal, for judging whether described mobile terminal is positioned under water at least partly; If described mobile terminal is positioned under water at least partly, then enable preset physical button function, uses under water to realize controlling described mobile terminal by described physical button.
The control device of this mobile terminal controls the method for this mobile terminal and flow process see the description in the various embodiments described above, does not repeat them here.
The mobile terminal that the embodiment of the present invention provides, can know whether mobile terminal is positioned under water at least partly, and after knowing that mobile terminal is positioned under water, enable preset physical button function, can use under water to realize mobile terminal; Further, knowing that mobile terminal leaves under water, the physical button function that forbidden energy is preset, namely recovering the normal function of mobile terminal, mobile terminal can pattern and normal mode be automatically switched under water.
Through the above description of the embodiments, those skilled in the art can be well understood to the present invention can use hardware implementing, or firmware realizes, or their array mode realizes.When implemented in software, above-mentioned functions can be stored in computer-readable medium or as the one or more instruction on computer-readable medium or code and transmit.Computer-readable medium comprises computer-readable storage medium and communication media, and wherein communication media comprises any medium being convenient to transmit computer program from a place to another place.Storage medium can be any usable medium that computing machine can access.Be not limited to as example: computer-readable medium can comprise RAM, ROM, EEPROM, CD-ROM or other optical disc storage, magnetic disk storage medium or other magnetic storage apparatus or can be used in carrying or storing the expectation with instruction or data structure form program code and can by any other medium of computer access.In addition, what any connection can be suitable becomes computer-readable medium.Such as, if software be use concentric cable, optical fiber cable, twisted-pair feeder, Digital Subscriber Line (DSL) or such as infrared ray, radio and microwave and so on wireless technology from website, server or other remote source, so the wireless technology of concentric cable, optical fiber cable, twisted-pair feeder, DSL or such as infrared ray, radio and microwave and so on be included in affiliated medium fixing in.As used in the present invention, dish (disk) and dish (disc) comprise compression laser disc (CD), laser dish, laser disc, Digital Versatile Disc (DVD), floppy disk and Blu-ray Disc, the usual magnetic of its mid-game copy data, what dish then carried out optics with laser copies data.Combination above also should be included within the protection domain of computer-readable medium.
In a word, the foregoing is only preferred embodiment of the present invention, be not intended to limit protection scope of the present invention.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.