Method, apparatus, device, storage medium, and program product for application display control

By obtaining the default display direction of the system and starting the application, the problem that the application display direction cannot be automatically adapted on large and large interactive smart devices is solved, ensuring that the display direction of the application is consistent with the viewing direction of the user, and achieving the effect of users using the application normally.

CN115185409BActive Publication Date: 2025-05-27GUANGZHOU SHIYUAN ELECTRONICS CO LTD +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202110371401.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-04-07
Publication Date
2025-05-27
Estimated Expiration
2041-04-07

AI Technical Summary

Technical Problem

For interactive smart devices with large size and large mass, the application display direction cannot be automatically adapted to the device, resulting in users being unable to use the application normally.

Method used

By responding to the application's startup command, obtain the system's default display direction and start the application according to that direction to ensure that the application's display direction is consistent with the default display direction of the device system.

Benefits of technology

The display direction of the application is consistent with the viewing direction of the user, so that the user can use the application normally and conveniently.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115185409B_ABST
    Figure CN115185409B_ABST
Patent Text Reader

Abstract

The present application provides a method, device, equipment, storage medium and program product for application display control. The method includes: in response to a startup instruction of an application, obtaining the default display orientation of the system; starting the application according to the default display orientation of the system, and displaying the application in the default display orientation of the system. In the method of the present application, by responding to the startup instruction of the application, obtaining the default display orientation of the system, and starting the application according to the default display orientation of the system to display the application in the default display orientation of the system, the display orientation of the application after startup is consistent with the default display orientation of the device system, that is, the display orientation of the application is consistent with the direction in which the user views, so that the user can use the application normally and conveniently.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to communication technologies, and in particular, to a method, apparatus, device, storage medium, and program product for application display control. Background Art

[0002] Currently, when using a mobile terminal (such as a smart phone, a tablet device, etc.) based on systems such as Android or IOS to open an application (Application, abbreviated as APP), the registered display orientation of the application is obtained. After adjusting the system's display orientation to the registered display orientation of the application, the application is started. If the application is default to portrait display, the application will be started in full screen portrait, and the display effect is as Figure 1 shown; if the application is default to landscape display, the application will be started in full screen landscape, and the display effect is as Figure 2 shown, and the user can rotate the mobile terminal to adapt to the display orientation of the application program.

[0003] However, for a relatively large-sized interactive intelligent device, the device is large in volume and heavy in mass, not easy to move, and even less able to rotate. When the default display orientation of the device's system is inconsistent with the display orientation of the application, the application display orientation is inconsistent with the user's viewing direction, resulting in the user being unable to use the application normally.

[0004] For example, taking the device installed horizontally and the default display orientation of the system being horizontal display as an example, when the application matches the user's normal viewing direction, the full-screen display effect should be as Figure 3 shown, and the window display effect of the application should be as Figure 4 shown. However, if the default display orientation of the application is portrait display (inconsistent with the default display orientation of the system), then the full-screen display effect of the application is as Figure 5 shown, and the window display effect of the application is as Figure 6 shown, indicating that the application display orientation is inconsistent with the user's viewing direction, and the user is unable to use the application normally. Summary of the Invention

[0005] This application provides a method, apparatus, device, storage medium, and program product for application display control to solve the problem that for an interactive intelligent device that is large in volume and heavy in mass, not easy to move, and even less able to rotate, the application display orientation cannot automatically adapt to the device, resulting in the user being unable to use the application normally.

[0006] On the one hand, this application provides a method for application display control, including:

[0007] Responding to a startup instruction of an application, obtaining the default display orientation of the system;

[0008] Start the application according to the default display direction of the system, and display the application in the default display direction of the system.

[0009] Optionally, the starting the application according to the default display direction of the system and displaying the application in the default display direction of the system includes:

[0010] If the display mode of the application is full-screen display, start the application according to the default display direction of the system, and full-screen display the application in the default display direction of the system.

[0011] Optionally, the starting the application according to the default display direction of the system and displaying the application in the default display direction of the system includes:

