×

Method and device for controlling screen rotation

  • US 9,858,648 B2
  • Filed: 11/04/2015
  • Issued: 01/02/2018
  • Est. Priority Date: 05/17/2013
  • Status: Active Grant
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.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×