CN108717371B - Pop-up window management method and device - Google Patents

Pop-up window management method and device Download PDF

Info

Publication number
CN108717371B
CN108717371B CN201810472354.4A CN201810472354A CN108717371B CN 108717371 B CN108717371 B CN 108717371B CN 201810472354 A CN201810472354 A CN 201810472354A CN 108717371 B CN108717371 B CN 108717371B
Authority
CN
China
Prior art keywords
window
pop
type
actual
state information
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
CN201810472354.4A
Other languages
Chinese (zh)
Other versions
CN108717371A (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.)
Chengdu Liulingjia Information Technology Co ltd
Original Assignee
Chengdu Liulingjia Information 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 Chengdu Liulingjia Information Technology Co ltd filed Critical Chengdu Liulingjia Information Technology Co ltd
Priority to CN201810472354.4A priority Critical patent/CN108717371B/en
Publication of CN108717371A publication Critical patent/CN108717371A/en
Application granted granted Critical
Publication of CN108717371B publication Critical patent/CN108717371B/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

Landscapes

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

Abstract

The embodiment of the invention provides a pop-up window management method and device, and relates to the technical field of interface display methods. The method and the device determine the actual state type and the actual window state information of each pop-up window according to a judgment result generated by judging whether the Activity is visible, the initial state type of each pop-up window and the current window state information in sequence according to the sequence of the pop-up window list by acquiring a pre-established pop-up window list, wherein the pop-up window list comprises a plurality of pop-up windows arranged according to the time sequence, and finally each pop-up window is displayed, removed or hidden according to the actual window state information of each pop-up window and the actual state type of each pop-up window; because the popup windows in the list are orderly processed in a unified way and then whether each popup window is displayed or not is determined, the popup windows can be popped up when the Activity is in the background, and the problem that the program is crashed due to the PopupWindow on the popup windows is solved.

Description

