CN107340958B - Horizontal and vertical screen switching method and mobile terminal - Google Patents

Horizontal and vertical screen switching method and mobile terminal Download PDF

Info

Publication number
CN107340958B
CN107340958B CN201710485018.9A CN201710485018A CN107340958B CN 107340958 B CN107340958 B CN 107340958B CN 201710485018 A CN201710485018 A CN 201710485018A CN 107340958 B CN107340958 B CN 107340958B
Authority
CN
China
Prior art keywords
mobile terminal
screen
fingerprint
angle
horizontal
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.)
Active
Application number
CN201710485018.9A
Other languages
Chinese (zh)
Other versions
CN107340958A (en
Inventor
林家治
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201710485018.9A priority Critical patent/CN107340958B/en
Publication of CN107340958A publication Critical patent/CN107340958A/en
Application granted granted Critical
Publication of CN107340958B publication Critical patent/CN107340958B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Environmental & Geological Engineering (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a mobile terminal, which comprises a memory, a processor and a transverse and vertical screen switching program which is stored on the memory and can be operated on the processor, wherein the transverse and vertical screen switching program realizes the following steps when being executed by the processor: detecting whether a fingerprint is input in the edge area of a screen of the mobile terminal in real time; if the detection result is negative, controlling the screen state of the mobile terminal to be automatically switched according to the gravity sensor; if the detection result is yes, acquiring an angle formed by the fingerprint and the side edge of the mobile terminal; judging whether the angle meets a preset condition or not; if the judgment result is yes, the current screen state of the mobile terminal is maintained, and the function of controlling the automatic switching of the screen state of the mobile terminal according to the gravity sensor is shielded. Compared with the prior art, the screen state automatic switching function is shielded under a certain condition, so that the problem that the user experience is influenced when the mobile terminal switches the screen state according to the gravity sensor when the user lies on the back or on the side is solved.

Description

Horizontal and vertical screen switching method and mobile terminal
Technical Field
The invention relates to the technical field of mobile terminals, in particular to a horizontal and vertical screen switching method and a mobile terminal.
Background
In the use process of the mobile phone, when the system starts the automatic screen rotation function and the currently used application program interface supports horizontal and vertical screen switching, the mobile phone can automatically switch the horizontal and vertical screen interfaces according to the direction in which the mobile phone is located.
The automatic screen rotation function is really convenient for the user to operate under most conditions, and operation experience of the user is improved. However, in some cases, the user may be annoyed, for example, when the user lies down or lies on his side with the mobile phone, the mobile phone may automatically switch to the landscape mode according to the sensing of the gravity sensor, but the user may still need to hold the portrait mode and does not need to switch to the landscape mode, and the automatic rotation of the screen may cause inconvenience to the user.
Therefore, it is necessary to provide a method for switching between horizontal and vertical screens and a mobile terminal to solve the above technical problems.
Disclosure of Invention
The invention mainly aims to provide a horizontal and vertical screen switching method and a mobile terminal, and aims to solve the problem that the user experience is influenced when the existing mobile terminal automatically switches the screen state according to a gravity sensor when a user lies down or lies on one side.
First, to achieve the above object, the present invention provides a mobile terminal, where the mobile terminal includes a memory, a processor, and a horizontal-vertical screen switching program stored in the memory and capable of running on the processor, and the horizontal-vertical screen switching program implements the following steps when executed by the processor:
detecting whether a fingerprint is input in the edge area of a screen of the mobile terminal in real time;
if the detection result is negative, controlling the screen state of the mobile terminal to be automatically switched according to the gravity sensor, wherein the screen state comprises a horizontal screen and a vertical screen;
if the detection result is yes, acquiring an angle formed by the fingerprint and the side edge of the mobile terminal;
judging whether the angle meets a preset condition or not;
if the judgment result is yes, maintaining the current screen state of the mobile terminal, and shielding the function of controlling the automatic switching of the screen state of the mobile terminal according to the gravity sensor.
Optionally, the processor is further configured to execute the horizontal and vertical screen switching program to implement the following steps:
judging whether the angle is an acute angle or an obtuse angle;
if so, maintaining the current screen state of the mobile terminal, and shielding the function of controlling the automatic switching of the screen state of the mobile terminal according to the gravity sensor;
and if the judgment result is negative, switching the current screen state of the mobile terminal from the horizontal screen to the vertical screen or from the vertical screen to the horizontal screen.
Optionally, before the step of obtaining the angle formed by the fingerprint and the side of the mobile terminal, the processor is further configured to execute the horizontal and vertical screen switching program to implement the following steps:
judging whether the fingerprint is a standard fingerprint in a preset fingerprint database;
if the judgment result is yes, executing the step of acquiring the angle formed by the fingerprint and the side edge of the mobile terminal;
and if the judgment result is negative, executing the step of controlling the automatic switching of the screen state of the mobile terminal according to the gravity sensor.
Optionally, before the step of determining whether the fingerprint is a standard fingerprint in a preset fingerprint library, the processor is further configured to execute the horizontal and vertical screen switching program to implement the following steps:
collecting fingerprints and storing the fingerprints in the preset fingerprint database to serve as the standard fingerprints;
and collecting and storing the position information of the position of the standard fingerprint relative to the side edge of the mobile terminal when the angle is an acute angle or an obtuse angle.
Meanwhile, the invention also provides a transverse and vertical screen switching method which is applied to the mobile terminal and comprises the following steps:
detecting whether a fingerprint is input in the edge area of a screen of the mobile terminal in real time;
if the detection result is negative, controlling the screen state of the mobile terminal to be automatically switched according to the gravity sensor, wherein the screen state comprises a horizontal screen and a vertical screen;
if the detection result is yes, acquiring an angle formed by the fingerprint and the side edge of the mobile terminal;
judging whether the angle meets a preset condition or not;
if the judgment result is yes, maintaining the current screen state of the mobile terminal, and shielding the function of controlling the automatic switching of the screen state of the mobile terminal according to the gravity sensor.
Optionally, the step of judging whether the angle meets a preset condition specifically includes:
and judging whether the angle is an acute angle or an obtuse angle, and if so, executing the steps of maintaining the current screen state of the mobile terminal and shielding the function of controlling the automatic switching of the screen state of the mobile terminal according to the gravity sensor.
Optionally, the step of determining whether the angle is an acute angle or an obtuse angle further includes:
and if the judgment result is negative, switching the current screen state of the mobile terminal from the horizontal screen to the vertical screen or from the vertical screen to the horizontal screen.
Optionally, the step of obtaining an angle formed by the fingerprint and a side edge of the mobile terminal further includes:
judging whether the fingerprint is a standard fingerprint in a preset fingerprint database;
if the judgment result is yes, executing the step of acquiring the angle formed by the fingerprint and the side edge of the mobile terminal;
and if the judgment result is negative, executing the step of controlling the automatic switching of the screen state of the mobile terminal according to the gravity sensor.
Optionally, before the step of determining whether the fingerprint is a standard fingerprint in a preset fingerprint library, the method further includes:
collecting fingerprints and storing the fingerprints in the preset fingerprint database to serve as the standard fingerprints;
and collecting and storing the position information of the position of the standard fingerprint relative to the side edge of the mobile terminal when the angle is an acute angle or an obtuse angle.
In addition, to achieve the above object, the present invention further provides a computer readable storage medium, in which a horizontal and vertical screen switching program is stored, and the steps of the horizontal and vertical screen switching method are implemented when the horizontal and vertical screen switching program is executed by a processor.
Compared with the prior art, the method for switching the horizontal and vertical screens, the mobile terminal and the computer-readable storage medium provided by the invention, when no fingerprint exists in the edge area of the screen of the mobile terminal, the automatic switching of the horizontal screen and the vertical screen of the mobile terminal is controlled according to the gravity sensor, when the fingerprint is detected in the edge area of the screen and the angle formed by the fingerprint and the side edge of the mobile terminal meets the preset condition, the current screen state of the mobile terminal is maintained, and shields the function of controlling the automatic switching of the screen state of the mobile terminal according to the gravity sensor, by shielding the screen state automatic switching function under certain conditions, no matter what direction the mobile terminal is, and even if the user holds the mobile terminal to lie down or lie on the side, the horizontal and vertical screens can not be automatically switched, therefore, the problem that the user experience is influenced when the existing mobile terminal switches the screen state according to the gravity sensor when the user lies on the back or on the side is solved.
Drawings
Fig. 1 is a schematic diagram of a hardware structure of an optional mobile terminal for implementing various embodiments of the present invention;
fig. 2 is a diagram of a communication network system architecture according to an embodiment of the present invention;
FIG. 3 is a functional block diagram of a horizontal/vertical screen switching procedure according to a first embodiment of the present invention;
FIG. 4 is a functional block diagram of a horizontal/vertical screen switching procedure according to a second embodiment of the present invention;
FIG. 5 is a flowchart illustrating a horizontal and vertical screen switching method according to a first embodiment of the present invention;
FIG. 6 is a flowchart illustrating a horizontal-vertical screen switching method according to a second embodiment of the present invention;
FIG. 7 is a diagram illustrating an edge area of a screen according to an embodiment of the present invention;
FIG. 8a is a diagram illustrating a first embodiment of detecting a fingerprint in a border area of a screen according to the present invention;
FIG. 8b is a diagram illustrating a second embodiment of the present invention when a fingerprint is detected in a border area of a screen;
FIG. 8c is a diagram illustrating a third embodiment of the present invention when a fingerprint is detected in a border area of a screen;
FIG. 8d is a diagram illustrating a fourth embodiment of the present invention when a fingerprint is detected in a border area of a screen.
Reference numerals:
Figure BDA0001330219620000041
Figure BDA0001330219620000051
Figure BDA0001330219620000061
the implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
The terminal may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, and the like, and a fixed terminal such as a Digital TV, a desktop computer, and the like.
The following description will be given by way of example of a mobile terminal, and it will be understood by those skilled in the art that the construction according to the embodiment of the present invention can be applied to a fixed type terminal, in addition to elements particularly used for mobile purposes.
Referring to fig. 1, which is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present invention, the mobile terminal 100 may include: RF (Radio Frequency) unit 101, WiFi module 102, audio output unit 103, a/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 1 is not intended to be limiting of mobile terminals, which may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile terminal in detail with reference to fig. 1:
the radio frequency unit 101 may be configured to receive and transmit signals during information transmission and reception or during a call, and specifically, receive downlink information of a base station and then process the downlink information to the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA2000(Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division duplex-Long Term Evolution), and TDD-LTE (Time Division duplex-Long Term Evolution).
WiFi belongs to short-distance wireless transmission technology, and the mobile terminal can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 102, and provides wireless broadband internet access for the user. Although fig. 1 shows the WiFi module 102, it is understood that it does not belong to the essential constitution of the mobile terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output as sound when the mobile terminal 100 is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive audio or video signals. The a/V input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, the Graphics processor 1041 Processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 may receive sounds (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, or the like, and may be capable of processing such sounds into audio data. The processed audio (voice) data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting audio signals.
The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or a backlight when the mobile terminal 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect a touch operation performed by a user on or near the touch panel 1071 (e.g., an operation performed by the user on or near the touch panel 1071 using a finger, a stylus, or any other suitable object or accessory), and drive a corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and can receive and execute commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. In particular, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like, and are not limited to these specific examples.
Further, the touch panel 1071 may cover the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although the touch panel 1071 and the display panel 1061 are shown in fig. 1 as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 108 serves as an interface through which at least one external device is connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and external devices.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the mobile terminal. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The mobile terminal 100 may further include a power supply 111 (e.g., a battery) for supplying power to various components, and preferably, the power supply 111 may be logically connected to the processor 110 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system.
Although not shown in fig. 1, the mobile terminal 100 may further include a bluetooth module or the like, which is not described in detail herein.
In order to facilitate understanding of the embodiments of the present invention, a communication network system on which the mobile terminal of the present invention is based is described below.
Referring to fig. 2, fig. 2 is an architecture diagram of a communication Network system according to an embodiment of the present invention, where the communication Network system is an LTE system of a universal mobile telecommunications technology, and the LTE system includes a UE (User Equipment) 201, an E-UTRAN (Evolved UMTS Terrestrial Radio Access Network) 202, an EPC (Evolved Packet Core) 203, and an IP service 204 of an operator, which are in communication connection in sequence.
Specifically, the UE201 may be the terminal 100 described above, and is not described herein again.
The E-UTRAN202 includes eNodeB2021 and other eNodeBs 2022, among others. Among them, the eNodeB2021 may be connected with other eNodeB2022 through backhaul (e.g., X2 interface), the eNodeB2021 is connected to the EPC203, and the eNodeB2021 may provide the UE201 access to the EPC 203.
The EPC203 may include an MME (Mobility Management Entity) 2031, an HSS (Home Subscriber Server) 2032, other MMEs 2033, an SGW (Serving gateway) 2034, a PGW (PDN gateway) 2035, and a PCRF (Policy and charging functions Entity) 2036, and the like. The MME2031 is a control node that handles signaling between the UE201 and the EPC203, and provides bearer and connection management. HSS2032 is used to provide registers to manage functions such as home location register (not shown) and holds subscriber specific information about service characteristics, data rates, etc. All user data may be sent through SGW2034, PGW2035 may provide IP address assignment for UE201 and other functions, and PCRF2036 is a policy and charging control policy decision point for traffic data flow and IP bearer resources, which selects and provides available policy and charging control decisions for a policy and charging enforcement function (not shown).
The IP services 204 may include the internet, intranets, IMS (IP Multimedia Subsystem), or other IP services, among others.
Although the LTE system is described as an example, it should be understood by those skilled in the art that the present invention is not limited to the LTE system, but may also be applied to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems.
Based on the hardware structure of the mobile terminal 100 and the communication network system, various embodiments of the method of the present invention are provided.
First, the present invention provides a mobile terminal, which includes a memory, a processor, and a horizontal/vertical screen switching program 400 stored in the memory and operable on the processor.
Fig. 3 is a functional block diagram of a horizontal/vertical screen switching procedure 400 according to a first embodiment of the present invention. In this embodiment, the horizontal and vertical screen switching program 400 may be divided into one or more modules, and the one or more modules are stored in the memory 109 of the mobile terminal 100 and executed by one or more processors (in this embodiment, the controller 110), so as to complete the present invention. For example, in fig. 3, the horizontal-vertical screen switching program 400 can be divided into a fingerprint detection module 401, a first screen control module 402, an acquisition module 403, a first judgment module 404, and a second screen control module 405. The module referred to in the present invention refers to a series of computer program instruction segments capable of performing specific functions, and is more suitable than a computer program for describing the execution process of software in the mobile terminal 100. The detailed description of the functions of the functional modules 401 and 405 will be described below. Wherein:
the fingerprint detection module 401 is configured to detect whether a fingerprint is input in an edge area of a screen of the mobile terminal in real time. Specifically, the edge regions of the screen include edge regions in four directions, namely, an upper direction, a lower direction, a left direction and a right direction of the screen of the mobile terminal, referring to fig. 7, fig. 7 is a schematic diagram of an embodiment of the edge regions of the screen of the mobile terminal of the present invention, and reference numeral A, B, C, D in fig. 7 represents the edge regions at the upper side, the lower side, the left side and the right side of the screen respectively, wherein the size of the edge regions is preset by a program developer or a user according to requirements. In the invention, the switching mode of the screen state of the mobile terminal is determined by detecting whether the fingerprint is input in the edge area of the screen, a control mode with simple and convenient operation is provided for a user, and the user can change the switching mode of the screen state of the mobile terminal only by changing the holding gesture of the mobile terminal. In addition, in order to realize the fingerprint detection, the touch screen of the mobile terminal supports a full-screen fingerprint identification function, namely the touch screen is a full-screen fingerprint identification touch screen.
The first screen control module 402 is configured to control, when the detection result of the fingerprint detection module 401 is negative, automatic switching of screen states of the mobile terminal according to a gravity sensor, where the screen states include a horizontal screen and a vertical screen. That is, when no fingerprint is detected in the edge area of the screen of the mobile terminal, the mobile terminal controls the automatic switching of the screen state according to the detection result of the gravity sensor, wherein the automatic switching of the screen state according to the detection result of the gravity sensor belongs to the well-established prior art, and therefore, the implementation principle thereof is not described in detail herein. In addition, the first screen control module 402 of the present invention executes a precondition that the mobile terminal has started the screen auto-rotation function, or after a program corresponding to the method for switching horizontal and vertical screens of the present invention is started, if no fingerprint is detected in the edge area of the screen, the screen auto-rotation function is automatically started and the auto-switching of the screen state is controlled according to the detection result of the gravity sensor. It should be noted that another necessary condition for switching the screen state in the present invention is that the current application program interface supports horizontal and vertical screen switching, that is, the horizontal and vertical screen switching method in the present invention is directed to application program interfaces that support horizontal and vertical screen switching, and will not be described in detail later.
The obtaining module 403 is configured to, if the detection result of the fingerprint detection module 401 is yes, obtain an angle formed by the fingerprint and a side of the mobile terminal. In the present invention, when a fingerprint is detected in a screen edge area of a mobile terminal, an angle between the fingerprint and a side edge of the mobile terminal is obtained, wherein the side edge of the mobile terminal includes an upper side edge, a lower side edge, a left side edge and a right side edge, please refer to fig. 8a, 8b, 8c and 8d, fig. 8a is a schematic diagram of a first embodiment when the fingerprint is detected in the screen edge area, fig. 8b is a schematic diagram of a second embodiment when the fingerprint is detected in the screen edge area, fig. 8c is a schematic diagram of a third embodiment when the fingerprint is detected in the screen edge area, fig. 8d is a schematic diagram of a fourth embodiment when the fingerprint is detected in the screen edge area, wherein an angle between the fingerprint in fig. 8a and the left side edge of the mobile terminal is an acute angle or an obtuse angle, and an angle between the fingerprint in fig. 8b and the upper side edge of the mobile terminal is, in fig. 8c, the angle formed by the fingerprint and the left side of the mobile terminal is a right angle (the right angle in the present invention refers to a right angle or an angle range close to a wireless right angle), and in fig. 8d, the angle formed by the fingerprint and the upper side of the mobile terminal is a right angle. In addition, a fingerprint database is required to be established in the mobile terminal in advance, the fingerprint database stores the fingerprints of the users, and the situations that the fingerprints and the side edge of the mobile terminal form an acute angle, an obtuse angle and a right angle, when the angle formed by the fingerprints and the side edge needs to be acquired, the acquired position relation between the fingerprints and the side edge is compared with the situations that the fingerprints and the side edge stored in the fingerprint database form an acute angle, an obtuse angle and a right angle, and whether the angle formed by the current fingerprints and the side edge is an acute angle or an obtuse angle can be judged. As for the embodiments shown in fig. 8a to 8d, assuming that the fingerprint and the mobile terminal are designed in advance in the fingerprint database in the states shown in fig. 8c and 8d, and the angle between the fingerprint and the side is determined to be a right angle, when the state of the fingerprint and the mobile terminal is detected as shown in fig. 8c or 8d, the angle between the fingerprint and the side is determined to be a right angle, wherein when the angle of the fingerprint is determined, some feature points in the fingerprint may be selected as a reference, and then the angle between the fingerprint and the side is determined according to the position relationship between the feature points and the sides of the mobile terminal, as shown in fig. 8a and 8c, in both cases, the coordinate points on the outermost contour of the fingerprint are obviously rotated relative to the left side, so the angle between the fingerprint and the side can be determined according to the position relationship between the outermost contour and the left side. It should be noted that when the user holds the mobile terminal, the area in contact with the touch screen area of the mobile terminal is usually the thumb (including the left thumb and the right thumb), and therefore the fingerprint stored in the fingerprint database in the present invention is the user's thumb fingerprint.
The first determining module 404 is configured to determine whether the angle meets a preset condition. In this embodiment, the specific step of determining whether the angle satisfies the preset condition is: and judging whether the angle is an acute angle or an obtuse angle, and executing the second screen control module 405 when the angle is the acute angle or the obtuse angle.
The second screen control module 405 is configured to maintain the current screen state of the mobile terminal and shield the function of controlling the automatic switching of the screen state of the mobile terminal according to the gravity sensor when the determination result of the first determining module 404 is yes. In this embodiment, when the angle formed by the fingerprint and the side of the mobile terminal is an acute angle or an obtuse angle, the current screen state of the mobile terminal is maintained, and the function of controlling the automatic switching of the screen state of the mobile terminal according to the gravity sensor is shielded, that is, the screen state of the mobile terminal is not changed according to the detection result of the gravity sensor. Such as: if the mobile terminal is in the horizontal screen at the current moment, and the current moment detects that the angle formed by the fingerprint and the side edge of the mobile terminal is an acute angle or an obtuse angle, the horizontal screen mode is kept, and even if the state of the mobile terminal in the space is changed from vertical to horizontal, the screen state of the mobile terminal is not changed at the moment. Through shielding function according to gravity sensor control mobile terminal's screen state automatic switch under certain condition for no matter what kind of orientation mobile terminal is in, and even the user holds mobile terminal tie and lies, perhaps lie on one's side, can not carry out the automatic switch who violently erects the screen, thereby when having solved user tie and lie, perhaps lie on one's side, current mobile terminal switches the screen state according to gravity sensor and can influence user experience's problem.
Through the module 401 and the module 405, when the horizontal and vertical screen switching program of the invention has no fingerprint in the screen edge area of the mobile terminal, controlling the automatic switching of the horizontal and vertical screens of the mobile terminal according to the gravity sensor, maintaining the current screen state of the mobile terminal when the fingerprint is detected in the edge area of the screen and the angle formed by the fingerprint and the side edge of the mobile terminal meets the preset condition, and shields the function of controlling the automatic switching of the screen state of the mobile terminal according to the gravity sensor, by shielding the screen state automatic switching function under certain conditions, no matter what direction the mobile terminal is, and even if the user holds the mobile terminal to lie down or lie on the side, the horizontal and vertical screens can not be automatically switched, therefore, the problem that the user experience is influenced when the existing mobile terminal switches the screen state according to the gravity sensor when the user lies on the back or on the side is solved.
Further, based on the above-described first embodiment of the horizontal/vertical screen switching program 400 of the present invention, a second embodiment of the horizontal/vertical screen switching program 400 of the present invention is proposed. Referring to fig. 4, fig. 4 is a functional block diagram illustrating a horizontal/vertical screen switching program 400 according to a second embodiment of the present invention, wherein compared with the first embodiment, the horizontal/vertical screen switching program 400 further includes a second determining module 406, a setting module 407, and a third screen control module 408. In this embodiment, each functional module is described as follows:
the first determining module 404 is configured to determine whether the angle is an acute angle or an obtuse angle, execute the second screen control module 405 when the angle is the acute angle or the obtuse angle, and execute the third screen control module 408 when the angle is the right angle.
The second determining module 406 is configured to determine whether the fingerprint is a standard fingerprint in a preset fingerprint library when the detection result of the fingerprint detecting module 401 is yes, execute the obtaining module 403 if the determination result is yes, and execute the first screen control module 402 if the determination result is no. In this embodiment, the user identification may be implemented by determining whether the fingerprint is a standard fingerprint, and the horizontal and vertical screen switching method of the present invention may be implemented only when the owner of the mobile terminal or some pre-authorized person may start the mobile terminal, where if the fingerprint stored in the preset fingerprint library is the owner's fingerprint, the obtaining module 403 may be executed only when the acquired fingerprint is the owner's fingerprint, and otherwise, the first screen control module 402 may be executed if the acquired fingerprint is the fingerprints of other users. In order to realize the identification of the user identity, a fingerprint database needs to be established in advance, and the process comprises the following steps: and collecting fingerprints and storing the fingerprints in the preset fingerprint database to serve as the standard fingerprints.
The setting module 407 is configured to collect a fingerprint and store the fingerprint in the preset fingerprint database as the standard fingerprint; and collecting and storing the position information of the position of the standard fingerprint relative to the side edge of the mobile terminal when the angle is an acute angle or an obtuse angle. In order to realize the identification of the user identity, a fingerprint database needs to be established in advance, and the process comprises the following steps: and collecting fingerprints and storing the fingerprints in the preset fingerprint database to serve as the standard fingerprints. In order to obtain the angle between the fingerprint and the side edge, a mapping information is required to be established in advance to indicate the situation of the fingerprint and the side edge, which is determined as an acute angle, an obtuse angle or a right angle, and the process includes: and collecting and storing the position information of the position of the standard fingerprint relative to the side edge of the mobile terminal when the angle is an acute angle or an obtuse angle.
The third screen control module 408 is configured to switch the current screen state of the mobile terminal from the horizontal screen to the vertical screen or from the vertical screen to the horizontal screen when the determination result of the first determining module 404 is negative, that is, the angle formed by the fingerprint and the side edge of the mobile terminal is a right angle. If the judgment result of judging whether the angle is an acute angle or an obtuse angle is negative, the angle is right, namely when the angle formed by the fingerprint and the side edge of the mobile terminal is right, the current screen state of the mobile terminal is switched from a horizontal screen to a vertical screen or from the vertical screen to the horizontal screen, namely the screen state is switched in the opposite direction, if the current screen state is the horizontal screen, the screen state is directly switched to the vertical screen, if the current screen state is the vertical screen, the screen state is directly switched to the horizontal screen, and then as long as the angle between the fingerprint of the user and the side edge keeps right, the horizontal screen and the vertical screen can not be switched any more, so that the screen state can be locked.
Through the module 401 and 408, the horizontal and vertical screen switching program provided by the invention controls the automatic switching of the horizontal and vertical screens of the mobile terminal according to the gravity sensor when no fingerprint is detected in the screen edge area of the mobile terminal, and maintains the current screen state of the mobile terminal when the fingerprint is detected in the screen edge area and the angle formed by the fingerprint and the side edge of the mobile terminal is an acute angle or an obtuse angle, and shields the function of controlling the automatic switching of the screen state of the mobile terminal according to the gravity sensor, and directly switches the screen state from the horizontal screen to the vertical screen or from the vertical screen to the horizontal screen when the angle formed by the fingerprint and the side edge of the mobile terminal is a right angle, so that the screen state automatic switching function is shielded under a certain condition, so that no matter which direction the mobile terminal is held, and even if the user lies down with the mobile terminal, Or the horizontal screen and the vertical screen can not be automatically switched when the user lies on the side, so that the problem that the user experience is influenced when the existing mobile terminal switches the screen state according to the gravity sensor when the user lies on the horizontal screen or the side is solved; according to the invention, two different screen state switching modes are provided according to different angles formed by the fingerprint and the side edge, so that the screen state switching is more convenient to realize, and the user experience is better.
In addition, the present invention provides a horizontal and vertical screen switching method, which is applied to the mobile terminal shown in fig. 1 to 2, where the mobile terminal includes a memory and a processor.
Fig. 5 is a flowchart illustrating a method for switching between horizontal and vertical screens according to a first embodiment of the present invention. In this embodiment, the execution order of the steps in the flowchart shown in fig. 5 may be changed and some steps may be omitted according to different requirements. The horizontal and vertical screen switching method comprises the following steps:
step S501, detecting whether a fingerprint is input in the edge area of the screen of the mobile terminal in real time, if the detection result is no, executing step S502, otherwise, if the detection result is yes, executing step S503.
Specifically, the edge regions of the screen include edge regions in four directions, namely, an upper direction, a lower direction, a left direction and a right direction of the screen of the mobile terminal, referring to fig. 7, fig. 7 is a schematic diagram of an embodiment of the edge regions of the screen of the mobile terminal of the present invention, and reference numeral A, B, C, D in fig. 7 represents the edge regions at the upper side, the lower side, the left side and the right side of the screen respectively, wherein the size of the edge regions is preset by a program developer or a user according to requirements. In the invention, the switching mode of the screen state of the mobile terminal is determined by detecting whether the fingerprint is input in the edge area of the screen, a control mode with simple and convenient operation is provided for a user, and the user can change the switching mode of the screen state of the mobile terminal only by changing the holding gesture of the mobile terminal. In addition, in order to realize the fingerprint detection, the touch screen of the mobile terminal supports a full-screen fingerprint identification function, namely the touch screen is a full-screen fingerprint identification touch screen.
And S502, controlling the screen state of the mobile terminal to be automatically switched according to the gravity sensor, wherein the screen state comprises a horizontal screen and a vertical screen.
That is, when no fingerprint is detected in the edge area of the screen of the mobile terminal, the mobile terminal controls the automatic switching of the screen state according to the detection result of the gravity sensor, wherein the automatic switching of the screen state according to the detection result of the gravity sensor belongs to the well-established prior art, and therefore, the implementation principle thereof is not described in detail herein. In addition, the step S502 in the present invention is performed on the premise that the mobile terminal has started the screen auto-rotation function, or after the program corresponding to the method for switching between horizontal and vertical screens is started, if no fingerprint is detected in the edge area of the screen, the screen auto-rotation function is automatically started and the auto-switching of the screen state is controlled according to the detection result of the gravity sensor. It should be noted that another necessary condition for switching the screen state in the present invention is that the current application program interface supports horizontal and vertical screen switching, that is, the horizontal and vertical screen switching method in the present invention is directed to application program interfaces that support horizontal and vertical screen switching, and will not be described in detail later.
Step S503, obtaining an angle formed by the fingerprint and the side edge of the mobile terminal.
In the present invention, when a fingerprint is detected in a screen edge area of a mobile terminal, an angle between the fingerprint and a side edge of the mobile terminal is obtained, wherein the side edge of the mobile terminal includes an upper side edge, a lower side edge, a left side edge and a right side edge, please refer to fig. 8a, 8b, 8c and 8d, fig. 8a is a schematic diagram of a first embodiment when the fingerprint is detected in the screen edge area, fig. 8b is a schematic diagram of a second embodiment when the fingerprint is detected in the screen edge area, fig. 8c is a schematic diagram of a third embodiment when the fingerprint is detected in the screen edge area, fig. 8d is a schematic diagram of a fourth embodiment when the fingerprint is detected in the screen edge area, wherein an angle between the fingerprint in fig. 8a and the left side edge of the mobile terminal is an acute angle or an obtuse angle, and an angle between the fingerprint in fig. 8b and the upper side edge of the mobile terminal is, in fig. 8c, the angle formed by the fingerprint and the left side of the mobile terminal is a right angle (the right angle in the present invention refers to a right angle or an angle range close to a wireless right angle), and in fig. 8d, the angle formed by the fingerprint and the upper side of the mobile terminal is a right angle. In addition, a fingerprint database is required to be established in the mobile terminal in advance, the fingerprint database stores the fingerprints of the users, and the situations that the fingerprints and the side edge of the mobile terminal form an acute angle, an obtuse angle and a right angle, when the angle formed by the fingerprints and the side edge needs to be acquired, the acquired position relation between the fingerprints and the side edge is compared with the situations that the fingerprints and the side edge stored in the fingerprint database form an acute angle, an obtuse angle and a right angle, and whether the angle formed by the current fingerprints and the side edge is an acute angle or an obtuse angle can be judged. As for the embodiments shown in fig. 8a to 8d, assuming that the fingerprint and the mobile terminal are designed in advance in the fingerprint database in the states shown in fig. 8c and 8d, and the angle between the fingerprint and the side is determined to be a right angle, when the state of the fingerprint and the mobile terminal is detected as shown in fig. 8c or 8d, the angle between the fingerprint and the side is determined to be a right angle, wherein when the angle of the fingerprint is determined, some feature points in the fingerprint may be selected as a reference, and then the angle between the fingerprint and the side is determined according to the position relationship between the feature points and the sides of the mobile terminal, as shown in fig. 8a and 8c, in both cases, the coordinate points on the outermost contour of the fingerprint are obviously rotated relative to the left side, so the angle between the fingerprint and the side can be determined according to the position relationship between the outermost contour and the left side. It should be noted that when the user holds the mobile terminal, the area in contact with the touch screen area of the mobile terminal is usually the thumb (including the left thumb and the right thumb), and therefore the fingerprint stored in the fingerprint database in the present invention is the user's thumb fingerprint.
Step S504, determining whether the angle satisfies a preset condition, and if so, executing step S505.
In this embodiment, the specific step of determining whether the angle satisfies the preset condition is: and judging whether the angle is an acute angle or an obtuse angle, and executing the step S505 when the angle is the acute angle or the obtuse angle.
It should be noted that, the determination of whether the angle satisfies the preset condition may also be in other forms, such as determining whether the angle is within a preset angle range, and controlling the switching mode of the screen state according to the determination result.
And step S505, maintaining the current screen state of the mobile terminal, and shielding the function of controlling the automatic switching of the screen state of the mobile terminal according to the gravity sensor.
In this embodiment, when the angle formed by the fingerprint and the side of the mobile terminal is an acute angle or an obtuse angle, the current screen state of the mobile terminal is maintained, and the function of controlling the automatic switching of the screen state of the mobile terminal according to the gravity sensor is shielded, that is, the screen state of the mobile terminal is not changed according to the detection result of the gravity sensor. Such as: if the mobile terminal is in the horizontal screen at the current moment, and the current moment detects that the angle formed by the fingerprint and the side edge of the mobile terminal is an acute angle or an obtuse angle, the horizontal screen mode is kept, and even if the state of the mobile terminal in the space is changed from vertical to horizontal, the screen state of the mobile terminal is not changed at the moment. Through shielding function according to gravity sensor control mobile terminal's screen state automatic switch under certain condition for no matter what kind of orientation mobile terminal is in, and even the user holds mobile terminal tie and lies, perhaps lie on one's side, can not carry out the automatic switch who violently erects the screen, thereby when having solved user tie and lie, perhaps lie on one's side, current mobile terminal switches the screen state according to gravity sensor and can influence user experience's problem.
Through the steps S501 to S505, when there is no fingerprint in the edge area of the screen of the mobile terminal, controlling the automatic switching of the horizontal and vertical screens of the mobile terminal according to the gravity sensor, maintaining the current screen state of the mobile terminal when the fingerprint is detected in the edge area of the screen and the angle formed by the fingerprint and the side edge of the mobile terminal meets the preset condition, and shields the function of controlling the automatic switching of the screen state of the mobile terminal according to the gravity sensor, by shielding the screen state automatic switching function under certain conditions, no matter what direction the mobile terminal is, and even if the user holds the mobile terminal to lie down or lie on the side, the horizontal and vertical screens can not be automatically switched, therefore, the problem that the user experience is influenced when the existing mobile terminal switches the screen state according to the gravity sensor when the user lies on the back or on the side is solved.
Further, based on the first embodiment, a second embodiment of the method for switching between horizontal and vertical screens is provided. Fig. 6 is a flowchart illustrating a horizontal-vertical screen switching method according to a second embodiment of the present invention. In this embodiment, the execution order of the steps in the flowchart shown in fig. 6 may be changed and some steps may be omitted according to different requirements. The horizontal and vertical screen switching method comprises the following steps:
step S601, detecting whether a fingerprint is input in the edge area of the screen of the mobile terminal in real time, if the detection result is no, performing step S602, otherwise, if the detection result is yes, performing step S603.
Step S602, controlling the screen state of the mobile terminal to be automatically switched according to the gravity sensor, wherein the screen state comprises a horizontal screen and a vertical screen.
Step S603, determining whether the fingerprint is a standard fingerprint in a preset fingerprint database, if so, performing step S604, otherwise, performing step S602.
In this embodiment, the user identification may be implemented by determining whether the fingerprint is a standard fingerprint, and the horizontal and vertical screen switching method of the present invention may be started only when the owner of the mobile terminal or some pre-authorized person may start the mobile terminal, where if the fingerprint stored in the preset fingerprint database is the owner 'S fingerprint, the step S604 is continuously executed only when the acquired fingerprint is the owner' S fingerprint, and otherwise, the step S602 is executed if the fingerprint of another user is the fingerprint of the mobile terminal owner. In order to realize the identification of the user identity, a fingerprint database needs to be established in advance, and the process includes: and collecting fingerprints and storing the fingerprints in the preset fingerprint database to serve as the standard fingerprints. In addition, in order to obtain the angle between the fingerprint and the side edge, a mapping information is required to be established in advance to indicate the situation of the fingerprint and the side edge, which is determined as an acute angle, an obtuse angle or a right angle, and the process includes: and collecting and storing the position information of the position of the standard fingerprint relative to the side edge of the mobile terminal when the angle is an acute angle or an obtuse angle.
Step S604, obtaining an angle formed by the fingerprint and the side edge of the mobile terminal.
Step S605, determining whether the angle is an acute angle or an obtuse angle, if so, executing step S606, otherwise, if not, executing step S607.
And step S606, maintaining the current screen state of the mobile terminal, and shielding the function of controlling the automatic switching of the screen state of the mobile terminal according to the gravity sensor.
And step S607, switching the current screen state of the mobile terminal from a horizontal screen to a vertical screen or from the vertical screen to the horizontal screen.
If the judgment result of judging whether the angle is an acute angle or an obtuse angle is negative, the angle is right, namely when the angle formed by the fingerprint and the side edge of the mobile terminal is right, the current screen state of the mobile terminal is switched from a horizontal screen to a vertical screen or from the vertical screen to the horizontal screen, namely the screen state is switched in the opposite direction, if the current screen state is the horizontal screen, the screen state is directly switched to the vertical screen, if the current screen state is the vertical screen, the screen state is directly switched to the horizontal screen, and then as long as the angle between the fingerprint of the user and the side edge keeps right, the horizontal screen and the vertical screen can not be switched any more, so that the screen state can be locked.
Through the above steps S601 to S607, the method for switching between horizontal and vertical screens of a mobile terminal according to the present invention controls the automatic switching between horizontal and vertical screens of the mobile terminal according to the gravity sensor when no fingerprint is detected in the edge area of the screen of the mobile terminal, and maintains the current screen state of the mobile terminal and shields the function of controlling the automatic switching between screen states of the mobile terminal according to the gravity sensor when a fingerprint is detected in the edge area of the screen and the angle formed by the fingerprint and the side edge of the mobile terminal is an acute angle or an obtuse angle, and directly switches the screen state from the horizontal screen to the vertical screen or from the vertical screen to the horizontal screen when the angle formed by the fingerprint and the side edge of the mobile terminal is a right angle, so that the automatic switching between horizontal and vertical screens is not performed regardless of the direction in which the mobile terminal is held and even if the user lies the mobile terminal horizontally or laterally, therefore, the problem that the user experience is influenced when the existing mobile terminal switches the screen state according to the gravity sensor when the user lies on the back or on the side is solved; according to the invention, two different screen state switching modes are provided according to different angles formed by the fingerprint and the side edge, so that the screen state switching is more convenient to realize, and the user experience is better.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (7)

1. A mobile terminal, comprising a memory, a processor, and a landscape screen switching program stored on the memory and operable on the processor, wherein the landscape screen switching program when executed by the processor implements the steps of:
detecting whether a fingerprint is input in the edge area of a screen of the mobile terminal in real time;
if the detection result is negative, controlling the screen state of the mobile terminal to be automatically switched according to the gravity sensor, wherein the screen state comprises a horizontal screen and a vertical screen;
if the detection result is yes, acquiring an angle formed by the fingerprint and the side edge of the mobile terminal;
judging whether the angle meets a preset condition or not, including: judging whether the angle is a right angle;
if the judgment result is negative, maintaining the current screen state of the mobile terminal, and shielding the function of controlling the automatic switching of the screen state of the mobile terminal according to the gravity sensor;
and if so, switching the current screen state of the mobile terminal from the horizontal screen to the vertical screen or from the vertical screen to the horizontal screen.
2. The mobile terminal of claim 1, wherein before the step of obtaining the angle that the fingerprint makes with the side of the mobile terminal, the processor is further configured to execute the landscape and portrait switching procedure to implement the following steps:
judging whether the fingerprint is a standard fingerprint in a preset fingerprint database;
if the judgment result is yes, executing the step of acquiring the angle formed by the fingerprint and the side edge of the mobile terminal;
and if the judgment result is negative, executing the step of controlling the automatic switching of the screen state of the mobile terminal according to the gravity sensor.
3. The mobile terminal of claim 2, wherein before the step of determining whether the fingerprint is a standard fingerprint in a preset fingerprint database, the processor is further configured to execute the horizontal-vertical screen switching procedure to implement the following steps:
collecting fingerprints and storing the fingerprints in the preset fingerprint database to serve as the standard fingerprints;
and collecting and storing the position information of the position of the standard fingerprint relative to the side edge of the mobile terminal when the angle is an acute angle or an obtuse angle.
4. A transverse and vertical screen switching method is applied to a mobile terminal and is characterized by comprising the following steps:
detecting whether a fingerprint is input in the edge area of a screen of the mobile terminal in real time;
if the detection result is negative, controlling the screen state of the mobile terminal to be automatically switched according to the gravity sensor, wherein the screen state comprises a horizontal screen and a vertical screen;
if the detection result is yes, acquiring an angle formed by the fingerprint and the side edge of the mobile terminal;
judging whether the angle meets a preset condition or not, including: judging whether the angle is a right angle or not,
if the judgment result is negative, maintaining the current screen state of the mobile terminal, and shielding the function of controlling the automatic switching of the screen state of the mobile terminal according to the gravity sensor;
and if so, switching the current screen state of the mobile terminal from the horizontal screen to the vertical screen or from the vertical screen to the horizontal screen.
5. The method for switching between horizontal and vertical screens of claim 4, wherein the step of obtaining the angle between the fingerprint and the side of the mobile terminal further comprises:
judging whether the fingerprint is a standard fingerprint in a preset fingerprint database;
if the judgment result is yes, executing the step of acquiring the angle formed by the fingerprint and the side edge of the mobile terminal;
and if the judgment result is negative, executing the step of controlling the automatic switching of the screen state of the mobile terminal according to the gravity sensor.
6. The method for switching horizontal and vertical screens according to claim 5, wherein the step of judging whether the fingerprint is a standard fingerprint in a preset fingerprint library further comprises the following steps:
collecting fingerprints and storing the fingerprints in the preset fingerprint database to serve as the standard fingerprints;
and collecting and storing the position information of the position of the standard fingerprint relative to the side edge of the mobile terminal when the angle is an acute angle or an obtuse angle.
7. A computer-readable storage medium, having a landscape screen switching program stored thereon, which when executed by a processor implements the steps of the landscape screen switching method according to any one of claims 4 to 6.
CN201710485018.9A 2017-06-23 2017-06-23 Horizontal and vertical screen switching method and mobile terminal Active CN107340958B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710485018.9A CN107340958B (en) 2017-06-23 2017-06-23 Horizontal and vertical screen switching method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710485018.9A CN107340958B (en) 2017-06-23 2017-06-23 Horizontal and vertical screen switching method and mobile terminal

Publications (2)

Publication Number Publication Date
CN107340958A CN107340958A (en) 2017-11-10
CN107340958B true CN107340958B (en) 2020-10-30

Family

ID=60221578

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710485018.9A Active CN107340958B (en) 2017-06-23 2017-06-23 Horizontal and vertical screen switching method and mobile terminal

Country Status (1)

Country Link
CN (1) CN107340958B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108170392A (en) * 2017-12-27 2018-06-15 努比亚技术有限公司 Double screen switching method, dual-screen mobile terminal and computer readable storage medium
CN110798568B (en) * 2019-09-30 2022-01-14 华为技术有限公司 Display control method of electronic equipment with folding screen and electronic equipment
CN113965645B (en) * 2021-09-17 2023-05-30 浪潮通用软件有限公司 Transverse and vertical screen switching method, equipment and medium based on mobile terminal

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103941985A (en) * 2014-04-02 2014-07-23 百度在线网络技术(北京)有限公司 Method and device used for switching screen modes
CN105843531A (en) * 2015-07-23 2016-08-10 维沃移动通信有限公司 Switching method and device for screen modes

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100879381B1 (en) * 2007-06-04 2009-01-20 테스텍 주식회사 Optical fingerprint acquisition apparatus using a prism
US10216286B2 (en) * 2012-03-06 2019-02-26 Todd E. Chornenky On-screen diagonal keyboard
CN103412647B (en) * 2013-08-13 2016-07-06 广东欧珀移动通信有限公司 The page display control method of a kind of recognition of face and mobile terminal
US20170032166A1 (en) * 2015-05-14 2017-02-02 Cross Match Technologies, Inc. Handheld biometric scanner device
CN105955632A (en) * 2016-04-19 2016-09-21 上海卓易科技股份有限公司 Horizontal and vertical screen rotation control method and device for handheld equipment
CN106648056A (en) * 2016-09-30 2017-05-10 宇龙计算机通信科技(深圳)有限公司 Method and device for switching between landscape display and portrait display of mobile terminal
CN106774859A (en) * 2016-11-29 2017-05-31 努比亚技术有限公司 Mobile terminal and its control method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103941985A (en) * 2014-04-02 2014-07-23 百度在线网络技术(北京)有限公司 Method and device used for switching screen modes
CN105843531A (en) * 2015-07-23 2016-08-10 维沃移动通信有限公司 Switching method and device for screen modes

Also Published As

Publication number Publication date
CN107340958A (en) 2017-11-10

Similar Documents

Publication Publication Date Title
CN108108081B (en) Information display method based on double-sided screen, mobile terminal and readable storage medium
CN107273035B (en) Application program recommendation method and mobile terminal
CN109144441B (en) Screen adjusting method, terminal and computer readable storage medium
CN107423238B (en) Screen projection connection method and device and computer readable storage medium
CN109471579B (en) Terminal screen information layout adjustment method and device, mobile terminal and storage medium
CN108184023B (en) Screen state control method, mobile terminal and computer readable storage medium
CN107862217B (en) Position information acquisition method, mobile terminal and computer storage medium
CN107832032B (en) Screen locking display method and mobile terminal
CN107861663B (en) Method and device for displaying dockbar under comprehensive screen
CN109375846B (en) Method and device for displaying breathing icon, mobile terminal and readable storage medium
CN108984063B (en) Desktop interaction regulation and control method and device and computer readable storage medium
CN108563388B (en) Screen operation method, mobile terminal and computer-readable storage medium
CN108334266B (en) Control method of flexible terminal, flexible terminal and computer readable storage medium
CN107729104B (en) Display method, mobile terminal and computer storage medium
CN107340958B (en) Horizontal and vertical screen switching method and mobile terminal
CN109491577B (en) Holding interaction method and device and computer readable storage medium
CN109683778B (en) Flexible screen control method and device and computer readable storage medium
CN109522276B (en) Application icon management method, terminal and computer-readable storage medium
CN108810262B (en) Application configuration method, terminal and computer readable storage medium
CN108762709B (en) Terminal control method, terminal and computer readable storage medium
CN108196768B (en) Mobile terminal turnover detection method, mobile terminal and computer readable storage medium
CN112604281A (en) Game visual field control method, mobile terminal and computer readable storage medium
CN110083294B (en) Screen capturing method, terminal and computer readable storage medium
CN109669616B (en) Side screen interaction control method and device and computer readable storage medium
CN109710168B (en) Screen touch method and device and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant