CN109960559B - Message window management method of terminal application program and related device - Google Patents

Message window management method of terminal application program and related device Download PDF

Info

Publication number
CN109960559B
CN109960559B CN201910252460.6A CN201910252460A CN109960559B CN 109960559 B CN109960559 B CN 109960559B CN 201910252460 A CN201910252460 A CN 201910252460A CN 109960559 B CN109960559 B CN 109960559B
Authority
CN
China
Prior art keywords
window
desktop
screen
terminal
message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910252460.6A
Other languages
Chinese (zh)
Other versions
CN109960559A (en
Inventor
以志
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhuhai Baohaowan Technology Co Ltd
Original Assignee
Zhuhai Baohaowan Technology Co Ltd
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 Zhuhai Baohaowan Technology Co Ltd filed Critical Zhuhai Baohaowan Technology Co Ltd
Priority to CN201910252460.6A priority Critical patent/CN109960559B/en
Publication of CN109960559A publication Critical patent/CN109960559A/en
Application granted granted Critical
Publication of CN109960559B publication Critical patent/CN109960559B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/451Execution arrangements for user interfaces

Abstract

The embodiment of the invention discloses a message window management method of a terminal application program and a related device, wherein the method comprises the following steps: when detecting that the user operation state on the first desktop displayed on the terminal screen meets a preset operation state, creating a second desktop and switching the display desktop of the terminal screen into the second desktop; creating a screen protection window based on the second desktop, and displaying the screen protection window to the terminal screen in a full screen manner; when a pop-up request of any message window of any application program in the terminal is received and any message window is a top layer window, any message window is output and displayed to the first desktop, so that the terminal screen is kept in a state of displaying a screen protection picture in a full screen. By adopting the embodiment of the invention, the screen protection window of the terminal can be ensured not to be interfered by the application program message popup, and the user experience is improved.

Description

Message window management method of terminal application program and related device
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and a device for managing a message window of a terminal application.
Background
At present, in order to facilitate a user to obtain and view interesting information in time, various message windows are set in application programs on a terminal (such as a smart phone, a tablet computer, a notebook computer, and the like) so as to display information to be displayed on a terminal desktop through the message windows for the user to read.
With the development of technology, message windows of application programs are more and more abundant, and many message windows can be directly popped up and displayed without the consent of users. Therefore, how to realize effective management of the message window and improve the user experience becomes a problem which needs to be solved urgently.
Disclosure of Invention
The embodiment of the invention provides a message window management method and a related device for a terminal application program, which can prevent a terminal screen protection window from being interfered by a message popup generated by the application program in a terminal and can improve user experience.
In a first aspect, an embodiment of the present invention provides a method for managing a message window of a terminal application, where the method includes:
when detecting that the user operation state on a first desktop displayed on a terminal screen meets a preset operation state, creating a second desktop and switching the display desktop of the terminal screen to the second desktop;
creating a screen protection window based on the second desktop, and displaying the screen protection window to the terminal screen in a full screen manner, wherein the screen protection window is used for displaying a screen protection picture, and the screen protection picture is used for covering information displayed on a display desktop of the terminal screen;
and when a pop-up request of any message window of any application program in the terminal is received and the message window is a top layer window, outputting and displaying the message window to the first desktop so as to enable the terminal screen to keep a full-screen display state of the screen protection picture.
In the embodiment of the invention, the message window of the application program in the terminal can be prevented from being displayed on the screen protection window by creating the second desktop and creating the screen protection window on the second desktop, the tidiness of the screen protection window can be kept, and the user experience is further improved while the information security of the terminal is improved.
With reference to the first aspect, in one possible implementation, the method further includes:
when detecting that no user operation instruction is input into a first desktop displayed on a terminal screen within a preset time threshold, determining that a user operation state on the first desktop meets a preset operation state.
In the embodiment of the invention, the condition that no user operation instruction is input within the preset time threshold is determined as the preset operation state, so that the time node of the second desktop can be definitely created, and the flexibility of the management of the message window of the terminal application program is improved.
With reference to the first aspect, in one possible implementation, the method further includes:
detecting a user operation instruction on a first desktop displayed on a terminal screen;
when the detected user operation instruction on the first desktop is a user operation instruction on a screen protection control, determining that the user operation state on the first desktop meets a preset operation state;
and the user operation instruction on the screen protection control is used for triggering the creation of the screen protection window.
In the embodiment of the invention, the condition that the user operation instruction is the user operation instruction on the screen protection control is determined to be the preset operation state, so that the time node of the second desktop can be definitely created, and the flexibility of the message window management of the terminal application program is improved.
With reference to the first aspect, in a possible implementation manner, the displaying any one of the message window outputs on the first desktop includes:
acquiring the window attribute of any message window, and determining a display desktop corresponding to any message window based on the window attribute;
if the display desktop corresponding to any message window is the first desktop, outputting and displaying any message window to the first desktop;
and if the display desktop corresponding to any message window is the second desktop, modifying the window attribute to determine the display desktop corresponding to any message window as the first desktop, and outputting and displaying any message window to the first desktop.
In the embodiment of the invention, the accuracy of outputting and displaying the message window to the first desktop can be further improved by determining the display desktop corresponding to the message window, the message window is ensured not to be displayed on the second desktop, and the applicability is high.
With reference to the first aspect, in a possible implementation manner, after the outputting and displaying any of the message windows on the first desktop, the method further includes:
acquiring target material information based on a window adjusting instruction acquired from the screen protection window;
and adding the target material information to the screen protection window to obtain an adjusted screen protection window, wherein the target material information comprises one or more combinations of target character information, target picture information and target background information.
In the embodiment of the invention, characters, pictures, backgrounds and the like can be added to the screen protection window through the window adjusting instruction, so that the attractiveness of the screen protection window can be improved, the operation is more flexible, the user participation degree is higher, and the user experience can be further improved.
With reference to the first aspect, in a possible implementation manner, after the outputting and displaying any of the message windows on the first desktop, the method further includes:
opening a password setting window based on a password setting instruction collected from the screen saver window;
and determining characters input by the user in the password setting window as a user password, and generating a password input window based on the user password, wherein the password input window is used for closing the screen protection window after the user inputs the user password.
In the embodiment of the invention, the password input window is set, so that a user can independently close the screen protection window, the flexibility of message window management and the safety of the terminal are further improved, and the applicability is high.
In a second aspect, an embodiment of the present invention provides a message window management apparatus for a terminal application, where the message window management apparatus includes:
the terminal comprises a creating unit, a display unit and a switching unit, wherein the creating unit is used for creating a second desktop and switching the display desktop of the terminal screen to the second desktop when detecting that the user operation state on a first desktop displayed on the terminal screen meets a preset operation state;
the creating unit is configured to create a screen saver window based on the second desktop, and display the screen saver window to the terminal screen in a full screen manner, where the screen saver window is configured to display a screen saver picture, and the screen saver picture is configured to cover information displayed on a display desktop of the terminal screen;
and the output unit is used for outputting and displaying any message window to the first desktop when a pop-up request of any message window of any application program in the terminal is received and the message window is a top-layer window, so that the terminal screen keeps a state of displaying the screen protection picture in a full screen mode.
With reference to the second aspect, in a possible implementation manner, the message window management apparatus further includes:
the determining unit is further used for determining that the user operation state on the first desktop meets a preset operation state when it is detected that no user operation instruction is input on the first desktop displayed on the terminal screen within a preset time threshold.
With reference to the second aspect, in a possible implementation manner, the message window management apparatus further includes:
the detection unit is also used for detecting a user operation instruction on a first desktop displayed on a terminal screen;
the determining unit is further configured to determine that the user operation state on the first desktop meets a preset operation state when the detected user operation instruction on the first desktop is a user operation instruction on a screen saver control;
and the user operation instruction on the screen protection control is used for triggering the creation of the screen protection window.
With reference to the second aspect, in a possible implementation manner, the message window management apparatus includes:
an obtaining unit, configured to obtain a window attribute of any message window, and determine a display desktop corresponding to the message window based on the window attribute;
the output unit is configured to output and display any message window to the first desktop if the display desktop corresponding to the message window is the first desktop;
and an adjusting unit, configured to modify the window attribute to determine the display desktop corresponding to the message window as the first desktop when the display desktop corresponding to the message window is the second desktop, and output and display the message window to the first desktop.
With reference to the second aspect, in a possible implementation manner, the message window management apparatus further includes:
the acquisition unit is also used for acquiring target material information based on the window adjustment instruction acquired from the screen protection window;
and the adjusting unit is further used for adding the target material information to the screen protection window to obtain an adjusted screen protection window, wherein the target material information comprises one or more combinations of target character information, target picture information and target background information.
With reference to the second aspect, in a possible implementation manner, the message window management apparatus further includes:
the adjusting unit is also used for opening a password setting window based on a password setting instruction collected from the screen protection window;
and the generating unit is also used for determining characters input by the user in the password setting window as a user password and generating a password input window based on the user password, wherein the password input window is used for closing the screen protection window after the user inputs the user password.
In a third aspect, an embodiment of the present invention provides a terminal, where the terminal includes a processor and a memory, and the processor and the memory are connected to each other. The memory is configured to store a computer program that supports the terminal to execute the method provided by the first aspect and/or any one of the possible implementation manners of the first aspect, where the computer program includes program instructions, and the processor is configured to call the program instructions to execute the method provided by the first aspect and/or any one of the possible implementation manners of the first aspect.
In a fourth aspect, the present invention provides a computer-readable storage medium, which stores a computer program, where the computer program is executed by a processor to implement the method provided by the first aspect and/or any one of the possible implementation manners of the first aspect.
In the embodiment of the invention, by creating the second desktop and the screen protection window on the second desktop, the message window popped up by the terminal application program can be displayed on the first desktop, so that any message window is prevented from being displayed on the screen protection window, and the user experience is improved. Meanwhile, the screen protection window can be adjusted through the collected user instruction so that the screen protection window is more attractive and safe, and meanwhile, a method for automatically closing the screen protection window is provided for the user, so that the flexibility is good, and the applicability is high.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a flowchart of a message window management method for a terminal application according to an embodiment of the present invention;
fig. 2 is a scene schematic diagram of a message window management method of a terminal application according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a message window management apparatus of a terminal application according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The message window management method for the terminal application program (for convenience of description, the method provided by the embodiment of the present invention may be abbreviated as "the method") provided by the embodiment of the present invention is applicable to various display terminals in various fields and various industries, including but not limited to a mobile phone, a tablet computer, a notebook computer, a computer, and the like, and is not limited herein. According to the method provided by the embodiment of the invention, the message window of the terminal application program can be displayed on the first desktop by creating the second desktop on the terminal screen and creating the screen protection window on the second desktop, so that the second desktop and the screen protection window are prevented from displaying the message window of the terminal application program, and the user experience is improved. For convenience of description, the method provided by the embodiment of the present invention may be described below by taking any computer terminal in a certain field and/or a certain industry as an example.
The method and the related apparatus provided by the embodiment of the invention will be described with reference to fig. 1 to 4. Referring to fig. 1, fig. 1 is a flowchart of a message window management method for a terminal application according to an embodiment of the present invention. The method provided by the embodiment of the invention can comprise the following steps:
11. when the user operation state on the first desktop displayed on the terminal screen is detected to meet the preset operation state, a second desktop is created, and the display desktop of the terminal screen is switched to the second desktop.
In some possible embodiments, when it is detected that no user operation instruction is input to the first desktop displayed on the terminal screen within a preset time threshold, it may be determined that the user operation state on the first desktop satisfies a preset operation state. The preset time threshold value can be automatically set by a terminal, and can also be automatically set by a user according to actual requirements without limitation. For example, when the preset time is 10 minutes, the terminal may record an input time of each operation instruction input by the user on the first desktop displayed on the terminal screen, and when the terminal does not detect any operation instruction input again by the user for more than or exactly 10 minutes after the user inputs a certain operation instruction, it may be determined that the user operation state on the first desktop satisfies the preset operation state. At this time, the terminal can be triggered to create the second desktop based on different preset time thresholds, the diversity of preset operation states is improved, and the applicability is high.
Optionally, in some possible embodiments, the terminal may detect, in real time, a user operation instruction on a first desktop displayed on the terminal screen, and when the detected user operation instruction on the first desktop is a user operation instruction on a screen saver control (where the screen saver control is used to trigger creation of a screen saver window), it may be determined that a user operation state on the first desktop satisfies a preset operation state. The screen saver control may be a certain application program, a certain instruction trigger icon, or a module for creating a screen saver window in a certain application program, which is not limited herein. For example, when the screen saver control is application a (running on the first desktop), and the manner in which application a is opened to create the screen saver window is by double-clicking application a. Therefore, when the user double-clicks the application program a, it is equivalent to that an instruction for creating the screen saver window is triggered through the application program a, that is, at this time, the user operation instruction on the first desktop is a user operation instruction on the screen saver control, and at this time, it is determined that the user operation state on the first desktop satisfies the preset operation state.
It should be noted that, the determination manner of the preset operation state includes, but is not limited to, the two manners shown above, and may be determined according to different types of terminals and actual requirements of the terminal and/or the user. For example, when it is detected that the frequency of occurrence of the user operation instruction on the first desktop exceeds a preset frequency threshold, it may be determined that the user operation state on the first desktop satisfies a preset operation state, which is not limited herein.
In some possible embodiments, the second desktop may be created when the user operation state on the first desktop displayed on the terminal screen satisfies a preset operation state. When the second desktop is created, the terminal may create the second desktop through a desktop creating function built in the terminal, or may create the second desktop through an application program or a program code built in the terminal, which is not limited herein. It should be particularly noted that the desktop configuration parameters of the second desktop may be the same as the configuration parameters of the first desktop, or may be different from the configuration parameters of the first desktop, which is not limited herein. That is, the desktop content, style, background, color, icon arrangement, etc. of the second desktop may be consistent with the first desktop, or may be created according to a creation rule preset by a terminal during the process of creating the second desktop. After the second desktop is created, the display desktop of the terminal screen may be switched to the second desktop, that is, the display desktop of the terminal screen is the second desktop, and the first desktop is not displayed on the terminal screen.
12. And creating a screen protection window based on the second desktop, and displaying the screen protection window to the terminal screen in a full screen mode.
Referring to fig. 2, fig. 2 is a scene diagram illustrating a message window management method of a terminal application according to an embodiment of the present invention. As shown in fig. 2, after the second desktop 22 is created and the display desktop of the terminal screen is switched from the first desktop 21 to the second desktop 22, the display desktop of the terminal screen is the second desktop 22. At this time, the terminal may create a screen saver window 23 on the second desktop 22 through a screen saver control (which may be a certain application program, a certain instruction trigger icon, or a module for creating a screen saver window in a certain application program, which is not limited herein) built in the terminal, and display the screen saver window 23 on the terminal screen. The screen saver window 23 is used to protect information displayed on the display desktop of the terminal screen to ensure the safety of user information, so that the screen saver window 23 can be displayed on the terminal screen in full screen to cover the information displayed on the display desktop of the terminal screen, that is, the display size of the screen saver window 23 can be kept consistent with the display size of the terminal screen. When the screen saver window 23 is displayed to the terminal screen in full screen, the display size of the terminal screen may be obtained in the process of creating the screen saver window 23, and when the screen saver window 23 is created, the screen saver window 23 is directly created to be the screen saver window 23 having the same display size as the terminal screen and directly overlaid on the second desktop 22. The terminal may also automatically adjust the window size of the screen saver window 23 after obtaining the window, and overlay the window on the second desktop 22, and the specific implementation manner is not limited herein. The screen saver window 23 can display a screen saver (including, but not limited to, videos, pictures, and presentations made of texts and pictures, without any limitation), and the screen saver can cover information displayed on the display desktop (the second desktop 22) of the terminal screen. I.e. only the screen saver on the screen saver window 23 is displayed on the terminal screen at this time.
13. And when a pop-up request of any message window of any application program in the terminal is received and the message window is a top layer window, outputting and displaying the message window to the first desktop so as to enable the terminal screen to keep a full-screen display state of the screen protection picture.
In some possible embodiments, when any message window of any application program in the terminal pops up, the any application program will send a pop-up request to the terminal, and when the pop-up request is responded by the terminal, the terminal will output and display the message window corresponding to the pop-up request on the desktop corresponding to the message window. However, in some cases, some applications on the first desktop of the terminal may set the display hierarchy of the message window generated by the applications as a top layer, that is, set the message window generated by the applications as a top layer window so as to directly display the message window output to the screen saver window of the terminal when the message window pops up. That is, when a top-level window generated by some applications on the first desktop of the terminal pops up, the top-level window is not only displayed on the first desktop, but also output and displayed to the screen saver as a message window with the highest display level, which affects the tidiness of the screen saver displayed on the screen saver and reduces the user experience. Therefore, after the terminal receives any message window pop-up request of any application program on the first desktop of the terminal, the display level of any message window can be acquired, and whether the display level of any message window is lower than that of the first desktop or not is judged. If the display hierarchy of any message window is not lower than the display hierarchy of the first desktop (or the display hierarchy of any message window is higher than the display hierarchies of other message windows on the first desktop), determining that any message window is a top-level window, and at this time, reducing the display hierarchy of any message window to enable the display hierarchy of any message window to be lower than the display hierarchy of the first desktop, so that any message window can be output and displayed to the first desktop without covering (or blocking) a screen protection picture displayed on a screen protection window. When the message window corresponding to the pop-up request sent by any application program on the first desktop of the terminal is not the top-level window, the message window is only output and displayed to the first desktop without affecting the integrity of the screen protection picture displayed on the screen protection window, so that no processing is performed on the message window of the non-top-level window sent by any application program on the first desktop of the terminal at this time, and further description is omitted here.
In some possible embodiments, after the second desktop is created, a message window corresponding to a pop-up request sent by some application programs on the second desktop of the terminal is correspondingly output and displayed on the second desktop. Therefore, when it is detected that any application program on the second desktop of the terminal sends a pop-up request, the display level of the message window corresponding to the pop-up request can be obtained first, and whether the display level of the message window is lower than that of the first desktop or not can be judged. And if the display level of the message window is not lower than that of the first desktop, reducing the display level of the message window to enable the display level of the message window to be lower than that of the first desktop. If the display level of the message window is lower than that of the first desktop, or the display level of the message window is reduced so that the display level of the message window is lower than that of the first desktop, the window attribute of the message window is acquired and modified so that the display desktop corresponding to the message window is changed from the second desktop to the first desktop, and then the message window is output and displayed to the first desktop, so that the message window is not output to the second desktop, and the integrity of a screen protection picture displayed on a screen protection window on the second desktop is ensured. The window attribute in the pop-up request sent by any application program includes, but is not limited to, a window display path, a window display parameter, and the like, and is not limited herein.
For example, when the application B on the second desktop of the terminal issues a pop-up request, the display level of the message window B corresponding to the pop-up request may be acquired. When the display level of the message window b is higher than that of the second desktop (or other message windows on the second desktop), it can be determined that the message window b is the top window at this time, so that the display level of the message window b can be lowered to be lower than that of the second desktop. And then acquiring a window display path of the message window b and changing the window display path end point of the message window b from the second desktop to the first desktop. At this time, the display desktop corresponding to the message window B is the first desktop, and the display level of the message window B is lower than that of the first desktop, so that the message window B popped up by the application program B on the second desktop can be output and displayed to the first desktop.
In some possible embodiments, after displaying any of the message window outputs on the first desktop, the terminal may display an adjustment control at any position of the screen saver window, so that the user can adjust the screen saver window through the adjustment control. When detecting that the user triggers the adjusting control in the screen protection window, the terminal can open an instruction input window and collect a window adjusting instruction input by the user from the instruction input window. Or, when it is detected that the user triggers the adjustment control at the screen saver window, the terminal can open the voice input interface and acquire a window adjustment instruction input by the user through the voice input interface. It should be noted that the specific implementation manner of acquiring the window adjustment instruction input by the user may be determined according to the function and the operating environment of the actual terminal, and is not limited herein. According to the collected window adjusting instruction, a material editing window can be displayed at a designated position (determined by a terminal or a user) of the screen protection window, so that the user can acquire target material information from the Internet, a local storage space (including but not limited to a hard disk, a movable storage device connected with the terminal and the like) of the terminal, a cloud disk and the like, and the user can add the target material information to the screen protection window through the material editing window to obtain the adjusted screen protection window, so that the screen protection window is more diversified, and the user experience is further improved. The window adjustment instruction includes, but is not limited to, one or more combinations of a background adding instruction, a text adding instruction, a watermark adding instruction, and a picture adding instruction, and the target material information includes, but is not limited to, one or more combinations of target background information, target text information, target watermark information, and target picture information.
For example, when the collected window adjustment instruction includes a background adding instruction, a background editing window may be displayed at a certain position (determined by a terminal or a user) of the screen saver window according to the background adding instruction, so that the user may obtain the target background information from a network and a local storage space of the terminal, and a specific obtaining manner is not limited herein. Optionally, when obtaining the target background information, the background editing window may enable a user to select a color block on a certain picture as the target background information, and use a certain picture as the target background information or use a specified color as the target background information, which is not limited herein. After the target background information is acquired, the background editing window can determine the target background information as the background information of the screen protection window, adjust the resolution, transparency and the like of the picture, the brightness, saturation and the like of the color block and the color according to the actual requirements of the user, and obtain the adjusted screen protection window while improving the user participation and the diversity of the screen protection window.
Optionally, when the collected window adjustment instruction includes a text adding instruction, a text editing window may be displayed at a certain position (determined by a terminal or a user) of the screen saver window according to the text adding instruction, so that the user may obtain target text information from the internet, a local storage space of the terminal (including but not limited to a hard disk, a removable storage device connected to the terminal, and the like), a cloud disk, and the like. Or the target text information input by the user is obtained through the text editing window, which is not limited herein. After the target character information is acquired, the character editing window adds the target character information to the appointed position of the screen protection window, and adjusts the font, the font size, the color and the like of the target character information according to the actual requirements of a user to obtain the adjusted screen protection window.
Optionally, when the collected window adjustment instruction includes a watermarking instruction or a picture adding instruction, a watermarking editing window or a picture editing window may be displayed at a certain position (determined by a terminal or a user) of the screen protection window according to the watermarking instruction or the picture adding instruction, so that the user may obtain target watermarking information or target picture information from the internet, a local storage space of the terminal (including but not limited to a hard disk, a removable storage device connected to the terminal, and the like), a cloud disk, and the like. Target watermark information (without limitation, patterns, characters, symbols, and the like) or target picture information drawn by a user can also be acquired through the watermark editing window or the picture editing window. After the target watermark information or the target picture information is acquired, the watermark editing window or the picture editing window may add the target watermark information or the target picture information to a specified position of the screen protection window. And the user can adjust the size, color, transparency and the like of the target watermark information or the target picture information according to the actual requirements of the user through the watermark editing window or the picture editing window to obtain an adjusted screen protection window.
Optionally, when the collected window adjustment instruction includes multiple combinations of the background adding instruction, the text adding instruction, the watermark adding instruction, and the picture adding instruction, multiple editing windows may be displayed on the screen protection interface so that a user may adjust the screen protection window according to the implementation manner shown above to obtain an adjusted screen protection window including multiple target material information (such as a picture, a text, a watermark, and a background), and the specific implementation manner is not described herein again.
In some possible embodiments, after displaying any of the message window outputs to the first desktop, the terminal may display a password setting control at a designated position (determined by the terminal or the user) on the screen saver interface, so that the user sets a password for the screen saver interface. When the terminal detects a password setting instruction triggered by clicking the password setting control by the user in the screen protection window, displaying a password setting window at another instruction position on the screen protection window so that the user inputs a user password. Or, when it is detected that the user inputs a password setting instruction to the terminal through voice, the terminal may display a password setting window at another designated position of the screen saver window to enable the user to input the user password or obtain the user password input by the user through the voice input interface, and a specific implementation manner is not limited herein. The user password input by the user in the password setting window includes, but is not limited to, one or more combinations of numbers, punctuation marks, and upper and lower case letters, which is not limited herein. And after the user password input by the user is acquired, the terminal displays a password input window on the screen protection interface. And after the user inputs the user password in the password input window, the screen protection window is closed to display the first desktop, so that the user participation degree can be improved, and the security and the user experience of the terminal can be further improved.
In the embodiment of the invention, the message window popped up by the terminal application program can be displayed on the first desktop by creating the second desktop and creating the screen protection window on the second desktop, so that any message window is prevented from being displayed on the screen protection window, and the user experience is improved. Meanwhile, the screen protection window can be adjusted through the collected user instruction so that the screen protection window is more attractive and safe, and meanwhile, a method for automatically closing the screen protection window is provided for the user, so that the flexibility is good, and the applicability is high.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a message window management apparatus of a terminal application according to an embodiment of the present invention. The message window management device of the terminal application program provided by the embodiment of the invention comprises:
a creating unit 31, configured to create a second desktop and switch a display desktop of the terminal screen to the second desktop when it is detected that a user operation state on a first desktop displayed on the terminal screen meets a preset operation state;
the creating unit 31 is configured to create a screen saver window based on the second desktop, and display the screen saver window to the terminal screen in a full screen manner, where the screen saver window is configured to display a screen saver picture, and the screen saver picture is configured to cover information displayed on a display desktop of the terminal screen;
an output unit 32, configured to, when a pop-up request of any message window of any application program in the terminal is received and the message window is a top-level window, output and display the message window to the first desktop, so that the terminal screen maintains a state in which the screen saver is displayed in full screen.
In some possible embodiments, the message window management apparatus further includes:
the determining unit 33 is further configured to determine that the user operation state on the first desktop meets a preset operation state when it is detected that no user operation instruction is input on the first desktop displayed on the terminal screen within a preset time threshold.
In some possible embodiments, the message window management apparatus further includes:
the detection unit 34 is further used for detecting a user operation instruction on the first desktop displayed on the terminal screen;
the determining unit 33 is further configured to determine that the user operation state on the first desktop meets a preset operation state when the detected user operation instruction on the first desktop is a user operation instruction on a screen saver control;
and the user operation instruction on the screen protection control is used for triggering the creation of the screen protection window.
In some possible embodiments, the message window management apparatus includes:
an obtaining unit 35, configured to obtain a window attribute of any message window, and determine a display desktop corresponding to the message window based on the window attribute;
the output unit 32 is configured to output and display any message window to the first desktop if the display desktop corresponding to the message window is the first desktop;
an adjusting unit 36, configured to modify the window attribute to determine the display desktop corresponding to any message window as the first desktop when the display desktop corresponding to any message window is the second desktop, and output and display any message window to the first desktop.
In some possible embodiments, the message window management apparatus further includes:
the acquiring unit 35 is further configured to acquire target material information based on a window adjustment instruction acquired from the screen saver window;
the adjusting unit 36 is further configured to add the target material information to the screen saver window to obtain an adjusted screen saver window, where the target material information includes one or more combinations of target text information, target picture information, and target background information.
In some possible embodiments, the message window management apparatus further includes:
the adjusting unit 36 is further configured to open a password setting window based on a password setting instruction collected from the screen saver window;
the generating unit 37 is further configured to determine a character input in the password setting window by the user as a user password, and generate a password input window based on the user password, where the password input window is used to close the screen saver window after the user inputs the user password.
In a specific implementation, the above apparatus may perform, through its built-in modules, the implementation manners provided in the above diagrams through the steps in the diagrams. For example, the creating unit 31 may be configured to create a second desktop and switch the display desktop of the terminal screen to the second desktop when it is detected that the user operation state on the first desktop displayed on the terminal screen meets a preset operation state, which may specifically refer to the implementation manners provided in the above steps, and will not be described herein again. The output unit 32 may be configured to, when a pop-up request of any message window of any application program in the terminal is received and the message window is a top-level window, output and display the message window to the first desktop, so that the terminal screen maintains a state of displaying the screen protection picture in a full screen. The determining unit 33 may be configured to determine that the user operation state on the first desktop meets implementation manners such as a preset operation state when it is detected that no user operation instruction is input to the first desktop displayed on the terminal screen within a preset time threshold, which may specifically refer to the implementation manners provided in the above steps, and will not be described herein again. The detection unit 34 may be configured to detect implementation manners such as a user operation instruction on the first desktop displayed on the terminal screen, which may specifically refer to the implementation manners provided in the above steps, and details are not described here. The obtaining unit 35 may be configured to obtain a window attribute of any message window, and determine an implementation manner such as a display desktop corresponding to any message window based on the window attribute, which may specifically refer to the implementation manners provided in the above steps, and is not described herein again. The adjusting unit 36 may be configured to, when the display desktop corresponding to any message window is the second desktop, modify the window attribute to determine the display desktop corresponding to any message window as the first desktop, and output and display any message window to the first desktop, which may specifically refer to the implementation manners provided in the foregoing steps and is not described herein again. The generating unit 37 may be configured to determine the characters input by the user in the password setting window as a user password, and generate a password input window based on the user password, which may specifically refer to the implementation manners provided in the above steps, and will not be described herein again.
In the embodiment of the invention, the message window popped up by the terminal application program can be displayed on the first desktop by creating the second desktop and creating the screen protection window on the second desktop, so that any message window is prevented from being displayed on the screen protection window, and the user experience is improved. Meanwhile, the screen protection window can be adjusted through the collected user instruction so that the screen protection window is more attractive and safe, and meanwhile, a method for automatically closing the screen protection window is provided for the user, so that the flexibility is good, and the applicability is high.
Fig. 4 is a schematic structural diagram of a terminal according to an embodiment of the present invention. As shown in fig. 4, the terminal in this embodiment may include: one or more processors 41 and memory 42. The processor 41 and the memory 42 are connected by a bus 43. The memory 42 is used for storing a computer program comprising program instructions, and the processor 41 is used for executing the program instructions stored in the memory 42 and executing the following operations:
when the user operation state on a first desktop displayed on a terminal screen is detected to meet a preset operation state, creating a second desktop and switching the display desktop of the terminal screen to the second desktop;
creating a screen protection window based on the second desktop, and displaying the screen protection window to the terminal screen in a full screen manner, wherein the screen protection window is used for displaying a screen protection picture, and the screen protection picture is used for covering information displayed on a display desktop of the terminal screen;
and when a pop-up request of any message window of any application program in the terminal is received and the message window is a top layer window, outputting and displaying the message window to the first desktop so as to enable the terminal screen to keep a full-screen display state of the screen protection picture.
In some possible embodiments, the processor 41 is further configured to:
when detecting that no user operation instruction is input into a first desktop displayed on a terminal screen within a preset time threshold, determining that a user operation state on the first desktop meets a preset operation state.
In some possible embodiments, the processor 41 is further configured to:
detecting a user operation instruction on a first desktop displayed on a terminal screen;
when the detected user operation instruction on the first desktop is a user operation instruction on a screen protection control, determining that the user operation state on the first desktop meets a preset operation state;
and the user operation instruction on the screen protection control is used for triggering the creation of the screen protection window.
In some possible embodiments, the processor 41 is configured to:
acquiring the window attribute of any message window, and determining a display desktop corresponding to any message window based on the window attribute;
if the display desktop corresponding to any message window is the first desktop, outputting and displaying any message window to the first desktop;
and if the display desktop corresponding to any message window is the second desktop, modifying the window attribute to determine the display desktop corresponding to any message window as the first desktop, and outputting and displaying any message window to the first desktop.
In some possible embodiments, the processor 41 is further configured to:
acquiring target material information based on a window adjusting instruction acquired from the screen protection window;
and adding the target material information to the screen protection window to obtain an adjusted screen protection window, wherein the target material information comprises one or more combinations of target character information, target picture information and target background information.
In some possible embodiments, the processor 41 is further configured to:
opening a password setting window based on a password setting instruction collected from the screen saver window;
and determining characters input by the user in the password setting window as a user password, and generating a password input window based on the user password, wherein the password input window is used for closing the screen protection window after the user inputs the user password.
It should be understood that in some possible embodiments, the processor 41 may be a Central Processing Unit (CPU), and the processor may be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), field-programmable gate arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 42 may include both read-only memory and random access memory, and provides instructions and data to the processor 41. A portion of memory 42 may also include non-volatile random access memory. For example, the memory 42 may also store device type information.
In a specific implementation, the terminal may execute the implementation manners provided in the steps in fig. 1 through the built-in function modules, which may specifically refer to the implementation manners provided in the steps, and are not described herein again.
In the embodiment of the invention, the message window popped up by the terminal application program can be displayed on the first desktop by creating the second desktop and creating the screen protection window on the second desktop, so that any message window is prevented from being displayed on the screen protection window, and the user experience is improved. Meanwhile, the screen protection window can be adjusted through the collected user instruction so that the screen protection window is more attractive and safe, and meanwhile, a method for automatically closing the screen protection window is provided for the user, so that the flexibility is good, and the applicability is high.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and the computer program is executed by a processor to implement the method provided in each step in fig. 1.
The computer readable storage medium may be the internal storage unit of the terminal or the task processing device provided in any of the foregoing embodiments. The computer readable storage medium may also be an external storage device of the electronic device, such as a plug-in hard disk, a Smart Memory Card (SMC), a Secure Digital (SD) card, a flash card (flash card), and the like, which are provided on the electronic device. The computer readable storage medium may further include a magnetic disk, an optical disk, a read-only memory (ROM), a Random Access Memory (RAM), and the like. Further, the computer readable storage medium may also include both an internal storage unit and an external storage device of the electronic device. The computer-readable storage medium is used for storing the computer program and other programs and data required by the electronic device. The computer readable storage medium may also be used to temporarily store data that has been output or is to be output.
The terms "first", "second", and the like in the claims, in the description and in the drawings of the present invention are used for distinguishing between different objects and not for describing a particular order. Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the invention.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly the interchangeability of hardware and software. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present invention, and it is therefore to be understood that the invention is not limited by the scope of the appended claims.

Claims (14)

1. A method for managing a message window of a terminal application, the method comprising:
when detecting that a user operation state on a first desktop displayed on a terminal screen meets a preset operation state, creating a second desktop and switching a display desktop of the terminal screen to the second desktop, wherein the first desktop is not displayed on the terminal screen;
creating a screen protection window based on the second desktop, and displaying the screen protection window to the terminal screen in a full screen manner, wherein the screen protection window is used for displaying a screen protection picture, and the screen protection picture is used for covering information displayed on a display desktop of the terminal screen;
when a pop-up request of any message window of any application program in a terminal is received, the message window is a top layer window, and the display level of the top layer window is higher than the display levels of other message windows on the first desktop, the message window is output and displayed to the first desktop, so that the terminal screen is kept in a state of displaying the screen protection picture in a full screen mode.
2. The method of claim 1, further comprising:
when the situation that no user operation instruction is input into a first desktop displayed on a terminal screen within a preset time threshold is detected, determining that a user operation state on the first desktop meets a preset operation state.
3. The method of claim 1, further comprising:
detecting a user operation instruction on a first desktop displayed on a terminal screen;
when the detected user operation instruction on the first desktop is a user operation instruction on a screen protection control, determining that a user operation state on the first desktop meets a preset operation state;
and the user operation instruction on the screen protection control is used for triggering the creation of the screen protection window.
4. The method of any of claims 1-3, wherein said displaying any of the message window outputs to the first desktop comprises:
acquiring the window attribute of any message window, and determining a display desktop corresponding to any message window based on the window attribute;
if the display desktop corresponding to any message window is the first desktop, outputting and displaying any message window to the first desktop;
and if the display desktop corresponding to any message window is the second desktop, modifying the window attribute to determine the display desktop corresponding to any message window as the first desktop, and outputting and displaying any message window to the first desktop.
5. The method of any of claims 1-3, wherein after displaying the any message window output to the first desktop, the method further comprises:
acquiring target material information based on a window adjustment instruction acquired from the screen protection window;
and adding the target material information to the screen protection window to obtain an adjusted screen protection window, wherein the target material information comprises one or more combinations of target character information, target picture information and target background information.
6. The method of any of claims 1-3, wherein after displaying the any message window output to the first desktop, the method further comprises:
opening a password setting window based on a password setting instruction collected from the screen saver window;
and determining characters input by a user in the password setting window as a user password, and generating a password input window based on the user password, wherein the password input window is used for closing the screen protection window after the user inputs the user password.
7. A message window management apparatus of a terminal application, the message window management apparatus comprising:
the terminal comprises a creating unit, a display unit and a display unit, wherein the creating unit is used for creating a second desktop and switching a display desktop of a terminal screen to the second desktop when detecting that a user operation state on a first desktop displayed on the terminal screen meets a preset operation state, and the first desktop is not displayed on the terminal screen;
the creation unit is used for creating a screen protection window based on the second desktop and displaying the screen protection window to the terminal screen in a full screen manner, wherein the screen protection window is used for displaying a screen protection picture which is used for covering information displayed on a display desktop of the terminal screen;
and the output unit is used for outputting and displaying any message window to the first desktop when a pop-up request of any message window of any application program in the terminal is received, the message window is a top layer window, and the display layer level of the top layer window is higher than that of other message windows on the first desktop, so that the terminal screen keeps the state of displaying the screen protection picture in a full screen.
8. The message window management device according to claim 7, further comprising:
the determining unit is further used for determining that the user operation state on the first desktop meets a preset operation state when it is detected that no user operation instruction is input in the first desktop displayed on the terminal screen within a preset time threshold.
9. The message window management device according to claim 7, further comprising:
the detection unit is also used for detecting a user operation instruction on a first desktop displayed on a terminal screen;
the determining unit is further configured to determine that the user operation state on the first desktop meets a preset operation state when the detected user operation instruction on the first desktop is a user operation instruction on a screen saver control;
and the user operation instruction on the screen protection control is used for triggering the creation of the screen protection window.
10. The message window management device according to any one of claims 7 to 9, wherein the message window management device comprises:
the acquisition unit is used for acquiring the window attribute of any message window and determining a display desktop corresponding to any message window based on the window attribute;
the output unit is configured to output and display any message window to the first desktop if the display desktop corresponding to the message window is the first desktop;
and the adjusting unit is used for modifying the window attribute to determine the display desktop corresponding to any message window as the first desktop when the display desktop corresponding to any message window is the second desktop, and outputting and displaying any message window to the first desktop.
11. The message window management device according to any of claims 7 to 9, wherein the message window management device further comprises:
the acquisition unit is also used for acquiring target material information based on a window adjustment instruction acquired from the screen protection window;
and the adjusting unit is further used for adding the target material information to the screen protection window to obtain an adjusted screen protection window, wherein the target material information comprises one or more combinations of target text information, target picture information and target background information.
12. The message window management device according to any of claims 7 to 9, wherein the message window management device further comprises:
the adjusting unit is also used for opening a password setting window based on a password setting instruction collected from the screen protection window;
and the generating unit is also used for determining characters input by the user in the password setting window as a user password and generating a password input window based on the user password, wherein the password input window is used for closing the screen protection window after the user inputs the user password.
13. A terminal comprising a processor and a memory, said processor and memory being interconnected;
the memory for storing a computer program comprising program instructions, the processor being configured to invoke the program instructions to perform the method of any of claims 1 to 6.
14. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which is executed by a processor to implement the method of any one of claims 1 to 6.
CN201910252460.6A 2019-03-29 2019-03-29 Message window management method of terminal application program and related device Active CN109960559B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910252460.6A CN109960559B (en) 2019-03-29 2019-03-29 Message window management method of terminal application program and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910252460.6A CN109960559B (en) 2019-03-29 2019-03-29 Message window management method of terminal application program and related device

