Method and device for controlling screen rotation
First Claim
Patent Images
1. A method for controlling screen rotation for use in a mobile terminal, comprising:
- when the mobile terminal enters a full-screen mode, locking a screen orientation of the mobile terminal, and acquiring a posture of the mobile terminal at the time of entering the full-screen mode as an initial posture for determining the screen rotation in the full-screen mode;
monitoring real-time posture of the mobile terminal in real time;
each time when the real-time posture changes in the full-screen mode, determining a screen rotation direction by comparing the real-time posture with the initial posture acquired when the mobile terminal enters the full-screen mode; and
rotating the screen orientation based on the determined screen rotation direction,wherein;
the initial posture and the real-time posture of the mobile terminal each correspond to a gravitational acceleration of the mobile terminal, the gravitational acceleration including a component in an X-direction and a component in a Y-direction, the X-direction being a horizontal rightward direction along the mobile terminal and the Y-direction being an upright direction along the mobile terminal;
the acquiring of the posture of the mobile terminal at the time of entering the full-screen mode as an initial posture for determining the screen rotation in the full-screen mode includes;
acquiring and recording the X-direction component and the Y-direction component of a gravitational acceleration of the mobile terminal when the mobile terminal enters the full-screen mode, anddetermining the initial posture of the mobile terminal for determining the screen rotation in the full-screen mode according to the X-direction component and the Y-direction component of the gravitational acceleration acquired when the mobile terminal enters the full-screen mode;
the monitoring of the real-time posture of the mobile terminal in real time includes;
monitoring the X-direction component and the Y-direction component of a real-time gravitational acceleration of the mobile terminal in real time; and
determining the real-time posture of the mobile terminal according to the X-direction component and the Y-direction component of the real-time gravitational acceleration; and
the determining of the screen rotation direction by comparing the real-time posture with the initial posture includes;
determining a correction value for a screen-orientation identifier according to the initial posture of the mobile terminal, wherein the screen-orientation identifier is configured to identify a screen orientation of the mobile terminal as one of an upright portrait orientation, a left landscape orientation, a reverse portrait orientation, and a right landscape orientation.
1 Assignment
0 Petitions
Accused Products
Abstract
A method for controlling screen rotation for use in a mobile terminal is provided. The method includes: when the mobile terminal enters a full-screen mode, locking a screen orientation of the mobile terminal, and acquiring an initial posture of the mobile terminal; monitoring a real-time posture of the mobile terminal in real time; and determining a screen rotation direction by comparing the real-time posture with the initial posture.
-
Citations
6 Claims
-
1. A method for controlling screen rotation for use in a mobile terminal, comprising:
-
when the mobile terminal enters a full-screen mode, locking a screen orientation of the mobile terminal, and acquiring a posture of the mobile terminal at the time of entering the full-screen mode as an initial posture for determining the screen rotation in the full-screen mode; monitoring real-time posture of the mobile terminal in real time; each time when the real-time posture changes in the full-screen mode, determining a screen rotation direction by comparing the real-time posture with the initial posture acquired when the mobile terminal enters the full-screen mode; and rotating the screen orientation based on the determined screen rotation direction, wherein; the initial posture and the real-time posture of the mobile terminal each correspond to a gravitational acceleration of the mobile terminal, the gravitational acceleration including a component in an X-direction and a component in a Y-direction, the X-direction being a horizontal rightward direction along the mobile terminal and the Y-direction being an upright direction along the mobile terminal; the acquiring of the posture of the mobile terminal at the time of entering the full-screen mode as an initial posture for determining the screen rotation in the full-screen mode includes; acquiring and recording the X-direction component and the Y-direction component of a gravitational acceleration of the mobile terminal when the mobile terminal enters the full-screen mode, and determining the initial posture of the mobile terminal for determining the screen rotation in the full-screen mode according to the X-direction component and the Y-direction component of the gravitational acceleration acquired when the mobile terminal enters the full-screen mode; the monitoring of the real-time posture of the mobile terminal in real time includes; monitoring the X-direction component and the Y-direction component of a real-time gravitational acceleration of the mobile terminal in real time; and determining the real-time posture of the mobile terminal according to the X-direction component and the Y-direction component of the real-time gravitational acceleration; and the determining of the screen rotation direction by comparing the real-time posture with the initial posture includes; determining a correction value for a screen-orientation identifier according to the initial posture of the mobile terminal, wherein the screen-orientation identifier is configured to identify a screen orientation of the mobile terminal as one of an upright portrait orientation, a left landscape orientation, a reverse portrait orientation, and a right landscape orientation. - View Dependent Claims (2)
-
-
3. A device for controlling screen rotation, comprising:
-
a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to; when the device enters a full-screen mode, lock a screen orientation of the device, and acquire an initial posture of the device; monitor real-time posture of the device in real time; and each time when the real-time posture changes in the full-screen mode, determine a screen rotation direction by comparing the real-time posture with the initial posture acquired when the mobile terminal enters the full-screen mode; and rotate the screen orientation based on the determined screen rotation direction, wherein; the initial posture and the real-time posture of the mobile terminal each correspond to a gravitational acceleration of the mobile terminal, the gravitational acceleration including a component in an X-direction and a component in a Y-direction, the X-direction being a horizontal rightward direction along the mobile terminal and the Y-direction being an upright direction along the mobile terminal; in acquiring the initial posture of the mobile terminal, the processor is further configured to; acquire and recording the X-direction component and the Y-direction component of a gravitational acceleration of the mobile terminal when the mobile terminal enters the full-screen mode, and determine the initial posture of the mobile terminal according to the X-direction component and the Y-direction component of the gravitational acceleration acquired when the mobile terminal enters the full-screen mode; in monitoring the real-time posture of the mobile terminal in real time, the processor is further configured to; monitor the X-direction component and the Y-direction component of a real-time gravitational acceleration of the mobile terminal in real time; and determine the real-time posture of the mobile terminal according to the X-direction component and the Y-direction component of the real-time gravitational acceleration; and in determining the screen rotation direction by comparing the real-time posture with the initial posture, the processor is further configured to; determine a correction value for a screen-orientation identifier according to the initial posture of the mobile terminal, wherein the screen-orientation identifier is configured to identify a screen orientation of the mobile terminal as one of an upright portrait orientation, a left landscape orientation, a reverse portrait orientation, and a right landscape orientation. - View Dependent Claims (4)
-
-
5. A non-transitory computer-readable storage medium storing instructions that, when executed by one or more processors of a mobile terminal, cause the mobile terminal to perform a method for controlling screen rotation, the method comprising:
-
when the mobile terminal enters a full-screen mode, locking a screen orientation of the mobile terminal, and acquiring an initial posture of the mobile terminal; monitoring real-time posture of the mobile terminal in real time; and each time when the real-time posture changes in the full-screen mode, determining a screen rotation direction by comparing the real-time posture with the initial posture acquired when the mobile terminal enters the full-screen mode; and rotating the screen orientation based on the determined screen rotation direction, wherein; the initial posture and the real-time posture of the mobile terminal each correspond to a gravitational acceleration of the mobile terminal, the gravitational acceleration including a component in an X-direction and a component in a Y-direction, the X-direction being a horizontal rightward direction along the mobile terminal and the Y-direction being an upright direction along the mobile terminal; the acquiring of the initial posture of the mobile terminal includes; acquiring and recording the X-direction component and the Y-direction component of a gravitational acceleration of the mobile terminal when the mobile terminal enters the full-screen mode, and determining the initial posture of the mobile terminal according to the X-direction component and the Y-direction component of the gravitational orientation acquired when the mobile terminal enters the full screen mode; the monitoring of the real-time posture of the mobile terminal in real time includes; monitoring the X-direction component and the Y-direction component of a real-time gravitational acceleration of the mobile terminal in real time; and determining the real-time posture of the mobile terminal according to the X-direction component and the Y-direction component of the real-time gravitational acceleration; and the determining of the screen rotation direction by comparing the real-time posture with the initial posture includes; determining a correction value for a screen-orientation identifier according to the initial posture of the mobile terminal, wherein the screen-orientation identifier is configured to identify a screen orientation of the mobile terminal as one of an upright portrait orientation, a left landscape orientation, a reverse portrait orientation, and a right landscape orientation. - View Dependent Claims (6)
-
Specification