WO2019214476A1 - Procédé et dispositif de réglage de direction d'écran, support d'informations et terminal - Google Patents

Procédé et dispositif de réglage de direction d'écran, support d'informations et terminal Download PDF

Info

Publication number
WO2019214476A1
WO2019214476A1 PCT/CN2019/084787 CN2019084787W WO2019214476A1 WO 2019214476 A1 WO2019214476 A1 WO 2019214476A1 CN 2019084787 W CN2019084787 W CN 2019084787W WO 2019214476 A1 WO2019214476 A1 WO 2019214476A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
preloaded
screen
setting
screen orientation
Prior art date
Application number
PCT/CN2019/084787
Other languages
English (en)
Chinese (zh)
Inventor
韩世广
陈岩
Original Assignee
上海瑾盛通信科技有限公司
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 上海瑾盛通信科技有限公司 filed Critical 上海瑾盛通信科技有限公司
Publication of WO2019214476A1 publication Critical patent/WO2019214476A1/fr

Links

Images

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/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • 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

Definitions

  • the embodiments of the present application relate to the field of application loading technologies, for example, to a screen orientation setting method and apparatus, a storage medium, and a terminal.
  • terminals such as smart phones, tablets, notebook computers, and smart home appliances have become indispensable electronic devices in people's daily lives.
  • terminal devices As terminal devices continue to be intelligent, most terminal devices are loaded with an operating system, enabling the terminal devices to install a wide variety of applications to meet different user needs.
  • the terminal loads the resources required for the application to start. After the loading is completed, the terminal enters the initial interface of the application, and the whole process usually takes several seconds or even ten seconds, resulting in the application.
  • the startup of the program is inefficient and needs to be improved.
  • the embodiment of the present application provides a screen orientation setting method and device, a storage medium, and a terminal, which can be reasonably set in the application preloading process.
  • an embodiment of the present application provides a screen orientation setting method, including:
  • the embodiment of the present application provides a screen orientation setting apparatus, including:
  • Setting an application receiving module configured to receive a setting request for a screen orientation issued by the application
  • the determining module is configured to determine, when the setting request receiving module receives the setting request for the screen direction issued by the application, whether the application is a preloading application;
  • the screen orientation update module is configured to prohibit updating the system screen orientation according to the setting request when the determination result of the determination module is YES.
  • an embodiment of the present application provides a computer readable storage medium, where a computer program is stored, and the program is executed by a processor to implement a screen orientation setting method according to an embodiment of the present application.
  • an embodiment of the present application provides a terminal, including a memory, a processor, and a computer program stored in the memory and executable by the processor, where the processor executes the computer program to implement an embodiment of the present application.
  • the screen orientation setting method including a processor, and a computer program stored in the memory and executable by the processor, where the processor executes the computer program to implement an embodiment of the present application.
  • FIG. 1 is a schematic flowchart of a screen orientation setting method according to an embodiment of the present application.
  • FIG. 2 is a schematic diagram of a relative position relationship between a preloaded active window stack and a display screen display area according to an embodiment of the present application
  • FIG. 3 is a schematic diagram of a relative positional relationship between a preloaded active window stack and a display screen display area according to an embodiment of the present application
  • FIG. 4 is a schematic flowchart diagram of another method for setting a screen direction according to an embodiment of the present disclosure
  • FIG. 5 is a schematic diagram of a screen orientation setting process for a static mode according to an embodiment of the present application.
  • FIG. 6 is a schematic diagram of a screen orientation setting process for a dynamic mode according to an embodiment of the present application.
  • FIG. 7 is a schematic flowchart diagram of still another method for setting a screen direction according to an embodiment of the present application.
  • FIG. 8 is a structural block diagram of a screen orientation setting apparatus according to an embodiment of the present application.
  • FIG. 9 is a schematic structural diagram of a terminal according to an embodiment of the present application.
  • FIG. 10 is a schematic structural diagram of another terminal according to an embodiment of the present application.
  • FIG. 1 is a schematic flowchart diagram of a screen orientation setting method according to an embodiment of the present disclosure.
  • the method may be performed by a screen orientation setting device, where the device may be implemented by software and/or hardware, and may be integrated into a terminal. As shown in FIG. 1, the method includes: step 101, step 102, and step 103.
  • step 101 a setting request for the screen orientation issued by the application is received.
  • the terminal in the embodiment of the present application may include a terminal device such as a mobile phone, a tablet computer, a notebook computer, and a smart home appliance.
  • the operating system is loaded in the terminal.
  • the display mode of the display screen usually includes vertical screen display and horizontal screen display, and many applications are displayed by vertical screen by default, and some are displayed by default.
  • the application defaults to display in landscape mode (such as some online games).
  • some applications also switch between horizontal and vertical display as the user holds the direction of the terminal.
  • the system can meet the personalized requirements of the application for the screen orientation, such as including the application to draw the application interface according to the requirements of the screen orientation.
  • the display may further include whether the system controls whether the display screen is rotated (horizontal and vertical screen switching) to match the display of the application interface.
  • the screen orientation control during the application preloading process is optimized.
  • the preloading of the application is described here first.
  • the terminal loads the resources required for the application to start.
  • the terminal enters the initial interface of the application, and the whole process usually takes several seconds or even ten seconds, resulting in the application.
  • the startup of the program is inefficient. Therefore, the preloading method can be used to solve the problem.
  • the resources required for the application to be started are prepared in advance, when the application is actually started. , can effectively shorten the startup time and improve the startup efficiency.
  • the target application to be preloaded may be determined after detecting that the application preload event is triggered.
  • the triggering condition of the application preloading event may be set according to the actual situation, which is not specifically limited in this embodiment.
  • the application preloading event may be triggered when it is detected that the user's action satisfies a preset condition (such as picking up the terminal, inputting a screen unlocking operation, or inputting a terminal unlocking operation, etc.); or when detecting that the foreground application is changed, The application preload event is triggered; or the application preload event can be triggered immediately (or after a preset duration) after the pre-loading application's prediction process ends; or it can be triggered at regular intervals.
  • the system may detect that the application preloading event has been triggered by reading the flag bit or receiving the triggering instruction.
  • the specific detection mode is not limited in the embodiment of the present application.
  • the application to be preloaded can be understood as an application that the user may open soon, and may be a fixed application that is preset or an application that is predicted in a certain manner.
  • the application to be preloaded may include one or more.
  • the target application can be understood as the application to be preloaded that currently needs to be preloaded.
  • the target application can also include one or more.
  • the target application can be one (ie, multiple applications to be preloaded) Determined as the target application one by one, and preloaded in turn), or multiple (it is more than 2 applications to be preloaded as the target application, and at the same time preloading, that is, multiple targets
  • the application's preloading process can be done in parallel).
  • a predictive model can be used to predict the preloaded application.
  • the prediction model may be a machine learning model, and the algorithms used may include Recurrent neural networks (RNN), Long Short-Term Memory (LSTM) networks, threshold loop units, simple loop units, and automatic coding. , decision tree, random forest, feature mean classification, classification regression tree, hidden Markov, K-Nearest Neighbor (KNN) algorithm, logistic regression model, Bayesian model, Gaussian model, and KL divergence (Kullback) –Leibler divergence) and so on.
  • RNN Recurrent neural networks
  • LSTM Long Short-Term Memory
  • KNN K-Nearest Neighbor
  • KNN K-Nearest Neighbor
  • logistic regression model Bayesian model
  • Gaussian model Gaussian model
  • KL divergence Kullback
  • the training sample is collected, and the preset initial model is trained by using the training sample, and finally the prediction model for predicting the application to be preloaded is obtained.
  • the elements included in the training sample may include a time series or sequence of sequences in which the application is opened; may include the time, location, and frequency of the application being opened; may include the operating state of the terminal, such as a switch of the mobile data network Status, connection status of the wireless hotspot, identity information of the connected wireless hotspot, currently running application, previous foreground application, duration of the current application staying in the background, time when the current application was last switched to the background, The plug-in status, charging status, battery level information, and screen display duration of the headphone jack, etc.; can also include data collected by sensors integrated in the terminal, such as motion sensors, light sensors, temperature sensors, and humidity sensors.
  • the appropriate sample elements can be selected according to the selected machine learning model, and the selected machine learning model can be determined according to the selected sample elements, and can also be combined with the requirements for prediction accuracy and preset speed.
  • the selection of the model and the sample elements and the like are not limited in the embodiment of the present application.
  • determining the target application to be preloaded may include determining a target application to be preloaded according to an output result before the prediction model, or including using the prediction model to perform prediction, and determining a current output result of the prediction model. Preloaded target application.
  • the setting request for the screen orientation may be issued in advance so that the system prepares in advance, so when receiving the application request for the screen orientation issued by the application, the application may It is an application that is currently started in the foreground (as opened by the user), or it may be an application that is being preloaded.
  • step 102 it is determined whether the application is a preloaded application.
  • the display screen ie, the main screen
  • the horizontal screen application can be understood as an application that applies the screen orientation to the horizontal screen
  • the vertical screen application can be understood as an application that applies the screen orientation to the vertical screen.
  • the application may be a foreground application or a preloaded application. If the foreground application and the preloaded application are not distinguished, when the screen orientation of the preloaded application application is inconsistent with the current screen orientation of the display screen, the screen orientation is switched, which seriously affects the foreground application on the display screen. Display.
  • step 103 if yes, it is prohibited to update the system screen orientation according to the setting request.
  • the screen orientation setting method provided in the embodiment of the present application receives the setting application for the screen orientation issued by the application, determines whether the application that issued the setting application is a preloading application, and if so, prohibits updating the system screen according to the setting application. direction.
  • the setting operation of the system screen direction can be reasonably controlled during the preloading process of the application, and the setting application for the screen orientation issued by the preloading application is prevented from interfering with the current system screen direction to ensure the stability of the system display. Sex.
  • determining that the application is a foreground application determining that the application is a foreground application; updating a system screen orientation according to the setting request, and determining whether to control the screen according to the updated system screen orientation Perform a rotation operation.
  • the application that issued the setting application is not a preloading application, it may be determined that the application is an application that is being started in the foreground, and then the system screen orientation needs to be updated according to the setting application to satisfy the foreground application to the screen. The direction of the requirements to ensure the normal operation and display of the foreground application.
  • prohibiting updating the system screen direction according to the setting request including: if yes, determining an application mode of the setting application; if it is a static mode, skipping the setting application, It is forbidden to update the system screen direction according to the setting request; if it is in the dynamic mode, the application direction is set for the application according to the setting application, and the system screen orientation is prohibited from being updated according to the setting application.
  • the advantage of this setting is that, for different application methods, the appropriate implementation prohibits the implementation of updating the system screen orientation according to the setting.
  • the static mode includes: adding a screen orientation attribute to a preset configuration file corresponding to the application; the dynamic manner includes: setting a screen orientation by a preset function corresponding to the application.
  • the static mode may be to add a screen orientation attribute to a specified configuration file corresponding to the application, and the system may record the order of each application that issues the screen orientation setting request. When the system updates the system direction, the system sends a setting request.
  • the dynamic mode may be that the screen orientation application is implemented by a function corresponding to the specified screen direction for setting the screen direction. If it is determined that the current setting application is issued by the preloading application, the direction of the application itself is only set according to the setting application. , and will not update the system direction to ensure that the screen rotation operation is not triggered.
  • the operating system includes an Android operating system; the static mode includes: adding an attribute of the android:screenOrientation to the specified activity in the AndroidManifest.xml file corresponding to the application; the dynamic manner includes: passing the application The corresponding function setRequestedOrientation() sets the screen orientation.
  • the active window is called Activity.
  • An Activity is a component responsible for interacting with a user, providing a screen (which can be understood as a screen interface rather than a physical display screen) for the user to interact with a task.
  • an android application an Activity is usually a separate screen that can display some controls and listen and handle user events.
  • the setting of the direction of the corresponding application interface is set by setting the screen orientation property of the activity, thereby setting the screen orientation of the application.
  • the code android:screenOrientation "landscape"
  • you can set its screen orientation to landscape that is, landscape represents landscape, and the same way, portrait represents vertical, and sensor represents automatic switching.
  • the landscape can be.
  • the preloaded application includes an application preloaded based on a pre-created preloaded active window stack, the corresponding boundary coordinates of the preloaded active window stack being outside the coordinate range of the display screen.
  • Task corresponds to an application
  • Task is used to store Activity
  • a Task can store one or more Activity, and these activities follow the principle of "advanced, last in, first out”.
  • Stack is used to manage the Task.
  • a Stack manages the Tasks to which each Activity needs to be displayed on a screen.
  • a Stack can manage one or more Tasks.
  • Stack also follows the basic management principles of the stack. .
  • the screen described here is not necessarily a completely separate display. Taking "two screens” as an example, these two screens may be just two areas in a complete display that independently display their respective display contents. Of course, if the terminal has two or even more than two independent displays, the "two screens" can also be two separate displays.
  • multi-window mode is supported, which can include split screen mode, picture in picture mode, and free mode (FreeForm).
  • the Stack on which the application resides can have its own size, which can include the top, bottom, left, and right coordinates in the coordinate system with the top left corner of the terminal screen as the origin.
  • (a, b, c, d) generally describes the boundary of a rectangle, which can be represented by the coordinates of the upper left corner of the rectangle and the coordinates of the lower right corner, that is, the coordinates of the upper left corner of the rectangle are (a, b), right.
  • the lower corner coordinates are (c, d), and such a rectangular area corresponds to the size of the Stack.
  • the in-app layout in the Stack is based on the size of the Stack, which means that the application interface corresponding to the Activity is displayed within the bounds of the size.
  • multiple applications can be allowed to be visible, both system and user visible and only system visible. Both the system and the user are visible to display on the display screen, and the user can see; only the system visible means that the operating system is visible, and the user is invisible, may be blocked by the application of the foreground or as implemented in the application. Display off-screen display.
  • pre-loading the application interface of the target application outside the display screen may be implemented based on a multi-window mechanism of the operating system, and the size corresponding to the application is set outside the display screen through the multi-window mechanism to achieve
  • the purpose of the user's invisibility is such that it does not affect the display of the foreground application's display content on the display screen.
  • a preloaded active window stack (preloaded stack) is added, which is used to represent the stack displayed by the preloaded application, and the boundary coordinates of the preloaded stack are set outside the coordinate range of the display screen, and are to be preloaded.
  • the app can be displayed on the stack.
  • a new stack dedicated to displaying preloaded applications can be created based on the multi-window mechanism of the Android system.
  • the new stack is created because the newly created preloaded stack can have its own size and visibility, thereby achieving pre-loading on the display screen.
  • the creation time of the preloaded stack is not limited, and the preloaded stack is in the resident state by default, that is, the preloaded stack is always present; or the terminal is successfully unlocked when the terminal is powered on or the terminal is successfully unlocked.
  • Post-create can also be created after the application preload event is triggered (can be determined before the target application is determined).
  • the specific process of the application interface corresponding to the preloading of the target application is not limited. For example, the application interface may be drawn and displayed based on the size of the preloaded stack.
  • the determining whether the application is a preloaded application comprises: obtaining an identity of an active window stack in which the application is located; determining whether the identity is a preloaded identity; if yes, Then the application is determined to be a preloaded application.
  • the boundary coordinates of the preloaded active window stack are (H, 0, 2H, H), the coordinate system corresponding to the boundary coordinates is system coordinates, and the origin of the system coordinates is the display.
  • H is the length of the long side of the display area of the display screen. That is to say, the edge corresponding to H is the largest side of the display area of the display screen, which is the height of the display screen when the vertical screen is displayed, and the width of the display screen when the horizontal screen is displayed.
  • the purpose of this setting is to take into account the horizontal screen of the display screen, the horizontal display of the preloaded application, and the normal display of some applications.
  • FIG. 2 is a schematic diagram of a relative position relationship between a preloaded active window stack and a display screen display area according to an embodiment of the present application.
  • the display screen is in the vertical screen mode, and the origin of the terminal system coordinates is the left vertex (0, 0) of the display screen 201.
  • the width direction of the display screen 201 is the X axis, and the height direction is the Y axis.
  • the boundary coordinates of the loaded Stack 202 are (H, 0, 2H, H), H is the screen height, that is, the area within the solid line rectangle on the left side is the main screen display area, and the area within the rectangular area of the right dashed line is the preloaded display area.
  • H is the screen height, that is, the area within the solid line rectangle on the left side is the main screen display area
  • the area within the rectangular area of the right dashed line is the preloaded display area.
  • FIG. 3 is a schematic diagram of a relative positional relationship between a preloaded active window stack and a display screen display area according to an embodiment of the present application.
  • the display screen is in the horizontal screen mode, and the origin of the terminal system coordinates is the left vertex (0, 0) of the display screen 301.
  • the height direction of the display screen 301 is the X axis, and the width direction is the Y axis.
  • the boundary coordinates of the loaded Stack 202 are (H, 0, 2H, H), H is the screen height, that is, the area within the solid line rectangle on the left side is the main screen display area, and the area within the rectangular area of the right dashed line is the preloaded display area.
  • the horizontal coordinate of the upper left corner is H, which is to prevent the display screen (also called the main screen) from being displayed to the interface of the preloaded application when the horizontal screen is used, because the main screen has the horizontal screen mode and the horizontal screen mode when the main screen is horizontal screen.
  • the horizontal coordinate of the upper left corner of the rectangular area corresponding to the preloaded stack is set to the screen height.
  • the ordinate of the upper left corner is 0, in order to preload the application to correctly calculate the status bar height.
  • the Android application will customize the top status bar. If the corresponding vertical coordinate is not equal to 0, the height of the status bar may be wrong.
  • the system screen orientation is updated according to a setting request for the screen orientation that the preloaded application has issued (or reissued), and the active window is preloaded
  • the application interface corresponding to the preloaded application included in the stack is migrated to the display screen for display.
  • FIG. 4 is a schematic flowchart of another method for setting a screen orientation according to an embodiment of the present disclosure. The method includes the following steps: Step 401 to Step 407.
  • step 401 a setting request for the screen orientation issued by the application is received.
  • step 402 an identity of the active window stack in which the application is located is obtained.
  • the preloading application includes an application preloaded based on a pre-created preloaded stack, and the boundary coordinates corresponding to the preloaded stack are outside the coordinate range of the display screen.
  • step 403 it is determined whether the identity identifier is a preloaded identity. If yes, step 404 is performed; otherwise, step 407 is performed.
  • step 404 it is determined whether the setting application is static or dynamic. If it is static, step 405 is performed; if it is dynamic, step 406 is performed.
  • the static mode includes: adding an attribute of the android:screenOrientation to the specified activity in the AndroidManifest.xml file corresponding to the application;
  • the dynamic mode includes: a function corresponding to the application setRequestedOrientation ( ) Set the screen orientation.
  • step 405 the setting request is skipped to prohibit updating the system screen orientation according to the setting request.
  • step 406 an application direction is set for the application according to the setting request, and the system screen orientation is prohibited from being updated according to the setting application.
  • step 407 it is determined that the application is a foreground application, the system screen orientation is updated according to the setting application, and whether the control screen is rotated according to the updated system screen direction is determined.
  • the control screen performs a rotation operation, and if they are consistent, the original screen can be maintained, that is, the rotation operation is not performed.
  • FIG. 5 is a schematic diagram of a comparison of a screen orientation setting process for a static mode according to an embodiment of the present application. As shown in FIG. 5, the flowchart on the left indicates the screen orientation setting process under normal conditions, that is, the application screen orientation is the foreground application. When the application A is opened as the foreground application, the application is found from the top of the corresponding Stack according to zorder.
  • FIG. 6 is a schematic diagram of a comparison of a screen orientation setting process for a dynamic mode according to an embodiment of the present application.
  • the flowchart on the left indicates the screen orientation setting process under normal conditions, that is, the application screen orientation is the foreground application.
  • the direction of the application B is set, and the direction of the system record is updated. If the system direction changes, the screen rotates; the flow chart on the right indicates the screen orientation setting process in the preloading situation, that is, the application screen orientation is the preloading application, and the application B is preloaded as the preloading application, and the setting is performed. End the process after applying the direction of B.
  • the screen orientation setting method provided by the embodiment of the present application, after receiving the setting application for the screen direction issued by the application, identifies whether the application is a preloaded application according to the identity of the Stack to which the application belongs, and if so, according to the setting application
  • the application method adopts different strategies to control the update of the screen orientation of the system and the rotation of the screen, preventing the setting application for the screen orientation issued by the preloading application from interfering with the current system screen orientation, and ensuring the stability of the system display.
  • FIG. 7 is a schematic flowchart of still another method for setting a screen orientation according to an embodiment of the present disclosure. As shown in FIG. 7 , the method includes: Step 701 to Step 711 .
  • step 701 it is detected that an application preload event is triggered.
  • step 702 a target application to be preloaded is determined.
  • step 703 an application interface corresponding to the target application is preloaded based on the pre-created preloaded active window stack.
  • the boundary coordinates corresponding to the preloaded active window stack are outside the coordinate range of the display screen.
  • step 704 a setup request for the screen orientation issued by the application is received.
  • step 705 an identity of the active window stack in which the application is located is obtained.
  • step 706 it is determined whether the identity identifier is a preloaded identity. If yes, step 707 is performed; otherwise, step 710 is performed.
  • step 707 the application is determined to be the target application, and the setting request is determined to be static or dynamic. If the application is static, step 708 is performed; if it is dynamic, step 709 is performed.
  • step 708 the setting request is skipped to prohibit updating the system screen orientation according to the setting request, and step 711 is performed.
  • step 709 the application direction is set for the target application according to the setting application, and the system screen orientation is prohibited from being updated according to the setting application, and step 711 is performed.
  • step 710 the application is determined to be a foreground application, and the system screen orientation is updated according to the setting request, and it is determined whether to control the screen to perform a rotation operation according to the updated system screen orientation.
  • step 711 upon receiving the running instruction of the target application, the system screen orientation is updated according to the setting request for the screen direction that the target application has issued, and the target application included in the preloading active window stack is correspondingly The application interface is migrated to the display screen for display.
  • the screen orientation setting method provided by the embodiment of the present application determines the target application after detecting that the application preload event is triggered, and preloads the application interface corresponding to the target application in the preloaded stack outside the display screen.
  • the loading process involves the drawing operation of the application interface, and the screen orientation needs to be applied in order to draw the interface of the corresponding screen orientation.
  • the application may be The pre-loaded target application is used, so the identity of the application needs to be determined, and then the corresponding strategy is adopted to control the update of the system screen orientation. If the system determines that no preloading of any application is currently in progress, the determination of the application identity and subsequent steps are eliminated, the execution of unnecessary steps is reduced, and system resources are saved.
  • FIG. 8 is a structural block diagram of a screen orientation setting apparatus according to an embodiment of the present disclosure.
  • the apparatus may be implemented by software and/or hardware, and is generally integrated in a terminal, and the screen orientation setting may be performed by executing a screen orientation setting method.
  • the apparatus includes: a setup application receiving module 801, a determination module 802, and a screen orientation update module 803.
  • the determining module 802 is configured to determine, when the setting request receiving module receives the setting application for the screen direction issued by the application, whether the application is a preloading application;
  • the screen orientation update module 803 is configured to prohibit updating the system screen orientation according to the setting request when the determination result of the determination module is YES.
  • the screen orientation setting device receives the setting application for the screen orientation issued by the application, determines whether the application that issued the setting application is a preloading application, and if so, prohibits updating the system screen according to the setting application. direction.
  • the setting operation of the system screen direction can be reasonably controlled during the preloading process of the application, and the setting application for the screen orientation issued by the preloading application is prevented from interfering with the current system screen direction to ensure the stability of the system display. Sex.
  • the screen orientation update module is further configured to:
  • the system screen orientation is updated according to the setting request, and it is determined whether to control the screen to perform a rotation operation according to the updated system screen orientation.
  • the application direction is set for the application according to the setting application, and the system screen orientation is prohibited from being updated according to the setting application.
  • the static mode includes: adding a screen orientation attribute to a preset configuration file corresponding to the application;
  • the dynamic manner includes: setting a screen orientation by a preset function corresponding to the application.
  • the operating system includes an Android operating system
  • the static mode includes: adding an attribute of the android:screenOrientation to the specified activity in the AndroidManifest.xml file corresponding to the application;
  • the dynamic mode includes setting a screen orientation by a function corresponding to the application setRequestedOrientation().
  • the preloaded application includes an application preloaded based on a pre-created preloaded active window stack, the boundary coordinates corresponding to the preloaded active window stack being outside the coordinate range of the display screen.
  • the determining whether the application is a preloaded application comprises:
  • the boundary coordinates of the preloaded active window stack are (H, 0, 2H, H), the coordinate system corresponding to the boundary coordinates is system coordinates, and the origin of the system coordinates is the display.
  • H is the length of the long side of the display area of the display screen.
  • the apparatus further includes:
  • a display module configured to, when receiving a run instruction of the preloaded application, request to update the system screen orientation according to a setting of a screen orientation issued or reissued by the preloaded application, and include the preloaded active window stack
  • the application interface corresponding to the preloaded application is migrated to the display screen for display.
  • the embodiment of the present application further provides a storage medium including computer executable instructions for executing a screen orientation setting method when executed by a computer processor, the method comprising:
  • Storage media any of a variety of types of memory devices or storage devices.
  • the term "storage medium” is intended to include: a mounting medium such as a CD-ROM, a floppy disk or a tape device; a computer system memory or a random access memory such as DRAM, DDRRAM, SRAM, EDORAM, Rambus RAM, etc.; Volatile memory, such as flash memory, magnetic media (such as hard disk or optical storage); registers or other similar types of memory elements, and the like.
  • the storage medium may also include other types of memory or a combination thereof.
  • the storage medium may be located in a first computer system in which the program is executed, or may be located in a different second computer system, the second computer system being coupled to the first computer system via a network, such as the Internet.
  • the second computer system can provide program instructions to the first computer for execution.
  • the term "storage medium" can include two or more storage media that can reside in different locations (eg, in different computer systems connected through a network).
  • a storage medium may store program instructions (e.g., embodied as a computer program) executable by one or more processors.
  • the storage medium containing the computer executable instructions provided by the embodiment of the present application is not limited to the screen orientation setting operation as described above, and may also perform the screen orientation setting provided by any embodiment of the present application. Related operations in the method.
  • FIG. 9 is a schematic structural diagram of a terminal according to an embodiment of the present application.
  • the terminal 900 may include a memory 901, a processor 902, and a computer program stored on the memory 901 and operable by the processor 902, and the processor 902 executes the computer program to implement the screen orientation as described in the embodiment of the present application. Setting method.
  • the terminal provided by the embodiment of the present application can reasonably control the setting operation of the screen orientation of the system during the preloading process of the application, and prevent the setting application for the screen orientation issued by the preloading application from causing interference to the current system screen direction, and ensuring the system display. Stability.
  • FIG. 10 is a schematic structural diagram of another terminal according to an embodiment of the present disclosure.
  • the terminal may include: a housing (not shown), a memory 1001, and a central processing unit (CPU) 1002 (also referred to as processing).
  • the device hereinafter referred to as CPU
  • the circuit board is disposed inside a space enclosed by the casing; the CPU 1002 and the memory 1001 are disposed on the circuit board; and the power circuit is configured to supply power to each circuit or device of the terminal;
  • the memory 1001 is configured to store executable program code; the CPU 1002 runs a computer program corresponding to the executable program code by reading executable program code stored in the memory 1001 to implement the following steps:
  • the terminal further includes: a peripheral interface 1003, a radio frequency (RF) circuit 1005, an audio circuit 1006, a speaker 1011, a power management chip 1008, an input/output (I/O) subsystem 1009, and other input/control devices. 1010, touch screen 1012, other input/control devices 1010, and external port 1004, these components are in communication over one or more communication buses or signal lines 1007.
  • RF radio frequency
  • I/O input/output subsystem
  • the illustrated terminal 1000 is merely one example of a terminal, and the terminal 1000 may have more or fewer components than those shown in the figures, two or more components may be combined, or may have Different component configurations.
  • the various components shown in the figures can be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
  • the terminal for screen orientation setting provided in this embodiment is described in detail below.
  • the terminal uses a mobile phone as an example.
  • the memory 1001 may be accessed by the CPU 1002, the peripheral interface 1003, etc., and the memory 1001 may include a high speed random access memory, and may further include a nonvolatile memory such as one or more magnetic disk storage devices, flash memory devices. Or other volatile solid-state storage devices.
  • a nonvolatile memory such as one or more magnetic disk storage devices, flash memory devices. Or other volatile solid-state storage devices.
  • Peripheral interface 1003 which can connect the input and output peripherals of the device to CPU 1002 and memory 1001.
  • the I/O subsystem 1009 can connect input and output peripherals on the device, such as touch screen 1012 and other input/control devices 1010, to peripheral interface 1003.
  • the I/O subsystem 1009 can include a display controller 10091 and one or more input controllers 10092 for controlling other input/control devices 1010.
  • one or more input controllers 10092 receive electrical signals from other input/control devices 1010 or transmit electrical signals to other input/control devices 1010, and other input/control devices 1010 may include physical buttons (press buttons, rocker buttons, etc.) ), dial, slide switch, joystick, click wheel.
  • the input controller 10092 can be connected to any of the following: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.
  • the touch screen 1012 is an input interface and an output interface between the user terminal and the user, and displays the visual output to the user.
  • the visual output may include graphics, text, icons, videos, and the like.
  • Display controller 10091 in I/O subsystem 1009 receives electrical signals from touch screen 1012 or transmits electrical signals to touch screen 1012.
  • the touch screen 1012 detects the contact on the touch screen, and the display controller 10091 converts the detected contact into an interaction with the user interface object displayed on the touch screen 1012, that is, realizes human-computer interaction, and the user interface object displayed on the touch screen 1012 may be running.
  • the icon of the game, the icon of the network to the corresponding network, and the like.
  • the device may also include a light mouse, which is a touch sensitive surface that does not display a visual output, or an extension of a touch sensitive surface formed by the touch screen.
  • the RF circuit 1005 is mainly configured to establish communication between the mobile phone and the wireless network (ie, the network side), and implement data reception and transmission between the mobile phone and the wireless network. For example, sending and receiving short messages, emails, and the like. Specifically, the RF circuit 1005 receives and transmits an RF signal, which is also referred to as an electromagnetic signal, and the RF circuit 1005 converts the electrical signal into an electromagnetic signal or converts the electromagnetic signal into an electrical signal, and passes the electromagnetic signal to the communication network and other devices. Communicate.
  • an RF signal which is also referred to as an electromagnetic signal
  • the RF circuit 1005 may include known circuitry for performing these functions including, but not limited to, an antenna system, an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a codec CODER-DECoder (CODEC) chipset, Subscriber Identity Module (SIM), etc.
  • an antenna system an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a codec CODER-DECoder (CODEC) chipset, Subscriber Identity Module (SIM), etc.
  • CDEC codec CODER-DECoder
  • SIM Subscriber Identity Module
  • the audio circuit 1006 is primarily configured to receive audio data from the peripheral interface 1003, convert the audio data into an electrical signal, and transmit the electrical signal to the speaker 1011.
  • the speaker 1011 is arranged to restore the voice signal received by the mobile phone from the wireless network through the RF circuit 1005 to sound and play the sound to the user.
  • the power management chip 1008 is configured to supply power and power management for the hardware connected to the CPU 1002, the I/O subsystem, and the peripheral interface.
  • the screen orientation setting device, the storage medium, and the terminal provided in the foregoing embodiments may perform the screen orientation setting method provided by any embodiment of the present application, and have corresponding functional modules and beneficial effects for performing the method.
  • the screen orientation setting method provided by any embodiment of the present application.

