CN112948037B - Application display direction control method, system, equipment and readable storage medium - Google Patents

Application display direction control method, system, equipment and readable storage medium Download PDF

Info

Publication number
CN112948037B
CN112948037B CN202110181595.5A CN202110181595A CN112948037B CN 112948037 B CN112948037 B CN 112948037B CN 202110181595 A CN202110181595 A CN 202110181595A CN 112948037 B CN112948037 B CN 112948037B
Authority
CN
China
Prior art keywords
application
display direction
fixed
display
current display
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
CN202110181595.5A
Other languages
Chinese (zh)
Other versions
CN112948037A (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.)
Shenzhen Huiwei Intelligent Technology Inc
Original Assignee
Shenzhen Huiwei Intelligent Technology Inc
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 Shenzhen Huiwei Intelligent Technology Inc filed Critical Shenzhen Huiwei Intelligent Technology Inc
Priority to CN202110181595.5A priority Critical patent/CN112948037B/en
Publication of CN112948037A publication Critical patent/CN112948037A/en
Application granted granted Critical
Publication of CN112948037B publication Critical patent/CN112948037B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses an application display direction control method, a system, equipment and a readable storage medium, wherein the invention opens an application based on an opening instruction by receiving the opening instruction of the application, then obtains a fixed direction of the application, and takes the fixed direction as an application display direction of the application, wherein the fixed direction comprises a current display direction of the system or a setting direction of the application; therefore, the problem of disordered application display caused by mismatching of the application self direction and the system direction is avoided, and the control method of the application display direction is simple, is suitable for various different applications, and improves user experience.

Description

