Patent ID: 9024877
Filing Date: 2015-05-05
Classification: G06F,H04M

Abstract:
1. A method for automatically switching a user interface of a handheld terminal device, comprising: obtaining a current state of the terminal device by using a first sensor, wherein the current state is a horizontally holding state or a vertically holding state; obtaining current trigger states of touch sensors of the terminal device, wherein the touch sensors are set on the back and/or a side of the terminal device; determining a current holding mode of the terminal device according to the current state of the terminal device and the current trigger states of the touch sensors; and switching a user interface to a user interface corresponding to the current holding mode of the terminal device, wherein determining the current holding mode of the terminal device according to the current state of the terminal device and the current trigger states of the touch sensors comprises: drawing a first sensing diagram according to a distribution of currently triggered touch sensors on the terminal device, wherein the first sensing diagram is a position distribution diagram of the currently triggered touch sensors; when the terminal device is in the horizontally holding state, comparing the first sensing diagram with set horizontally-holding sensing diagrams, and obtaining a horizontally-holding sensing diagram having a highest graphic similarity degree between the first sensing diagram and the set horizontally-holding sensing diagrams that is higher than a first preset value and wherein the set horizontally-holding sensing diagrams comprise position distribution diagrams of touch sensors which correspond to different holding modes when the terminal device is in the horizontally holding state; and determining that a holding mode corresponding to the horizontally-holding sensing diagram having the highest graphic similarity degree between the first sensing diagram and the set horizontally-holding sensing diagrams that is higher than the first preset value is the current holding mode of the terminal device; or when the terminal device is in the vertically holding state, comparing the first sensing diagram with set vertically-holding sensing diagrams, and obtaining a vertically-holding sensing diagram having a highest graphic similarity degree between the first sensing diagram and the set vertically-holding sensing diagrams that is higher than a second preset value, and wherein the set vertically-holding sensing diagrams comprise position distribution diagrams of touch sensors which correspond to different holding modes when the terminal device is in the vertically holding state; and determining that a holding mode corresponding to the vertically-holding sensing diagram having the highest graphic similarity degree between the first sensing diagram and the set vertically-holding sensing diagrams that is higher than the second preset value is the current holding mode of the terminal device.