Landscapes

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

Abstract

La présente invention concerne un procédé et un dispositif de réglage de direction d'écran, un support d'informations et un terminal. Le procédé consiste : à recevoir une application de réglage, envoyée par un programme d'application, pour une direction d'écran ; à déterminer si le programme d'application est un programme d'application préchargé ; et si tel est le cas, à interdire la mise à jour, conformément à l'application de réglage, de la direction d'écran du système.
PCT/CN2019/084787 2018-05-10 2019-04-28 Procédé et dispositif de réglage de direction d'écran, support d'informations et terminal WO2019214476A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810444124.7A CN108647057B (zh) 2018-05-10 2018-05-10 屏幕方向设置方法、装置、存储介质及终端
CN201810444124.7 2018-05-10

Publications (1)

Publication Number Publication Date
WO2019214476A1 true WO2019214476A1 (fr) 2019-11-14

Family

ID=63754357

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/084787 WO2019214476A1 (fr) 2018-05-10 2019-04-28 Procédé et dispositif de réglage de direction d'écran, support d'informations et terminal

Country Status (2)

Country Link
CN (1) CN108647057B (fr)
WO (1) WO2019214476A1 (fr)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108647057B (zh) * 2018-05-10 2020-04-24 上海瑾盛通信科技有限公司 屏幕方向设置方法、装置、存储介质及终端
CN110533628B (zh) * 2019-07-10 2022-05-13 中移(杭州)信息技术有限公司 一种确定屏幕方向的方法、装置及可读存储介质
CN112286423A (zh) * 2019-07-23 2021-01-29 珠海金山办公软件有限公司 一种显示文档的方法、系统、存储介质和终端
CN110737486A (zh) * 2019-10-21 2020-01-31 北京小米移动软件有限公司 游戏加速配置的方法、装置及计算机可读存储介质
CN113535044A (zh) * 2021-07-05 2021-10-22 深圳康佳电子科技有限公司 一种屏幕旋转显示方法、装置、终端设备及存储介质
CN113641437B (zh) * 2021-08-16 2023-06-16 深圳技德智能科技研究院有限公司 一种Linux兼容Android的应用界面旋转方法及装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103376974A (zh) * 2013-06-28 2013-10-30 广州市动景计算机科技有限公司 一种窗口切换方法及装置
US20140320395A1 (en) * 2013-04-29 2014-10-30 Chiun Mai Communication Systems, Inc. Electronic device and method for adjusting screen orientation of electronic device
CN105723322A (zh) * 2013-09-13 2016-06-29 惠普发展公司,有限责任合伙企业 屏幕方向
CN108647057A (zh) * 2018-05-10 2018-10-12 Oppo广东移动通信有限公司 屏幕方向设置方法、装置、存储介质及终端

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105306743A (zh) * 2015-09-30 2016-02-03 小米科技有限责任公司 屏幕控制方法及装置
CN107193379B (zh) * 2017-05-23 2021-01-26 努比亚技术有限公司 应用程序启动方法、终端及计算机可读存储介质
CN107300973A (zh) * 2017-06-21 2017-10-27 深圳传音通讯有限公司 屏幕旋转控制方法、系统以及装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140320395A1 (en) * 2013-04-29 2014-10-30 Chiun Mai Communication Systems, Inc. Electronic device and method for adjusting screen orientation of electronic device
CN103376974A (zh) * 2013-06-28 2013-10-30 广州市动景计算机科技有限公司 一种窗口切换方法及装置
CN105723322A (zh) * 2013-09-13 2016-06-29 惠普发展公司,有限责任合伙企业 屏幕方向
CN108647057A (zh) * 2018-05-10 2018-10-12 Oppo广东移动通信有限公司 屏幕方向设置方法、装置、存储介质及终端