Application display direction control method, system, equipment and readable storage medium
Technical Field
The present invention relates to the field of application technologies, and in particular, to an application display direction control method, system, device, and readable storage medium
Background
At present, the display direction of an application is controlled by the application itself and the system direction together, if the application does not set the direction, the display direction will default to the current display direction of the system, and at this time, the display direction of the application will rotate along with the device, but in some situations, the device cannot rotate, for example, the device has a sensor, or the sensor is damaged, so that the device cannot rotate, if the device is in a horizontal screen display, but an application with a vertical screen display direction is installed, the display of the application will be disordered.
Disclosure of Invention
The invention mainly aims to provide an application display direction control method, an application display direction control system, application display direction control equipment and a readable storage medium, and aims to solve the technical problem of application display disorder caused by mismatching of an application direction and a system direction.
In order to achieve the above object, the present invention provides an application display direction control method, including the steps of:
receiving an application opening instruction, and opening an application based on the opening instruction;
and acquiring a fixed direction of the application, and taking the fixed direction as an application display direction of the application, wherein the fixed direction comprises a current display direction of a system or a setting direction of the application.
Further, the step of obtaining the fixed direction of the application includes:
detecting whether an application has a setting direction;
if the application has a setting direction, acquiring the setting direction, and taking the setting direction as the fixed direction; or alternatively, the first and second heat exchangers may be,
and if the application does not have the setting direction, acquiring the current display direction of the system, and taking the current display direction as the fixed direction.
Further, the step of obtaining the fixed direction of the application includes:
acquiring the current display direction of the system;
detecting whether the current display direction is a horizontal screen direction, and if the current display direction is the horizontal screen direction, taking the horizontal screen direction as the fixed direction; or alternatively, the first and second heat exchangers may be,
and detecting whether the current display direction is a vertical screen direction, and if the current display direction is the vertical screen direction, taking the vertical screen direction as the fixed direction.
Further, the step of obtaining the fixed direction of the application includes:
detecting the state of a preset button;
and if the state of the preset button is a first state, acquiring the current display direction of the system, and taking the current display direction as the fixed direction.
Further, after the step of detecting the state of the preset button, the application display direction control method includes:
if the state of the preset button is the second state, executing the steps:
detecting whether an application has a setting direction;
if the application has a setting direction, acquiring the setting direction, and taking the setting direction as the fixed direction; or alternatively, the first and second heat exchangers may be,
and if the application does not have the setting direction, acquiring the current display direction of the system, and taking the current display direction as the fixed direction.
Further, the step of obtaining the fixed direction of the application includes:
acquiring an application package name of the application;
searching a fixed direction corresponding to the application package name in a preset configuration file.
Further, the application display direction control method further includes:
receiving an adding instruction of a user, and adding an option with a fixed direction in an application list based on the adding instruction;
and receiving a selection instruction of a user, and setting a fixed direction of each application based on the selection instruction.
In addition, to achieve the above object, the present invention also provides an application display direction control system, including:
the acquisition module is used for receiving an application opening instruction and opening the application based on the opening instruction;
the display module is used for acquiring a fixed direction of an application and taking the fixed direction as an application display direction of the application, wherein the fixed direction comprises a current display direction of a system or a setting direction of the application.
In addition, in order to achieve the above object, the present invention also provides an application display direction control apparatus including: the display control system comprises a memory, a processor and an application display direction control program stored in the memory and capable of running on the processor, wherein the application display direction control program realizes the steps of the application display direction control method when being executed by the processor.
In addition, in order to achieve the above object, the present invention also provides a readable storage medium having stored thereon an application display direction control program which, when executed by a processor, implements the steps of the application display direction control method as described above.
According to the method, the device and the system, the application is opened based on an opening instruction by receiving the application opening instruction, then the fixed direction of the application is obtained, and the fixed direction is used as the application display direction of the application, wherein the fixed direction comprises the current display direction of the system or the setting direction of the application; therefore, the problem of disordered application display caused by mismatching of the application self direction and the system direction is avoided, and the control method of the application display direction is simple, is suitable for various different applications, and improves user experience.
Drawings
FIG. 1 is a schematic diagram of an application display direction control device of a hardware running environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a first embodiment of a method for applying display direction control according to the present invention;
FIG. 3 is a flow chart illustrating another embodiment of the present invention using a display direction control system;
fig. 4 is a schematic diagram of a system module of the present invention using a display direction control system.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
Referring to fig. 1, fig. 1 is a schematic diagram of an application display direction control device of a hardware running environment according to an embodiment of the present invention.
The application display direction control device of the embodiment of the invention can be a terminal device such as a PC or a server (such as an X86 server) which is provided with a virtualization platform.
As shown in fig. 1, the application display direction control apparatus may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display, an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may further include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
It will be appreciated by those skilled in the art that the terminal structure shown in fig. 1 is not limiting of the terminal and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
As shown in fig. 1, an operating system, a network communication module, a user interface module, and an application display direction control program may be included in a memory 1005 as one type of computer storage medium.
In the terminal shown in fig. 1, the network interface 1004 is mainly used for connecting to a background server and performing data communication with the background server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be used to call an application display direction control program stored in the memory 1005 and perform operations in the following rights configuration method embodiment of the security component.
Based on the above hardware structure, an embodiment of the present invention for applying a display direction control method is presented, as follows.
Referring to fig. 2, fig. 2 is a flowchart of a first embodiment of an application display direction control method according to the present invention, where the application display direction control method includes:
step S10, receiving an application opening instruction, and opening an application based on the opening instruction;
in this embodiment, the user may trigger the opening instruction by clicking, voice, shaking, etc., and when the device receives the opening instruction, the application is opened according to the opening instruction, for example, the user opens the corresponding application by clicking a desktop application icon on the display screen of the device, or inputs a name of the application to be opened through a voice function/mode, and when the device receives voice information, the device analyzes the voice information, so as to open the corresponding application.
When a user receives an opening instruction of an application, acquiring an application package name of the application according to the opening instruction, and searching a fixed direction corresponding to the application package name in a preset configuration file, wherein the user presets the fixed direction of the application, and configuration information of the fixed direction is stored in the configuration file of the system. The fixed directions corresponding to different application package names may be different, for example, the fixed direction corresponding to the first application package name is 90 degrees, when the device receives an opening instruction of a user to open the first application, the device obtains the first application package name of the first application, searches the preset configuration file for the fixed direction corresponding to the first application package name to be 90 degrees, and controls the first application vertical screen to display.
Step S20, acquiring a fixed direction of an application, and taking the fixed direction as an application display direction of the application, wherein the fixed direction comprises a current display direction of a system or a setting direction of the application.
In this embodiment, the fixed direction of the application includes the current display direction of the system or the setting direction of the application, where the current display direction of the system includes a vertical screen direction and a horizontal screen direction, and the current display direction of the system or the setting direction of the application may be fixed by setting the display direction of the application, where the setting direction of the application may be added in the setting menu interface, for example, 0 degrees, 90 degrees, 180 degrees, and 270 degrees, after the setting is completed, the set direction information is stored in the window manager, and after the application is opened, the setting direction of the application is obtained in the window manager. If the applied fixed direction is the set direction, the applied display direction is the set direction, for example, the set direction is 90 degrees, and the horizontal screen display is applied, so that the applied display direction is the horizontal screen direction no matter what the applied direction is, namely, no matter what the applied direction is, the applied display direction is the horizontal screen direction; if the fixed direction is the current display direction of the system, the application follows the current display direction of the system, for example, the current display direction of the system is the vertical screen direction, and then the vertical screen display is applied, so that the application display direction is the vertical screen direction no matter what the application direction is, i.e. no matter what the application direction is, the application display is the vertical screen. Therefore, the application display direction does not cause the problem of application display disorder due to mismatching of the application direction and the system direction.
According to the embodiment, an application is opened based on an application opening instruction by receiving the application opening instruction, and then a fixed direction of the application is obtained, wherein the fixed direction is used as an application display direction of the application, and the fixed direction comprises a current display direction of a system or a setting direction of the application; therefore, the problem of disordered application display caused by mismatching of the application self direction and the system direction is avoided, and the control method of the application display direction is simple, is suitable for various different applications, and improves user experience.
Further, based on the first embodiment of the present invention, a second embodiment of the present invention of applying a display direction control method is provided, in this embodiment, step S20 in the foregoing embodiment, a refinement of the step of obtaining a fixed direction of an application includes:
step S21, detecting whether the application has a setting direction;
in this embodiment, the setting direction of the application is a preset application display direction, for example, 0 degrees, 90 degrees, 180 degrees, 270 degrees, where the setting direction of the add-on application may be added in the setting menu interface. If the user sets a fixed direction for the application, that is, the application has a setting direction, configuration information corresponding to the setting direction is stored in a configuration file, when whether the application has the setting direction or not is detected, the configuration information of the application can be searched in the configuration file, if the configuration information of the application is not detected in the configuration file, the application is indicated to have no setting direction, and if the fixed direction set by the application is found in the configuration file, that is, the application has the setting direction, the setting direction of the application is obtained.
Step S21, if the application has a setting direction, acquiring the setting direction, and taking the setting direction as the fixed direction; or alternatively, the first and second heat exchangers may be,
in this embodiment, if it is detected that the application has a setting direction, that is, it is detected that the application sets a fixed direction, the setting direction of the application is acquired, and the setting direction of the application is taken as the fixed direction, for example, the setting direction of the application is 90 degrees, then the setting direction is taken as the fixed direction, and the application displays a vertical screen when displaying, and no matter what direction the application is, the application displays the vertical screen.
Step S22, if the application does not have the setting direction, the current display direction of the system is obtained, and the current display direction is used as the fixed direction.
In this embodiment, if it is detected that the application does not have a set direction, the current display direction of the system is obtained, and the current display direction of the system is used as a fixed direction, for example, if it is detected that the application does not have a set direction, if the current display direction of the system is a vertical screen direction, then vertical screen display will be applied, and if the current display direction of the system is a horizontal screen direction, then horizontal screen display will be applied, and the application will follow the system direction. Therefore, no matter what direction the application itself is, the application display direction is matched with the system direction, so that the problem of disorder of application display is avoided.
Further, the fixed direction further includes an original display direction of the application, where the original display direction is a display direction of the application when the application is developed, so that before the application is detected to have a setting direction, the original display direction of the application can be obtained, whether the original display direction of the application is consistent with a current display direction of the system is judged, if the original display direction of the application is consistent with the current display direction of the system, the application is displayed according to the original display direction of the application, and if the original display direction of the application is different from the current display direction of the system, whether the application has the setting direction is detected. The original display direction of the application is stored in a configuration file of the application, the current display direction of the system is stored in a configuration file of the system, and when the original display direction of the application and the current display direction of the system are detected, the original display direction of the application and the current display direction of the system can be respectively obtained from a configuration piece of the application and the configuration file of the system.
According to the application display direction control method, whether the application has the setting direction or not is detected, if the application has the setting direction, the setting direction is obtained, and the setting direction is used as the fixed direction; if the application does not have the set direction, the current display direction of the system is obtained, and the current display direction is used as the fixed direction, so that the problem of application display disorder caused by mismatching of the direction of the application and the direction of the system is avoided.
Further, based on the first embodiment of the present invention, a third embodiment of the present invention of applying a display direction control method is provided, in this embodiment, step S20 in the foregoing embodiment, refines the step of obtaining the fixed direction of the application, and further includes:
step S23, the current display direction of the system is obtained;
step S24, detecting whether the current display direction is a horizontal screen direction, and if the current display direction is the horizontal screen direction, taking the horizontal screen direction as the fixed direction; or alternatively, the first and second heat exchangers may be,
step S25, detecting whether the current display direction is a vertical screen direction, and if the current display direction is a vertical screen direction, taking the vertical screen direction as the fixed direction.
In this embodiment, the display direction of the system includes a horizontal screen direction, a vertical screen direction, and the like, and detects whether the current display direction of the system is the horizontal screen direction, if the current display direction is the horizontal screen direction, the horizontal screen direction is taken as a fixed direction, and no matter what direction the current display direction is applied to, the application display direction is the horizontal screen direction, that is, whether the current display direction of the horizontal screen display detection system is the vertical screen direction is applied, if the current display direction of the system is the vertical screen direction, the vertical screen direction is taken as the fixed direction, and no matter what direction the current display direction is applied to, the application display direction is the vertical screen direction, that is, the application will display the vertical screen. For example, if the current display direction of the system is detected to be a horizontal screen direction and the self direction of the application is a vertical screen direction, the display direction of the forced application is the horizontal screen direction; if the current display direction of the system is detected to be the vertical screen direction, the applied self direction is the horizontal screen direction, and the display direction of the forced application is the vertical screen direction. Even if the self direction of the application is inconsistent with the current display of the system, the display direction of the application is adjusted along with the current display direction of the system, so that the display direction of the application is adjusted to be matched with the system, the situation that the display direction of the application is inconsistent with the display direction of the system is avoided, and the problem of disorder of application display is avoided.
According to the application display direction control method provided by the embodiment, whether the current display direction is the horizontal screen direction is detected by acquiring the current display direction of the system, and if the current display direction is the horizontal screen direction, the horizontal screen direction is used as the fixed direction; and detecting whether the current display direction is a vertical screen direction, and if the current display direction is the vertical screen direction, taking the vertical screen direction as the fixed direction, so that the problem of application display disorder caused by mismatching of the application direction and the system direction is further avoided.
Further, based on the third embodiment of the present invention, a fourth embodiment of the present invention of applying a display direction control method is provided, in this embodiment, step S20 in the above embodiment, a refinement of the step of obtaining a fixed direction of an application further includes:
step S26, detecting the state of a preset button;
step S27, if the state of the preset button is the first state, acquiring the current display direction of the system, and taking the current display direction as the fixed direction.
In this embodiment, the preset button may be a selection switch for forcing the following system to rotate or a selection switch for turning on the function of automatic rotation. The first state may be an open state, if the state of the preset button is detected to be the open state, the current display direction of the system is obtained, the current display direction of the system is taken as a fixed direction, no matter what direction the self direction is, the application should be displayed according to the current display direction of the system, if the current display direction of the system is a horizontal screen direction, even if the self direction of the application is a vertical screen direction, the application display direction is a horizontal screen direction, that is, the application is displayed on a horizontal screen.
The opening mode of the preset button can be clicking, voice inputting, key pressing, gesture inputting and the like, for example, a preset button is added in an application list, a user can control the state of the switch button by clicking the preset button, the user clicks the preset button, the mark of the switch button can be changed, the mark can be switched from an open mark to a close mark, the color of the mark can also be changed, the mark changes from dark color to light color, when the user clicks a second preset button, the mark of the preset button is switched from the close mark to the open mark, and the color of the mark changes from light color to dark color. The user can also open a preset button by means of gesture input, for example, clicking two lower screens, sliding up a screen in two directions, sliding down in three directions, drawing a "V" and the like.
After step S26, the application display direction control method further includes:
step S21, if the state of the preset button is the second state, executing the steps of:
step S21, detecting whether the application has a setting direction;
step S22, if the application has a setting direction, acquiring the setting direction, and taking the setting direction as the fixed direction; or alternatively, the first and second heat exchangers may be,
step S23, if the application does not have the setting direction, the current display direction of the system is obtained, and the current display direction is used as the fixed direction.
In this embodiment, the second state may be an off state, if the state of the preset button is detected to be the second state, whether the application has a setting direction is detected, if the application has a setting direction, that is, the application is detected to set a fixed direction, the setting direction of the application is obtained, the setting direction of the application is taken as the fixed direction, for example, the setting direction of the application is 90 degrees, the setting direction is taken as the fixed direction, the application will be displayed in a vertical screen during display, and no matter what direction the application is, the application will be displayed in a vertical screen.
Referring to fig. 3, fig. 3 is a schematic diagram of another embodiment of the present invention to which the display direction control method is applied. In this embodiment, it may be detected whether an application follows a system direction of the system, that is, whether the application displays the application according to a current display direction of the system, if the application follows the system direction, the current display direction of the system is obtained, the current display direction of the system is taken as an application display direction, if it is detected that the application does not follow the system direction, whether the application has a setting direction, if the application has the setting direction, the setting direction of the application is obtained, the setting direction is taken as an application display direction, and if the application does not have the setting direction, the current display direction of the system is obtained, and the current display direction of the system is taken as the application display direction.
If the application is detected to have no setting direction, the current display direction of the system is obtained, the current display direction of the system is taken as a fixed direction, for example, if the application is detected to have no setting direction, if the current display direction of the system is a vertical screen direction, vertical screen display is applied, if the current display direction of the system is a horizontal screen direction, horizontal screen display is applied, and the application follows the system direction.
According to the application display direction control method provided by the embodiment, the current display direction of the system is obtained by detecting the state of the preset button, and if the state of the preset button is the first state, the current display direction is taken as the fixed direction; through the control of the preset button, whether the application rotates along with the system direction or not can be determined according to the requirement of a user, so that the fixed direction of the application can be accurately determined, and the problem of disordered application display caused by mismatching of the direction of the application and the direction of the system is further avoided.
Further, based on the first embodiment of the present invention, a fifth embodiment of an application display direction control method of the present invention is provided, where the application display direction control method further includes:
s30, receiving an adding instruction of a user, and adding an option with a fixed direction in an application list based on the adding instruction;
s40, receiving a selection instruction of a user, and setting the fixed direction of each application based on the selection instruction.
In this embodiment, the user may add a fixed direction corresponding to each application to the application list, and the fixed directions corresponding to each application may be different, for example, the fixed direction of the first application may be set to a horizontal screen direction, and the fixed direction of the second application may be set to a vertical screen direction. Specifically, when the user receives an addition instruction of the user, the device adds an option of a fixed direction in the application list according to the addition instruction of the user, and the user can set the fixed direction of each application in the option.
Of course, the application corresponding to each fixed direction may also be set on the application display direction setting interface, specifically, first, a selection instruction or an input instruction of the fixed direction of the user is received, the fixed direction selected or input by the user is obtained, then, the application corresponding to the fixed direction is added in the fixed direction selection list, a plurality of applications may be added, the application package names of the applications are associated in the fixed direction to form configuration information, the configuration information formed by association is stored in the configuration file, when an opening instruction of the application triggered by the user is received, the application package name corresponding to the opening instruction is obtained in the configuration file, the fixed direction corresponding to the application package name is determined, and the application is displayed according to the fixed direction, for example, when the application display direction of the application is set to be an application a, an application B or an application C, the application a, the application B or the application C is opened by the user, the application a, the application B or the application C is displayed on the screen.
In this embodiment, a device that does not support rotation or a device in which a sensor fails is illustrated, if the device is a device that does not support rotation, for example, a vending machine in a mall, when a system display direction of the vending machine is a vertical display direction, and an application in a horizontal display direction is installed on the vending machine, a problem of display confusion will be caused in the prior art. If a sensor of the device fails, the device records the current display direction of the system, and when the device is switched from the first direction to the second direction, the display direction of the application is not adjusted along with the rotation of the device due to the failure of the sensor, and the setting direction of the application can be set according to the method, so that the display direction of the application can be adjusted; if the device is switched from the second direction to the first direction, the setting direction of the application can be reset, or the fixed direction of the application can be set as the system direction, and the recorded display direction of the system is the display direction before the device fails, so that the application display of the application is the same as the display direction of the system, the display direction is not disordered, and of course, the preset button can be closed, and the application display direction of the application can be adjusted to the display direction of the system.
According to the application display direction control method, an addition instruction of a user is received, an option of a fixed direction is added in an application list based on the addition instruction, then a selection instruction of the user is received, and the fixed direction of each application is set based on the selection instruction; therefore, the fixed directions of different applications can be set independently, the method is suitable for displaying of different applications, and user experience is improved.
Referring to fig. 4, the present invention further provides an application display direction control system, in this embodiment, the application display direction control system includes:
the acquisition module is used for receiving an application opening instruction and opening the application based on the opening instruction;
the display module is used for acquiring a fixed direction of an application and taking the fixed direction as an application display direction of the application, wherein the fixed direction comprises a current display direction of a system or a setting direction of the application.
Optionally, the display module is configured to:
detecting whether an application has the setting direction;
if the application has the setting direction, acquiring the setting direction and taking the setting direction as the fixed direction; or alternatively, the first and second heat exchangers may be,
and if the application does not have the setting direction, acquiring the current display direction of the system, and taking the current display direction as the fixed direction.
Optionally, the display module is configured to:
acquiring the current display direction of the system;
detecting whether the current display direction is a horizontal screen direction, and if the current display direction is the horizontal screen direction, taking the horizontal screen direction as the fixed direction; or alternatively, the first and second heat exchangers may be,
and detecting whether the current display direction is a vertical screen direction, and if the current display direction is the vertical screen direction, taking the vertical screen direction as the fixed direction.
Optionally, the display module is configured to:
detecting the state of a preset button;
and if the state of the preset button is a first state, acquiring the current display direction of the system, and taking the current display direction as the fixed direction.
Optionally, the display module is configured to:
if the state of the preset button is the second state, executing the steps:
detecting whether an application has the setting direction;
if the application has the setting direction, acquiring the setting direction and taking the setting direction as the fixed direction; or alternatively, the first and second heat exchangers may be,
and if the application does not have the setting direction, acquiring the current display direction of the system, and taking the current display direction as the fixed direction.
Optionally, the display module is configured to:
acquiring an application package name of the application;
searching a fixed direction corresponding to the application package name in a preset configuration file, and taking the fixed direction corresponding to the application package name as the fixed direction of the application.
Optionally, the application display direction control system further includes a setting module, where the setting module is configured to:
receiving an adding instruction of a user, and adding an option with a fixed direction in an application list based on the adding instruction;
and receiving a selection instruction of a user, and setting a fixed direction of each application based on the selection instruction.
The method for implementing the functional modules may refer to an embodiment of the method for applying display direction control according to the present invention, and will not be described herein.
The present invention also provides an application display direction control apparatus including: memory, processor, communication bus, and application display direction control program stored on the memory:
the communication bus is used for realizing connection communication between the processor and the memory;
the processor is configured to execute the application display direction control program to implement the steps of the embodiments of the application display direction control method.
The invention also provides a readable storage medium.
The readable storage medium of the present invention stores an application display direction control program which, when executed by a processor, implements the steps of the application display direction control method described above.
The method implemented when the application display direction control program running on the processor is executed may refer to various embodiments of the application display direction control method of the present invention, which are not described herein again.
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 system 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 system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as described above, comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (9)