[0012] If the display mode of the application is window display, adjust the aspect ratio of the display window according to the registered display direction of the application, so that the aspect ratio of the display window matches the registered display direction of the application; start the application in the display window according to the default display direction of the system, and display the application in the display window in the default display direction of the system.

[0013] Optionally, before the step of, if the display mode of the application is window display, adjusting the aspect ratio of the display window according to the registered display direction of the application so that the aspect ratio of the display window matches the registered display direction of the application, further includes:

[0014] Obtain the registered display direction of the application.

[0015] Optionally, after the step of starting the application according to the default display direction of the system and displaying the application in the default display direction of the system, further includes:

[0016] In response to a display direction switching operation on the application, if the display mode of the application is window display, adjust the aspect ratio of the display window according to the target direction of the display direction switching operation, so that the aspect ratio of the display window matches the target direction; do not adjust the display direction of the system.

[0017] Optionally, after the step of starting the application according to the default display direction of the system and displaying the application in the default display direction of the system, further includes:

[0018] In response to a display direction switching operation on the application, obtain the switched target direction; adjust the display direction of the system to the target direction, and display the application in the target direction.

[0019] On the other hand, the present application provides a device for controlling application display, including:

[0020] A data acquisition module, configured to obtain the default display orientation of the system in response to a startup instruction of an application.

[0021] An application display control module, configured to start the application according to the default display orientation of the system and display the application in the default display orientation of the system.

[0022] On the other hand, the present application provides a terminal device, including:

[0023] A processor, a memory, and a computer program stored on the memory and executable on the processor;

[0024] Wherein, when the processor runs the computer program, the method for application display control described above is implemented.

[0025] On the other hand, the present application provides a computer-readable storage medium, in which computer-executable instructions are stored, and when the computer-executable instructions are executed by a processor, they are used to implement the method for application display control described above.

[0026] On the other hand, the present application provides a computer program product, including a computer program, and when the computer program is executed by a processor, the method for application display control described above is implemented.

[0027] The method, device, equipment, storage medium, and program product for application display control provided by the present application obtain the default display orientation of the system in response to a startup instruction of an application; start the application according to the default display orientation of the system and display the application in the default display orientation of the system, so that the display orientation of the application after startup is consistent with the default display orientation of the device system, that is, the display orientation of the application is consistent with the user's viewing direction, thereby enabling the user to use the application normally and conveniently. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] The drawings here are incorporated into the specification and form a part of this specification, showing embodiments consistent with the present application, and are used together with the specification to explain the principles of the present application.

[0029] Figure 1 It is a schematic diagram of the application display effect provided by the present application;

[0030] Figure 2 It is another schematic diagram of the application display effect provided by the present application;

[0031] Figure 3 It is another schematic diagram of the application display effect provided by the present application;

[0032] Figure 4Another schematic diagram of the application display effect provided by this application;

[0033] Figure 5 Another schematic diagram of the application display effect provided by this application;

[0034] Figure 6 Another schematic diagram of the application display effect provided by this application;

[0035] Figure 7 The flowchart of the method for controlling application display provided in the first embodiment of the present invention;

[0036] Figure 8 Another schematic diagram of the application display effect provided by this application;

[0037] Figure 9 Another schematic diagram of the application display effect provided by this application;

[0038] Figure 10 The flowchart of the method for controlling application display provided in the second embodiment of the present invention;

[0039] Figure 11 Another schematic diagram of the application display effect provided by this application;

[0040] Figure 12 Another schematic diagram of the application display effect provided by this application;

[0041] Figure 13 The schematic structural diagram of the device for controlling application display provided in the third embodiment of the present invention;

[0042] Figure 14 The schematic structural diagram of the terminal device provided in the fifth embodiment of the present invention.

[0043] Through the above-mentioned drawings, the specific embodiments of this application have been shown, and there will be more detailed descriptions hereinafter. These drawings and textual descriptions are not intended to limit the scope of the concept of this application in any way, but to illustrate the concept of this application to those skilled in the art by referring to specific embodiments. Detailed Description of the Invention

