Movatterモバイル変換


[0]ホーム

URL:


CN108040179B - Screen switching method and related products - Google Patents

Screen switching method and related products
Download PDF

Info

Publication number
CN108040179B
CN108040179BCN201711424889.6ACN201711424889ACN108040179BCN 108040179 BCN108040179 BCN 108040179BCN 201711424889 ACN201711424889 ACN 201711424889ACN 108040179 BCN108040179 BCN 108040179B
Authority
CN
China
Prior art keywords
use state
electronic equipment
screen
special
shaped area
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.)
Expired - Fee Related
Application number
CN201711424889.6A
Other languages
Chinese (zh)
Other versions
CN108040179A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp LtdfiledCriticalGuangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201711424889.6ApriorityCriticalpatent/CN108040179B/en
Publication of CN108040179ApublicationCriticalpatent/CN108040179A/en
Application grantedgrantedCritical
Publication of CN108040179BpublicationCriticalpatent/CN108040179B/en
Expired - Fee Relatedlegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

The embodiment of the application discloses a screen switching method and a related product, wherein the method is applied to electronic equipment comprising a touch display screen, a control circuit for controlling the touch display screen and a memory, and the method comprises the following steps: acquiring a gravity acceleration value of the electronic equipment in the length direction of the electronic equipment; determining the use state of the electronic equipment based on the gravity acceleration value in the length direction, wherein the use state comprises a normal vertical screen use state and an inverted vertical screen use state; switching a screen of the electronic device based on the determined use state. The embodiment of the application is beneficial to improving the flexibility of screen switching of the electronic equipment and is convenient for users to use.

Description