1. An application display direction control method, characterized in that the application display direction control method comprises the following steps:
receiving an application opening instruction, and opening an application based on the opening instruction;
acquiring a fixed direction of an application, and taking the fixed direction as an application display direction of the application, wherein the fixed direction comprises a current display direction of a system, a setting direction of the application and an original display direction of the application;
the step of obtaining the fixed direction of the application comprises the following steps:
detecting the state of a preset button, wherein the preset button can be a selection switch which can forcibly follow the rotation of a system or a selection switch which can turn on an automatic rotation function, and the opening mode of the preset button comprises clicking, voice input, key pressing and gesture input;
if the state of the preset button is the first state, acquiring the current display direction of the system, and taking the current display direction as the fixed direction;
the step of obtaining the fixed direction of the application further comprises:
acquiring an original display direction of an application and acquiring a current display direction of a system, wherein the original display direction is a display direction of the application during development;
judging whether the original display direction is consistent with the current display direction or not;
and if the original display direction is consistent with the current display direction, taking the original display direction as the fixed direction.
2. The application display direction control method according to claim 1, wherein after the step of judging whether the original display direction and the current display direction coincide, the step of acquiring a fixed direction of the application includes:
if the original display direction is inconsistent with the current display direction, detecting whether the application has a setting direction or not;
if the application has a setting direction, acquiring the setting direction, and taking the setting direction as the fixed direction; or alternatively, the first and second heat exchangers may be,
and if the application does not have the setting direction, taking the current display direction as the fixed direction.
3. The application display direction control method according to claim 1, wherein the step of acquiring a fixed direction of the application includes:
acquiring the current display direction of the system;
detecting whether the current display direction is a horizontal screen direction, and if the current display direction is the horizontal screen direction, taking the horizontal screen direction as the fixed direction; or alternatively, the first and second heat exchangers may be,
and detecting whether the current display direction is a vertical screen direction, and if the current display direction is the vertical screen direction, taking the vertical screen direction as the fixed direction.
4. The application display direction control method according to claim 2, wherein after the step of detecting the state of the preset button, the application display direction control method includes:
if the state of the preset button is the second state, executing the steps:
detecting whether an application has a setting direction;
if the application has a setting direction, acquiring the setting direction, and taking the setting direction as the fixed direction; or alternatively, the first and second heat exchangers may be,
and if the application does not have the setting direction, acquiring the current display direction of the system, and taking the current display direction as the fixed direction.
5. The application display direction control method according to claim 1, wherein the step of acquiring a fixed direction of the application includes:
acquiring an application package name of an application;
searching a fixed direction corresponding to the application package name in a preset configuration file, and taking the fixed direction corresponding to the application package name as the fixed direction of the application.
6. The application display direction control method according to claim 1, characterized in that the application display direction control method further comprises:
receiving an adding instruction of a user, and adding an option with a fixed direction in an application list based on the adding instruction;
and receiving a selection instruction of a user, and setting a fixed direction of each application based on the selection instruction.
7. An application display direction control system, the application display direction control system comprising:
the acquisition module is used for receiving an application opening instruction and opening the application based on the opening instruction;
the display module is used for acquiring a fixed direction of an application and taking the fixed direction as an application display direction of the application, wherein the fixed direction comprises a current display direction of a system or a setting direction of the application and an original display direction of the application;
the display module is further used for detecting the state of a preset button, wherein the preset button can be a selection switch which can forcibly follow the rotation of the system or a selection switch with an automatic rotation function or not, and the opening mode of the preset button comprises clicking, voice input, key pressing and gesture input; if the state of the preset button is the first state, acquiring the current display direction of the system, and taking the current display direction as the fixed direction;
the display module is also used for acquiring an original display direction of the application and acquiring a current display direction of the system, wherein the original display direction is a display direction of the application during development; judging whether the original display direction is consistent with the current display direction or not; and if the original display direction is consistent with the current display direction, taking the original display direction as the fixed direction.
8. An application display direction control apparatus, characterized by comprising: a memory, a processor, and an application display direction control program stored on the memory and executable on the processor, which when executed by the processor, implements the steps of the application display direction control method according to any one of claims 1 to 6.
9. A readable storage medium, wherein an application display direction control program is stored on the readable storage medium, which when executed by a processor, implements the steps of the application display direction control method according to any one of claims 1 to 6.
CN202110181595.5A 2021-02-08 2021-02-08 Application display direction control method, system, equipment and readable storage medium Active CN112948037B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110181595.5A CN112948037B (en) 2021-02-08 2021-02-08 Application display direction control method, system, equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110181595.5A CN112948037B (en) 2021-02-08 2021-02-08 Application display direction control method, system, equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN112948037A CN112948037A (en) 2021-06-11
CN112948037B true CN112948037B (en) 2023-09-26

