Specific embodiment
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to embodiment party of the present invention
Formula is described in further detail.
Refer to Fig. 1, the method flow diagram of the pop window information display methods of one embodiment of the invention offer be provided,
This pop window information display methods can apply in terminal, and this terminal can be intelligent television, smart mobile phone or panel computer
Etc..This pop window information display methods, including:
Step 101, the pop window information that the reception server sends, this pop window information is the information of display in pop-up;
Pop-up is the window showing the pop window information that server sends to terminal of automatic spring, and pop window information can be wrapped
Include advertisement, news and notice etc..
Step 102, whether detection terminal is in is forbidden harassing and wrecking state;
In order to ensure the normal operation of some application programs, terminal needs to remain the window that application program creates always
Foreground window, that is, terminal can not be by pop-up covering on this window, to avoid covering on this window pop-up to this
The interruption of application program.At this point it is possible to terminal is arranged in forbidding harassing and wrecking state.Forbid that harassing and wrecking state refers to terminal and working as
The front moment forbids ejecting pop-up.
Step 103, if testing result is in for terminal forbids harassing and wrecking state, postpones the bullet that display includes pop window information
Window.
If terminal is detected and be in and forbidding harassing and wrecking state, terminal can abandon this pop window information, does not show that this comprises
There is the pop-up of pop window information.Or, in order to ensure that pop window information can be pushed to terminal by server, terminal can also be in end
After allowing harassing and wrecking state, display includes the pop-up of pop window information.Allow harassing and wrecking state to refer to terminal and allow bullet in current time
Go out pop-up.
In sum, pop window information display methods provided in an embodiment of the present invention, forbids by whether detection terminal is in
Harassing and wrecking state;If testing result is in for terminal forbids harassing and wrecking state, postpone the pop-up that display includes pop window information, will not
Immediately pop-up is covered to other windows being in included by the terminal forbidding harassing and wrecking state as foreground window, solve
Terminal receives and immediately pop-up is set to foreground window during pop window information and is shown, the use to terminal causes harassing and wrecking
Problem, has reached the effect ensureing that the use of terminal is not harassed.
Refer to Fig. 2, the method flow diagram of the pop window information display methods of another embodiment of the present invention offer be provided,
This pop window information display methods can apply in terminal, and this terminal can be intelligent television, smart mobile phone or panel computer
Etc..This pop window information display methods, including:
Step 201, the pop window information that the reception server sends, this pop window information is the information of display in pop-up;
Pop-up is the window showing the pop window information that server sends to terminal of automatic spring.Terminal can be determined in advance
The template of adopted pop-up, such as, the size of pop-up, color, display location etc., after receiving pop window information, pop window information is added
It is added in template, generate the pop-up including pop window information.Wherein, pop window information can include advertisement, news and notice etc., this
Embodiment is not construed as limiting to pop window information.
Pop window information can be that server actively sends after getting pop window information or set in third party
Standby triggering is lower to be sent, and Limited service device does not send the triggering mode of pop window information to the present embodiment.
Step 202, whether detection terminal is in is forbidden harassing and wrecking state;
In order to ensure the normal operation of some application programs, terminal needs to remain the window that application program creates always
Foreground window, that is, terminal can not be by pop-up covering on this window, to avoid covering on this window pop-up to this
The interruption of application program.At this point it is possible to terminal is arranged in forbidding harassing and wrecking state.Forbid that harassing and wrecking state refers to terminal and working as
The front moment forbids ejecting pop-up.
After terminal receives pop window information, in order to whether clear and definite terminal can show pop-up in addition it is also necessary to terminal be
No being in forbids that harassing and wrecking state is detected.If terminal is detected and be in and forbidding harassing and wrecking state, execution step 203;If detection
It is in permission harassing and wrecking state to terminal, then shows pop-up immediately, to ensure that terminal can show pop window information in time.
Wherein, whether detection terminal is in and forbids that the method for harassing and wrecking state has many kinds, and the present embodiment is with three kinds therein
Illustrate as a example detection method, specific as follows:
First, whether detection terminal is in is forbidden harassing and wrecking state, including:
Obtain the first viewing area of each window in terminal, and bullet will be shown according to the coordinate determination that pop-up is set
Second viewing area of window;
Detect whether there is first viewing area overlapping with the second viewing area;
If testing result is to there is first viewing area overlapping with the second viewing area it is determined that terminal is in forbids disturbing
Disturb state.
Because pop-up needs to show in interface, therefore, block in order to avoid the viewing area of pop-up and transported in terminal
The problem of the viewing area of each window of the establishment of application program of row, can be according to the first display of each window in terminal
Relation between the second viewing area that region and pop-up will show is detected.
Specifically, for each of terminal window, terminal can obtain the first coordinate of four corners of this window,
The first viewing area according to first this window of coordinate setting;Because terminal has pre-defined the template of pop-up, therefore, terminal can
To obtain the second coordinate of four corners of pop-up in template, the second display of the pop-up that will show according to the second coordinate setting
Region, whether detection the first viewing area is overlapping with the second viewing area.If the first viewing area is overlapping with the second viewing area,
Then determine that terminal is in and forbid harassing and wrecking state;If the first viewing area is not overlapping with the second viewing area, continue to detect next
Individual window, until terminate this step after having detected all of window.
In order to make it easy to understand, with the first coordinate being(X1, y1)、(X2, y1)、(X1, y2)With(X2, y2), the second coordinate is
(X ' 1, y ' 1)、(X ' 2, y ' 1)、(X ' 1, y ' 2)With(X ' 2, y ' 2)As a example illustrate, if x1 is detected<x’1<X2 and y1<y’
1<y2、x1<x’2<X2 and y1<y’1<y2、x1<x’1<X2 and y1<y’2<y2、x1<x’2<X2 and y1<y’2<Any one in y2
Plant it is determined that the first viewing area is overlapping with the second viewing area.
It should be added that, when some window is in full frame state, the first viewing area of this window is inevitable
Overlapping with the second viewing area of pop-up.Therefore, terminal can be with full frame with the presence or absence of being in each window of detection terminal
, if there is this window it is determined that terminal is in forbids harassing and wrecking state in the window of state.Wherein, terminal still can pass through window
This window of coordinate measurement whether be in full frame state, the present embodiment does not repeat.
Second, whether detection terminal is in is forbidden harassing and wrecking state, including:
Obtain the process identification (PID) of the process creating foreground window, foreground window is the window of top in terminal;
Detection procedure identifies whether to be contained in default process list, and any one process in process list is as wound
Build foreground window process when mark end in forbidding harassing and wrecking state;
If testing result is contained in default process list for process identification (PID) it is determined that terminal is in forbids harassing and wrecking shape
State.
Terminal can detect that can the process that create foreground window be interrupted.Specifically, terminal can obtain establishment prospect
The process identification (PID) of the process of window, then detect whether this process identification (PID) is contained in process list, if this process identification (PID) is contained in
It is determined that this process can not be interrupted in process list, now terminal is in and forbids harassing and wrecking state;If this process identification (PID) does not comprise
It is determined that this process can be interrupted in process list, now terminal is in permission harassing and wrecking state.
Such as, terminal in advance the process identification (PID) that x plays is added in identification list.Terminal receive pop window information it
Afterwards, obtain the process identification (PID) of the process creating foreground window, if this process identification (PID) is the process mark of x game in process list
Know it is determined that terminal is in forbids harassing and wrecking state.
3rd, whether detection terminal is in is forbidden harassing and wrecking state, including:
With the presence or absence of the application program being in busy condition in each application program that detection terminal is run, busy condition is used
It is in mark terminal and forbid harassing and wrecking state;
If testing result be terminal operating each application program in exist be in busy condition application program it is determined that
Terminal is in forbids harassing and wrecking state.
User is not intended to terminal display pop-up when playing game or viewing entertainment, and therefore, terminal can be trip
The play setting state such as application program and play-back application, forbids harassing and wrecking state to identify terminal and to be in.Wherein, application program
State value can be set by user input, or, terminal detects is currently running some game application and play-back application
Deng when the state value of this application program is set automatically.
Specifically, terminal can by the state value of application program be set to predetermined value come identification application be in busy
State, this predetermined value can be 1 or 0 or null value etc., and the present embodiment is not construed as limiting.Terminal is passed through to read the state of application program
Whether value is carried out detection terminal and is in forbid harassing and wrecking state.
It should be added that, any two or three in above-mentioned three kinds of detection methods that the present embodiment provides is permissible
It is used in combination.The present embodiment taking the combination of second detection method and the third detection method as a example illustrates, then terminal can
Whether it is contained in process list with the process identification (PID) detecting the process creating foreground window, if this process identification (PID) is detected not wrapping
It is contained in process list, then continue in each application program run in detection terminal with the presence or absence of the application being in busy condition
Program, if detect the presence of the application program being in busy condition it is determined that terminal is in forbids harassing and wrecking state.
Step 203, if testing result is in for terminal forbids harassing and wrecking state, detects described end at predetermined time intervals again
Whether end is in is forbidden harassing and wrecking state;If testing result is in permission harassing and wrecking state for described terminal, display includes described
The pop-up of pop window information.
If terminal is detected and be in and forbidding harassing and wrecking state, terminal can abandon this pop window information, does not show that this comprises
There is the pop-up of pop window information.Or, in order to ensure that pop window information can be pushed to terminal by server, terminal can also be in end
After allowing harassing and wrecking state, display includes the pop-up of pop window information.
Further, terminal can after the scheduled time of interval again detection terminal whether be in and forbid harassing and wrecking state,
If this detects terminal and is in forbids harassing and wrecking state, after the scheduled time of interval, whether detection terminal is in and forbids disturbing again
Disturb state;If this detects terminal and is in permission harassing and wrecking state, terminal shows the pop-up including pop window information immediately.Its
In, whether detection terminal is in is forbidden that the method for harassing and wrecking state refers to the description in step 202, does not repeat herein.
In sum, pop window information display methods provided in an embodiment of the present invention, forbids by whether detection terminal is in
Harassing and wrecking state;If testing result is in for terminal forbids harassing and wrecking state, postpone the pop-up that display includes pop window information, will not
Immediately pop-up is covered to other windows being in included by the terminal forbidding harassing and wrecking state as foreground window, solve
Terminal receives and immediately pop-up is set to foreground window during pop window information and is shown, the use to terminal causes harassing and wrecking
Problem, has reached the effect ensureing that the use of terminal is not harassed.In addition, by detecting described terminal at predetermined time intervals again
Whether it is in and forbid harassing and wrecking state;If testing result is in permission harassing and wrecking state for described terminal, display includes described bullet
The pop-up of window information, can show pop-up it is ensured that the display of terminal-pair pop window information when terminal is in permission harassing and wrecking state,
Reach the effect expanding Information Communication scope.
Refer to Fig. 3, the structural framing figure of the pop window information display device of one embodiment of the invention offer be provided,
This pop window information display device can apply in terminal, and this terminal can be intelligent television, smart mobile phone or panel computer
Etc..This pop window information display device, including:
Information receiving module 301, the pop window information sending for the reception server, pop window information is display in pop-up
Information;
State detection module 302, forbids harassing and wrecking state for whether detection terminal is in;
Information display module 303, the result for detecting in state detection module 302 is in for terminal forbids harassing and wrecking state
When, postpone the pop-up that display includes the pop window information that information receiving module 301 receives.
In sum, pop window information display device provided in an embodiment of the present invention, forbids by whether detection terminal is in
Harassing and wrecking state;If testing result is in for terminal forbids harassing and wrecking state, postpone the pop-up that display includes pop window information, will not
Immediately pop-up is covered to other windows being in included by the terminal forbidding harassing and wrecking state as foreground window, solve
Terminal receives and immediately pop-up is set to foreground window during pop window information and is shown, the use to terminal causes harassing and wrecking
Problem, has reached the effect ensureing that the use of terminal is not harassed.
Refer to Fig. 4, the structural framing figure of the pop window information display device of yet another embodiment of the invention offer be provided,
This pop window information display device can apply in terminal, and this terminal can be intelligent television, smart mobile phone or panel computer
Etc..This pop window information display device, including:Information receiving module 301, state detection module 302 and information display module
303.
Information receiving module 301, the pop window information sending for the reception server, pop window information is display in pop-up
Information;
State detection module 302, forbids harassing and wrecking state for whether detection terminal is in;
Information display module 303, the result for detecting in state detection module 302 is in for terminal forbids harassing and wrecking state
When, postpone the pop-up that display includes the pop window information that information receiving module 301 receives.
Optionally, state detection module 302, including:
First acquisition unit 3021, for obtaining the first viewing area of each window in terminal, and sets according to pop-up
Fixed coordinate determines the second viewing area that will show pop-up;
, for detecting whether there is the second viewing area getting with first acquisition unit 3021 in the first detector unit 3022
The first overlapping viewing area of domain;
First determining unit 3023, the result for detecting in the first detector unit 3022 is to exist and the second viewing area
During the first viewing area of overlap, determine that terminal is in and forbid harassing and wrecking state.
Optionally, state detection module 302, including:
Second acquisition unit 3024, for obtaining the process identification (PID) of the process creating foreground window, foreground window is terminal
The window of middle top;
Second detector unit 3025, pre- for detecting whether the process identification (PID) that second acquisition unit 3024 gets is contained in
If process list in, any one process in process list as create foreground window process when mark end in taboo
Only harassing and wrecking state;
Second determining unit 3026, the result for detecting in the second detector unit 3025 is contained in default for process identification (PID)
Process list in when, determine that terminal is in and forbid harassing and wrecking state.
Optionally, state detection module 302, including:
3rd detector unit 3027, whether there is in each application program run for detection terminal and is in busy condition
Application program, busy condition is used for identifying terminal and being in forbidding harassing and wrecking state;
3rd determining unit 3028, the result for detecting in the 3rd detector unit 3027 is each application of terminal operating
When there is, in program, the application program being in busy condition, determine that terminal is in and forbid harassing and wrecking state.
Optionally, information display module 303, including:
4th detector unit 3031, at predetermined time intervals again detection terminal whether be in and forbid harassing and wrecking state;
Information display unit 3032, the result for detecting in the 4th detector unit 3031 is in permission harassing and wrecking shape for terminal
During state, display includes the pop-up of pop window information.
In sum, pop window information display device provided in an embodiment of the present invention, forbids by whether detection terminal is in
Harassing and wrecking state;If testing result is in for terminal forbids harassing and wrecking state, postpone the pop-up that display includes pop window information, will not
Immediately pop-up is covered to other windows being in included by the terminal forbidding harassing and wrecking state as foreground window, solve
Terminal receives and immediately pop-up is set to foreground window during pop window information and is shown, the use to terminal causes harassing and wrecking
Problem, has reached the effect ensureing that the use of terminal is not harassed.In addition, by detecting described terminal at predetermined time intervals again
Whether it is in and forbid harassing and wrecking state;If testing result is in permission harassing and wrecking state for described terminal, display includes described bullet
The pop-up of window information, can show pop-up it is ensured that the display of terminal-pair pop window information when terminal is in permission harassing and wrecking state,
Reach the effect expanding Information Communication scope.
It should be noted that:Above-described embodiment provide pop window information display device carry out pop window information display when, only
Be illustrated with the division of above-mentioned each functional module, in practical application, can as desired by above-mentioned functions distribution by
Different functional modules completes, and the internal structure of pop window information display device will be divided into different functional modules, to complete
All or part of function described above.In addition, the pop window information display device that above-described embodiment provides is shown with pop window information
Show that embodiment of the method belongs to same design, it implements process and refers to embodiment of the method, repeats no more here.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can pass through hardware
To complete it is also possible to the hardware being instructed correlation by program is completed, described program can be stored in a kind of computer-readable
In storage medium, storage medium mentioned above can be read-only storage, disk or CD etc..
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all spirit in the present invention and
Within principle, any modification, equivalent substitution and improvement made etc., should be included within the scope of the present invention.