Publications (2)

Publication Number Publication Date
CN109960559A CN109960559A (en) 2019-07-02
CN109960559B true CN109960559B (en) 2022-05-31

Family

ID=67025355

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910252460.6A Active CN109960559B (en) 2019-03-29 2019-03-29 Message window management method of terminal application program and related device

Country Status (1)

Country Link
CN (1) CN109960559B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111880879B (en) * 2020-07-24 2023-04-07 上海米哈游天命科技有限公司 Playing method, device, equipment and storage medium of dynamic wallpaper

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106056010A (en) * 2016-05-20 2016-10-26 北京小米移动软件有限公司 Method and apparatus for processing messages by terminal, and terminal
CN106713612A (en) * 2016-11-14 2017-05-24 珠海市魅族科技有限公司 Electronic equipment and message display method

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7010755B2 (en) * 2002-04-05 2006-03-07 Microsoft Corporation Virtual desktop manager
US20060129948A1 (en) * 2004-12-14 2006-06-15 Hamzy Mark J Method, system and program product for a window level security screen-saver
US8458619B2 (en) * 2004-12-14 2013-06-04 International Business Machines Corporation Method, system and program product for screensaver breakthrough of prioritized messages
US9377925B2 (en) * 2013-08-30 2016-06-28 Citrix Systems, Inc. GUI window with portal region for interacting with hidden interface elements
CN104202647A (en) * 2014-08-08 2014-12-10 深圳市同洲电子股份有限公司 Display method and device of window
CN108737635A (en) * 2018-03-26 2018-11-02 广东欧珀移动通信有限公司 message display method, device, mobile terminal and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106056010A (en) * 2016-05-20 2016-10-26 北京小米移动软件有限公司 Method and apparatus for processing messages by terminal, and terminal
CN106713612A (en) * 2016-11-14 2017-05-24 珠海市魅族科技有限公司 Electronic equipment and message display method