Family

ID=76245279

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110181595.5A Active CN112948037B (en) 2021-02-08 2021-02-08 Application display direction control method, system, equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN112948037B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113377320A (en) * 2021-07-01 2021-09-10 读书郎教育科技有限公司 Method for self-adapting horizontal screen view

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103677571A (en) * 2013-12-20 2014-03-26 乐视网信息技术(北京)股份有限公司 Method, module and system for locking screen direction and gravity sensing module
CN106325719A (en) * 2016-08-05 2017-01-11 武汉斗鱼网络科技有限公司 Gravity sensing and manual control combined screen rotation control method and system
CN106527880A (en) * 2016-09-22 2017-03-22 福建天泉教育科技有限公司 iOS-based page rotation control method and system
CN106791149A (en) * 2016-12-30 2017-05-31 努比亚技术有限公司 A kind of method of mobile terminal and control screen
CN108351794A (en) * 2016-01-15 2018-07-31 华为技术有限公司 A kind of method and terminal of display
CN109254715A (en) * 2018-08-31 2019-01-22 努比亚技术有限公司 Screen display direction control method, device, mobile terminal and readable storage medium storing program for executing

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103677571A (en) * 2013-12-20 2014-03-26 乐视网信息技术(北京)股份有限公司 Method, module and system for locking screen direction and gravity sensing module
CN108351794A (en) * 2016-01-15 2018-07-31 华为技术有限公司 A kind of method and terminal of display
CN106325719A (en) * 2016-08-05 2017-01-11 武汉斗鱼网络科技有限公司 Gravity sensing and manual control combined screen rotation control method and system
CN106527880A (en) * 2016-09-22 2017-03-22 福建天泉教育科技有限公司 iOS-based page rotation control method and system
CN106791149A (en) * 2016-12-30 2017-05-31 努比亚技术有限公司 A kind of method of mobile terminal and control screen
CN109254715A (en) * 2018-08-31 2019-01-22 努比亚技术有限公司 Screen display direction control method, device, mobile terminal and readable storage medium storing program for executing