Pop-up window management method and device
Technical Field
The invention relates to the technical field of interface display methods, in particular to a pop-up window management method and device.
Background
In android application development, the way to pop up the secondary interface is typically jump Activity, PopupWindow, Dialog or Dialog fragment.
But the use of Activity jump leads to slow system reaction and difficult management of a secondary interface; when PopupWindow is used as the pop-up secondary page development of business logic, the problem of system crash caused by invalid token easily occurs; the problem that the life cycle is incomplete when the Dialog is used as the pop-up secondary interface is solved; when DialogFragment is used, an attempt to pop up the interface cannot be made when Activity is in the background, otherwise the program crashes.
Disclosure of Invention
In view of the above, the present invention provides a pop-up window management method and apparatus to solve the above problem.
In order to achieve the above purpose, the embodiment of the present invention adopts the following technical solutions:
in a first aspect, an embodiment of the present invention provides a pop-up window management method, where the pop-up window management method includes:
acquiring a pre-established pop-up window list, wherein the pop-up window list comprises a plurality of pop-up windows arranged according to a time sequence;
determining the actual state type and the actual window state information of each pop-up window according to a judgment result generated by judging whether the Activity is visible, the initial state type of each pop-up window and the current window state information in sequence according to the sequence of the pop-up window list;
and displaying, removing or hiding each pop-up window according to the actual window state information and the actual state type of each pop-up window.
Further, the step of determining the actual state type and the actual window state information of each pop-up window according to the determination result generated by determining whether Activity is visible, the initial state type of each pop-up window and the current window state information in sequence according to the order of the pop-up window list includes:
when the state type of the pop-up window is a to-be-added type or a hidden type, the judgment result is that the Activity is visible, and the initial window state information is matched with the first preset identifier, initiating a display window operation transaction by using a preset algorithm, and determining that the actual window state information is the second preset identifier and the actual state type of the pop-up window is the display type.
Further, the step of determining the actual state type and the actual window state information of each pop-up window according to the determination result generated by determining whether Activity is visible, the initial state type of each pop-up window and the current window state information in sequence according to the order of the pop-up window list further includes:
and when the state type of the pop-up window is a display type, the judgment result is that the Activity is visible, and the window state information is not matched with the first preset identifier, initiating a hidden window operation transaction by using a preset algorithm, and determining that the actual state type of the pop-up window is a hidden type.
Further, the step of determining the actual state type and the actual window state information of each pop-up window according to the determination result generated by determining whether Activity is visible, the initial state type of each pop-up window and the current window state information in sequence according to the order of the pop-up window list further includes:
and when the state type of the pop-up window is the type to be deleted and the judgment result is that the Activity is visible, initiating a window removing operation transaction by using a preset algorithm.
Further, the step of displaying, removing or hiding each pop-up window according to the actual window state information and the actual state type of each pop-up window comprises:
when the window state information is matched with a second preset identifier, setting the display attribute of a pre-established popup window container as a display type so as to display the popup window with the actual state type as the display type;
and when the window state information is not matched with the second preset identification, setting the display attribute of the pre-established pop-up window container to be a hidden type so as to hide the pop-up window with the initial state type as the display type.
Further, the pop-up window management method further includes:
judging whether pop-up window operation transactions exist or not, wherein the pop-up window operation transactions comprise display window operation transactions, hidden window operation transactions and removal window operation transactions;
hiding the virtual keyboard when the popup window operation transaction exists.
Further, the pop-up window management method further includes:
judging whether Activity is visible;
when the Activity is visible, a pop-up window action transaction is committed.
In a second aspect, an embodiment of the present invention further provides a pop-up window management apparatus, where the pop-up window management apparatus includes:
the device comprises an acquisition unit, a display unit and a display unit, wherein the acquisition unit is used for acquiring a pre-established pop-up window list which comprises a plurality of pop-up windows arranged according to a time sequence;
a state determining unit, configured to determine, according to the order of the pop-up window list, an actual state type and actual window state information of each pop-up window in sequence according to a determination result generated by determining whether Activity is visible, an initial state type of each pop-up window, and current window state information;
and the display unit is used for displaying, removing or hiding each pop-up window according to the actual window state information and the actual state type of each pop-up window.
Further, the state determining unit is further configured to initiate a display window operation transaction by using a preset algorithm when the state type of the pop-up window is the to-be-added type or the hidden type, the determination result is that the Activity is visible, and the initial window state information matches a first preset identifier, and determine that the actual window state information is a second preset identifier and the actual state type of the pop-up window is the display type.
Further, the state determining unit is further configured to initiate a hidden window operation transaction by using a preset algorithm when the state type of the pop-up window is the display type, the determination result is that the Activity is visible, and the window state information is not matched with the first preset identifier, and determine that the actual state type of the pop-up window is the hidden type.
The pop-up window management method and device provided by the embodiment of the invention have the advantages that a pre-established pop-up window list is obtained, the pop-up window list comprises a plurality of pop-up windows which are arranged according to a time sequence, the actual state type and the actual window state information of each pop-up window are determined according to a judgment result generated by judging whether the Activity is visible, the initial state type and the current window state information of each pop-up window in sequence according to the sequence of the pop-up window list, and finally each pop-up window is displayed, removed or hidden according to the actual window state information of each pop-up window and the actual state type of each pop-up window; because the popup windows in the list are orderly processed in a unified manner, and whether each popup window is displayed or not is determined, the popup windows can be popped up when the Activity is in the background, the problem that the popup windows have PopupWindow to cause program crash is avoided, the popup windows have complete life cycles, and the page data refreshing processing can be conveniently realized.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 shows a functional block diagram of a user terminal according to an embodiment of the present invention.
Fig. 2 is a flowchart illustrating a pop-up window management method according to an embodiment of the present invention.
Fig. 3 shows a detailed flowchart of step S203 in fig. 2.
Fig. 4 shows a second flowchart of a pop-up window management method according to an embodiment of the present invention.
Fig. 5 is a third flowchart illustrating a pop-up window management method according to an embodiment of the present invention.
Fig. 6 is a functional block diagram illustrating a pop-up window management apparatus according to an embodiment of the present invention.
Icon: 100-a user terminal; 101-a memory; 102-a memory controller; 103-a processor; 104-peripheral interfaces; 105-a radio frequency unit; 106-touch screen; 200-pop-up window management means; 210-an obtaining unit; 220-a state determination unit; 230-a display unit; 240-a judgment unit; 250-a keyboard hiding unit; 260-operating the transaction commit unit.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
It is noted that relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements from the process, method, article, or apparatus that comprises the element.
Referring to fig. 1, fig. 1 shows a functional block diagram of a user terminal 100 applicable to an embodiment of the present invention. As shown in fig. 1, the user terminal 100 includes a pop-up window management apparatus 200, a memory 101, a memory controller 102, one or more (only one shown) processors 103, a peripheral interface 104, a radio frequency unit 105, a touch screen 106, and the like. These components communicate with each other via one or more communication buses/signal lines. The pop-up window management apparatus 200 includes at least one software function unit that may be stored in the memory 101 in the form of software or firmware (firmware) or solidified in an Operating System (OS) of the user terminal 100.
The memory 101 may be used to store software programs and units, such as program instructions/units corresponding to the pop-up window management apparatus 200 and method in the embodiment of the present invention, and the processor 103 executes various functional applications and data processing by running the software programs and units stored in the memory 101, such as the pop-up window management method provided in the embodiment of the present invention. Memory 101 may include high speed random access memory 101, and may also include non-volatile memory 101, such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory 101. Access to the memory 101 by the processor 103 and possibly other components may be under the control of the memory controller 102.
The peripheral interface 104 couples various input/output devices to the processor 103 as well as to the memory 101. In some embodiments, the peripheral interface 104, the processor 103, and the memory controller 102 may be implemented in a single chip. In other examples, they may be implemented separately from the individual chips.
The rf unit 105 is configured to receive and transmit electromagnetic waves, and achieve interconversion between the electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices and perform data transmission.
The touch screen 106 is used for providing an output and input interface between the user terminal 100 and a user, so as to realize the interaction between the user terminal 100 and the user. The touch screen 106 can sense a touch operation from the touch screen 106 and send the sensed touch operation to the processor 103 for processing.
It is to be understood that the structure shown in fig. 1 is merely illustrative, and that the user terminal 100 may also include more or fewer components than shown in fig. 1, or have a different configuration than shown in fig. 1. The components shown in fig. 1 may be implemented in hardware, software, or a combination thereof.
First embodiment
The embodiment of the invention provides a pop-up window management method, which is used for displaying or disappearing in sequence according to the life cycle of Activity, the initial state type of each pop-up window and the initial window state information. Please refer to fig. 2, which is a flowchart illustrating a pop-up window management method according to an embodiment of the present invention. The pop-up window management method comprises the following steps:
step S201: and acquiring a pre-established pop-up window list.
When a user needs to acquire a pop-up window, a display request is initiated to the processor 103 through the touch screen 106, at this time, the processor 103 displays the request and generates the pop-up window, and the pop-up window is placed in the pop-up window list, so that the pop-up window list is established.
It should be noted that the pop-up window list includes a plurality of pop-up windows arranged in time sequence. The processor 103 may sequentially process each pop-up window included in the pop-up window list by acquiring the pre-established pop-up window list.
Step S202: and according to the sequence of the pop-up window list, determining the actual state type and the actual window state information of each pop-up window in sequence according to a judgment result generated by judging whether the Activity is visible, the initial state type of each pop-up window and the current window state information.
The initial state types of the pop-up window mainly include four types: the types are to-be-added, display, hidden and deleted, respectively. Each initial state type corresponds to different modes for determining the actual state type and the actual window state information.
The first method comprises the following steps: when the initial state type of the pop-up window is the type to be added, judging whether Activity is visible or not and whether the current window state information is matched with the first preset identifier or not, if yes, initiating a display window operation transaction by using a preset algorithm, and determining that the actual window state information is the second preset identifier and the actual state type of the pop-up window is the display type.
Whether pop-up window operation transaction can be initiated or not can be determined by judging whether Activity is visible or not, and if the pop-up window operation transaction is initiated and displayed when the Activity is invisible, system crash can be caused.
In addition, the matching of the current window state information and the first preset identification shows that no pop-up window is displayed on the display screen at the current moment.
It should be noted that, the display window operation transaction can be initiated by using the API of the preset fragment transaction; and if the actual state type of the pop-up window is determined to be the display type and the actual window state information is the second preset identifier, the pop-up window to be displayed on the display screen at the moment is indicated.
And the second method comprises the following steps: when the state type of the pop-up window is the display type, judging whether the Activity is visible or not and whether the current window state information is not matched with the first preset identification or not, if so, initiating a hidden window operation transaction by using a preset algorithm, and determining that the actual state type of the pop-up window is the hidden type.
It can be understood that, when the state type of the pop-up window is the display type, the Activity is visible, and the current window state information is not matched with the first preset identifier, it indicates that the touch screen 106 has the pop-up window to be displayed in the current state, so that at this time, a preset algorithm is used to initiate a hidden window operation transaction and switch the actual state type of the pop-up window to the hidden type, so as to avoid system crash caused by the existence of the pop-up windows in two display states.
Conversely, when the state type of the pop-up window is the display type but the current window state information matches the first preset identifier, no pop-up window to be displayed is displayed on the touch screen 106 in the current state, and therefore the actual window state information is switched to the second preset identifier to display the pop-up window.
And the third is that: when the initial state type of the pop-up window is hidden, whether Activity is visible or not and whether the current window state information is matched with the first preset identifier or not are judged, if yes, a preset algorithm is used for initiating a display window operation transaction, and the actual window state information is determined to be the second preset identifier and the actual state type of the pop-up window is determined to be the display type.
On the contrary, when any one of the conditions that the Activity is not visible or the current window state information does not match the first preset identifier is satisfied, the processor 103 does not switch the actual window state information and the actual state type.
And fourthly: and when the initial state type of the pop-up window is the type to be deleted, judging whether the Activity is visible, and if so, initiating a window removing operation transaction by using a preset algorithm.
It should be noted that the window operation transaction is displayed, the window operation transaction is hidden, and the window operation transaction is removed. It is understood that step S202 can be implemented by a for loop logic. Referring to fig. 3, a variable N is set to indicate the number of pop-up windows to be processed. And acquiring the number of pop-up windows contained in the pop-up window list, subtracting 1 from the number of the pop-up windows to be used as an initial value of a variable N, and taking N ≧ 0 as a condition for entering a for loop.
For example, when a user initiates a display request to the processor 103 through the touch screen 106, the processor 103 generates a pop-up window of a type to be added at the last position of the pop-up window list, and when Activity is visible and the current window state information matches the first preset identifier, it indicates that a pop-up operation transaction can be initiated and displayed at this time and the touch screen 106 does not display the pop-up window, so that a preset algorithm is utilized to initiate a display window operation transaction at this time, the actual window state information is switched to the second preset identifier and the actual state type of the pop-up window is switched to the display type, and then the variable N is decreased by 1; meanwhile, the type of the previous pop-up window adjacent to the pop-up window of the type to be added is the pop-up window displayed before, so that the initial state type of the pop-up window is the display type, at this time, because the actual window state information is already switched to the second preset identifier in the first operation process, under the condition that the Activity is visible, the actual state type of the pop-up window is the hidden type, and then the variable N is automatically reduced by 1; because the initial state type of the last pop-up window is the display type, the initial state type of the current pop-up window is the hidden type, and the actual window state information is switched to the second preset identifier in the first running process, so that only the variable N is reduced by 1 to indicate that the pop-up window is processed; and so on, until N <0, all pop-up windows in the pop-up window list have been processed, so that a loop is skipped and the next step is executed.
Step S203: and displaying, removing or hiding each pop-up window according to the actual window state information of each pop-up window and the actual state type of each pop-up window.
Specifically, whether the actual window state information is matched with a second display preset identifier is judged, and if yes, the display attribute of the pre-established popup window container is set as the display type to display the popup window with the actual state type as the display type; if not, the display attribute of the pre-established popup window container is set as a hidden type so as to hide the popup window with the initial state type as the display type.
Further, the processor 103 may also operate by automatically hiding the virtual keyboard when there is a pop-up window operation transaction. Specifically, as shown in fig. 4, the pop-up window management method further includes:
step S204: judging whether pop-up window operation transactions exist or not, if yes, executing step S205; if not, step S203 is executed.
Step S205: hiding the virtual keyboard.
It should be noted that the keyboard can be hidden by using the API of the InputMethodManager in the event of clicking of the pre-established pop-up window container. That is, the virtual keyboard will be hidden when the user clicks on the blank of the display interface.
In addition, as shown in fig. 5, the pop-up window management method further includes:
step S206: judging whether Activity is visible, if yes, executing step S207; if not, step S203 is executed.
Step S207: the pop-up window operation transaction is committed.
Second embodiment
Referring to fig. 6, fig. 6 is a diagram illustrating a pop-up window management apparatus 200 according to a preferred embodiment of the invention. It should be noted that the basic principle and the generated technical effect of the pop-up window management device 200 provided in the present embodiment are the same as those of the above embodiments, and for the sake of brief description, no part of the present embodiment is mentioned, and reference may be made to the corresponding contents in the above embodiments. The pop-up window management apparatus 200 includes an acquisition unit 210, a state determination unit 220, a display unit 230, a judgment unit 240, a keyboard hiding unit 250, and an operation transaction committing unit 260.
The obtaining unit 210 is configured to obtain a pre-established pop-up window list.
It is to be understood that, in a preferred embodiment, the obtaining unit 210 may be configured to execute step S201.
The state determining unit 220 is configured to determine, according to the order of the pop-up window list, an actual state type and actual window state information of each pop-up window in sequence according to a determination result generated by determining whether Activity is visible, an initial state type of each pop-up window, and current window state information.
Specifically, the state determining unit 220 is configured to initiate a display window operation transaction by using a preset algorithm when the state type of the pop-up window is the to-be-added type or the hidden type, the determination result is Activity visible, and the initial window state information matches the first preset identifier, and determine that the actual window state information is the second preset identifier and the actual state type of the pop-up window is the display type.
The state determining unit 220 is further configured to initiate a window hiding operation transaction by using a preset algorithm when the state type of the pop-up window is the display type, the determination result is that Activity is visible, and the window state information is not matched with the first preset identifier, and determine that the actual state type of the pop-up window is the hiding type.
The state determining unit 220 is further configured to initiate a window removing operation transaction by using a preset algorithm when the state type of the pop-up window is the to-be-deleted type and the determination result is that Activity is visible.
It is to be understood that in a preferred embodiment, the state determination unit 220 is operable to perform step S202.
The display unit 230 is used for displaying, removing or hiding each pop-up window according to the actual window status information and the actual status type of each pop-up window.
Specifically, the display unit 230 is configured to set the display attribute of the pre-established popup window container as the display type to display the popup window having the actual status type as the display type when the window status information matches the second preset identifier.
The display unit 230 is further configured to set the display attribute of the pre-established popup window container to a hidden type to hide the popup window whose initial state type is the display type when the window state information does not match the second preset identifier.
It is to be understood that, in a preferred embodiment, the display unit 230 may be used to perform step S203.
The determining unit 240 is configured to determine whether a pop-up window operation transaction exists.
It is to be understood that, in a preferred embodiment, the determining unit 240 may be used for executing the step S204.
A keyboard hiding unit 250 for hiding the virtual keyboard when there is a pop-up window manipulation transaction.
It is to be understood that, in a preferred embodiment, the keyboard hiding unit 250 may be used to perform step S205.
The determining unit 240 is further configured to determine whether Activity is visible.
It is to be understood that, in a preferred embodiment, the determining unit 240 may be used for executing the step S206.
Operation transaction commit unit 260 is used to commit the pop-up window operation transaction when Activity is visible.
It will be appreciated that in a preferred embodiment, the operation transaction commit unit 260 is operable to perform step S207.
In summary, according to the pop-up window management method and apparatus provided in the embodiments of the present invention, a pre-established pop-up window list is obtained, where the pop-up window list includes a plurality of pop-up windows arranged in a time sequence, and according to the sequence of the pop-up window list, the actual state type and the actual window state information of each pop-up window are determined in sequence according to a determination result generated by determining whether Activity is visible, the initial state type of each pop-up window, and the current window state information, and finally each pop-up window is displayed, removed, or hidden according to the actual window state information of each pop-up window and the actual state type of each pop-up window; because the popup windows in the list are orderly processed in a unified manner, and whether each popup window is displayed or not is determined, the popup windows can be popped up when the Activity is in the background, the problem that the popup windows have PopupWindow to cause program crash is avoided, the popup windows have complete life cycles, and the page data refreshing processing can be conveniently realized.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a unit, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, each functional unit in the embodiments of the present invention may be integrated together to form an independent part, or each unit may exist separately, or two or more units may be integrated to form an independent part.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (8)

1. A management method of a pop-up window is characterized in that the management method of the pop-up window comprises the following steps:
acquiring a pre-established pop-up window list, wherein the pop-up window list comprises a plurality of pop-up windows arranged according to a time sequence;
determining the actual state type and the actual window state information of each pop-up window according to a judgment result generated by judging whether the Activity is visible, the initial state type of each pop-up window and the current window state information in sequence according to the sequence of the pop-up window list;
displaying, removing or hiding each pop-up window according to the actual window state information and the actual state type of each pop-up window;
the step of determining the actual state type and the actual window state information of each pop-up window according to the sequence of the pop-up window list and the judgment result generated by judging whether the Activity is visible, the initial state type of each pop-up window and the current window state information in sequence comprises the following steps:
and when the state type of the pop-up window is a display type, the judgment result is that the Activity is visible, and the window state information is not matched with the first preset identifier, initiating a hidden window operation transaction by using a preset algorithm, and determining that the actual state type of the pop-up window is a hidden type.
2. The pop-up window management method according to claim 1, wherein the step of determining the actual state type and the actual window state information of each pop-up window in order according to the determination result generated by determining whether Activity is visible, the initial state type and the current window state information of each pop-up window further comprises:
when the state type of the pop-up window is a to-be-added type or a hidden type, the judgment result is that the Activity is visible, and the initial window state information is matched with the first preset identifier, initiating a display window operation transaction by using a preset algorithm, and determining that the actual window state information is the second preset identifier and the actual state type of the pop-up window is the display type.
3. The pop-up window management method according to claim 1, wherein the step of determining the actual state type and the actual window state information of each pop-up window in order according to the determination result generated by determining whether Activity is visible, the initial state type and the current window state information of each pop-up window further comprises:
and when the state type of the pop-up window is the type to be deleted and the judgment result is that the Activity is visible, initiating a window removing operation transaction by using a preset algorithm.
4. The pop-up window management method as claimed in claim 1, wherein the step of displaying, removing or hiding each pop-up window according to the actual window status information and the actual status type of each pop-up window comprises:
when the window state information is matched with a second preset identifier, setting the display attribute of a pre-established popup window container as a display type so as to display the popup window with the actual state type as the display type;
and when the window state information is not matched with the second preset identification, setting the display attribute of the pre-established pop-up window container to be a hidden type so as to hide the pop-up window with the initial state type as the display type.
5. A popup window management method according to claim 1, further comprising:
judging whether pop-up window operation transactions exist or not, wherein the pop-up window operation transactions comprise display window operation transactions, hidden window operation transactions and removal window operation transactions;
hiding the virtual keyboard when the popup window operation transaction exists.
6. A popup window management method according to claim 1, further comprising:
judging whether Activity is visible;
when the Activity is visible, a pop-up window action transaction is committed.
7. A pop-up window management apparatus, characterized by comprising:
the device comprises an acquisition unit, a display unit and a display unit, wherein the acquisition unit is used for acquiring a pre-established pop-up window list which comprises a plurality of pop-up windows arranged according to a time sequence;
a state determining unit, configured to determine, according to the order of the pop-up window list, an actual state type and actual window state information of each pop-up window in sequence according to a determination result generated by determining whether Activity is visible, an initial state type of each pop-up window, and current window state information;
the display unit is used for displaying, removing or hiding each pop-up window according to the actual window state information and the actual state type of each pop-up window;
and the state determining unit is further configured to initiate a hidden window operation transaction by using a preset algorithm when the state type of the pop-up window is a display type, the judgment result is that the Activity is visible, and the window state information is not matched with the first preset identifier, and determine that the actual state type of the pop-up window is a hidden type.
8. The pop-up window management device according to claim 7, wherein the state determining unit is further configured to initiate a display window operation transaction by using a preset algorithm when the state type of the pop-up window is a to-be-added type or a hidden type, the determination result is that the Activity is visible, and the initial window state information matches a first preset identifier, and determine that the actual window state information is a second preset identifier and the actual state type of the pop-up window is the display type.
CN201810472354.4A 2018-05-17 2018-05-17 Pop-up window management method and device Active CN108717371B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810472354.4A CN108717371B (en) 2018-05-17 2018-05-17 Pop-up window management method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810472354.4A CN108717371B (en) 2018-05-17 2018-05-17 Pop-up window management method and device

Publications (2)

Publication Number Publication Date
CN108717371A CN108717371A (en) 2018-10-30
CN108717371B true CN108717371B (en) 2021-11-12

Family

ID=63899766

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810472354.4A Active CN108717371B (en) 2018-05-17 2018-05-17 Pop-up window management method and device

Country Status (1)

Country Link
CN (1) CN108717371B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112241297B (en) * 2019-07-18 2024-05-14 上海幻电信息科技有限公司 Data display method, system, computer equipment and readable storage medium
CN114286158B (en) * 2021-12-24 2024-04-19 广州方硅信息技术有限公司 Virtual resource activity display method, device, medium and equipment of live broadcasting room

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103488490A (en) * 2013-10-08 2014-01-01 深圳市金立通信设备有限公司 Method and device for determining application corresponding to pop-up window and terminal
CN103685731A (en) * 2013-11-15 2014-03-26 北京奇虎科技有限公司 Message communication method and message communication client
CN103729110A (en) * 2013-12-27 2014-04-16 广州华多网络科技有限公司 Popup window information display method, device and terminal
CN106484509A (en) * 2016-09-27 2017-03-08 腾讯科技(深圳)有限公司 A kind of output intent of pop-up, device and terminal
CN106648641A (en) * 2016-12-09 2017-05-10 武汉斗鱼网络科技有限公司 Automatic management method and system for multi-level pop-up boxes on iOS system device
CN107463440A (en) * 2017-09-14 2017-12-12 北京奇艺世纪科技有限公司 A kind of pop-up methods of exhibiting and device
US20180109486A1 (en) * 2015-05-08 2018-04-19 Facebook, Inc. Managing for-sale group postings

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103488490A (en) * 2013-10-08 2014-01-01 深圳市金立通信设备有限公司 Method and device for determining application corresponding to pop-up window and terminal
CN103685731A (en) * 2013-11-15 2014-03-26 北京奇虎科技有限公司 Message communication method and message communication client
CN103729110A (en) * 2013-12-27 2014-04-16 广州华多网络科技有限公司 Popup window information display method, device and terminal
US20180109486A1 (en) * 2015-05-08 2018-04-19 Facebook, Inc. Managing for-sale group postings
CN106484509A (en) * 2016-09-27 2017-03-08 腾讯科技(深圳)有限公司 A kind of output intent of pop-up, device and terminal
CN106648641A (en) * 2016-12-09 2017-05-10 武汉斗鱼网络科技有限公司 Automatic management method and system for multi-level pop-up boxes on iOS system device
CN107463440A (en) * 2017-09-14 2017-12-12 北京奇艺世纪科技有限公司 A kind of pop-up methods of exhibiting and device

Also Published As

Publication number Publication date
CN108717371A (en) 2018-10-30

Similar Documents

Publication Publication Date Title
US8812983B2 (en) Automatic magnification and selection confirmation
CN106961454B (en) File downloading method and device and terminal equipment
US10860337B2 (en) Method, device and user terminal for loading application
CN108717371B (en) Pop-up window management method and device
US9672362B2 (en) Systems and methods for secure delivery of public keys for operating system drivers
US20200210203A1 (en) Systems and methods for handling firmware driver dependencies in host operating systems while applying updates from bootable image file
US7606973B2 (en) System and method for pervasive computing with a portable non-volatile memory device
WO2008006240A1 (en) An anti-virus usage model at an exterior panel of a computer
CN108228126B (en) Screen projection control method and device, electronic terminal and readable storage medium
CN107832403B (en) Directory file management method and device, electronic terminal and readable storage medium
US11500647B2 (en) Systems and methods for achieving faster boot times using BIOS attribute mitigation
CN107480240B (en) Database system and data processing method thereof
CN107168776B (en) Event statistical method, device, equipment and storage medium
US9760484B2 (en) Data processing method and electronic device
CN108446150B (en) Object reuse method and device and terminal equipment
CN114817223A (en) Service data extraction method and device, electronic equipment and storage medium
CN114816852A (en) Method, device and medium for recovering user configuration data
US11216269B2 (en) Systems and methods for update of storage resource firmware
CN108415656B (en) Display control method, device, medium and electronic equipment in virtual scene
CN113849233A (en) BIOS null boot entry deleting method, system, terminal and storage medium
CN110837433A (en) Performance optimization method and device and electronic equipment
CN112912855A (en) Starting-up detection method, starting-up detection device and mobile terminal
US11244055B1 (en) Management controller to bios root of trust bypass implant detection and remediation
CN110659089A (en) Boarder application recommendation method, equipment and storage medium
CN111176738A (en) Display card display method and system of UEFI mode and related components thereof

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