Also Published As

Publication number Publication date
CN108647057A (zh) 2018-10-12
CN108647057B (zh) 2020-04-24

Similar Documents

Publication Publication Date Title
US11086663B2 (en) Preloading application using active window stack
CN108762843B (zh) 应用程序的预加载方法、装置、存储介质及智能终端
US11467855B2 (en) Application preloading method and device, storage medium and terminal
CN108681475B (zh) 应用程序预加载方法、装置、存储介质及移动终端
WO2019214476A1 (fr) Procédé et dispositif de réglage de direction d'écran, support d'informations et terminal
WO2019233241A1 (fr) Procédé et appareil de démarrage de programme d'application, et support de stockage et terminal
US11604660B2 (en) Method for launching application, storage medium, and terminal
CN108647055B (zh) 应用程序预加载方法、装置、存储介质及终端
EP3575961B1 (fr) Procédé et appareil de mise à jour de modèle de prédiction d'application, support d'informations et terminal
US20190370603A1 (en) Method and apparatus for establishing an application prediction model, storage medium and terminal
WO2019223578A1 (fr) Procédé et appareil de préchargement de programme d'application, et support de stockage et terminal
WO2019218885A1 (fr) Procédé et appareil de préchargement de programme d'application, et support de stockage et terminal intelligent
CN108595224B (zh) 应用程序提示方法、装置、存储介质及终端
WO2019214477A1 (fr) Procédé et dispositif de traitement de préchargement de programme d'application, support de stockage et terminal
WO2019218886A1 (fr) Procédé de gestion de préchargement d'application, dispositif, support de stockage et terminal intelligent
US20190370021A1 (en) Method for Preloading Application, Storage Medium, and Terminal
CN108804153B (zh) 应用程序的预加载方法、装置、存储介质及终端
CN108762831B (zh) 应用程序预加载方法、装置、存储介质及终端
CN108958828B (zh) 应用程序预加载方法、装置、存储介质及终端
WO2019214475A1 (fr) Procédé de préchargement d'application, dispositif, support d'informations et terminal mobile
CN108762836B (zh) 预加载应用的管理方法、装置、存储介质及智能终端
CN108845838B (zh) 应用程序预加载方法、装置、存储介质及终端

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19800706

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19800706

Country of ref document: EP

Kind code of ref document: A1