Also Published As

Publication number Publication date
CN112948037A (en) 2021-06-11

Similar Documents

Publication Publication Date Title
CN107515764B (en) Application page opening method, terminal and computer readable storage medium
US20150143244A1 (en) Activation of dormant features in native applications
US20090044146A1 (en) Associating file types with web-based applications for automatically launching the associated application
CN101383842B (en) System and method for displaying network information by computer background screen
EP3407189B1 (en) Application distribution method and device
CN101770333B (en) Method for realizing routing configuration and routing equipment
US20110078593A1 (en) Web browser transmission server and method of controlling operation of same
JP2011238220A (en) Method, device, and computer program product for providing context recognition-type help content
CN109639749B (en) Cloud desktop access method, device, equipment and storage medium
CN112399006B (en) File sending method and device and electronic equipment
JP2011192296A (en) Help utility application program
CN104954395B (en) Information-pushing method and device
CN112416200A (en) Display method, display device, electronic equipment and readable storage medium
CN111679818A (en) Method and system for editing display software
CN112948037B (en) Application display direction control method, system, equipment and readable storage medium
CN111142756A (en) Page display method, equipment and computer readable storage medium
CN104765802A (en) Web page display method and device
EP2169543A2 (en) Apparatus and method for changing language in mobile communication terminal
CN110018918B (en) Method and device for repairing terminal abnormity, mobile terminal and storage medium
EP2230587B1 (en) Information processing device and program
CN110891265B (en) Wireless connection control method and device, mobile terminal and storage medium
CN108037912A (en) Show the method, apparatus of page info
US20120284654A1 (en) Method and apparatus for returning to home screen in portable terminal with multi-software platform
KR101996586B1 (en) Information display method, terminal and server
CN111010528A (en) Video call method, mobile terminal 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