Also Published As

Publication number Publication date
CN109960559A (en) 2019-07-02

Similar Documents

Publication Publication Date Title
CN108376094B (en) Notification message display method and device, computer equipment and storage medium
US9785323B2 (en) Touch-based user interface control tiles
CN110865753B (en) Application message notification method and device
CN108304234B (en) Page display method and device
CN109842818A (en) A kind of video broadcasting method, device, computer equipment and storage medium
US20210041999A1 (en) Video playing method and device, electronic equipment and storage medium
CN111385665A (en) Bullet screen information processing method, device, equipment and storage medium
KR20230156127A (en) Screen capture methods, devices, electronic devices and readable storage media
CN104536787B (en) Resource preloads method and device
CN107645589A (en) Picture sending method and device, electronic equipment and readable storage medium
CN114518926A (en) Notification message display method and device, electronic equipment and medium
CN113055750A (en) Live broadcast method, device, terminal and storage medium
CN109960559B (en) Message window management method of terminal application program and related device
TW201344557A (en) Apparatus and method for automatically controlling display screen density
CN106933666B (en) Method for calling information input program and electronic equipment
CN114116077A (en) Picture editing method and device, electronic equipment and medium
CN113794831B (en) Video shooting method, device, electronic equipment and medium
CN114895815A (en) Data processing method and electronic equipment
CN114138157A (en) Display control method and device and electronic equipment
CN103955326A (en) Method and terminal for displaying information
CN112395028B (en) Page checking method, device, terminal and storage medium
CN114245017A (en) Shooting method and device and electronic equipment
CN111176501B (en) Display area adjusting method, user equipment and device with storage function
CN111782113B (en) Display method, display device and computer-readable storage medium
CN112087546B (en) Message display method and device, electronic equipment and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant