Message display method and device, electronic equipment and storage medium

By monitoring the status of the instant feedback message window in the Android system and creating a new second window if necessary, the problem of message display failure caused by busy main thread is solved, and the success rate of message display is improved.

CN120128563APending Publication Date: 2025-06-10SHANGHAI ZHONG YUAN NETWORK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510150574.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-11
Publication Date
2025-06-10

AI Technical Summary

Technical Problem

When the main thread is busy, instant feedback messages in Android are easily unable to be successfully displayed because the window is recycled by the system.

Method used

When displaying the first message window, monitor the drawing of its target display content, and check whether the window has been removed from the display interface when drawing begins. If removed, create a second message window to display the content.

Benefits of technology

By creating a new second message window, the success rate of instant feedback messages is improved, and the message display failure caused by window destruction is avoided.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120128563A_ABST
    Figure CN120128563A_ABST
Patent Text Reader

Abstract

The invention provides a message display method and device, electronic equipment and a storage medium. The method comprises the following steps: under the condition that a first message window is displayed on a display interface, monitoring a drawing condition of target display content corresponding to the first message window; under the condition that a drawing message of starting to draw the target display content is monitored, whether the first message window is removed from the display interface or not is determined; and under the condition that the first message window is removed from the display interface, newly building a second message window, and displaying the target display content by using the second message window. Through the scheme of the application, when the corresponding target display content cannot be displayed due to the fact that the first message window is removed from the display interface, the target display content can be displayed by newly building the second message window, so that the display success rate of the target display content is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technologies, and in particular, to a message display method, apparatus, electronic device, and storage medium. Background Art

[0002] Instant feedback (Toast) is a temporary message prompt box used to display short operation feedback or status information to the user. Since the toast - type pop - up window in Android mobile uses a client / server (C / S) structure, that is, the application (app) side sends a toast message to join the toast queue maintained by the system. The system maintains the display duration of the window carrying the toast and tells the app side when to add a view (layout file, used to define a custom layout that can display more complex content in the Toast, not just text information) to the window and when to remove the view from the window.

[0003] Since Android is driven by a series of linear message signals and the execution time of these signals is not fixed. It is possible that the app side is busy during this period, resulting in the situation that the message to add the toast view has not been executed yet, and the system cancels the window because the toast has a fixed display duration and the system will recycle this window when the time is up. The final result is that when the displayed message is executed, it is found that the corresponding window has been cancelled and finally cannot be displayed on the screen.

[0004] As Figure 2 shown, the column (b) in the framework layer of the system represents the time from the creation to the destruction of the window carrying the toast content, and the column (a) in the toast represents the time from receiving the message to starting to draw the toast content. Normally, the column (a) will be very short, that is, it will be completed instantly. But in the case of a busy main thread, the column (a) will be pulled very long, and when it starts to draw, it will be found that the framework layer has destroyed the window, resulting in the situation where the drawing is unsuccessful, that is, the instant feedback message display fails. Summary of the Invention

[0005] The purpose of the embodiments of this application is to provide a message display method, apparatus, electronic device, and storage medium to solve the problem that instant feedback message display failure is likely to occur when the main thread is busy. The specific technical solutions are as follows:

[0006] In a first aspect, this application provides a message display method, including:

[0007] When the first message window is displayed on the display interface, monitor the drawing situation of the target display content corresponding to the first message window;

[0008] When it is monitored that a drawing message for starting to draw the target display content is received, determine whether the first message window has been removed from the display interface;

[0009] When the first message window has been removed from the display interface, create a second message window and use the second message window to display the target display content.

[0010] In a possible implementation, determining whether the first message window has been removed from the display interface includes:

[0011] Check whether there is a removal message for removing the target display content sent from the framework layer in the message queue;

[0012] When the removal message exists in the message queue, determine that the first message window has been removed from the display interface;

[0013] When the removal message does not exist in the message queue, determine that the first message window has not been removed from the display interface.

[0014] In a possible implementation, the method further includes:

[0015] When the first message window has been removed from the display interface, determine the associated messages related to the first message window from the message queue;

[0016] Remove the associated messages from the message queue.

[0017] In a possible implementation, determining whether the first message window has been removed from the display interface includes:

[0018] Capture a screenshot of the display interface;

[0019] Identify the screenshot of the interface;

[0020] When the first message window is recognized, determine that the first message window has not been removed from the display interface;

[0021] When the first message window is not recognized, determine that the first message window has been removed from the display interface.

[0022] In a possible implementation, the method further includes:

[0023] Determine a target application in at least one application corresponding to the display interface;

[0024] Monitor the login situation of the target application;

[0025] In the case where it is monitored that the target application is in the login process, when a first message window is displayed on the display interface, monitor the drawing situation of the target display content corresponding to the first message window. In the case where a drawing message for starting to draw the target display content is monitored, determine whether the first message window has been removed from the display interface. In the case where the first message window has been removed from the display interface, create a second message window and use the second message window to display the target display content.

[0026] In a possible implementation manner, the determining a target application in at least one application corresponding to the display interface includes:

[0027] Regarding each application corresponding to the display interface as a target application;

[0028] Or,

[0029] Receive selection information input by the user, and determine the application corresponding to the selection information as the target application.

[0030] In a possible implementation manner, the method further includes:

[0031] Replace the event processor inner class in the instant feedback object through the reflection mechanism;

[0032] Use the event processor inner class to execute the steps of, when a first message window is displayed on the display interface, monitoring the drawing situation of the target display content corresponding to the first message window. In the case where a drawing message for starting to draw the target display content is monitored, determining whether the first message window has been removed from the display interface. In the case where the first message window has been removed from the display interface, creating a second message window and using the second message window to display the target display content.

[0033] In a second aspect, the present application provides a message display device, including:

[0034] A listening module, configured to monitor the drawing situation of the target display content corresponding to the first message window when the first message window is displayed on the display interface;

[0035] A determining module, configured to determine whether the first message window has been removed from the display interface when a drawing message for starting to draw the target display content is monitored;

[0036] A new module is used to create a second message window when the first message window has been removed from the display interface, and display the target display content by using the second message window.

[0037] In a possible implementation manner, the determining module is specifically configured to:

[0038] Check whether there is a removal message for removing the target display content sent by the framework layer in the message queue;

[0039] When the removal message exists in the message queue, determine that the first message window has been removed from the display interface;

[0040] When the removal message does not exist in the message queue, determine that the first message window has not been removed from the display interface.

[0041] In a possible implementation manner, the device further includes a removal module, configured to:

[0042] When the first message window has been removed from the display interface, determine the associated message related to the first message window from the message queue;

[0043] Remove the associated message from the message queue.

[0044] In a possible implementation manner, the determining module is further configured to:

[0045] Capture an interface screenshot corresponding to the display interface;

[0046] Identify the interface screenshot;

[0047] When the first message window is recognized, determine that the first message window has not been removed from the display interface;

[0048] When the first message window is not recognized, determine that the first message window has been removed from the display interface.

[0049] In a possible implementation manner, the device further includes a first execution module, configured to:

[0050] Determine a target application program among at least one application program corresponding to the display interface;

[0051] Monitor the login status of the target application program;

[0052] When it is detected that the target application is in the login process, execute the step of displaying a first message window on the display interface, monitoring the drawing situation of the target display content corresponding to the first message window, determining whether the first message window has been removed from the display interface when it is detected that a drawing message for starting to draw the target display content is received, and creating a second message window and using the second message window to display the target display content when the first message window has been removed from the display interface.

[0053] In a possible implementation manner, the first execution module is further configured to:

[0054] Regard each application corresponding to the display interface as a target application;

[0055] Or,

[0056] Receive selection information input by a user, and determine the application corresponding to the selection information as the target application.

[0057] In a possible implementation manner, the device further includes a second execution module, configured to:

[0058] Replace the event processor inner class in the instant feedback object through a reflection mechanism;

[0059] Use the event processor inner class to execute the step of displaying a first message window on the display interface, monitoring the drawing situation of the target display content corresponding to the first message window, determining whether the first message window has been removed from the display interface when it is detected that a drawing message for starting to draw the target display content is received, and creating a second message window and using the second message window to display the target display content when the first message window has been removed from the display interface.

