CN103530036A - Horizontal screen switching control method and mobile terminal - Google Patents
Horizontal screen switching control method and mobile terminal Download PDFInfo
- Publication number
- CN103530036A CN103530036A CN201310492813.2A CN201310492813A CN103530036A CN 103530036 A CN103530036 A CN 103530036A CN 201310492813 A CN201310492813 A CN 201310492813A CN 103530036 A CN103530036 A CN 103530036A
- Authority
- CN
- China
- Prior art keywords
- mobile terminal
- state
- horizontal screen
- laying state
- described mobile
- 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.)
- Pending
Links
Images
Landscapes
- User Interface Of Digital Computer (AREA)
- Telephone Function (AREA)
Abstract
The invention discloses a horizontal screen switching control method and a mobile terminal. The horizontal screen switching control method includes the following steps: judging the current placing state of the mobile terminal, wherein the current placing state comprises a horizontal state and a vertical state; judging whether the mobile terminal is swung or not if the current placing state is the horizontal state; and switching the mobile terminal to be in a horizontal screen display mode if the mobile terminal is detected to be swung. By means of the mode, in the process that a user uses the mobile terminal, the user is not required to start or shut the screen switching setting through a setup menu, and the state can be flexibly controlled to be switched into the horizontal screen display mode. Horizontal screen switching conditions are added, the situation that the state is switched into the horizontal screen display mode only when the user requires to display a current interface in a horizontal screen mode can be achieved, judgment on horizontal screen switching is accurate, the misoperation rate of the horizontal screen switching is greatly reduced, and convenience is brought for the user to use.
Description
Technical field
The application relates to communication technical field, particularly relates to control method and mobile terminal that a kind of horizontal screen switches.
Background technology
Along with the variation of intelligent mobile terminal function, and the development of 3G, 4G network is with universal, and the thing that people use mobile terminal to process is also more and more, as chat, send mail, Edit Document, browsing page, game, navigate, check picture etc.From strength to strength, display screen also correspondingly increases the function having along with mobile terminal, for the ease of user, uses, and mobile terminal all supports horizontal screen display to show.For example, while seeing video in the situation that of horizontal screen, can obtain the wider visual field to watch better video; While checking picture in the situation that of horizontal screen, can obtain larger picture so that check; The in the situation that of horizontal screen, during input character, can use large soft keyboard so that input.
In mobile terminal, traditional horizontal screen control mode, is only by the current laying state of judgement mobile terminal.For example, when mobile terminal is horizontal direction placement, horizontal screen display is shown; When mobile terminal is vertical direction placement, normally perpendicular screen display is shown.This just makes, and in actual application, mobile terminal can be switched to horizontal screen state improperly because of misjudgment, thereby affects display effect, to user, makes troubles.For example, in the time of user's recumbency, the direction of placing due to mobile terminal may be level, is just switched to horizontal screen display mode, but now user wants to use normal perpendicular screen display mode; When the angle of user's hand-held mobile terminal changes, mobile terminal also can be switched to horizontal screen display mode, and now user does not want to use horizontal screen display mode.Yet, when closing to avoid mistake to be switched to horizontal screen display mode horizontal screen setting option, can cause again user in the process of using, open certain application program, in the time of need to using horizontal screen display mode, cannot carry out at once horizontal screen display and show.
Summary of the invention
The technical matters that the application mainly solves is to provide control method and the mobile terminal that a kind of horizontal screen switches, can control more easily the horizontal screen display mode of mobile terminal, can realize and only having when user needs horizontal screen display to show current interface, mobile terminal just switches to horizontal screen display mode, has greatly reduced the situation that mistake is switched.
For solving the problems of the technologies described above, the technical scheme that the present invention adopts is: the control method that provides a kind of horizontal screen to switch, described method comprises the steps: the laying state that judges that mobile terminal is current, and wherein, current laying state comprises horizontality and vertical state; When if described current laying state is horizontality, judge that whether described mobile terminal is by whipping; While if described mobile terminal being detected by whipping, described mobile terminal is switched to horizontal screen display mode.
Wherein, before the step of the current laying state of judgement mobile terminal, also comprise: detect the current laying state of described mobile terminal.
Wherein, after the step of the laying state that judgement mobile terminal is current, also comprise: if when described current laying state is vertical state, continue to detect the laying state of described mobile terminal.
Wherein, while if described mobile terminal being detected by whipping, the step that described mobile terminal is switched to horizontal screen display mode also comprises afterwards: the laying state that continues to detect described mobile terminal, when if the laying state of described mobile terminal being detected and returning to vertical state, exit horizontal screen display mode, so that described mobile terminal is switched to perpendicular screen display mode.
Wherein, by the built-in acceleration transducer of described mobile terminal, detect the current laying state of described mobile terminal, and whether described mobile terminal is by whipping.
For solving the problems of the technologies described above, another technical solution used in the present invention is: a kind of mobile terminal is provided, and described device comprises: judge module, display management module; Described judge module is for judging the laying state that mobile terminal is current, and wherein, current laying state comprises horizontality and vertical state; Described judge module, also for when described current laying state is horizontality, judges that whether described mobile terminal is by whipping; Whether described judge module is sent by the judged result of whipping described mobile terminal to described display management module; Described display management module, for whether receiving described mobile terminal by the judged result of whipping, when described mobile terminal being detected by whipping, switches to horizontal screen display mode by described mobile terminal.
Wherein, described mobile terminal also comprises state acquisition module, and described state acquisition module is for detection of the current laying state of described mobile terminal; Described state acquisition module sends testing result to judge module.
Wherein, described judge module, also for when described current laying state is vertical state, continues to detect the laying state of described mobile terminal.
Wherein, described state acquisition module is also for when described mobile terminal is during in horizontal screen display mode, continue to detect the laying state of described mobile terminal, so that described display management module is when the laying state of described mobile terminal returns to vertical state, exit horizontal screen display mode, so that described mobile terminal is switched to perpendicular screen display mode.
Wherein, described state acquisition module is for detecting the current laying state of described mobile terminal by the built-in acceleration transducer of described mobile terminal; Described judge module is for judging that by the built-in acceleration transducer of described mobile terminal whether described mobile terminal is by whipping.
The invention has the beneficial effects as follows: the situation that is different from prior art, the present invention is by when the current laying state of mobile terminal being detected and be horizontality, judge that whether described mobile terminal is by whipping, if mobile terminal detected by whipping, mobile terminal is switched to horizontal screen display mode.Make user in using the process of mobile terminal, without opening or close roller blind setting by menu is set, just can control flexibly and switch to horizontal screen display mode; The condition of having switched by having increased horizontal screen, can realize and only have user when the horizontal screen display of needs is shown current interface, just switches to horizontal screen display mode, and the judgement that horizontal screen is switched is more accurate, greatly reduces the maloperation probability that horizontal screen switches, user-friendly.
Accompanying drawing explanation
Fig. 1 is the control method one embodiment process flow diagram that horizontal screen switches;
Fig. 2 is another embodiment process flow diagram of control method that the horizontal screen of the application switches;
Fig. 3 is the principle schematic of Gravity accelerometer in the control method switched of the horizontal screen of the application;
Fig. 4 is the schematic diagram of the component of acceleration that in Fig. 3, acceleration of gravity produces in X-axis and Y-axis;
Fig. 5 is the application's mobile terminal one embodiment structural representation;
Fig. 6 is another embodiment structural representation of the application's mobile terminal.
Embodiment
Below in conjunction with accompanying drawing and concrete embodiment, be described.
Consult Fig. 1, Fig. 1 is the control method one embodiment process flow diagram that the horizontal screen of the application switches.See also Fig. 3, Fig. 3 is the principle schematic of Gravity accelerometer in the control method switched of the horizontal screen of the application.In present embodiment, the control method that horizontal screen switches comprises the following steps:
Step S101: the current laying state of judgement current mobile terminal, wherein, current laying state comprises horizontality and vertical state.
According to the accekeration in the X-axis of mobile terminal and Y direction, calculate the angle theta between Y-axis and surface level, according to the current laying state of value judgement mobile terminal of resulting angle theta after calculating, be horizontality or vertical state.
When the absolute value of angle theta is in default scope, the current laying state of judgement mobile terminal is horizontality, and when the absolute value of angle theta exceeds in default scope, the current laying state of judgement mobile terminal is vertical state.
Particularly, see also Fig. 4, Fig. 4 is the schematic diagram of the component of acceleration that in Fig. 3, acceleration of gravity produces in X-axis and Y-axis.
Because mobile terminal is subject to gravitational effect, mobile terminal can produce a direction downwards and the gravity acceleration g of vertical level, g=9.8m/s
2effect.
According to mechanics decomposition principle, acceleration of gravity can produce a component of acceleration A in the X-direction of mobile terminal
x, in the Y direction of mobile terminal, can produce a component of acceleration A
y.Gravity acceleration g is carried out to Orthogonal Decomposition, obtain the component of acceleration A of acceleration of gravity in X-direction
x=g*cos (θ), the component of acceleration A of acceleration of gravity in Y direction
y=g*sin (θ).
Base band control chip is according to the accekeration A of mobile terminal
x, A
y, and according to formula θ θ arccossA
x/ g), θ θ arcsinnA
y/ g) calculating the value of angle theta, jointly determine the angle theta between Y-axis and surface level, is in horizontality or vertical state according to the current laying state of value judgement mobile terminal that calculates resulting angle theta.
When the absolute value of angle theta is less than or equal to 15 °, judge that the current laying state of mobile terminal is horizontality.When the absolute value of angle theta is greater than 15 °, judge that the current laying state of mobile terminal is vertical state.
For example, in the Y-axis of mobile terminal as shown in Figure 3 or the angle of the dried up plane of downward bias be less than or equal to 15 °, or mobile terminal is as shown in Figure 3 after 180 ° of the Plane Rotations at X-axis and Y-axis place, in the Y-axis of mobile terminal or the angle of the dried up plane of downward bias be less than or equal to 15 °, judge that the current laying state of mobile terminal is horizontality.
In like manner, in the Y-axis of mobile terminal as shown in Figure 3 or the dried up Plane Angle of downward bias be greater than 15 °, or mobile terminal is as shown in Figure 3 after 180 ° of the Plane Rotations at X-axis and Y-axis place, in the Y-axis of mobile terminal or the dried up Plane Angle of downward bias be greater than 15 °, judge that the current laying state of mobile terminal is vertical state.
Step S102: if when described current laying state is horizontality, judge that whether described mobile terminal is by whipping.
When the current laying state of mobile terminal is horizontality, Gravity accelerometer every very first time interval (for example, the very first time is spaced apart 50 milliseconds) accekeration in mobile terminal X-direction is carried out to data acquisition, and every second time interval (for example, second time interval was 30 milliseconds~100 milliseconds) to base band control chip, send interrupt request singal to send the data that collected to base band control chip, base band control chip detects after interrupt request singal, by I2C interface and Gravity accelerometer, carrying out I2C communicates by letter, read the accekeration of the X-direction that Gravity accelerometer collects.Base band control chip is according to the accekeration in the X-direction reading, judge mobile terminal in X-direction whether by whipping.
When the accekeration of the X-direction of mobile terminal is greater than default threshold values, (for example, default threshold value is 2g, g=9.8m/s
2) time, base band control chip judgement mobile terminal in X-direction by whipping.When the accekeration of the X-direction of mobile terminal is less than default threshold values, base band control chip judgement mobile terminal in X-direction not by whipping.
Step S103: if while described mobile terminal being detected by whipping, described mobile terminal is switched to horizontal screen display mode.
When mobile terminal is in X-direction during by whipping, the current display mode of judgement mobile terminal, if horizontal screen display mode is left intact; If perpendicular screen display mode calls corresponding horizontal screen handoff parameter and element, switch to horizontal screen display mode, in the mode by horizontal screen, show current picture.
In the present embodiment, when Gravity accelerometer collects the accekeration on three axles, by the mode of interrupting, to base band control chip, send interrupt request singal to send the accekeration being collected to base band control chip, baseband chip is had no progeny in detecting, and reads the accekeration that Gravity accelerometer collects.In other embodiments, base band control chip also can adopt the mode of poll to read the accekeration that acceleration transducer collects, be specially: when base band control chip is when needs obtain accekeration, mode by poll ceaselessly reads collected accekeration to acceleration of gravity inductor, and Gravity accelerometer ceaselessly sends current collected accekeration to base band control chip.
Consult Fig. 2, Fig. 2 is another embodiment process flow diagram of control method that the horizontal screen of the application switches.See also Fig. 3, Fig. 3 is the principle schematic of Gravity accelerometer in the control method switched of the horizontal screen of the application.In present embodiment, the control method that horizontal screen switches comprises the following steps:
Step S201: detect the current laying state of described mobile terminal.
During mobile terminal-opening normal operation, base band control chip in mobile terminal carries out I2C by I2C interface and Gravity accelerometer and communicates by letter, and Gravity accelerometer is carried out to data initialization, so that Gravity accelerometer starts to respond to the acceleration in X-axis, Y-axis and three directions of Z axis of mobile terminal.Wherein, X-axis and Y-axis are parallel to the plane at mobile terminal place, the Width that X-axis is mobile terminal, and the length direction that Y-axis is mobile terminal, Z axis is perpendicular to the plane (perpendicular to the screen of mobile terminal) at mobile terminal place.
Gravity accelerometer every very first time interval (for example, the very first time is spaced apart 50 milliseconds) X-axis to mobile terminal, accekeration in three directions of Y-axis and Z axis carries out data acquisition, and every second time interval (for example, second time interval was 30 milliseconds~100 milliseconds) to base band control chip, send interrupt request singal to send the data that collected to base band control chip, base band control chip detects after interrupt request singal, by I2C interface and Gravity accelerometer, carrying out I2C communicates by letter, the accekeration being collected to read Gravity accelerometer.
Particularly, see also Fig. 4, Fig. 4 is the schematic diagram of the component of acceleration that in Fig. 3, acceleration of gravity produces in X-axis and Y-axis.
Because mobile terminal is subject to gravitational effect, mobile terminal can produce a direction downwards and the gravity acceleration g of vertical level, g=9.8m/s
2effect.
According to mechanics decomposition principle, acceleration of gravity can produce a component of acceleration A in the X-direction of mobile terminal
x, in the Y direction of mobile terminal, can produce a component of acceleration A
y.Gravity acceleration g is carried out to Orthogonal Decomposition, obtain the component of acceleration A of acceleration of gravity in X-direction
x=g*cos (θ), the component of acceleration A of acceleration of gravity in Y direction
y=g*sin (θ).
Gravity accelerometer carries out data acquisition every 50 milliseconds to the accekeration in the X-axis of mobile terminal and Y direction, every 30 milliseconds, to base band control chip, send interrupt request singal to send the data that collected to base band control chip, when base band control chip detects interrupt request singal, by I2C interface and Gravity accelerometer, carry out I2C and communicate by letter, read the accekeration A of the X-direction that Gravity accelerometer collects
xaccekeration A with Y direction
y.
Step S202: judge the laying state that described mobile terminal is current.
Base band control chip, according to the X-axis reading and the accekeration in Y direction, calculates the angle theta between Y-axis and surface level, according to the current laying state of value judgement mobile terminal of resulting angle theta after calculating, is horizontality or vertical state.
When the absolute value of angle theta is in default scope, the current laying state of judgement mobile terminal is horizontality, and when the absolute value of angle theta exceeds in default scope, the current laying state of judgement mobile terminal is vertical state.
Particularly, base band control chip is according to the accekeration A reading
x, A
y, and according to formula θ θ arccossA
x/ g), θ θ arcsinnA
y/ g) calculating the value of angle theta, jointly determine the angle theta between Y-axis and surface level, is in horizontality or vertical state according to the current laying state of value judgement mobile terminal that calculates resulting angle theta.
When the absolute value of angle theta is less than or equal to 15 °, judge that the current laying state of mobile terminal is horizontality.When the absolute value of angle theta is greater than 15 °, judge that the current laying state of mobile terminal is vertical state.
For example, in the Y-axis of mobile terminal as shown in Figure 3 or the angle of the dried up plane of downward bias be less than or equal to 15 °, or mobile terminal is as shown in Figure 3 after 180 ° of the Plane Rotations at X-axis and Y-axis place, in the Y-axis of mobile terminal or the angle of the dried up plane of downward bias be less than or equal to 15 °, judge that the current laying state of mobile terminal is horizontality.
In like manner, in the Y-axis of mobile terminal as shown in Figure 3 or the dried up Plane Angle of downward bias be greater than 15 °, or mobile terminal is as shown in Figure 3 after 180 ° of the Plane Rotations at X-axis and Y-axis place, in the Y-axis of mobile terminal or the dried up Plane Angle of downward bias be greater than 15 °, judge that the current laying state of mobile terminal is vertical state.
If when the current laying state of mobile terminal is horizontality, perform step S203.
If when the current laying state of mobile terminal is vertical state, return to step S201.Step S203: judge that whether described mobile terminal is by whipping.
When the current laying state of mobile terminal is horizontality, Gravity accelerometer every very first time interval (for example, the very first time is spaced apart 50 milliseconds) accekeration in mobile terminal X-direction is carried out to data acquisition, and every second time interval (for example, second time interval was 30 milliseconds~100 milliseconds) to base band control chip, send interrupt request singal to send the data that collected to base band control chip, base band control chip detects after interrupt request singal, by I2C interface and Gravity accelerometer, carrying out I2C communicates by letter, read the accekeration of the X-direction that Gravity accelerometer collects.Base band control chip is according to the accekeration in the X-direction reading, judge mobile terminal in X-direction whether by whipping.
When the accekeration of the X-direction of mobile terminal is greater than default threshold values, (for example, default threshold value is 2g, g=9.8m/s
2) time, base band control chip judgement mobile terminal in X-direction by whipping.
When the accekeration of the X-direction of mobile terminal is less than default threshold values, base band control chip judgement mobile terminal in X-direction not by whipping.
If judgement mobile terminal by whipping, performs step S204 in X-direction.
If judgement mobile terminal not by whipping, performs step S207 in X-direction, make mobile terminal keep current display mode.
Step S204: described mobile terminal is switched to horizontal screen display mode.
When mobile terminal is in X-direction during by whipping, the current display mode of judgement mobile terminal, if horizontal screen display mode is left intact; If perpendicular screen display mode calls corresponding horizontal screen handoff parameter and element, switch to horizontal screen display mode, in the mode by horizontal screen, show current picture.
Step S205: continue to detect the current laying state of described mobile terminal.
When mobile terminal is switched to horizontal screen display mode, continue to detect the current laying state of mobile terminal.Implementation method, with step S201, refers to the associated description of step S201, does not repeat herein.
Step S206: judge that the current laying state of described mobile terminal is vertical state.
Implementation method, with step S202, refers to the associated description of step S202, does not repeat herein.
If when the current laying state of mobile terminal is horizontality, perform step S207, make mobile terminal keep horizontal screen display mode.
If when the current laying state of mobile terminal is vertical state, perform step S208.
S207: finish.
The control that end process user is current, so that mobile terminal keeps current display mode.
Step S208: described mobile terminal is switched to perpendicular screen display mode.
When the current laying state of mobile terminal returns to vertical state, mobile terminal exits horizontal screen display mode, and calls corresponding perpendicular screen handoff parameter and element, switches to perpendicular screen display mode, in the mode by perpendicular screen, shows current picture.
In the present embodiment, when Gravity accelerometer collects the accekeration on three axles, by the mode of interrupting, to base band control chip, send interrupt request singal to send the accekeration being collected to base band control chip, baseband chip is had no progeny in detecting, and reads the accekeration that Gravity accelerometer collects.In other embodiments, base band control chip also can adopt the mode of poll to read the accekeration that acceleration transducer collects, be specially: when base band control chip is when needs obtain accekeration, mode by poll ceaselessly reads collected accekeration to acceleration of gravity inductor, and Gravity accelerometer ceaselessly sends current collected accekeration to base band control chip.
Refer to Fig. 5, Fig. 5 is the application's mobile terminal one embodiment structural representation.Mobile terminal in present embodiment comprises: judge module 510, display management module 520.
The laying state of judge module 510 for judging that mobile terminal is current, wherein, current laying state comprises horizontality and vertical state.Such as, judge module 510 is according to the accekeration in the X-axis of mobile terminal and Y direction, calculating the angle theta between Y-axis and surface level, is horizontality or vertical state according to the current laying state of value judgement mobile terminal of resulting angle theta after calculating.
When the absolute value of angle theta is in default scope, the current laying state of judge module 510 judgement mobile terminal is horizontality, when the absolute value of angle theta exceeds in default scope, the current laying state of judge module 510 judgement mobile terminal is vertical state.
Particularly, see also Fig. 4, Fig. 4 is the schematic diagram of the component of acceleration that in Fig. 3, acceleration of gravity produces in X-axis and Y-axis.
Because mobile terminal is subject to gravitational effect, mobile terminal can produce a direction downwards and the gravity acceleration g of vertical level, g=9.8m/s
2effect.
According to mechanics decomposition principle, acceleration of gravity can produce a component of acceleration A in the X-direction of mobile terminal
x, in the Y direction of mobile terminal, can produce a component of acceleration A
y.Gravity acceleration g is carried out to Orthogonal Decomposition, obtain the component of acceleration A of acceleration of gravity in X-direction
x=g*cos (θ), the component of acceleration A of acceleration of gravity in Y direction
y=g*sin (θ).
When the absolute value of angle theta is less than or equal to 15 °, the current laying state of judge module 510 judgement mobile terminal is horizontality.When the absolute value of angle theta is greater than 15 °, the current laying state of judge module 620 judgement mobile terminal is vertical state.
For example, in the Y-axis of mobile terminal as shown in Figure 3 or the angle of the dried up plane of downward bias be less than or equal to 15 °, or mobile terminal is as shown in Figure 3 after 180 ° of the Plane Rotations at X-axis and Y-axis place, in the Y-axis of mobile terminal or the angle of the dried up plane of downward bias be less than or equal to 15 °, judge that the current laying state of mobile terminal is horizontality.
In like manner, in the Y-axis of mobile terminal as shown in Figure 3 or the dried up Plane Angle of downward bias be greater than 15 °, or mobile terminal is as shown in Figure 3 after 180 ° of the Plane Rotations at X-axis and Y-axis place, in the Y-axis of mobile terminal or the dried up Plane Angle of downward bias be greater than 15 °, judge that the current laying state of mobile terminal is vertical state.
When the accekeration of the X-direction of mobile terminal is greater than default threshold values, (for example, default threshold value is 2g, g=9.8m/s
2) time, judge module 510 judgement mobile terminals in X-direction by whipping.When the accekeration of the X-direction of mobile terminal is less than default threshold values, judge module 510 judgement mobile terminals in X-direction not by whipping.
Whether judge module 510 is sent by the judged result of whipping mobile terminal to display management module 520.
Refer to Fig. 6, Fig. 6 is the structural representation of another embodiment of the application's mobile terminal.Mobile terminal in present embodiment comprises: state acquisition module 610, judge module 620, display management module 630.
Such as, when mobile terminal is switched to horizontal screen display mode, state acquisition module 610 by Gravity accelerometer every very first time interval (for example, the very first time is spaced apart 50 milliseconds) accekeration in the X-axis of mobile terminal, Y-axis and three directions of Z axis is carried out to data acquisition, state acquisition module 610 for example, reads every second time interval (, second time interval was 30 milliseconds~100 milliseconds) accekeration that Gravity accelerometer collects.
Particularly, see also Fig. 4, Fig. 4 is the schematic diagram of the component of acceleration that in Fig. 3, acceleration of gravity produces in X-axis and Y-axis.
Because mobile terminal is subject to gravitational effect, mobile terminal can produce a direction downwards and the gravity acceleration g of vertical level, g=9.8m/s
2effect.
According to mechanics decomposition principle, acceleration of gravity can produce a component of acceleration A in the X-direction of mobile terminal
x, in the Y direction of mobile terminal, can produce a component of acceleration A
y.Gravity acceleration g is carried out to Orthogonal Decomposition, obtain the component of acceleration A of acceleration of gravity in X-direction
x=g*cos (θ), the component of acceleration A of acceleration of gravity in Y direction
y=g*sin (θ).
When the absolute value of angle theta is in default scope, the current laying state of judge module 620 judgement mobile terminal is horizontality, when the absolute value of angle theta exceeds in default scope, the current laying state of judge module 620 judgement mobile terminal is vertical state.
Particularly, judge module 620 is according to the accekeration A reading
x, A
y, and according to formula θ θ arccossA
x/ g), θ θ arcsinnA
y/ g) calculating the value of angle theta, jointly determine the angle theta between Y-axis and surface level, is in horizontality or vertical state according to the current laying state of value judgement mobile terminal that calculates resulting angle theta.
When the absolute value of angle theta is less than or equal to 15 °, the current laying state of judge module 620 judgement mobile terminal is horizontality.When the absolute value of angle theta is greater than 15 °, the current laying state of judge module 620 judgement mobile terminal is vertical state.
For example, in the Y-axis of mobile terminal as shown in Figure 3 or the angle of the dried up plane of downward bias be less than or equal to 15 °, or mobile terminal is as shown in Figure 3 after 180 ° of the Plane Rotations at X-axis and Y-axis place, in the Y-axis of mobile terminal or the angle of the dried up plane of downward bias be less than or equal to 15 °, judge that the current laying state of mobile terminal is horizontality.
In like manner, in the Y-axis of mobile terminal as shown in Figure 3 or the dried up Plane Angle of downward bias be greater than 15 °, or mobile terminal is as shown in Figure 3 after 180 ° of the Plane Rotations at X-axis and Y-axis place, in the Y-axis of mobile terminal or the dried up Plane Angle of downward bias be greater than 15 °, judge that the current laying state of mobile terminal is vertical state.
When the accekeration of the X-direction of mobile terminal is greater than default threshold values, (for example, default threshold values is 2g, g=9.8m/s
2) time, judge module 620 judgement mobile terminals in X-direction by whipping.
When the accekeration of the X-direction of mobile terminal is less than default threshold values, judge module 620 judgement mobile terminals in X-direction not by whipping.
Whether judge module 620 is sent by the judged result of whipping mobile terminal to display management module 630.
Such scheme, by when the current laying state of mobile terminal being detected and be horizontality, judges that whether described mobile terminal is by whipping, if mobile terminal detected by whipping, mobile terminal is switched to horizontal screen display mode.Make user in using the process of mobile terminal, without opening or close roller blind setting by menu is set, just can control flexibly and switch to horizontal screen display mode; The condition of having switched by having increased horizontal screen, can realize and only have user when the horizontal screen display of needs is shown current interface, just switches to horizontal screen display mode, and the judgement that horizontal screen is switched is more accurate, greatly reduces the maloperation probability that horizontal screen switches, user-friendly.
In more than describing, in order to illustrate rather than in order limiting, to have proposed the detail such as particular system structure, interface, technology, to thoroughly understand the application.Yet, not it will be clear to one skilled in the art that in there is no other embodiment of these details and can realize the application yet.In other situation, omit the detailed description to well-known device, circuit and method, in order to avoid unnecessary details hinders the application's description.
Claims (10)
1. the control method that horizontal screen switches, is characterized in that, described method comprises the steps:
The current laying state of judgement mobile terminal, wherein, current laying state comprises horizontality and vertical state;
When if described current laying state is horizontality, judge that whether described mobile terminal is by whipping;
While if described mobile terminal being detected by whipping, described mobile terminal is switched to horizontal screen display mode.
2. method according to claim 1, is characterized in that, before the step of the current laying state of judgement mobile terminal, also comprises:
Detect the current laying state of described mobile terminal.
3. method according to claim 1, is characterized in that, after the step of the laying state that judgement mobile terminal is current, also comprises:
When if described current laying state is vertical state, continue to detect the laying state of described mobile terminal.
4. method according to claim 1, is characterized in that, if while described mobile terminal being detected by whipping, the step that described mobile terminal is switched to horizontal screen display mode also comprises afterwards:
Continue to detect the laying state of described mobile terminal, if when the laying state of described mobile terminal being detected and returning to vertical state, exit horizontal screen display mode, so that described mobile terminal is switched to perpendicular screen display mode.
5. according to the method described in claim 1-4, it is characterized in that, by the built-in acceleration transducer of described mobile terminal, detect the current laying state of described mobile terminal, and whether described mobile terminal is by whipping.
6. a mobile terminal, is characterized in that, described device comprises: judge module, display management module;
Described judge module is for judging the laying state that mobile terminal is current, and wherein, current laying state comprises horizontality and vertical state;
Described judge module, also for when described current laying state is horizontality, judges that whether described mobile terminal is by whipping; Whether described judge module is sent by the judged result of whipping described mobile terminal to described display management module;
Described display management module, for whether receiving described mobile terminal by the judged result of whipping, when described mobile terminal being detected by whipping, switches to horizontal screen display mode by described mobile terminal.
7. mobile terminal according to claim 6, is characterized in that, described mobile terminal also comprises state acquisition module,
Described state acquisition module is for detection of the current laying state of described mobile terminal; Described state acquisition module sends testing result to judge module.
8. mobile terminal according to claim 6, is characterized in that, described judge module, also for when described current laying state is vertical state, continues to detect the laying state of described mobile terminal.
9. mobile terminal according to claim 6, it is characterized in that, described state acquisition module is also for when described mobile terminal is during in horizontal screen display mode, continue to detect the laying state of described mobile terminal, so that described display management module is when the laying state of described mobile terminal returns to vertical state, exit horizontal screen display mode, so that described mobile terminal is switched to perpendicular screen display mode.
10. according to the mobile terminal described in claim 6-9, it is characterized in that,
Described state acquisition module is for detecting the current laying state of described mobile terminal by the built-in acceleration transducer of described mobile terminal;
Described judge module is for judging that by the built-in acceleration transducer of described mobile terminal whether described mobile terminal is by whipping.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310492813.2A CN103530036A (en) | 2013-10-18 | 2013-10-18 | Horizontal screen switching control method and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310492813.2A CN103530036A (en) | 2013-10-18 | 2013-10-18 | Horizontal screen switching control method and mobile terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103530036A true CN103530036A (en) | 2014-01-22 |
Family
ID=49932094
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310492813.2A Pending CN103530036A (en) | 2013-10-18 | 2013-10-18 | Horizontal screen switching control method and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103530036A (en) |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103791942A (en) * | 2014-02-21 | 2014-05-14 | Tcl通讯(宁波)有限公司 | Device and method for detecting transverse and vertical screen states of mobile terminal |
CN103929541A (en) * | 2014-04-28 | 2014-07-16 | 深圳市中兴移动通信有限公司 | Method and device for controlling acceleration sensor and mobile terminal |
CN103995670A (en) * | 2014-05-26 | 2014-08-20 | 联想(北京)有限公司 | Information processing method and electronic equipment |
CN104820555A (en) * | 2015-05-06 | 2015-08-05 | 努比亚技术有限公司 | Transverse and vertical screen modes switching method and device, and terminal |
CN105072349A (en) * | 2015-09-10 | 2015-11-18 | 上海斐讯数据通信技术有限公司 | Method and system for improving experience of user in photographing of intelligent terminal |
CN105068632A (en) * | 2015-09-07 | 2015-11-18 | 小米科技有限责任公司 | Terminal charging method and device and terminal |
CN106406732A (en) * | 2016-09-05 | 2017-02-15 | 努比亚技术有限公司 | Virtual key processing device and method for terminal equipment |
CN106488282A (en) * | 2016-11-23 | 2017-03-08 | 腾讯科技(北京)有限公司 | A kind of output control method of multimedia messages and mobile terminal |
CN107273017A (en) * | 2017-06-05 | 2017-10-20 | 维沃移动通信有限公司 | A kind of display control method and mobile terminal |
CN112379778A (en) * | 2020-11-24 | 2021-02-19 | 惠州Tcl移动通信有限公司 | Display adjusting method and device, storage medium and terminal |
WO2021077264A1 (en) * | 2019-10-21 | 2021-04-29 | 深圳市欢太科技有限公司 | Method and apparatus for updating refresh rate of touch screen, mobile terminal and storage medium |
CN115396704A (en) * | 2020-03-31 | 2022-11-25 | 海信视像科技股份有限公司 | Display device and starting signal source display adaptation method |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101339471A (en) * | 2007-07-04 | 2009-01-07 | 索尼株式会社 | Input apparatus, control apparatus, control system, and control method |
CN102118488A (en) * | 2009-12-30 | 2011-07-06 | 中兴通讯股份有限公司 | Method and mobile terminal thereof applying gravity induction function |
CN102981645A (en) * | 2012-11-16 | 2013-03-20 | 广东欧珀移动通信有限公司 | Reverse gravity induction method and mobile terminal thereof |
CN103175535A (en) * | 2013-02-27 | 2013-06-26 | 深圳市凯立德科技股份有限公司 | Shake navigation method and mobile navigation device |
CN103336655A (en) * | 2013-06-21 | 2013-10-02 | 广东欧珀移动通信有限公司 | Method for controlling switchover between horizontal screen and vertical screen states of mobile phone |
-
2013
- 2013-10-18 CN CN201310492813.2A patent/CN103530036A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101339471A (en) * | 2007-07-04 | 2009-01-07 | 索尼株式会社 | Input apparatus, control apparatus, control system, and control method |
CN102118488A (en) * | 2009-12-30 | 2011-07-06 | 中兴通讯股份有限公司 | Method and mobile terminal thereof applying gravity induction function |
CN102981645A (en) * | 2012-11-16 | 2013-03-20 | 广东欧珀移动通信有限公司 | Reverse gravity induction method and mobile terminal thereof |
CN103175535A (en) * | 2013-02-27 | 2013-06-26 | 深圳市凯立德科技股份有限公司 | Shake navigation method and mobile navigation device |
CN103336655A (en) * | 2013-06-21 | 2013-10-02 | 广东欧珀移动通信有限公司 | Method for controlling switchover between horizontal screen and vertical screen states of mobile phone |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103791942A (en) * | 2014-02-21 | 2014-05-14 | Tcl通讯(宁波)有限公司 | Device and method for detecting transverse and vertical screen states of mobile terminal |
CN103929541A (en) * | 2014-04-28 | 2014-07-16 | 深圳市中兴移动通信有限公司 | Method and device for controlling acceleration sensor and mobile terminal |
CN103995670A (en) * | 2014-05-26 | 2014-08-20 | 联想(北京)有限公司 | Information processing method and electronic equipment |
CN104820555A (en) * | 2015-05-06 | 2015-08-05 | 努比亚技术有限公司 | Transverse and vertical screen modes switching method and device, and terminal |
CN105068632A (en) * | 2015-09-07 | 2015-11-18 | 小米科技有限责任公司 | Terminal charging method and device and terminal |
CN105072349A (en) * | 2015-09-10 | 2015-11-18 | 上海斐讯数据通信技术有限公司 | Method and system for improving experience of user in photographing of intelligent terminal |
CN106406732A (en) * | 2016-09-05 | 2017-02-15 | 努比亚技术有限公司 | Virtual key processing device and method for terminal equipment |
CN106488282A (en) * | 2016-11-23 | 2017-03-08 | 腾讯科技(北京)有限公司 | A kind of output control method of multimedia messages and mobile terminal |
CN106488282B (en) * | 2016-11-23 | 2020-06-16 | 腾讯科技(北京)有限公司 | Multimedia information output control method and mobile terminal |
CN107273017A (en) * | 2017-06-05 | 2017-10-20 | 维沃移动通信有限公司 | A kind of display control method and mobile terminal |
WO2021077264A1 (en) * | 2019-10-21 | 2021-04-29 | 深圳市欢太科技有限公司 | Method and apparatus for updating refresh rate of touch screen, mobile terminal and storage medium |
CN115396704A (en) * | 2020-03-31 | 2022-11-25 | 海信视像科技股份有限公司 | Display device and starting signal source display adaptation method |
CN115396704B (en) * | 2020-03-31 | 2024-05-28 | 海信视像科技股份有限公司 | Display equipment and power-on signal source display adaptation method |
CN112379778A (en) * | 2020-11-24 | 2021-02-19 | 惠州Tcl移动通信有限公司 | Display adjusting method and device, storage medium and terminal |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103530036A (en) | Horizontal screen switching control method and mobile terminal | |
KR101517459B1 (en) | Method for automatically switching user interface of handheld terminal device, and handheld terminal device | |
CN102541255B (en) | Camera-based orientation fix from portrait to landscape | |
CN102736854B (en) | Communication terminal and the screen adjustment method based on this communication terminal | |
CN100561414C (en) | A kind of portable terminal hand-written inputting method, device and portable terminal | |
CN105681553B (en) | Handheld terminal and misoperation preventing method thereof | |
CN105022577B (en) | A kind of display methods and device of multi-screen mobile terminal | |
EP2602981A1 (en) | Hand-held mobile terminal standby method, micro processor and cellular phone thereof | |
CN106547440B (en) | Terminal operation method and device and corresponding terminal | |
CN103019554A (en) | Command recognition method and electronic device using same | |
CN108153503B (en) | Display control method and related product | |
CN103617000A (en) | Method and system for switching screen of mobile terminal | |
CN102075635B (en) | Method and mobile phone for hanging up according to angular velocity sensor | |
CN102929514A (en) | Method for classifying application program icons of mobile terminal | |
CN103023540A (en) | Method and device for transferring files by Bluetooth | |
CN110096319A (en) | A kind of method and electronic equipment for opening camera applications | |
WO2015096469A1 (en) | Volume adjustment and control device and method for mobile terminal, and mobile terminal | |
EP2903246A1 (en) | Voice recognition function realizing method and device | |
CN105573632A (en) | Terminal control method and device thereof | |
CN103024173A (en) | Method for opening camera based on gravity sensing | |
CN105224074B (en) | A kind of control method and electronic equipment | |
CN105511774A (en) | Method and device for displaying display terminal interface | |
CN104346073A (en) | Information processing method and electronic equipment | |
CN111182215B (en) | Power supply device of separable camera module | |
CN109739517B (en) | Printed circuit board, terminal, firmware burning method and readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20140122 |
|
RJ01 | Rejection of invention patent application after publication |