Disclosure of Invention
In view of the above, embodiments of the present invention provide a screen display method, a mobile device, a computing device, and a computer storage medium, which overcome or at least partially solve the above problems.
According to an aspect of an embodiment of the present invention, there is provided a screen display method including: determining a turning action of the mobile device according to the motion sensor; determining that a first screen and a second screen of the mobile device are switched; performing a first operation on the first screen or the second screen as an operation face if the turning is turned counterclockwise; and if the turning is clockwise turning, performing a second operation different from the first operation on the first screen or the second screen of the operation surface.
In an optional manner, the mobile device is a dual-screen device, and the first screen and the second screen are arranged opposite to each other; or the mobile device is a folding screen device for outward display, and the first screen and the second screen are arranged in a folding mode.
In an alternative manner, the determining a flipping action of the mobile device according to the motion sensor includes: and if the motion sensor detects that the mobile equipment rotates clockwise or anticlockwise by a preset angle along a direction parallel to the frame of the mobile equipment, determining that the mobile equipment is turned over, wherein the preset angle is within a positive and negative preset range of 180 degrees.
In an alternative manner, the determining that the first screen and the second screen of the mobile device are switched includes: before the mobile equipment is turned over, determining that the first screen or the second screen is a holding surface, and the other screen is an operation surface; after the mobile device is turned over, if the first screen or the second screen is switched to be an operation surface and the other screen is switched to be a holding surface, it is determined that the first screen and the second screen of the mobile device are switched.
In an alternative mode, the performing a first operation on the first screen or the second screen as an operation surface includes: controlling the first screen or the second screen as an operation surface to be bright, and displaying the operation system of the current operation surface; and controlling the other screen as the holding surface to be off.
In an alternative mode, the performing a second operation different from the first operation on the first screen or the second screen of the operation panel includes: controlling the first screen or the second screen as an operation surface to be bright, and starting a camera function of an operating system running before the mobile equipment is turned over; and controlling the other screen as the holding surface to be off.
In an alternative mode, the starting of the camera function of the operating system running before the mobile device is turned over includes: and starting a camera function of a main camera of an operating system running before the mobile equipment is turned over.
In an optional manner, the starting a camera function of a main camera of an operating system running before the mobile device is turned over includes: if the main camera is positioned on the current operation surface, starting a self-timer mode; and if the main camera is positioned on the current holding surface, starting a normal photographing mode.
According to another aspect of the embodiments of the present invention, there is provided a mobile device, including: the overturning determining unit is used for determining the overturning action of the mobile equipment according to the motion sensor; a switching determination unit, configured to determine that the first screen and the second screen of the mobile device are switched; a first executing unit configured to execute a first operation on the first screen or the second screen as an operation surface if the turning is turned counterclockwise; a second execution unit configured to execute a second operation different from the first operation on the first screen or the second screen of the operation face if the flip is made as a clockwise flip.
According to another aspect of embodiments of the present invention, there is provided a computing device including: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction enables the processor to execute the steps of the screen display method.
According to another aspect of the embodiments of the present invention, there is provided a computer storage medium having at least one executable instruction stored therein, the executable instruction causing the processor to execute the steps of the screen display method described above.
The screen display method of the embodiment of the invention comprises the following steps; determining a turning action of the mobile device according to the motion sensor; determining that the first screen and the second screen of the mobile device are switched; performing a first operation on the first screen or the second screen as an operation face if the turning is turned counterclockwise; if the turning is clockwise turning, a second operation different from the first operation is executed on the first screen or the second screen of the operation surface, and different trigger events can be set according to the turning direction of the equipment, so that the operation habit of a user is better met, and the user experience is improved.
The foregoing description is only an overview of the technical solutions of the embodiments of the present invention, and the embodiments of the present invention can be implemented according to the content of the description in order to make the technical means of the embodiments of the present invention more clearly understood, and the detailed description of the present invention is provided below in order to make the foregoing and other objects, features, and advantages of the embodiments of the present invention more clearly understandable.
Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
Fig. 1 is a flowchart illustrating a screen display method according to an embodiment of the present invention, where the screen display method is applied to a mobile device. The mobile device 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. As shown in fig. 1, the screen display method includes:
step S11: a flipping action of the mobile device is determined from the motion sensor.
In the embodiment of the present invention, the mobile device may be a dual-screen device, and the first screen and the second screen are arranged opposite to each other; the mobile device can also be a folding screen device for outward display, and the first screen and the second screen are arranged in a folding mode.
Prior to step S11, the user turns on or wakes up the mobile device. Optionally, the authentication and unlocking may be performed at a certain position of the mobile device through a fingerprint or a face or any other manner, so as to turn on or wake up the mobile device. Then, as shown in fig. 2, the current holding surface and operation surface of the user are determined through the analysis of the contact area of the double-sided touch screen, and the display corresponding to the operation surface is automatically started. For a dual-sided screen or a foldable screen, and a mobile device with dual systems, one surface may be fixed to correspond to one operating system, and certainly, different surfaces may also apply the same operating system, which is not limited herein. If the first screen of the mobile equipment is judged to be a holding surface through the analysis of the contact area of the double-sided touch screen, and the screen is turned off; the second screen is an operation surface and displays an interface of a second operation system.
In step S11, if the motion sensor detects that the mobile device is rotated clockwise or counterclockwise by a preset angle in a direction parallel to the frame of the mobile device, it is determined that the mobile device has performed a flipping action, where the preset angle is within a positive and negative preset range of 180 degrees. In the embodiment of the invention, the rotation of the mobile device can be determined in real time by using the motion sensor of the mobile device. The motion sensor includes an acceleration sensor, a gyroscope, a geomagnetic sensor, and the like, which are not limited herein. As shown in fig. 3, assume that the longitudinal direction of the mobile device is the X-axis. If the mobile device is detected to be rotated clockwise or anticlockwise by a preset angle alpha along the X axis or an axis parallel to the X axis, such as the X' axis, the angle alpha is within the range of plus or minus 10 degrees of 180 degrees, such as 170 and 190 degrees, within a preset time, the mobile device is determined to be turned over. The preset time is preferably 1 second, but may be other shorter time, and is not limited herein.
Step S12: determining that the first screen and the second screen of the mobile device switch.
Specifically, before the mobile device is turned over, it is determined that the first screen or the second screen is a holding surface, and the other screen is an operation surface; after the mobile device is turned over, if the first screen or the second screen is switched to be an operation surface and the other screen is switched to be a holding surface, it is determined that the first screen and the second screen of the mobile device are switched.
In the embodiment of the invention, after the mobile equipment is determined to be turned, the current holding surface and the current operating surface of the mobile equipment are judged by continuing the analysis of the contact area of the double-sided touch screen, and then whether the current holding surface and the current operating surface of the mobile equipment are opposite to the holding surface and the current operating surface of the mobile equipment before turning is judged, if yes, the first screen and the second screen are switched, otherwise, the first screen and the second screen are not switched. For example, if the mobile device is turned over, the first screen is a holding surface, and the second screen is an operation surface; after the mobile device is turned over, the first screen is switched to be the operation surface, and the second screen is switched to be the holding surface, which indicates that the first screen and the second screen are switched. If the mobile device is turned over, the first screen is still a holding surface, and the second screen is still an operation surface, which indicates that although the mobile device is turned over, the user also rotates, if the user sits on a swivel chair to hold the device, the whole person rotates 180 degrees, and at this time, the mobile device is not turned over relative to the user, that is, the action of the user holding the mobile device is not changed.
Step S13: and if the turning is performed as counterclockwise turning, performing a first operation on the first screen or the second screen as an operation surface.
Specifically, controlling the first screen or the second screen as an operation surface to be bright, and displaying the operation system of the current operation surface; and controlling the other screen as the holding surface to be off. For example, before the mobile device is turned over, the first screen is a holding surface, corresponds to the first operating system, and is turned off; the second screen is an operation surface, and the bright screen displays the corresponding interface of the second operation system. After the mobile device is turned over, the first screen is switched to be an operation surface, and the interface of the first operating system is displayed in a bright screen mode, specifically, a main interface of the first operating system or an interface of a certain application program of a preset first operating system can be displayed, and the display is not limited herein; the second screen is switched to be a holding surface, and the screen is turned off corresponding to the second operating system. Therefore, the switching of the operating systems can be performed by turning over the mobile device, and the first screen and the second screen of the mobile device correspond to different operating systems respectively.
Step S14: and if the turning is clockwise turning, performing a second operation different from the first operation on the first screen or the second screen of the operation surface.
In step S14, controlling the first screen or the second screen as an operation surface to be bright, and starting a camera function of an operating system running before the mobile device is turned over; and controlling the other screen as the holding surface to be off. Specifically, the first screen or the second screen serving as an operation surface starts a camera function of a main camera of an operation system running before the mobile device is turned over. If the main camera is positioned on the current operation surface, starting a self-timer mode; and if the main camera is positioned on the current holding surface, starting a normal photographing mode. For example, before the mobile device is turned over, the first screen is a holding surface, corresponds to the first operating system, and is turned off; the second screen is an operation surface, and the bright screen displays the corresponding interface of the second operation system. After the mobile device is turned over, the first screen is switched to be the operation surface, and the camera function of the main camera of the second operation system is displayed in a bright screen mode.
In the embodiment of the present invention, it should be noted that when the flipping action is counterclockwise flipping, the first screen or the second screen serving as the operation surface may be controlled to be bright, and a camera function of an operation system running before the mobile device is flipped may be started. And when the turning action is clockwise turning, controlling the first screen or the second screen as the operation surface to display the operation system of the current operation surface in a bright screen mode. Other different events can also be specifically triggered when the turning action is anticlockwise turning or anticlockwise turning.
In the embodiment of the invention, if the mobile equipment responds to the operation of the user and is in a standby state or a closed state, the operation is finished, and the turning action of the mobile equipment is not responded.
The screen display method of the embodiment of the invention comprises the following steps; determining a turning action of the mobile device according to the motion sensor; determining that the first screen and the second screen of the mobile device are switched; performing a first operation on the first screen or the second screen as an operation face if the turning is turned counterclockwise; if the turning is clockwise turning, a second operation different from the first operation is executed on the first screen or the second screen of the operation surface, and different trigger events can be set according to the turning direction of the equipment, so that the operation habit of a user is better met, and the user experience is improved.
Fig. 4 is a schematic structural diagram of a mobile device according to an embodiment of the present invention, and as shown in fig. 4, the mobile device includes: a roll-over determination unit 41, a switching determination unit 42, a first execution unit 43, and a second execution unit 44.
The turning determining unit 41 is configured to determine a turning action of the mobile device according to the motion sensor; the switching determination unit 42 is configured to determine that the first screen and the second screen of the mobile device are switched; the first executing unit 43 is configured to execute a first operation on the first screen or the second screen as an operation surface if the flip action is counterclockwise flip; the second execution unit 44 is configured to execute a second operation different from the first operation on the first screen or the second screen of the operation panel if the flip is made as a clockwise flip.
In an optional manner, the mobile device is a dual-screen device, and the first screen and the second screen are arranged opposite to each other; or the mobile device is a folding screen device for outward display, and the first screen and the second screen are arranged in a folding mode.
In an alternative manner, the flipping determining unit 41 is configured to determine that the mobile device has flipped if the motion sensor detects that the mobile device is rotated clockwise or counterclockwise along a direction parallel to a frame of the mobile device by a preset angle, where the preset angle is within a positive and negative preset range of 180 degrees.
In an alternative manner, the handover determining unit 42 is configured to: before the mobile equipment is turned over, determining that the first screen or the second screen is a holding surface, and the other screen is an operation surface; after the mobile device is turned over, if the first screen or the second screen is switched to be an operation surface and the other screen is switched to be a holding surface, it is determined that the first screen and the second screen of the mobile device are switched.
In an alternative manner, the first execution unit 43 is configured to control the first screen or the second screen as an operation surface to be bright, and display an operation system of a current operation surface; and controlling the other screen as the holding surface to be off.
In an optional manner, the second execution unit 44 is configured to control the first screen or the second screen as an operation surface to be bright, and start a camera function of an operating system running before the mobile device is turned over; and controlling the other screen as the holding surface to be off.
In an alternative manner, the second execution unit 44 is configured to start a camera function of a main camera of an operating system running before the mobile device is turned over.
In an alternative manner, the second execution unit 44 is configured to: if the main camera is positioned on the current operation surface, starting a self-timer mode; and if the main camera is positioned on the current holding surface, starting a normal photographing mode.
The screen display method of the embodiment of the invention comprises the following steps; determining a turning action of the mobile device according to the motion sensor; determining that the first screen and the second screen of the mobile device are switched; performing a first operation on the first screen or the second screen as an operation face if the turning is turned counterclockwise; if the turning is clockwise turning, a second operation different from the first operation is executed on the first screen or the second screen of the operation surface, and different trigger events can be set according to the turning direction of the equipment, so that the operation habit of a user is better met, and the user experience is improved.
The embodiment of the invention provides a nonvolatile computer storage medium, wherein at least one executable instruction is stored in the computer storage medium, and the computer executable instruction can execute the screen display method in any method embodiment.
The executable instructions may be specifically configured to cause the processor to:
determining a turning action of the mobile device according to the motion sensor;
determining that a first screen and a second screen of the mobile device are switched;
performing a first operation on the first screen or the second screen as an operation face if the turning is turned counterclockwise;
and if the turning is clockwise turning, performing a second operation different from the first operation on the first screen or the second screen of the operation surface.
In an optional manner, the mobile device is a dual-screen device, and the first screen and the second screen are arranged opposite to each other; or the mobile device is a folding screen device for outward display, and the first screen and the second screen are arranged in a folding mode.
In an alternative, the executable instructions cause the processor to:
and if the motion sensor detects that the mobile equipment rotates clockwise or anticlockwise by a preset angle along a direction parallel to the frame of the mobile equipment, determining that the mobile equipment is turned over, wherein the preset angle is within a positive and negative preset range of 180 degrees.
In an alternative, the executable instructions cause the processor to:
before the mobile equipment is turned over, determining that the first screen or the second screen is a holding surface, and the other screen is an operation surface;
after the mobile device is turned over, if the first screen or the second screen is switched to be an operation surface and the other screen is switched to be a holding surface, it is determined that the first screen and the second screen of the mobile device are switched.
In an alternative, the executable instructions cause the processor to:
controlling the first screen or the second screen as an operation surface to be bright, and displaying the operation system of the current operation surface;
and controlling the other screen as the holding surface to be off.
In an alternative, the executable instructions cause the processor to:
controlling the first screen or the second screen as an operation surface to be bright, and starting a camera function of an operating system running before the mobile equipment is turned over;
and controlling the other screen as the holding surface to be off.
In an alternative, the executable instructions cause the processor to:
and starting a camera function of a main camera of an operating system running before the mobile equipment is turned over.
In an alternative, the executable instructions cause the processor to:
if the main camera is positioned on the current operation surface, starting a self-timer mode;
and if the main camera is positioned on the current holding surface, starting a normal photographing mode.
The screen display method of the embodiment of the invention comprises the following steps; determining a turning action of the mobile device according to the motion sensor; determining that the first screen and the second screen of the mobile device are switched; performing a first operation on the first screen or the second screen as an operation face if the turning is turned counterclockwise; if the turning is clockwise turning, a second operation different from the first operation is executed on the first screen or the second screen of the operation surface, and different trigger events can be set according to the turning direction of the equipment, so that the operation habit of a user is better met, and the user experience is improved.
Fig. 5 is a schematic structural diagram of an embodiment of the apparatus according to the present invention, and the specific embodiment of the present invention does not limit the specific implementation of the apparatus.
As shown in fig. 5, the apparatus may include: a processor (processor)502, a Communications Interface 504, a memory 506, and a communication bus 508.
Wherein: the processor 502, communication interface 504, and memory 506 communicate with one another via a communication bus 508. A communication interface 504 for communicating with network elements of other devices, such as clients or other servers. The processor 502 is configured to execute the program 510, and may specifically perform relevant steps in the above-described screen display method embodiment.
In particular, program 510 may include program code that includes computer operating instructions.
The processor 502 may be a central processing unit CPU, or an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to implement an embodiment of the present invention. The device includes one or more processors, which may be the same type of processor, such as one or more CPUs; or may be different types of processors such as one or more CPUs and one or more ASICs.
And a memory 506 for storing a program 510. The memory 506 may comprise high-speed RAM memory, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
The program 510 may specifically be used to cause the processor 502 to perform the following operations:
determining a turning action of the mobile device according to the motion sensor;
determining that a first screen and a second screen of the mobile device are switched;
performing a first operation on the first screen or the second screen as an operation face if the turning is turned counterclockwise;
and if the turning is clockwise turning, performing a second operation different from the first operation on the first screen or the second screen of the operation surface.
In an optional manner, the mobile device is a dual-screen device, and the first screen and the second screen are arranged opposite to each other; or the mobile device is a folding screen device for outward display, and the first screen and the second screen are arranged in a folding mode.
In an alternative, the program 510 causes the processor to:
and if the motion sensor detects that the mobile equipment rotates clockwise or anticlockwise by a preset angle along a direction parallel to the frame of the mobile equipment, determining that the mobile equipment is turned over, wherein the preset angle is within a positive and negative preset range of 180 degrees.
In an alternative, the program 510 causes the processor to:
before the mobile equipment is turned over, determining that the first screen or the second screen is a holding surface, and the other screen is an operation surface;
after the mobile device is turned over, if the first screen or the second screen is switched to be an operation surface and the other screen is switched to be a holding surface, it is determined that the first screen and the second screen of the mobile device are switched.
In an alternative, the program 510 causes the processor to:
controlling the first screen or the second screen as an operation surface to be bright, and displaying the operation system of the current operation surface;
and controlling the other screen as the holding surface to be off.
In an alternative, the program 510 causes the processor to:
controlling the first screen or the second screen as an operation surface to be bright, and starting a camera function of an operating system running before the mobile equipment is turned over;
and controlling the other screen as the holding surface to be off.
In an alternative, the program 510 causes the processor to:
and starting a camera function of a main camera of an operating system running before the mobile equipment is turned over.
In an alternative, the program 510 causes the processor to:
if the main camera is positioned on the current operation surface, starting a self-timer mode;
and if the main camera is positioned on the current holding surface, starting a normal photographing mode.
The screen display method of the embodiment of the invention comprises the following steps; determining a turning action of the mobile device according to the motion sensor; determining that the first screen and the second screen of the mobile device are switched; performing a first operation on the first screen or the second screen as an operation face if the turning is turned counterclockwise; if the turning is clockwise turning, a second operation different from the first operation is executed on the first screen or the second screen of the operation surface, and different trigger events can be set according to the turning direction of the equipment, so that the operation habit of a user is better met, and the user experience is improved.
The algorithms or displays presented herein are not inherently related to any particular computer, virtual system, or other apparatus. Various general purpose systems may also be used with the teachings herein. The required structure for constructing such a system will be apparent from the description above. In addition, embodiments of the present invention are not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the embodiments of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the invention and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Furthermore, those skilled in the art will appreciate that while some embodiments herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names. The steps in the above embodiments should not be construed as limiting the order of execution unless specified otherwise.