[0044] Here, the exemplary embodiments will be described in detail, and the examples are shown in the drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. On the contrary, they are merely examples of the devices and methods consistent with some aspects of this application as detailed in the appended claims.

[0045] The terms "first", "second", etc. involved in this application are only for descriptive purposes and should not be construed as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. In the descriptions of the following embodiments, "a plurality" means more than two, unless otherwise specifically defined.

[0046] The following uses specific embodiments to elaborate in detail on the technical solutions of the present invention and how the technical solutions of this application solve the above technical problems. These several specific embodiments below can be combined with each other, and for the same or similar concepts or processes, they may not be repeated in some embodiments. The embodiments of the present invention will be described below in conjunction with the accompanying drawings.

[0047] Embodiment 1

[0048] Figure 7 It is a flowchart of a method for application display control provided in Embodiment 1 of the present invention. In view of the problems that the interactive intelligent device has a large volume and mass, is not easy to move, and cannot be rotated, and the application display direction cannot automatically adapt to the device, resulting in the user being unable to use the application normally, Embodiment 1 of the present invention provides a method for application display control.

[0049] The method in this embodiment is applied to a terminal device, which can be a mobile terminal such as a smart phone, a tablet, an AR device, etc. In other embodiments, the method can also be applied to other devices. This embodiment takes the terminal device as an example for illustrative purposes.

[0050] As Figure 7 shown, the specific steps of the method are as follows:

[0051] Step S101: In response to the startup instruction of the application, obtain the default display direction of the system.

[0052] Herein, the system refers to the operating system installed on the terminal device where the application runs, which can be an Android or IOS system, etc.

[0053] In this embodiment, in response to the startup instruction of the application, the terminal device can obtain the default display direction of the system.

[0054] Step S102: According to the default display direction of the system, start the application and display the application in the default display direction of the system.

[0055] After obtaining the default display direction of the system, the terminal device starts the application in the default display direction of the system, so as to display the interface of the application in the default display direction of the system.

[0056] In this step, regardless of whether the registered display orientation of the application is landscape or portrait, when the application is launched, instead of performing the process of adjusting the system's display orientation according to the registered display orientation of the application, the system's display orientation remains unchanged, and the application is directly launched according to the system's display orientation. The display orientation of the application follows the system's default display orientation.

[0057] Exemplarily, taking the device installed horizontally and the system's default display orientation being landscape as an example, when the application is launched, if the display mode of the application is full-screen display, the display orientation of the landscape application is as Figure 8 shown, and the display orientation of the portrait application is as Figure 9 shown. Regardless of whether the application is a landscape application or a portrait application, the actual display orientation of the application is the same as the system's default display orientation of the device, which is landscape.

[0058] In this embodiment, a landscape application refers to an application whose registered display orientation is landscape, and a portrait application refers to an application whose registered display orientation is portrait. The registered display orientation of the application is the default display orientation specified when the application is registered.

[0059] In the embodiment of the present invention, in response to the start instruction of the application, the system's default display orientation is obtained; according to the system's default display orientation, the application is launched and the application is displayed in the system's default display orientation. In this way, after startup, the display orientation of the application is the same as the system's default display orientation of the device, that is, the display orientation of the application is the same as the direction in which the user views, so that the user can use the application normally and conveniently.

[0060] Embodiment 2

[0061] Figure 10 This is a flowchart of the application display control method provided in the second embodiment of the present invention. On the basis of the above-mentioned first embodiment, in this embodiment, after launching the application according to the system's default display orientation and displaying the application in the system's default display orientation, it further includes: in response to the display orientation switching operation of the application, obtaining the switched target orientation; adjusting the system's display orientation to the target orientation and displaying the application in the target orientation.

[0062] As Figure 10 shown, the specific steps of the method are as follows:

[0063] Step S201: In response to the start instruction of the application, obtain the system's default display orientation.

