Disclosure of Invention
An object of embodiments of the present invention is to provide a method, an apparatus, a terminal, and a computer-readable storage medium for displaying a screen, so that the screen of a multi-screen terminal is reasonably utilized in different scenarios, and meanwhile, user requirements can be met, the utilization rate of the screen is improved, and the use experience of the multi-screen terminal is improved.
In order to solve the above technical problem, an embodiment of the present invention provides a method for displaying a screen, which is applied to a terminal, where the terminal includes at least two screens, and the method includes: acquiring monitoring data obtained by monitoring a terminal, wherein the monitoring data comprises data information of the surrounding environment where the terminal is located and operation data information of the terminal when a user is located in the current environment; determining a use situation identifier of the terminal according to the monitoring data, wherein the use situation identifier is used for identifying the system state of the terminal in the current environment; determining a display mode of the terminal according to the use situation identifier of the terminal, wherein the display mode comprises at least two screen identifiers to be displayed and contents to be displayed corresponding to the screen identifiers to be displayed; and controlling at least two screens to display the content according to the display mode.
An embodiment of the present invention further provides an apparatus for screen display, including: the system comprises a monitoring module, an acquisition module, a use situation identifier determination module, a display mode determination module, a display module and a main control module, wherein the display module comprises at least two screens; the monitoring module is used for monitoring data information of the surrounding environment where the terminal is located and operation data information of the terminal when a user is located in the current environment; the acquisition module is used for acquiring monitoring data obtained by the monitoring module through monitoring the terminal; the using situation identification determining module is used for determining the using situation identification of the terminal according to the monitoring data, wherein the using situation identification is used for identifying the system state of the terminal in the current environment; the display mode determining module is used for determining the display mode of the terminal according to the use situation identifier of the terminal, wherein the display mode comprises at least two screen identifiers to be displayed and contents to be displayed corresponding to the screen identifiers to be displayed;
the main control module is used for controlling at least two screens in the display module to display contents according to the display mode.
An embodiment of the present invention further provides a terminal, including: at least one processor; and a memory communicatively coupled to the at least one processor; the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the method for displaying the screen.
The embodiment of the invention also provides a computer readable storage medium, which stores a computer program, and the computer program realizes the screen display method when being executed by a processor.
Compared with the prior art, the method and the device have the advantages that the system state of the terminal in the current environment is judged in real time by monitoring the data information of the surrounding environment where the terminal is located and monitoring the operation data information of the terminal in the current environment of the user, so that the display mode suitable for the terminal in the current environment can be determined according to the current system state of the terminal, the content displayed by the terminal and the displayed screen can better meet the requirements of the user, and the display rationality is improved; meanwhile, at least two screens are controlled to display contents according to the display modes at the same time, so that the effective utilization of the multiple screens in the multi-screen terminal is improved.
In addition, determining the display mode of the terminal according to the use situation identifier of the terminal specifically includes: judging whether the use situation identifier of the terminal is matched with a preset situation identifier or not; if so, determining that the display mode of the terminal is a preset display mode corresponding to the preset situation; and if not, acquiring personal data of a user corresponding to the terminal, and determining the display mode of the current terminal according to the personal data of the user and the use situation identifier of the terminal, wherein the personal data of the user comprises operation data information of the user on the terminal in a preset time length and display content of the terminal. In the embodiment, by matching the use situation identifier of the terminal with the preset situation identifier, when the matching is successful, the preset situation identifier has the corresponding preset display mode, so that the display mode of the terminal can be quickly determined, and the speed of determining the display mode is improved; because the personal data of the user is acquired within the preset time, the acquired data information is detailed and closer to the personal preference of the user, the display mode meeting the requirements of the user can be obtained by analyzing the personal data of the user, and the accuracy of determining the display mode is improved.
In addition, before acquiring monitoring data obtained by monitoring the terminal, the method for displaying on the screen further comprises the following steps: and storing a first mapping relation set by a user corresponding to the terminal, wherein the first mapping relation comprises a corresponding relation between a preset situation identifier and a preset display mode corresponding to the preset situation. In the embodiment, the first mapping relation is set by the user, so that the requirement and the preference of the user are met by the preset display mode determined according to the first mapping relation, and the use experience of the user is improved.
In addition, according to the monitoring data, determining a use situation identifier of the terminal specifically includes: determining the environmental information of the terminal according to the data information of the surrounding environment of the terminal; determining the system state of the current environment of the terminal according to the environment information of the terminal and the operation data information of the terminal when the user is in the current environment; and determining the use situation identifier of the terminal according to the determined system state of the terminal in the current environment and a second mapping relation, wherein the second mapping relation comprises the corresponding relation between the system state of the terminal in the current environment and the use situation identifier. In this embodiment, the current usage context identifier of the terminal is determined through the second mapping relationship and the monitoring data, so that the usage context identifier of the terminal can be determined quickly.
In addition, if the terminal is in communication connection with the cloud, the personal data of the user corresponding to the terminal is acquired from the cloud, wherein the personal data of the user further comprises operation data information of the user on the terminal except the terminal, which is owned by the user within a preset time length. In the embodiment, when the terminal is in communication connection with the cloud, the personal data of the user is acquired from the cloud, and the personal data of the user also comprises the operation data of other terminals of the user, so that the acquired personal data of the user can be enriched, and the accuracy of the determined display mode of the terminal is further enhanced.
In addition, if the terminal is not networked, the personal data of the user corresponding to the terminal is acquired from the terminal. In the embodiment, the condition of no networking is supported, and the adaptability of the screen display method is improved.
In addition, personal data of the user is also cached in the terminal. In the embodiment, the personal data of the user is cached in the terminal, so that the speed of acquiring the personal data of the user can be increased.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. However, it will be appreciated by those of ordinary skill in the art that numerous technical details are set forth in order to provide a better understanding of the present application in various embodiments of the present invention. However, the technical solution claimed in the present application can be implemented without these technical details and various changes and modifications based on the following embodiments.
A first embodiment of the present invention relates to a method of screen display. The method for screen display is applied to a terminal, and the terminal comprises at least two screens, for example, a dual-screen intelligent mobile terminal. The specific flow of the screen display method is shown in fig. 1, and comprises the following steps:
step 101: and acquiring monitoring data obtained by monitoring the terminal, wherein the monitoring data comprises data information of the surrounding environment where the terminal is located and operation data information of the terminal when a user is located in the current environment.
Specifically, the monitoring module in the terminal monitors the terminal in real time, for example, the audio signal of the surrounding environment where the terminal is located may be acquired through a microphone, the acquired audio signal of the surrounding environment is used as the data information of the surrounding environment where the terminal is located, the image of the surrounding environment may be shot through a camera provided on the terminal, and the shot image of the surrounding environment of the terminal is used as the data information of the surrounding environment where the terminal is located, which is needless to say, the data information of the surrounding environment where the terminal is located may also include the audio signal and the image of the surrounding environment where the terminal is located. In this embodiment, the contents of the data information of the surrounding environment where the terminal is located are not listed one by one, and can be specifically selected according to the actual situation.
The monitoring module of the terminal can also monitor operation data information of a user on the terminal in real time, for example, in the terminal, when the user touches a screen of the terminal, the terminal can acquire touch gesture information of the user, so that a related execution program is called according to the touch gesture, and the monitoring module acquires the touch gesture information acquired by the terminal in real time.
Step 102: and determining a use situation identifier of the terminal according to the monitoring data, wherein the use situation identifier is used for identifying the system state of the terminal in the current environment.
Specifically, the main control module of the terminal identifies the data information of the surrounding environment where the terminal is located and the operation data information of the terminal when the user is in the current environment, and can determine the use situation identifier for representing the system state of the terminal in the current environment by matching with the environment information stored in the terminal and the stored various operation data information. For example, assuming that the usage situation identifier D is used to identify a usage situation in which the terminal is in a game state in a quiet environment, if it is monitored that the audio frequency band of the ambient environment of the terminal a is low or no audio signal of the ambient environment is monitored, and game operation data information is monitored, it can be determined that the terminal a is in the quiet environment and is in the game state at this time, and thus the usage situation identifier corresponding to the terminal a is determined to be the usage situation identifier D.
Step 103: and determining a display mode of the terminal according to the use situation identifier of the terminal, wherein the display mode comprises at least two to-be-displayed screen identifiers and to-be-displayed contents corresponding to the to-be-displayed screen identifiers.
Specifically, a corresponding mapping relation exists between the use situation identifier and the display mode of the terminal, and the mapping relation can be obtained by analyzing big data through a cloud end, or can be determined by the terminal through machine learning according to the system state of the current terminal. Of course, it can also be obtained by user setting. The display mode includes at least two to-be-displayed screen identifiers and to-be-displayed content corresponding to the to-be-displayed screen identifiers, for example, in a dual-screen terminal, one display mode includes: the main screen identification, the main screen content to be displayed, and the auxiliary screen identification, the auxiliary screen content to be displayed. It can be understood that the display mode may further include display modes (display duration, representation mode of the display image, etc.) of each screen to be displayed. The content included in the display mode is not limited in this embodiment, and may be specifically set according to an actual situation.
Step 104: and controlling at least two screens to display the content according to the display mode.
Specifically, a main control module of the terminal acquires each to-be-displayed screen identifier in a display mode and display content corresponding to the to-be-displayed screen identifier, and for each to-be-displayed screen: and the main control module controls the screen to be displayed to display corresponding display content according to the acquired identifier of the screen to be displayed. The display content may be an image, a video, a text, or the like.
Compared with the prior art, the method and the device have the advantages that the system state of the terminal in the current environment is judged in real time by monitoring the data information of the surrounding environment where the terminal is located and monitoring the operation data information of the terminal in the current environment of the user, so that the display mode suitable for the terminal in the current environment can be determined according to the current system state of the terminal, the content displayed by the terminal and the displayed screen can better meet the requirements of the user, and the display rationality is improved; meanwhile, due to the fact that the at least two screens are controlled to display the content according to the display mode, effective utilization of the multiple screens in the multi-screen terminal is improved, and the utilization rate of the screens in the multi-screen terminal is improved.
A second embodiment of the present invention relates to a method of screen display. The second embodiment is a further improvement of the first embodiment, and the main improvements are as follows: in a second embodiment of the present invention, a method for determining a display mode of a terminal according to a usage context identifier of the terminal and displaying on a screen before acquiring monitoring data obtained by monitoring the terminal is described in detail, further including: and storing a first mapping relation set by a user corresponding to the terminal. The specific flow of the method for screen display is shown in fig. 2.
Step 201: and storing a first mapping relation set by a user corresponding to the terminal, wherein the first mapping relation comprises a corresponding relation between a preset situation identifier and a preset display mode corresponding to the preset situation.
Specifically, the preset context identifier may be set by a user, or may be a default preset context identifier, for example, it is assumed that the default preset context identifier of the terminal is "context AAA", "context BBB", or the like, and of course, the default preset context identifier may also be a null identifier. Similarly, the preset display mode can be set by the user according to the self requirement, and the default preset display mode of the system can also be adopted. Because the first mapping relation includes the corresponding relation between the preset situation identifier and the preset display mode corresponding to the preset situation identifier, the user can set the first mapping relation according to the own requirement, for example, the user can set the use situation identifier a to correspond to the display mode a.
In addition, the user may set the mapping relationship only once when the terminal is initially turned on, may set the first mapping relationship multiple times, or may set multiple mapping relationships once. Of course, the terminal stores the first mapping relationship set each time by the user. Alternatively, the user may not set the first mapping relationship, and if the first mapping relationship is not set, the execution is started from step 202.
Step 202: and acquiring monitoring data obtained by monitoring the terminal, wherein the monitoring data comprises data information of the surrounding environment where the terminal is located and operation data information of the terminal when a user is located in the current environment.
In a specific implementation, the environment information of the terminal is determined according to the data information of the surrounding environment where the terminal is located; determining the system state of the current environment of the terminal according to the environment information of the terminal and the operation data information of the terminal when the user is in the current environment; and determining the use situation identifier of the terminal according to the determined system state of the terminal in the current environment and a second mapping relation, wherein the second mapping relation comprises the corresponding relation between the system state of the terminal in the current environment and the use situation identifier.
Specifically, the acquired data information of the surrounding environment where the terminal is located is analyzed, the environment information where the terminal is currently located is determined, for example, if the data information of the surrounding where the terminal is located is an audio signal of the surrounding environment, the audio signal is identified, and if the sound of a track is identified, the terminal is determined to be located near a train or a subway. The system state of the current terminal can be determined by analyzing the specific operation data information, for example, if the obtained user performs a touch operation on a key for answering a call, the system state of the current terminal can be determined to be a call state.
It is to be understood that, in order to facilitate the determination of the system state of the terminal, at least one operation data information may be acquired when the terminal is in the current environment, for example, the click operation, the slide operation on the screen, and the data information of the playing sound are acquired, and then according to the above three operation data information, through the analysis of the time, frequency, and specific operation of acquiring the three operations, it may be determined that the terminal is in the game state currently. After the system state of the current terminal is determined through analysis of the operation data information, the system state of the current terminal in the current environment can be determined through combining the currently determined environment of the terminal. Of course, in this embodiment, the content included in the operation data information of the terminal is not limited when the user is in the current environment, and may be specifically adjusted according to actual needs.
Since the second mapping relationship includes the corresponding relationship between the system state of the terminal in the current environment and the usage context identifier, when the system state of the terminal in the current environment is determined, the usage context identifier corresponding to the system state of the terminal can be determined through the second mapping relationship. It is understood that the second mapping relationship may be preset by the user and stored in the current terminal, or may be obtained through big data analysis and stored in the current terminal. The embodiment does not limit the specific obtaining manner of the second mapping relationship, and can be set according to actual needs.
Step 203: and determining a use situation identifier of the terminal according to the monitoring data, wherein the use situation identifier is used for identifying the system state of the terminal in the current environment.
Step 204: and judging whether the use situation identifier of the terminal is matched with a preset situation identifier or not, if so, executing the step 205, otherwise, executing the step 206.
Specifically, the use situation identifier of the terminal is compared with the preset situation identifier, if the use situation identifier of the terminal is the same as the preset situation identifier, the use situation identifier of the terminal is judged to be matched with the preset situation identifier, and if the use situation identifier of the terminal is not the same as the preset situation identifier, the use situation identifier of the terminal is judged to be not matched with the preset situation identifier.
Step 205: and if the display mode of the terminal is determined to be the preset display mode corresponding to the preset situation, and if the step is finished, the step 207 is executed.
Specifically, the display mode corresponding to the use situation identifier of the terminal can be determined to be the display mode preset in the first mapping relation through the stored first mapping relation. For example, assume a first mapping: and presetting a context identifier AAA, wherein the display mode corresponding to the AAA is BBB, and if the use context identifier of the terminal is the same as the preset context identifier AAA, determining that the display mode of the current terminal is BBB.
Step 206: the method comprises the steps of obtaining personal data of a user corresponding to a terminal, and determining a current display mode of the terminal according to the personal data of the user and a use situation identifier of the terminal, wherein the personal data of the user comprises operation data information of the user on the terminal in a preset time length and display content of the terminal.
In a specific implementation, if the terminal is in communication connection with the cloud, the personal data of the user corresponding to the terminal is acquired from the cloud, wherein the personal data of the user further includes operation data information of the user on the terminal except the terminal owned by the user within a preset time length.
Specifically, if the terminal is in communication connection with the cloud, the terminal can acquire more and richer personal data of the user from the cloud. Here, the personal data of the user further includes data information, which is acquired from the cloud and is used by the user for operating other devices owned by the user within a preset time period, and it can be understood that the operation data of the terminal and the display content of the terminal, which are acquired by the user, can be acquired from the terminal. The personal data of the user may also include favorite data of the user, such as daily reading data information, music content, game content, daily notes, and the like. Of course, the more personal data of the user is obtained, and the more accurate the determined display mode of the terminal is in combination with the use situation identifier of the terminal.
It should be noted that, in order to ensure the accuracy of the display mode judgment of the terminal, the time period of the preset time period should not be too long, for example, the preset time period may be about 1 week and 3 days. Of course, the acquired personal data of the user is also cached in the terminal, so that the terminal can acquire the personal data of the user when the network is not connected.
It should be noted that the terminal can determine the display mode corresponding to the terminal by analyzing and learning the personal data of the user.
In a specific implementation, if the terminal is not networked, the personal data of the user corresponding to the terminal is obtained from the terminal.
Specifically, if the terminal is not networked, the terminal may obtain personal data of the user stored in the terminal, for example, reading a gallery, a video, monitoring data, and the like in the terminal.
It should be noted that, no matter whether the terminal is connected to the cloud, the terminal acquires the personal data of the user, and the personal data can be acquired only by obtaining the authorization of the user, so that the privacy of the user is ensured.
Step 207: and controlling at least two screens to display the content according to the display mode.
In addition, steps 202 and 207 in this embodiment are substantially the same as steps 101 and 104 in the first embodiment, and will not be described again in this embodiment.
According to the screen display method provided by the embodiment, the use situation identifier of the terminal is matched with the preset situation identifier, and when the matching is successful, the preset situation identifier has the corresponding preset display mode, so that the display mode of the terminal can be quickly determined, and the speed of determining the display mode is improved; because the personal data of the user is acquired within the preset time, the acquired data information is detailed and closer to the personal preference of the user, the display mode meeting the requirements of the user can be obtained by analyzing the personal data of the user, and the accuracy of determining the display mode is improved.
The steps of the above methods are divided for clarity, and the implementation may be combined into one step or split some steps, and the steps are divided into multiple steps, so long as the same logical relationship is included, which are all within the protection scope of the present patent; it is within the scope of the patent to add insignificant modifications to the algorithms or processes or to introduce insignificant design changes to the core design without changing the algorithms or processes.
The third embodiment of the present invention relates to a screen display apparatus 30 including: the system comprises a monitoring module 301, an acquisition module 302, a usage context identification determination module 303, a display mode determination module 304, a display module 305 and a main control module 306, wherein the display module 305 comprises at least two screens, and the specific structure is shown in fig. 3.
The monitoring module 301 is configured to monitor data information of a surrounding environment where the terminal is located and operation data information of the terminal in a current environment of a user; the obtaining module 302 is configured to obtain monitoring data obtained by the monitoring module 301 monitoring the terminal. And a usage context identifier determining module 303, configured to determine a usage context identifier of the terminal according to the monitoring data, where the usage context identifier is used to identify a system state of the terminal in the current environment. A display mode determining module 304, configured to determine a display mode of the terminal according to the usage context identifier of the terminal, where the display mode includes at least two to-be-displayed screen identifiers and to-be-displayed content corresponding to the to-be-displayed screen identifiers. The main control module 306 is used for controlling at least two screens in the display module 305 to display the content according to the display mode.
It should be understood that this embodiment is a system example corresponding to the first embodiment, and may be implemented in cooperation with the first embodiment. The related technical details mentioned in the first embodiment are still valid in this embodiment, and are not described herein again in order to reduce repetition. Accordingly, the related-art details mentioned in the present embodiment can also be applied to the first embodiment.
It should be noted that each module referred to in this embodiment is a logical module, and in practical applications, one logical unit may be one physical unit, may be a part of one physical unit, and may be implemented by a combination of multiple physical units. In addition, in order to highlight the innovative part of the present invention, elements that are not so closely related to solving the technical problems proposed by the present invention are not introduced in the present embodiment, but this does not indicate that other elements are not present in the present embodiment.
A fourth embodiment of the present invention relates to a screen display apparatus. The fourth embodiment is a further improvement of the third embodiment, and the main improvements are as follows: in the fourth embodiment of the present invention, the display mode determination module 304 includes a matching sub-module 3041 and a determination sub-module 3042. The specific structure of the display mode determination module is shown in fig. 4.
The matching sub-module 3041 in the display mode determining module 304 determines whether the usage context identifier of the terminal matches with the preset context identifier; if so, the determining sub-module 3042 determines that the display mode of the terminal is the preset display mode corresponding to the preset situation; if not, the determining sub-module 3042 obtains the personal data of the user corresponding to the terminal, and determines the display mode of the current terminal according to the personal data of the user and the usage context identifier of the terminal, where the personal data of the user includes operation data information of the terminal by the user within a preset time period and display content of the terminal.
The device 50 for screen display further includes a storage module 507, and before acquiring monitoring data obtained by monitoring the terminal, the storage module 507 stores a first mapping relationship set by a user corresponding to the terminal. The device 50 for screen display is shown in fig. 5, wherein other modules in the figure are substantially the same as those in the third embodiment, and will not be described again here.
Since the second embodiment corresponds to the present embodiment, the present embodiment can be implemented in cooperation with the second embodiment. The related technical details mentioned in the second embodiment are still valid in this embodiment, and the technical effects that can be achieved in the second embodiment can also be achieved in this embodiment, and are not described herein again in order to reduce the repetition. Accordingly, the related-art details mentioned in the present embodiment can also be applied to the second embodiment.
A fifth embodiment of the present invention relates to a terminal 60 including: at least one processor 601; and a memory 602 communicatively coupled to the at least one processor 601; the memory 602 stores instructions executable by the at least one processor 601, and the instructions are executed by the at least one processor 601 to enable the at least one processor 601 to execute the method for displaying a screen in the first embodiment or the second embodiment, and the specific structure is as shown in fig. 6.
Where the memory 602 and the processor 601 are connected by a bus, the bus may comprise any number of interconnected buses and bridges, the buses linking one or more of the various circuits of the processor 601 and the memory 602 together. The bus may also link various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. A bus interface provides an interface between the bus and the transceiver. The transceiver may be one element or a plurality of elements, such as a plurality of receivers and transmitters, providing a means for communicating with various other apparatus over a transmission medium. The data processed by the processor 601 is transmitted over a wireless medium via an antenna, which further receives the data and transmits the data to the processor.
The processor 601 is responsible for managing the bus and general processing and may also provide various functions including timing, peripheral interfaces, voltage regulation, power management, and other control functions. And the memory may be used to store data used by the processor in performing operations.
Those skilled in the art can understand that all or part of the steps in the method of the foregoing embodiments may be implemented by a program to instruct related hardware, where the program is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, etc.) or a processor (processor) to execute all or part of the steps of the method described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It will be understood by those of ordinary skill in the art that the foregoing embodiments are specific examples for carrying out the invention, and that various changes in form and details may be made therein without departing from the spirit and scope of the invention in practice.