[0060] In a third aspect, an electronic device is provided, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory communicate with each other through the communication bus;

[0061] The memory is used for storing a computer program;

[0062] The processor is configured to implement the method steps of any one of the first aspects when executing the program stored on the memory.

[0063] In a fourth aspect, a computer-readable storage medium is provided, characterized in that the computer-readable storage medium stores a computer program, and the computer program implements the method steps of any one of the first aspects when being executed by a processor.

[0064] In a fifth aspect, there is provided a computer program product containing instructions which, when run on a computer, cause the computer to execute the message display method described in any one of the above.

[0065] Advantageous effects of the embodiments of the present application:

[0066] The embodiments of the present application provide a message display method, apparatus, electronic device and storage medium. In the embodiments of the present application, when a first message window is displayed on a display interface, the drawing situation of the target display content corresponding to the first message window is monitored. When a drawing message for starting to draw the target display content is monitored, it is determined whether the first message window has been removed from the display interface. When the first message window has been removed from the display interface, a second message window is created, and the target display content is displayed using the second message window. Through the solution of the present application, when the corresponding target display content cannot be displayed due to the removal of the first message window from the display interface, the target display content can be displayed by creating a second message window, thereby improving the display success rate of the target display content.

[0067] Of course, it is not necessary for any product or method implementing the present application to achieve all of the above advantages simultaneously. Description of the Drawings

[0068] The drawings herein are incorporated into the specification and form a part of the specification, showing embodiments consistent with the present invention and used together with the specification to explain the principles of the present invention.

[0069] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0070] One or more embodiments are exemplarily illustrated by the pictures in the corresponding drawings. These exemplary illustrations do not limit the embodiments. Elements with the same reference numerals in the drawings are represented as similar elements, unless otherwise stated, and the drawings in the figures do not constitute a proportional limitation.

[0071] Figure 1 Schematic diagram of the toast message display process in the prior art;

[0072] Figure 2 Flowchart of a message display method provided by the embodiments of the present application;

[0073] Figure 3 Schematic diagram of the overall process for implementing the solution of the present application through an inner class of the handler provided by the embodiments of the present application;

[0074] Figure 4 It is a flowchart of another message display method provided by an embodiment of the present application;

[0075] Figure 5 It is a schematic structural diagram of a message display device provided by an embodiment of the present application;

[0076] Figure 6 It is a schematic structural diagram of an electronic device provided by an embodiment of the present application. Detailed implementation manners

[0077] To make the objectives, technical solutions, and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Apparently, the described embodiments are some, but not all, of the embodiments of the present application. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the present application without creative efforts shall fall within the protection scope of the present application.

[0078] The following disclosure provides many different embodiments or examples for implementing different structures of the present invention. To simplify the disclosure of the present invention, components and settings of specific examples are described below. Of course, they are only examples and are not intended to limit the present invention. In addition, the present invention may repeat reference numerals and / or letters in different examples. Such repetition is for the purpose of simplification and clarity and does not itself indicate the relationship between the various embodiments and / or settings discussed.

[0079] Figure 2 It is a schematic flowchart of a message display method provided by an embodiment of the present application. This method can be applied to one or more electronic devices such as smart phones, laptop computers, desktop computers, portable computers, and servers. In addition, the execution subject of this method can be hardware or software. When the above execution subject is hardware, the execution subject can be one or more of the above electronic devices. For example, a single electronic device can execute this method, or multiple electronic devices can cooperate with each other to execute this method. When the above execution subject is software, this method can be implemented as multiple software or software modules, or can be implemented as a single software or software module. No specific limitation is made here.

[0080] As Figure 2 shown, the method specifically includes:

[0081] Step 201, when a first message window is displayed on a display interface, monitor the drawing condition of target display content corresponding to the first message window.

[0082] Step 202: When a drawing message for starting to draw the target display content is detected, determine whether the first message window has been removed from the display interface.

[0083] Step 203: When the first message window has been removed from the display interface, create a second message window and use the second message window to display the target display content.

[0084] For ease of understanding, the following provides a unified description of Steps 201 - 203:

[0085] The above display interface generally refers to the display interface of a device (such as a mobile phone, tablet, etc.) using the Android system.

[0086] The above first message window and second message window refer to windows used to display messages of the toast (instant feedback) type.

[0087] The target display content refers to the content to be displayed in the first message window, that is, the view corresponding to the first message window (a layout file used to define a custom layout that can display more complex content in the Toast, rather than just text information).

[0088] In the embodiment of the present application, first, by listening for whether a message for driving content drawing (i.e., a drawing message) is sent from the framework layer to execute, it is determined whether the target display content is about to be drawn. When a drawing message for starting to draw the target display content is detected, it means that the target display content is about to be drawn. At this time, to avoid the failure of displaying the target display content, first determine whether the first message window has been removed from the display interface. If the first message window has been removed from the display interface, it means that the target display content cannot be successfully displayed. At this time, a second message window is created to display the target display content. That is, the view inside the old toast (i.e., the first message window) is taken out, a new toast (i.e., the second message window) is created to carry this view, and then the show method of the toast is called again to let the newly created toast display the target display content to the user.

[0089] When the first message window has not been removed from the display interface, the first message window can continue to be used to display the target display content.

[0090] In one embodiment, the specific implementation of determining whether the first message window has been removed from the display interface may include the following steps:

[0091] Step A1: Check whether there is a removal message sent from the framework layer in the message queue to remove the target display content;

[0092] Step A2: When the removal message exists in the message queue, determine that the first message window has been removed from the display interface;

[0093] Step A3: When the removal message does not exist in the message queue, determine that the first message window has not been removed from the display interface.

[0094] In this embodiment, when it is monitored that the content drawing of the driver message is about to start, it is synchronously checked whether there is a message sent by the framework layer to drive the removal of the toast content (i.e., the target display content) in the message queue. If so, it means that the first message window carrying the toast content has been destroyed at the framework layer, that is, the first message window has been removed from the display interface. Otherwise, it means that the first message window has not been removed. In this way, it can be determined whether the first message window has been removed from the display interface through the message sent by the framework layer.

[0095] In addition, in another embodiment, the method may further include the following steps: when the first message window has been removed from the display interface, determine the associated message related to the first message window from the message queue; remove the associated message from the message queue.

[0096] In practical applications, when the first message window has been removed from the display interface, some related driver messages will not be displayed because the remote window has been destroyed even if they are executed. Therefore, in this embodiment, when the first message window has been removed from the display interface, the associated message related to the first message window can be determined in the message queue according to the value and meaning of the driver message, and the associated message is removed from the message queue, so as to completely destroy the execution of the associated message. In this way, some driver messages that cannot be successfully displayed can be removed, reducing the invalid message execution process and saving computer resources.

[0097] In another embodiment, the specific implementation of determining whether the first message window has been removed from the display interface may include the following steps:

[0098] Step B1: Capture the interface screenshot corresponding to the display interface;

[0099] Step B2: Identify the interface screenshot;

[0100] Step B3: When the first message window is recognized, determine that the first message window has not been removed from the display interface;

[0101] Step B4. When the first message window is not recognized, it is determined that the first message window has been removed from the display interface.

[0102] The above interface screenshot can be a screenshot containing the entire content of the display interface or a screenshot only containing the area of the display message window.

[0103] In this embodiment, by recognizing the interface screenshot of the display interface, it is determined whether the first message window currently exists on the display interface. That is, when the first message window is recognized, it means that the first message window has not been removed from the display interface. When the first message window is not recognized, it means that the first message window has been removed from the display interface. In this way, it is possible to determine whether the first message window has been removed from the display interface through the interface screenshot of the display interface.

[0104] In addition, in another embodiment of the present application, the method may further include the following steps: replacing the event processor inner class in the instant feedback object through the reflection mechanism, using the event processor inner class to execute the step of monitoring the drawing situation of the target display content corresponding to the first message window when the first message window is displayed on the display interface, determining whether the first message window has been removed from the display interface when the drawing message for starting to draw the target display content is monitored, and when the first message window has been removed from the display interface, creating a second message window and using the second message window to display the target display content.

[0105] In this embodiment, the handler inner class (i.e., the event processor inner class) in the toast object (i.e., the instant feedback object) is replaced through java reflection, and the execution process of steps 201 - 203 is implemented through this handler inner class. Thereby, the flexibility and scalability of the program are increased, and the reusability and development efficiency of the code are improved.

[0106] Figure 3 For the overall flow schematic diagram of implementing the solution of the present application through the handler inner class, as Figure 3 shown, it specifically includes the following steps:

[0107] Step 1. Reflectively replace the handler object (i.e., the handler inner class) inside the toast;

[0108] Step 2. Listen for and execute the message for driving content drawing sent by the framework;

[0109] Step 3. When the drawing message execution is monitored, determine whether there is a driving message for removing the toast content in the message queue;

[0110] Step 4: When there is a driving message to remove the toast content in the message queue, remove the relevant messages of the toast driver, and retrieve the content view in the toast. Then create a new toast and load the retrieved content view, and call show.

[0111] Step 5: When there is no driving message to remove the toast content in the toast driver message queue, the toast is displayed normally.

[0112] In the embodiment of the present application, when the first message window is displayed on the display interface, monitor the drawing situation of the target display content corresponding to the first message window. When a drawing message for starting to draw the target display content is detected, determine whether the first message window has been removed from the display interface. When the first message window has been removed from the display interface, create a second message window and use the second message window to display the target display content. Through the solution of the present application, when the corresponding target display content cannot be displayed because the first message window is removed from the display interface, the target display content can be displayed by creating a second message window, thereby improving the display success rate of the target display content.

[0113] In practical applications, the situation where the window is cancelled by the system before the view addition message of the toast is executed generally occurs during the login process from the application not being logged in to being logged in successfully. During this period, there are many places listening for login messages and refreshing the page to update the status, resulting in a large number of messages entering the message queue waiting to be executed instantaneously. In other scenarios, this situation generally does not easily occur.

[0114] Therefore, in another embodiment of the present application, another message display method is also provided, as Figure 4 shown. This method may include the following steps:

[0115] Step 401: Determine a target application program among at least one application program corresponding to the display interface.

[0116] Step 402: Monitor the login situation of the target application program.

[0117] Step 403: When it is monitored that the target application program is in the login process, execute the steps of: when the first message window is displayed on the display interface, monitor the drawing situation of the target display content corresponding to the first message window; when a drawing message for starting to draw the target display content is detected, determine whether the first message window has been removed from the display interface; when the first message window has been removed from the display interface, create a second message window and use the second message window to display the target display content.

[0118] For ease of understanding, the following provides a unified description of steps 401 - 403:

[0119] The above-mentioned target application refers to an application that will pop up a toast-type message.

[0120] In one embodiment, determining the target application among at least one application corresponding to the display interface may include the following steps: Regarding each application corresponding to the display interface as a target application. Through this solution, all applications on the display interface can be regarded as target applications, thereby ensuring the successful display of the toast-type messages of each application.

[0121] In another embodiment, determining the target application among at least one application corresponding to the display interface may further include the following steps: Receiving the selection information input by the user, and determining the application corresponding to the selection information as the target application. Through this solution, the user can flexibly specify the target application according to actual needs. In this way, for some applications that the user deems unimportant, the solutions of steps 201 - 203 of this application do not need to be executed, thereby saving computing resources.

[0122] In the embodiments of this application, the target application can be determined among at least one application corresponding to the display interface, and the login status of the target application is monitored. Only when it is monitored that the target application is in the login process, the processes of steps 201 - 203 are executed, and there is no need to execute during other times, thereby saving computing resources.

[0123] Based on the same technical concept, the embodiments of this application also provide a message display device, as Figure 5 shown. This device includes:

[0124] A listening module 51, configured to monitor the drawing situation of the target display content corresponding to the first message window when the first message window is displayed on the display interface;

[0125] A determining module 52, configured to determine whether the first message window has been removed from the display interface when a drawing message for starting to draw the target display content is monitored;

[0126] A new building module 53, configured to create a second message window and use the second message window to display the target display content when the first message window has been removed from the display interface.

[0127] In a possible implementation manner, the determining module is specifically configured to:

[0128] Check whether there is a removal message for removing the target display content sent from the framework layer in the message queue;

[0129] When the removal message exists in the message queue, determine that the first message window has been removed from the display interface;

[0130] When the removal message does not exist in the message queue, determine that the first message window has not been removed from the display interface.

[0131] In a possible implementation, the device further includes a removal module, configured to:

[0132] When the first message window has been removed from the display interface, determine the associated message related to the first message window from the message queue;

[0133] Remove the associated message from the message queue.

[0134] In a possible implementation, the determination module is further configured to:

[0135] Capture a screenshot of the display interface;

[0136] Identify the screenshot of the interface;

[0137] When the first message window is recognized, determine that the first message window has not been removed from the display interface;

[0138] When the first message window is not recognized, determine that the first message window has been removed from the display interface.

[0139] In a possible implementation, the device further includes a first execution module, configured to:

[0140] Determine a target application in at least one application corresponding to the display interface;

[0141] Monitor the login status of the target application;

[0142] When it is monitored that the target application is in the login process, execute the steps of: when a first message window is displayed on the display interface, monitor the drawing situation of the target display content corresponding to the first message window; when a drawing message for starting to draw the target display content is monitored, determine whether the first message window has been removed from the display interface; when the first message window has been removed from the display interface, create a second message window and use the second message window to display the target display content.

[0143] In a possible implementation, the first execution module is further configured to:

[0144] Take each application corresponding to the display interface as a target application;

[0145] Or,

[0146] Receive selection information input by a user, and determine the application corresponding to the selection information as the target application.

[0147] In a possible implementation, the device further includes a second execution module, configured to:

[0148] Replace the event processor inner class in the instant feedback object through a reflection mechanism;

[0149] Use the event processor inner class to execute the step of, when a first message window is displayed on the display interface, monitoring the drawing situation of the target display content corresponding to the first message window, and when a drawing message for starting to draw the target display content is monitored, determining whether the first message window has been removed from the display interface, and when the first message window has been removed from the display interface, creating a second message window and using the second message window to display the target display content.

[0150] In the embodiment of the present application, when a first message window is displayed on the display interface, the drawing situation of the target display content corresponding to the first message window is monitored. When a drawing message for starting to draw the target display content is monitored, it is determined whether the first message window has been removed from the display interface. When the first message window has been removed from the display interface, a second message window is created and the target display content is displayed using the second message window. Through the solution of the present application, when the corresponding target display content cannot be displayed because the first message window is removed from the display interface, the target display content can be displayed by creating a second message window, thereby improving the display success rate of the target display content.

[0151] Based on the same technical concept, the embodiment of the present application further provides an electronic device, as Figure 6 shown, including a processor 111, a communication interface 112, a memory 113, and a communication bus 114. Among them, the processor 111, the communication interface 112, and the memory 113 communicate with each other through the communication bus 114.

[0152] The memory 113 is used for storing a computer program;

[0153] When the processor 111 executes the program stored on the memory 113, the following steps are implemented:

[0154] When the first message window is displayed on the display interface, monitor the drawing status of the target display content corresponding to the first message window;

[0155] When a drawing message for starting to draw the target display content is monitored, determine whether the first message window has been removed from the display interface;

[0156] When the first message window has been removed from the display interface, create a second message window and use the second message window to display the target display content.

[0157] The communication bus mentioned in the above electronic device may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. This communication bus can be divided into an address bus, a data bus, a control bus, etc. For the sake of simplicity, only a thick line is used in the figure to represent it, but it does not mean that there is only one bus or one type of bus.

[0158] The communication interface is used for communication between the above electronic device and other devices.

[0159] The memory may include a Random Access Memory (RAM), and may also include a Non-Volatile Memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located far from the aforementioned processor.

[0160] The above-mentioned processor may be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0161] In yet another embodiment provided by the present application, a computer-readable storage medium is further provided. A computer program is stored in the computer-readable storage medium. When the computer program is executed by a processor, the steps of any of the above message display methods are implemented.

[0162] In yet another embodiment provided by the present application, a computer program product containing instructions is further provided. When it runs on a computer, it enables the computer to execute any of the message display methods in the above embodiments.

[0163] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0164] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a general hardware platform, and of course, it can also be implemented by hardware. Based on such an understanding, the essence of the above technical solution, or the part that contributes to the related technology, can be embodied in the form of a software product. The computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disc, etc., and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0165] It should be understood that the terms used herein are only for the purpose of describing specific example embodiments and are not intended to be limiting. Unless the context clearly indicates otherwise, the singular forms "a", "an", and "the" as used herein may also include the plural forms. The terms "comprising", "including", "containing", and "having" are inclusive and thus specify the presence of the stated features, steps, operations, elements, and / or components, but do not preclude the presence or addition of one or more other features, steps, operations, elements, components, and / or combinations thereof. The method steps, processes, and operations described herein are not to be construed as necessarily requiring them to be executed in the particular order described or illustrated, unless the execution order is explicitly stated. It should also be understood that additional or alternative steps can be used.

[0166] The above are only specific embodiments of the present invention, enabling those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be obvious to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to these embodiments shown herein, but rather will be accorded the widest scope consistent with the principles and novel features claimed herein.

Claims

1. A message display method, characterized in that: The method comprises: When the first message window is displayed on the display interface, monitoring the drawing status of the target display content corresponding to the first message window; In the case of monitoring a drawing message for starting to draw the target display content, determining whether the first message window has been removed from the display interface; When the first message window has been removed from the display interface, a second message window is newly created, and the target display content is displayed using the second message window.

2. The method according to claim 1, characterized in that The determining whether the first message window has been removed from the display interface includes: Check whether there is a removal message sent by the framework layer in the message queue to remove the target display content; In the case where the removal message exists in the message queue, determining that the first message window has been removed from the display interface; When the removal message does not exist in the message queue, it is determined that the first message window is not removed from the display interface.

3. The method according to claim 2, characterized in that The method further comprises: In a case where the first message window has been removed from the display interface, determining, from the message queue, an associated message related to the first message window; The associated message is removed from the message queue.

4. The method according to claim 1, characterized in that: The determining whether the first message window has been removed from the display interface includes: Taking a screenshot of the interface corresponding to the display interface; Identifying the interface screenshot; In the case where the first message window is identified, determining that the first message window has not been removed from the display interface; In a case where the first message window is not identified, it is determined that the first message window has been removed from the display interface.

5. The method according to claim 1, characterized in that The method further comprises: Determining a target application in at least one application corresponding to the display interface; Monitoring the login status of the target application; In case that it is monitored that the target application is in the login process, a first message window is displayed on the display interface, and the drawing status of the target display content corresponding to the first message window is monitored. In case that a drawing message for starting to draw the target display content is detected, it is determined whether the first message window has been removed from the display interface. If the first message window has been removed from the display interface, a second message window is created, and the target display content is displayed using the second message window.

6. The method according to claim 5, characterized in that Determining the target application in at least one application corresponding to the display interface includes: Taking each application corresponding to the display interface as a target application; or, Receive selection information input by a user, and determine an application corresponding to the selection information as a target application.

7. The method according to claim 1, characterized in that The method further comprises: Replace the event handler inner class in the instant feedback object through reflection mechanism; The event handler inner class is used to execute the steps of monitoring the drawing status of the target display content corresponding to the first message window when the first message window is displayed on the display interface, and determining whether the first message window has been removed from the display interface when a drawing message for starting to draw the target display content is detected; if the first message window has been removed from the display interface, creating a second message window and using the second message window to display the target display content.

8. A message display device, characterized in that: The device comprises: A monitoring module, used for monitoring the drawing status of the target display content corresponding to the first message window when the first message window is displayed on the display interface; A determination module, configured to determine whether the first message window has been removed from the display interface when a drawing message for starting to draw the target display content is detected; A new creation module is used to create a second message window when the first message window has been removed from the display interface, and use the second message window to display the target display content.

9. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; The processor is used to implement the message display method described in any one of claims 1-7 when executing the program stored in the memory.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the message display method according to any one of claims 1 to 7 is implemented.