[0064] Herein, the system refers to the operating system installed on the terminal device where the application runs, which can be an Android or IOS system, etc.

[0065] In this embodiment, in response to the start instruction of the application, the terminal device can obtain the system's default display orientation.

[0066] After obtaining the default display orientation of the system, through steps S202 - S204, start the application according to the default display orientation of the system and display the application in the default display orientation of the system.

[0067] In this embodiment, regardless of whether the registered display orientation of the application is landscape or portrait, when starting the application, instead of performing the process of adjusting the display orientation of the system according to the registered display orientation of the application, the display orientation of the system remains unchanged, and the application is directly started in accordance with the display orientation of the system, and the display orientation of the application follows the default display orientation of the system.

[0068] Step S202: If the display mode of the application is full - screen display, start the application according to the default display orientation of the system and display the application full - screen in the default display orientation of the system.

[0069] In this embodiment, if the display mode of the application is full - screen display, start the application full - screen according to the default display orientation of the system, so as to display the interface of the application full - screen in the default display orientation of the system.

[0070] Exemplarily, taking the device being installed horizontally and the default display orientation of the system being landscape as an example, when starting the application, if the display mode of the application is full - screen display, the display orientation of the landscape application is as Figure 8 shown, and the display orientation of the portrait application is as Figure 9 shown. Regardless of whether the application is a landscape application or a portrait application, the actual display orientation of the application is consistent with the default display orientation of the system of the device and is landscape.

[0071] Step S203: If the display mode of the application is window display, adjust the width - to - height ratio of the display window according to the registered display orientation of the application so that the width - to - height ratio of the display window matches the registered display orientation of the application.

[0072] In this embodiment, if the display mode of the application is window display, the width - to - height ratio of the display window of the application can be set according to the registered display orientation of the application, so that the width - to - height ratio of the display window of the application is consistent with the registered display orientation of the application.

[0073] Further, if the display mode of the application is window display, before adjusting the width - to - height ratio of the display window according to the registered display orientation of the application so that the width - to - height ratio of the display window matches the registered display orientation of the application, obtain the registered display orientation of the application.

[0074] Step S204: Start the application in the display window according to the default display orientation of the system, so as to display the application in the display window in the default display orientation of the system.

[0075] After adjusting the aspect ratio of the display window according to the display direction registered by the application, start the application in the display window according to the default display direction of the system, and display the application in the display window in the default display direction of the system.

[0076] Exemplarily, taking the device installed horizontally and the default display direction of the system being horizontal display as an example, when starting the application, if the display mode of the application is window display, for a landscape application, when it is obtained that the display direction registered by the application is landscape display, the aspect ratio of the display window of the application can be adjusted to match the landscape display. For example, the aspect ratio of the display window can be set to 16:9 or 2:1, etc. The display effect of the landscape application is as Figure 11 shown. For a portrait application, when it is obtained that the display direction registered by the application is portrait display, the aspect ratio of the display window of the application can be adjusted to match the portrait display. For example, the aspect ratio of the display window can be set to 9:16 or 1:2, etc. The display effect of the portrait application is as Figure 12 shown. Whether the application is a landscape application or a portrait application, the actual display direction of the application is consistent with the default display direction of the system of the device and is horizontal display.

[0077] Optionally, the specific value of the aspect ratio of the display window can be set and adjusted according to the display screen of the terminal device and / or the display requirements of the application in the actual application scenario, and no specific limitation is made here.

[0078] After starting the application, the user can perform an operation to switch the display direction of the application through the input device of the terminal device, and the display direction of the application can be switched. However, since the terminal device cannot be rotated, after the flag display direction, the actual display direction of the application is inconsistent with the display direction of the system of the device, which is inconvenient for the user to use.

[0079] In this embodiment, in response to the operation of switching the display direction of the application, when the application calls the rotation system direction interface, it is intercepted and the processing of rotating the system direction is not executed.

[0080] If the display mode of the application is full-screen display, no further processing is required subsequently, and the display direction remains unchanged.