Screen switching method and related product
Technical Field
The application relates to the technical field of electronic equipment, in particular to a screen switching method and a related product.
Background
With the popularization and application of smart phones in a large number, smart phones can support more and more applications and have more and more powerful functions, and smart phones develop towards diversification and individuation and become indispensable electronic products in user life.
Disclosure of Invention
The embodiment of the invention provides a screen switching method and a related product, aiming at improving the screen switching flexibility of electronic equipment and facilitating the use of a user.
In a first aspect, an embodiment of the present application provides an electronic device, which includes a touch display screen, a control circuit for controlling the touch display screen, and a memory;
the memory is used for storing a mapping relation between the gravity acceleration value and the use state of the electronic equipment;
the control circuit is used for acquiring a gravity acceleration value of the electronic equipment in the length direction of the electronic equipment; determining the use state of the electronic equipment based on the gravity acceleration value in the length direction, wherein the use state comprises a normal vertical screen use state and an inverted vertical screen use state; switching a screen of the electronic device based on the determined use state.
In a second aspect, an embodiment of the present application provides a screen switching method, where the screen switching method is applied to an electronic device, where the electronic device includes a touch display screen, a control circuit for controlling the touch display screen, and a memory, and the method includes:
acquiring a gravity acceleration value of the electronic equipment in the length direction of the electronic equipment;
determining the use state of the electronic equipment based on the gravity acceleration value in the length direction, wherein the use state comprises a normal vertical screen use state and an inverted vertical screen use state;
switching a screen of the electronic device based on the determined use state.
In a third aspect, an embodiment of the present application provides a screen switching apparatus, where the screen switching apparatus is applied to an electronic device, where the electronic device includes a touch display screen, a control circuit for controlling the touch display screen, and a memory, and the apparatus includes:
the acquisition unit is used for acquiring a gravity acceleration value of the electronic equipment in the length direction of the electronic equipment;
the determining unit is used for determining the use state of the electronic equipment based on the gravity acceleration value in the length direction, wherein the use state comprises a normal vertical screen use state and an inverted vertical screen use state;
and the switching unit is used for switching the screen of the electronic equipment based on the determined use state.
In a fourth aspect, an embodiment of the present application provides a screen switching method, where the screen switching method is applied to an electronic device, and the electronic device includes a touch display screen, a control circuit for controlling the touch display screen, and a memory; the method comprises the following steps:
the control circuit acquires a gravity acceleration value of the electronic equipment in the length direction of the electronic equipment;
the control circuit determines the use state of the electronic equipment based on the mapping relation between the gravity acceleration value in the length direction and the gravity acceleration value of the memory in the memory and the use state of the electronic equipment, wherein the use state comprises a normal vertical screen use state and an inverted vertical screen use state;
the control circuit switches the screen of the electronic device based on the determined use state.
In a fifth aspect, the present application provides an electronic device, including a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, and the programs include instructions for executing the steps in the second aspect of the present application.
In a sixth aspect, the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, where the computer program makes a computer perform some or all of the steps described in the second aspect of the present application, and the computer includes an electronic device.
In a seventh aspect, this application provides a computer program product, where the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to perform some or all of the steps as described in the second aspect of this application. The computer program product may be a software installation package, the computer comprising an electronic device.
In the embodiment provided by the application, the electronic device obtains a gravity acceleration value of the electronic device in the length direction of the electronic device, determines a use state of the electronic device based on the gravity acceleration value in the length direction, wherein the use state comprises a normal vertical screen use state and an inverted vertical screen use state, and switches the screen of the electronic device based on the determined use state. Therefore, the electronic equipment can switch the screen according to the gravity acceleration value in the length direction, so that the electronic equipment can be normally used in the normal vertical screen state and the inverted vertical screen state, the flexibility of screen switching is improved, and the use by a user is facilitated.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
FIG. 1 is a block diagram of the components of an electronic device disclosed in an embodiment of the present application;
FIG. 2 is a flowchart illustrating a screen switching method according to an embodiment of the present disclosure;
FIG. 2-1 is a schematic diagram of a three-axis gravity-sensitive chip according to an embodiment of the present disclosure;
fig. 2-2 is a schematic effect diagram of a touch display screen before switching according to an embodiment of the present disclosure;
fig. 2-3 are schematic diagrams illustrating an effect of a switched touch display screen according to an embodiment of the present disclosure;
fig. 2-4 are schematic diagrams illustrating effects of a touch display screen before switching according to an embodiment of the present disclosure;
fig. 2-5 are schematic diagrams illustrating an effect of a switched touch display screen according to an embodiment of the present disclosure;
FIG. 3 is a flow chart illustrating another screen switching method disclosed in an embodiment of the present application;
FIG. 4 is a flow chart illustrating another screen switching method disclosed in the embodiments of the present application;
FIG. 5 is a block diagram of a screen switching device according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of an electronic device disclosed in an embodiment of the present application.
Detailed Description
In order to make the technical solutions of the present invention better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," and the like in the description and claims of the present invention and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, operating system, article, or apparatus that comprises a list of steps or elements is not limited to those listed but may alternatively include other steps or elements not listed or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the invention. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
In order to better understand the screen switching method and the related product disclosed in the embodiments of the present application, the embodiments of the present application are described in detail below.
The electronic device according to the embodiment of the present application may include various handheld devices, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to a wireless modem, which have wireless communication functions, and various forms of User Equipment (UE), Mobile Stations (MS), terminal devices (terminal device), and the like. For convenience of description, the above-mentioned devices are collectively referred to as electronic devices.
Referring to fig. 1, fig. 1 is a schematic structural diagram of anelectronic device 100 according to an embodiment of the present invention, where theelectronic device 100 includes: atouch display screen 110, acontrol circuit 120 for controlling the touch display screen, and amemory 130;
in one embodiment, thetouch display screen 110 includes a shaped area 111 and a regular area 112 (shown in fig. 1); in one embodiment, thetouch display screen 110 may further include only regular regions (not shown).
Thememory 130 is configured to store a mapping relationship between the gravity acceleration value and the use state of the electronic device;
thecontrol circuit 120 is configured to obtain a gravitational acceleration value of the electronic device in a length direction of the electronic device; determining the use state of the electronic equipment based on the gravity acceleration value in the length direction, wherein the use state comprises a normal vertical screen use state and an inverted vertical screen use state; switching a screen of the electronic device based on the determined use state.
Thememory 130 may be used to store software programs and modules, and thecontrol circuit 120 executes various functional applications and data processing of the electronic device by operating the software programs and modules stored in the memory. The memory 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 for at least one function, and the like; the storage data area may store data created according to use of the electronic device, and the like. Further, the memory 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.
Thecontrol circuit 120 is a control center of the electronic device, and is connected to various parts of the electronic device through various interfaces and lines, and executes various functions and processes data of the electronic device by running or executing software programs and/or modules stored in the memory and calling data stored in the memory, thereby performing overall monitoring of the electronic device.
In one embodiment, thetouch display screen 110 includes a shaped area 111 and aregular area 112, i.e. a so-called "shaped screen", wherein the shaped area includes a first shaped area and a second shaped area which are symmetrically arranged. The special-shaped area 111 and theregular area 112 form thetouch display screen 110, that is, the functions of the special-shaped area 111 and theregular area 112 are the same, that is, the touch operation can be detected, and the content display can also be performed.
It can be seen that, in this example, since the first special-shaped area and the second special-shaped area are symmetrically disposed on the cover plate, the electronic device can also symmetrically dispose the first component set and the second component set correspondingly
The first set of functional components and the second set of functional components each include a speaker and a microphone;
the first set of functional components or the second set of functional components further comprises at least one of: the device comprises a front camera, a face recognition device, a proximity functional component and an ambient light functional component.
It can be seen that, in this example, because electronic equipment symmetry is provided with functional unit to support the telephone function in different regions, no matter which region is close to the human ear, can both adapt and support telephone function, and because many places are provided with the speaker, still be favorable to building three-dimensional sound field, improve the audio playback effect.
In another embodiment, thetouch display screen 110 may also include only regular areas 112 (not shown), so-called "full-screen".
It can be seen that the electronic device provided by the embodiment of the present application includes a touch display screen, a control circuit for controlling the touch display screen, and a memory, and in the embodiment provided by the present application, the electronic device acquires a gravity acceleration value of the electronic device in a length direction of the electronic device, determines a use state of the electronic device based on the gravity acceleration value in the length direction, where the use state includes a normal vertical screen use state and an inverted vertical screen use state, and switches a screen of the electronic device based on the determined use state. Therefore, the electronic equipment can switch the screen according to the gravity acceleration value in the length direction, so that the electronic equipment can be normally used in the normal vertical screen state and the inverted vertical screen state, the flexibility of screen switching is improved, and the use by a user is facilitated.
In an embodiment, when thecontrol circuit 120 is configured to determine the usage status of the electronic device based on the gravity acceleration value in the length direction, the control circuit is specifically configured to:
if the gravity acceleration value of the electronic equipment in the length direction of the electronic equipment is within a first preset range, determining that the use state of the electronic equipment is a normal vertical screen use state; and if the gravity acceleration value of the electronic equipment in the length direction of the electronic equipment is within a second preset range, determining that the use state of the electronic equipment is the inverted vertical screen use state.
In an embodiment, when thecontrol circuit 120 is configured to switch the screen of the electronic device based on the determined usage state, the control circuit is specifically configured to:
and controlling the touch display screen to display wallpaper corresponding to the use state based on the determined use state, and displaying an application icon corresponding to the use state on the wallpaper.
In one embodiment, after the step of determining the usage state of the electronic device based on the gravity acceleration value in the length direction, thecontrol circuit 120 is further configured to:
and switching the operating system of the electronic equipment to the operating system corresponding to the use state based on the determined use state.
In one possible example, thetouch display screen 110 includes a touch screen and a display screen, and the display screen includes an organic light emitting diode display screen OLED.
Referring to fig. 2, fig. 2 is a schematic flowchart of a screen switching method according to an embodiment of the present disclosure, where the screen switching method is applied to an electronic device including a touch display screen, a control circuit for controlling the touch display screen, and a memory. As shown in fig. 2, the screen switching method in the embodiment of the present application includes the following steps:
s201, acquiring a gravity acceleration value of the electronic equipment in the length direction of the electronic equipment.
The screen switching method provided by the embodiment of the application is applied to electronic equipment with a touch display screen in a full screen shape or a special-shaped screen shape, wherein the full screen refers to electronic equipment with an ultrahigh screen ratio (ideally, the full screen refers to 100% of the front screen ratio of the electronic equipment), and the special-shaped screen refers to a cut-off part on the basis of the full screen and is used for placing a front camera, a face recognition device, a proximity functional component, an ambient light functional component and the like.
In one embodiment, the special-shaped screen in the embodiment of the application can cut off two parts symmetrically on the basis of the whole screen. Because the electronic equipment symmetry is provided with functional assembly to support the telephone function in different regions, no matter which region is close to the human ear promptly, both can the adaptation support telephone function, and because many places position is provided with the speaker, still be favorable to building three-dimensional sound field, improve the audio playback effect.
The electronic device may determine a gravitational acceleration value of the electronic device in a length direction of the electronic device through a built-in three-axis gravity sensing chip, and the specific principle is shown in fig. 2-1. The three-axis gravity sensing chip can measure gravity acceleration values in three directions of an X axis, a Y axis and a Z axis respectively, wherein the X axis and the Y axis are parallel to the plane of the electronic equipment, the X axis is the width direction of the electronic equipment, the Y axis is the length direction of the electronic equipment, and the Z axis is perpendicular to the plane of the electronic equipment.
When a touch display screen of the electronic equipment is upwards and horizontally placed on a desktop, the gravity acceleration values in the X-axis direction, the Y-axis direction and the Z-axis direction are respectively 0, 0 and-9.8 (the gravity acceleration is 9.8);
when a touch display screen of the electronic equipment is horizontally placed on a desktop downwards, the gravity acceleration values in the X axis direction, the Y axis direction and the Z axis direction are respectively 0, 0 and 9.8;
when the touch display screen of the electronic equipment is vertically placed on a desktop, the gravity acceleration values in the X axis direction, the Y axis direction and the Z axis direction are respectively 0, -9.8 and 0 or 0, 9.8 and 0.
S202, based on the gravity acceleration value in the length direction, the electronic equipment determines the use state of the electronic equipment, wherein the use state comprises a normal vertical screen use state and an inverted vertical screen use state.
When the electronic equipment determines that the gravity acceleration values of the electronic equipment in the X axis, the Y axis and the Z axis are respectively 0, -9.8 and 0 through the built-in three-axis gravity sensing chip, the use state of the electronic equipment can be determined to be a normal and vertical screen use state;
when the electronic equipment determines that the gravity acceleration values of the electronic equipment in the X axis, the Y axis and the Z axis are 0, 9.8 and 0 respectively through the built-in three-axis gravity sensing chip, the use state of the electronic equipment can be determined to be the inverted vertical screen use state.
S203, the electronic equipment switches the screen of the electronic equipment based on the determined using state.
Specifically, the electronic device switches the display direction of the display content displayed on the electronic device based on the determined use state. Specifically, reference may be made to fig. 2-2 to fig. 2-5, where fig. 2-2 and fig. 2-4 are schematic diagrams illustrating an effect of a touch display screen before switching disclosed in an embodiment of the present application, and fig. 2-3 and fig. 2-5 are schematic diagrams illustrating an effect of a touch display screen after switching disclosed in an embodiment of the present application.
It can be seen that the screen switching method provided by the embodiment of the present application is applied to an electronic device including a touch display screen, a control circuit for controlling the touch display screen, and a memory, in the embodiment provided by the present application, the electronic device acquires a gravity acceleration value of the electronic device in a length direction of the electronic device, determines a use state of the electronic device based on the gravity acceleration value in the length direction, where the use state includes a normal-vertical screen use state and an inverted-vertical screen use state, and switches a screen of the electronic device based on the determined use state. Therefore, the electronic equipment can switch the screen according to the gravity acceleration value in the length direction, so that the electronic equipment can be normally used in the normal vertical screen state and the inverted vertical screen state, the flexibility of screen switching is improved, and the use by a user is facilitated.
In one embodiment, the specific implementation manner of the electronic device determining the use state of the electronic device based on the gravity acceleration value in the length direction may be:
if the gravity acceleration value of the electronic equipment in the length direction of the electronic equipment is within a first preset range, determining that the use state of the electronic equipment is a normal vertical screen use state;
and if the gravity acceleration value of the electronic equipment in the length direction of the electronic equipment is within a second preset range, determining that the use state of the electronic equipment is the inverted vertical screen use state.
In one embodiment, the specific implementation manner of the electronic device to switch the screen of the electronic device based on the determined use state may be:
displaying wallpaper corresponding to the use state based on the determined use state; and displaying an application icon corresponding to the use state on the wallpaper.
Specifically, the electronic device may correspond to different wallpapers in different use states, based on the determined use state, display a wallpaper corresponding to the use state, and display an application icon corresponding to the use state on the wallpaper, where the different wallpapers may be used to remind that the use state of the electronic device has changed. Or the electronic device may correspond to the same wallpaper in different use states, adjust the display direction of the wallpaper based on the determined use state, and adjust the display direction of the application icon of each application on the wallpaper, so that the current wallpaper and application icon are adapted to the use state.
In one embodiment, after the electronic device determines the use state of the electronic device based on the gravity acceleration value in the length direction, the following operations may be further performed:
and switching the operating system of the electronic equipment to the operating system corresponding to the use state based on the determined use state.
Specifically, the electronic device may correspond to different operating systems in the normal vertical screen use state and the inverted vertical screen use state, for example, the normal vertical screen use state corresponds to the first operating system and the inverted vertical screen use state corresponds to the second operating system, and the first operating system and the second operating system may have different application programs installed thereon, or the first operating system and the second operating system store different settings of the user.
In one embodiment, the shaped screen comprises a first shaped area, a second shaped area and a regular area, the first shaped area and the second shaped area being symmetrical.
Referring to fig. 3, fig. 3 is a schematic flow chart of another screen switching method provided in the embodiment of the present application, where the screen switching method in the embodiment of the present application is applied to an electronic device including a touch display screen, a control circuit for controlling the touch display screen, and a memory. As shown in fig. 3, the screen switching method in the embodiment of the present application includes the following steps:
s301, acquiring a gravity acceleration value of the electronic equipment in the length direction of the electronic equipment.
The special-shaped screen comprises a first special-shaped area, a second special-shaped area and a regular area, wherein the first special-shaped area and the second special-shaped area are symmetrical.
S302, if the gravity acceleration value of the electronic equipment in the length direction of the electronic equipment is within a first preset range, determining that the use state of the electronic equipment is a normal vertical screen use state.
S303, if the gravity acceleration value of the electronic equipment in the length direction of the electronic equipment is within a second preset range, determining that the use state of the electronic equipment is an inverted vertical screen use state.
Wherein, after determining the usage status, the electronic device may perform steps S304 to S305, or perform step S306.
S304, displaying the wallpaper corresponding to the use state based on the determined use state.
And S305, displaying an application icon corresponding to the use state on the wallpaper.
S306, switching the operating system of the electronic equipment to the operating system corresponding to the use state based on the determined use state.
It can be seen that the screen switching method provided by the embodiment of the present application is applied to an electronic device including a touch display screen, a control circuit for controlling the touch display screen, and a memory, in the embodiment provided by the present application, the electronic device acquires a gravity acceleration value of the electronic device in a length direction of the electronic device, determines a use state of the electronic device based on the gravity acceleration value in the length direction, where the use state includes a normal-vertical screen use state and an inverted-vertical screen use state, and switches a screen of the electronic device based on the determined use state. Therefore, the electronic equipment can switch the screen according to the gravity acceleration value in the length direction, so that the electronic equipment can be normally used in the normal vertical screen state and the inverted vertical screen state, the flexibility of screen switching is improved, and the use by a user is facilitated.
Referring to fig. 4, fig. 4 is a schematic flow chart of another screen switching method provided in the embodiment of the present application, which is applied to an electronic device including a touch display screen, a control circuit for controlling the touch display screen, and a memory, consistent with the embodiment shown in fig. 2 or fig. 3. As shown in fig. 4, the screen switching method in the embodiment of the present application includes the following steps:
s401, the control circuit obtains a gravity acceleration value of the electronic equipment in the length direction of the electronic equipment.
S402, the control circuit determines the use state of the electronic equipment based on the mapping relation between the gravity acceleration value in the length direction and the gravity acceleration value of the memory in the memory and the use state of the electronic equipment, wherein the use state comprises a normal vertical screen use state and an inverted vertical screen use state.
And S403, the control circuit switches the screen of the electronic equipment based on the determined use state.
In one embodiment, the specific implementation manner of the control circuit determining the use state of the electronic device based on the mapping relationship between the gravity acceleration value in the length direction and the gravity acceleration value stored in the memory and the use state of the electronic device may be:
if the gravity acceleration value of the electronic equipment in the length direction of the electronic equipment is within a first preset range, the control circuit determines that the use state of the electronic equipment is a normal vertical screen use state;
and if the gravity acceleration value of the electronic equipment in the length direction of the electronic equipment is within a second preset range, the control circuit determines that the use state of the electronic equipment is the inverted vertical screen use state.
In one embodiment, the specific implementation manner of the control circuit switching the screen of the electronic device based on the determined use state may be:
displaying wallpaper corresponding to the use state based on the determined use state; and displaying an application icon corresponding to the use state on the wallpaper.
In one embodiment, the control circuit determines the usage state of the electronic device based on the mapping relationship between the gravity acceleration value in the length direction and the gravity acceleration value stored in the memory and the usage state of the electronic device, and may further perform the following operations:
and switching the operating system of the electronic equipment to the operating system corresponding to the use state based on the determined use state.
In one embodiment, the shaped screen comprises a first shaped area, a second shaped area and a regular area, the first shaped area and the second shaped area being symmetrical.
It can be seen that the screen switching method provided by the embodiment of the present application is applied to an electronic device including a touch display screen, a control circuit for controlling the touch display screen, and a memory, in the embodiment provided by the present application, the electronic device acquires a gravity acceleration value of the electronic device in a length direction of the electronic device, determines a use state of the electronic device based on the gravity acceleration value in the length direction, where the use state includes a normal-vertical screen use state and an inverted-vertical screen use state, and switches a screen of the electronic device based on the determined use state. Therefore, the electronic equipment can switch the screen according to the gravity acceleration value in the length direction, so that the electronic equipment can be normally used in the normal vertical screen state and the inverted vertical screen state, the flexibility of screen switching is improved, and the use by a user is facilitated.
The following is an embodiment of the apparatus according to the present invention, which is used to execute the method implemented by the embodiment of the method according to the present invention, and the screen switching apparatus is applied to an electronic device including a touch display screen, a control circuit for controlling the touch display screen, and a memory. Referring to fig. 5, fig. 5 is a block diagram of a unit composition of a screen switching device disclosed in an embodiment of the present application, and as shown in fig. 5, the screen switching device may include an obtainingunit 501, a determiningunit 502, and aswitching unit 503, where:
an obtainingunit 501, configured to obtain a gravitational acceleration value of the electronic device in a length direction of the electronic device;
the obtainingunit 501 may be a three-axis gravity acceleration sensing chip or a gyroscope, and the embodiment of the present application is not limited.
A determiningunit 502, configured to determine a usage state of the electronic device based on the gravity acceleration value in the length direction, where the usage state includes a normal vertical screen usage state and an inverted vertical screen usage state;
aswitching unit 503, configured to switch a screen of the electronic device based on the determined usage state.
The determiningunit 502 and theswitching unit 503 may be a processor, a circuit, or the like, and the embodiment of the present application is not limited.
In an embodiment, the determiningunit 502 is specifically configured to:
if the gravity acceleration value of the electronic equipment in the length direction of the electronic equipment is within a first preset range, determining that the use state of the electronic equipment is a normal vertical screen use state;
and if the gravity acceleration value of the electronic equipment in the length direction of the electronic equipment is within a second preset range, determining that the use state of the electronic equipment is the inverted vertical screen use state.
In an embodiment, theswitching unit 503 is specifically configured to:
displaying wallpaper corresponding to the use state based on the determined use state;
and displaying an application icon corresponding to the use state on the wallpaper.
In an embodiment, theswitching unit 503 is further configured to:
and switching the operating system of the electronic equipment to the operating system corresponding to the use state based on the determined use state.
In one embodiment, the shaped screen comprises a first shaped area, a second shaped area and a regular area, the first shaped area and the second shaped area being symmetrical.
Specifically, the specific implementation of each unit may refer to the description of the relevant steps in the embodiments corresponding to fig. 2 to fig. 4, which is not described herein again.
It should be noted that the screen switching device described in the embodiment of the present invention is presented in the form of a functional unit. The term "unit" as used herein is to be understood in its broadest possible sense, and objects used to implement the functions described by the respective "unit" may be, for example, an integrated circuit ASIC, a single circuit, a processor (shared, dedicated, or chipset) and memory that execute one or more software or firmware programs, a combinational logic circuit, and/or other suitable components that provide the described functionality.
It can be seen that the screen switching device provided by the embodiment of the application is applied to an electronic device including a touch display screen, a control circuit for controlling the touch display screen, and a memory. In the embodiment provided by the application, the screen switching device acquires a gravity acceleration value of the electronic equipment in the length direction of the electronic equipment, determines the use state of the electronic equipment based on the gravity acceleration value in the length direction, the use state comprises a normal vertical screen use state and an inverted vertical screen use state, and switches the screen of the electronic equipment based on the determined use state. Therefore, the electronic equipment can switch the screen according to the gravity acceleration value in the length direction, so that the electronic equipment can be normally used in the normal vertical screen state and the inverted vertical screen state, the flexibility of screen switching is improved, and the use by a user is facilitated.
In accordance with the embodiments shown in fig. 2, fig. 3, and fig. 4, please refer to fig. 6, and fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, where the electronic device includes a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, and the programs include instructions for performing the following steps;
acquiring a gravity acceleration value of the electronic equipment in the length direction of the electronic equipment;
determining the use state of the electronic equipment based on the gravity acceleration value in the length direction, wherein the use state comprises a normal vertical screen use state and an inverted vertical screen use state;
switching a screen of the electronic device based on the determined use state.
In one embodiment, in determining the usage state of the electronic device based on the gravitational acceleration value in the length direction, the instructions in the program are specifically configured to:
if the gravity acceleration value of the electronic equipment in the length direction of the electronic equipment is within a first preset range, determining that the use state of the electronic equipment is a normal vertical screen use state;
and if the gravity acceleration value of the electronic equipment in the length direction of the electronic equipment is within a second preset range, determining that the use state of the electronic equipment is the inverted vertical screen use state.
In one embodiment, in switching the screen of the electronic device based on the determined usage state, the instructions in the program are specifically configured to perform the following operations:
displaying wallpaper corresponding to the use state based on the determined use state;
and displaying an application icon corresponding to the use state on the wallpaper.
In one embodiment, the program further comprises instructions for:
and switching the operating system of the electronic equipment to the operating system corresponding to the use state based on the determined use state.
In one embodiment, the shaped screen includes a first shaped area name, a second shaped area, and a regular area, the first shaped area and the second shaped area being symmetrical.
Specifically, the specific implementation of each unit may refer to the description of the relevant steps in the embodiments corresponding to fig. 2 to fig. 4, which is not described herein again.
It can be seen that the screen switching method provided by the embodiment of the application is applied to an electronic device comprising a touch display screen, a control circuit for controlling the touch display screen, and a memory. In the embodiment provided by the application, the electronic equipment acquires the gravity acceleration value of the electronic equipment in the length direction of the electronic equipment, determines the use state of the electronic equipment based on the gravity acceleration value in the length direction, the use state comprises a normal vertical screen use state and an inverted vertical screen use state, and switches the screen of the electronic equipment based on the determined use state. Therefore, the electronic equipment can switch the screen according to the gravity acceleration value in the length direction, so that the electronic equipment can be normally used in the normal vertical screen state and the inverted vertical screen state, the flexibility of screen switching is improved, and the use by a user is facilitated.
Embodiments of the present application also provide a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute part or all of the steps of any one of the screen switching methods as described in the above method embodiments.
The embodiment of the present application further provides a computer storage medium, where the computer storage medium may store a program, and the program includes, when executed, some or all of the steps of any one of the screen switching methods described in the above method embodiments.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another operating system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a memory and includes several instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned memory comprises: various media capable of storing program codes, such as a usb disk, a read-only memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and the like.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: a flash disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic or optical disk, and the like.
The foregoing embodiments of the present invention have been described in detail, and the principles and embodiments of the present invention are explained herein by using specific examples, which are only used to help understand the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (9)

the control circuit is used for acquiring a gravity acceleration value of the electronic equipment in the length direction of the electronic equipment; determining the use state of the electronic equipment based on the gravity acceleration value in the length direction, wherein the use state comprises a normal vertical screen use state and an inverted vertical screen use state; switching an operating system of the electronic equipment to an operating system corresponding to the use state based on the determined use state; the electronic equipment is provided with different operating systems corresponding to the normal vertical screen using state and the reverse vertical screen using state, and the different operating systems store different settings of a user; switching a screen of the electronic device based on the determined use state, including: controlling the touch display screen to display wallpaper corresponding to the use state based on the determined use state, and displaying an application icon corresponding to the use state on the wallpaper;
CN201711424889.6A2017-12-252017-12-25 Screen switching method and related productsExpired - Fee RelatedCN108040179B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201711424889.6ACN108040179B (en)2017-12-252017-12-25 Screen switching method and related products

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201711424889.6ACN108040179B (en)2017-12-252017-12-25 Screen switching method and related products

Publications (2)

Publication NumberPublication Date
CN108040179A CN108040179A (en)2018-05-15
CN108040179Btrue CN108040179B (en)2021-02-09

Family

ID=62101135

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201711424889.6AExpired - Fee RelatedCN108040179B (en)2017-12-252017-12-25 Screen switching method and related products

Country Status (1)

CountryLink
CN (1)CN108040179B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN109189244B (en)*2018-08-022020-07-07珠海格力电器股份有限公司Terminal display method and device, terminal and readable storage medium
CN109710150B (en)*2018-12-252021-02-12维沃移动通信有限公司Key control method and terminal

Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN104182191A (en)*2014-08-062014-12-03深圳市同洲电子股份有限公司Control method and control terminal for screen content
CN105260093A (en)*2015-09-152016-01-20广东欧珀移动通信有限公司Method and device for intelligently setting screen rotation and mobile terminal
CN105630595A (en)*2015-12-212016-06-01联想(北京)有限公司Information processing method and electronic equipment

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101998693A (en)*2009-08-192011-03-30深圳富泰宏精密工业有限公司Mobile telephone
CN103428350B (en)*2012-05-232015-05-20希姆通信息技术(上海)有限公司Handheld terminal and method for judging posture of handheld terminal
WO2014113951A1 (en)*2013-01-242014-07-31华为终端有限公司Method for determining screen display mode and terminal device
CN103294358B (en)*2013-05-172016-12-28小米科技有限责任公司A kind of control the method for screen rotation, device and equipment
CN104978115B (en)*2014-04-022019-09-20腾讯科技(深圳)有限公司Content display method and device
CN104038589A (en)*2014-06-042014-09-10朱良学Mobile phone with symmetrical user experience and IO (Input Output) device switching method thereof
JP2016031439A (en)*2014-07-282016-03-07ソニー株式会社Information processing apparatus and information processing method, computer program, and image display system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN104182191A (en)*2014-08-062014-12-03深圳市同洲电子股份有限公司Control method and control terminal for screen content
CN105260093A (en)*2015-09-152016-01-20广东欧珀移动通信有限公司Method and device for intelligently setting screen rotation and mobile terminal
CN105630595A (en)*2015-12-212016-06-01联想(北京)有限公司Information processing method and electronic equipment

Also Published As

Publication numberPublication date
CN108040179A (en)2018-05-15

Similar Documents

PublicationPublication DateTitle
EP2869594B1 (en)Method and device for controlling terminal by using headset wire, and apparatus
CN108021306B (en) Application interface display method and related equipment
US10191645B2 (en)Controlling a touch panel display during scrolling operations
CN106453829B (en) Method and device for detecting drop height
CN108170356B (en)Application split screen method and related product
CN108111687B (en)Display control method and related product
CN108153503B (en)Display control method and related product
CN106453830A (en) A fall detection method and device
JP2019510252A (en) Method for displaying a plurality of application windows on a mobile terminal, and mobile terminal
CN106452644B (en)playing control method, device and terminal
CN108646970A (en)Display control method and related product
CN106155557A (en) A virtual button display method and mobile terminal
CN103581438A (en)Method and terminal for switching dual-calling states
CN108040179B (en) Screen switching method and related products
CN108121641A (en)State information display method and relevant device
KR20190008949A (en) A touch response method and apparatus for use in a touch panel and a terminal thereof
CN106249992A (en) A web page control method and mobile terminal
CN108108078A (en)Electronic equipment, display control method and Related product
CN103412707B (en)Method, device and equipment that a kind of display box is shown
CN108896865B (en) Automobile fuse determination method, device and storage medium
CN106057213B (en)A kind of method and apparatus of display voice pitch data
CN108108095B (en) Electronic device, screenshot method and related products
CN103645800A (en)Method and device for switching control functions of voice control units, and terminal
CN106909272B (en) A display control method and mobile terminal
CN108184015A (en)Special-shaped area display method and related product

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
CB02Change of applicant information

Address after:Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after:GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before:Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before:GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CB02Change of applicant information
GR01Patent grant
GR01Patent grant
CF01Termination of patent right due to non-payment of annual fee

Granted publication date:20210209

CF01Termination of patent right due to non-payment of annual fee

[8]ページ先頭

©2009-2025 Movatter.jp