[0081] If the display mode of the application is window display, then by executing step S205, the aspect ratio of the display window is adjusted so that the aspect ratio of the display window matches the switched target direction, achieving the effect of switching the display mode of the application.

[0082] Step S205: In response to the operation of switching the display direction of the application, if the display mode of the application is window display, then adjust the aspect ratio of the display window according to the target direction so that the aspect ratio of the display window matches the target direction; do not adjust the display direction of the system.

[0083] In another implementation of this embodiment, if there is a real need to switch the display direction of an application in a specific application scenario, the terminal device can also respond to the operation of switching the display direction of the application, obtain the target direction after switching, adjust the display direction of the system to the target direction, and display the application in the target direction.

[0084] Optionally, if the display mode of the application is full-screen display, the display direction of the system is adjusted to the target direction, and the application is displayed in the target direction.

[0085] Optionally, if the display mode of the application is window display, the aspect ratio of the display window is adjusted according to the target direction so that the aspect ratio of the display window matches the target direction; the display direction of the system is adjusted to the target direction, and the application is displayed in the target direction in the display window.

[0086] In the embodiment of the present invention, by responding to the startup instruction of the application, the default display direction of the system is obtained; according to the default display direction of the system, the application is started and the application is displayed in the default display direction of the system. In this way, the display direction of the application after startup is consistent with the default display direction of the device system, that is, the display direction of the application is consistent with the direction in which the user views, so that the user can use the application normally and conveniently; further, if the display mode of the application is window display, the aspect ratio of the display window is adjusted according to the registered display direction of the application so that the aspect ratio of the display window matches the registered display direction of the application, and according to the default display direction of the system, the application is started in the display window and the application is displayed in the default display direction of the system in the display window, which can achieve the effect of displaying the application in the registered display direction; further, in response to the operation of switching the display direction of the application, if the display mode of the application is window display, the aspect ratio of the display window is adjusted according to the target direction so that the aspect ratio of the display window matches the target direction; without adjusting the display direction of the system, the display direction of the application can be kept consistent with the default display direction of the system, thus ensuring that the display direction of the application is consistent with the direction in which the user views, so that the user can use the application normally and conveniently.

[0087] Embodiment III

[0088] Figure 13 It is a schematic structural diagram of a device for controlling application display provided in Embodiment III of the present invention. The device for controlling application display provided in the embodiment of the present invention can execute the processing flow provided in the method embodiment for controlling application display. As Figure 13 shown, the device 30 for controlling application display includes: a data acquisition module 301 and an application display control module 302.

[0089] Specifically, the data acquisition module 301 is configured to obtain the default display direction of the system in response to the startup instruction of the application.

[0090] The application display control module 302 is used to start an application according to the default display direction of the system and display the application in the default display direction of the system.

[0091] The device provided by the embodiment of the present invention can be specifically used to execute the method embodiment provided in the above-mentioned first embodiment, and the specific functions will not be elaborated here.

[0092] In the embodiment of the present invention, by responding to the start instruction of the application, the default display direction of the system is obtained; according to the default display direction of the system, the application is started and the application is displayed in the default display direction of the system. In this way, the display direction of the application after startup is consistent with the default display direction of the device system, that is, the display direction of the application is consistent with the direction in which the user views, so that the user can use the application normally and conveniently.

[0093] Embodiment Four

[0094] Based on the above-mentioned third embodiment, in this embodiment, the application display control module is further used for:

[0095] If the display mode of the application is full-screen display, start the application according to the default display direction of the system and display the application full-screen in the default display direction of the system.

[0096] Optionally, the application display control module is further used for:

[0097] If the display mode of the application is window display, adjust the aspect ratio of the display window according to the registered display direction of the application so that the aspect ratio of the display window matches the registered display direction of the application; start the application in the display window according to the default display direction of the system and display the application in the display window in the default display direction of the system.

[0098] Optionally, the application display control module is further used for:

[0099] If the display mode of the application is window display, obtain the registered display direction of the application before adjusting the aspect ratio of the display window so that the aspect ratio of the display window matches the registered display direction of the application.

[0100] Optionally, the application display control module is further used for:

[0101] After starting the application according to the default display direction of the system and displaying the application in the default display direction of the system, in response to the display direction switching operation of the application, if the display mode of the application is window display, adjust the aspect ratio of the display window according to the target direction of the display direction switching operation so that the aspect ratio of the display window matches the target direction; do not adjust the display direction of the system.

[0102] Optionally, the application display control module is further configured to:

[0103] According to the default display direction of the system, start the application. After the application is displayed in the default display direction of the system, in response to an operation for switching the display direction of the application, obtain the switched target direction; adjust the display direction of the system to the target direction, and display the application in the target direction.

[0104] The device provided by the embodiment of the present invention can be specifically configured to execute the method embodiment provided in the second embodiment above, and the specific functions are not described herein again.

[0105] In the embodiment of the present invention, in response to a startup instruction of an application, the default display direction of the system is obtained; according to the default display direction of the system, the application is started and the application is displayed in the default display direction of the system. In this way, the display direction of the application after startup is consistent with the default display direction of the device system, that is, the display direction of the application is consistent with the viewing direction of the user, so that the user can use the application normally and conveniently; further, if the display mode of the application is window display, then according to the registered display direction of the application, the aspect ratio of the display window is adjusted so that the aspect ratio of the display window matches the registered display direction of the application. According to the default display direction of the system, the application is started in the display window, and the application is displayed in the default display direction of the system in the display window, which can achieve the effect of displaying the application in the registered display direction; further, in response to an operation for switching the display direction of the application, if the display mode of the application is window display, then the aspect ratio of the display window is adjusted according to the target direction so that the aspect ratio of the display window matches the target direction; without adjusting the display direction of the system, the display direction of the application can be kept consistent with the default display direction of the system, thereby ensuring that the display direction of the application is consistent with the viewing direction of the user, so that the user can use the application normally and conveniently.

[0106] Embodiment Five

[0107] Figure 14 is a schematic structural diagram of a terminal device provided in Embodiment Five of the present invention. As Figure 14 shown, the terminal device 100 includes: a processor 1001, a memory 1002, and a computer program stored on the memory 1002 and executable on the processor 1001.

[0108] Wherein, when the processor 1001 runs the computer program, the method provided in any of the above method embodiments is implemented.

[0109] In an embodiment of the present invention, in response to a startup instruction of an application, the default display orientation of the system is obtained; according to the default display orientation of the system, the application is started, and the application is displayed in the default display orientation of the system. In this way, after startup, the display orientation of the application is consistent with the default display orientation of the device system, that is, the display orientation of the application is consistent with the direction in which the user views, so that the user can use the application normally and conveniently.

[0110] An embodiment of the present invention further provides a computer-readable storage medium. A computer program is stored in the computer-readable storage medium. When the computer program is executed by a processor, the method provided in any one of the above method embodiments is implemented.

[0111] An embodiment of the present invention further provides a computer program product. The program product includes: a computer program. The computer program is stored in a readable storage medium. At least one processor of the terminal device can read the computer program from the readable storage medium, and at least one processor executes the computer program to enable the terminal device to execute the method provided in any one of the above method embodiments.

[0112] In several embodiments provided by the present invention, it should be understood that the disclosed device and method can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed coupling or direct coupling or communication connection to each other can be through some interfaces. The indirect coupling or communication connection of the device or unit can be in an electrical, mechanical or other form.

[0113] The unit described as a separated component may or may not be physically separated, and the component displayed as a unit may or may not be a physical unit, that is, it may be located in one place, or may be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0114] In addition, in each embodiment of the present invention, the functional units can be integrated in one processing unit, or each unit exists physically alone, or two or more units can be integrated in one unit. The above integrated unit can be implemented in the form of hardware, or in the form of a hardware plus software functional unit.

[0115] The integrated units implemented in the form of software functional units can be stored in a computer-readable storage medium. The above-mentioned software functional units stored in a storage medium include several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to execute some steps of the methods according to the various embodiments of the present invention. The foregoing storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories (ROM), random access memories (RAM), magnetic disks, or optical discs.

[0116] Those skilled in the art can clearly understand that for the convenience and brevity of description, only the above division of each functional module is used as an example for illustration. In actual applications, the above functions can be allocated to different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the device described above can refer to the corresponding process in the foregoing method embodiments and will not be elaborated herein.

[0117] After considering the specification and practicing the invention disclosed herein, those skilled in the art will readily conceive of other embodiments of the present invention. The present invention is intended to cover any variations, uses, or adaptations of the present invention, which follow the general principles of the present invention and include well-known knowledge or conventional technical means in the technical field not disclosed by the present invention. The specification and embodiments are only regarded as exemplary, and the true scope and spirit of the present invention are pointed out by the following claims.

[0118] It should be understood that the present invention is not limited to the exact structures described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present invention is only limited by the appended claims.

Claims

1. A method for application display control, characterized in that, it includes: Upon receiving a startup instruction of an application, obtain the default display orientation of the system; Automatically start the application according to the default display orientation of the system, and display the application in the default display orientation of the system; The step of automatically starting the application according to the default display orientation of the system and displaying the application in the default display orientation of the system includes: Obtain the display orientation registered by the application; if the display mode of the application is window display, adjust the width-to-height ratio of the display window according to the display orientation registered by the application, so that the width-to-height ratio of the display window matches the display orientation registered by the application; Automatically start the application in the display window according to the default display orientation of the system, so as to display the application in the display window in the default display orientation of the system; After automatically starting the application according to the default display orientation of the system and displaying the application in the default display orientation of the system, it further includes: Upon receiving a display orientation switching operation of the application, if the display mode of the application is window display, adjust the width-to-height ratio of the display window according to the target orientation of the display orientation switching operation, so that the width-to-height ratio of the display window matches the target orientation; Do not adjust the display orientation of the system; if the display mode of the application is full-screen display, do not perform any processing.

2. The method according to claim 1, characterized in that, The step of automatically starting the application according to the default display orientation of the system and displaying the application in the default display orientation of the system further includes: If the display mode of the application is full-screen display, automatically start the application according to the default display orientation of the system and display the application in full screen in the default display orientation of the system.

3. An apparatus for application display control, characterized in that, it includes: A data acquisition module, configured to obtain the default display orientation of the system upon receiving a startup instruction of an application; An application display control module, configured to automatically start the application according to the default display orientation of the system and display the application in the default display orientation of the system; The application display control module is further configured to: Obtain the display orientation registered by the application; if the display mode of the application is window display, adjust the width-to-height ratio of the display window according to the display orientation registered by the application, so that the width-to-height ratio of the display window matches the display orientation registered by the application; Automatically start the application in the display window according to the default display orientation of the system, so as to display the application in the display window in the default display orientation of the system; The application display control module is further configured to: Automatically start the application according to the default display orientation of the system. After displaying the application in the default display orientation of the system, in response to an operation for switching the display orientation of the application, if the display mode of the application is window display, adjust the aspect ratio of the display window according to the target direction of the display orientation switching operation, so that the aspect ratio of the display window matches the target direction; do not adjust the display direction of the system.

4. A terminal device, characterized in that it includes: a processor, a memory, and a computer program stored on the memory and executable on the processor; wherein, when the processor runs the computer program, the method described in claim 1 or 2 is implemented.

5. A computer-readable storage medium, characterized in that computer-executable instructions are stored in the computer-readable storage medium, and when the computer-executable instructions are executed by a processor, they are used to implement the method described in claim 1 or 2.

6. A computer program product, characterized in that it includes a computer program, and when the computer program is executed by a processor, the method described in claim 1 or 2 is implemented.

Citation Information

Patent Citations

  • Android television application program rotation method

    CN105208457A