CN104317648B - A kind of method and apparatus of monitoring advertisement - Google Patents
A kind of method and apparatus of monitoring advertisement Download PDFInfo
- Publication number
- CN104317648B CN104317648B CN201410504529.7A CN201410504529A CN104317648B CN 104317648 B CN104317648 B CN 104317648B CN 201410504529 A CN201410504529 A CN 201410504529A CN 104317648 B CN104317648 B CN 104317648B
- Authority
- CN
- China
- Prior art keywords
- program
- mobile device
- stack top
- application market
- application
- 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.)
- Expired - Fee Related
Links
Abstract
The present invention provides a kind of method and apparatus of monitoring advertisement.The method includes:The first application programming interfaces for accessing the operating system of mobile device installation, obtain the currently running all programs of the mobile device;Calling system function extracts the stack top program currently shown in the mobile device screen from currently running all programs;The stack top program is compared with preset application market program;When the stack top program is the application market program, determine that the mobile device jumps to the application market program by the advertisement link for including in original program, it generates the prompt message guided by advertisement and is illustrated on the screen of the mobile device, the original program is the application program accessed before jumping to the application market program;The application market program is closed, and by calling the second application programming interfaces of the operating system to enable original program.
Description
Technical field
The present invention relates to e-advertising fields, more particularly to a kind of method of monitoring advertisement, and, a kind of monitoring advertisement
Device.
Background technology
With universal and technology the progress of mobile device, there can only be the equipment of communication function more intelligent originally, move
Software above dynamic equipment is also more and more abundant.But the technology of developer improve the program in mobile device be also it is very different,
Advertisement in program allows in user's normal use software process receive and much bother, and many advertisements are that implant hacker soft
Part so that userspersonal information and mobile device receive safely more threats.
But moving advertising in overseas generally is intended to jump to Google Play, and (Google is existing for Android device exploitation
Line application program shop) it goes to download some software, this advertisement is different from traditional form, and developer is preferably wide in order to realize
Accuse effect, it will usually advertisement is added directly into software function, it is a kind of advertisement form that such user, which cannot be distinguished from this, from
And have more duplicity.
Advertisement SDK is had in embedded ad ware, this is a kind of advertisement development kit being built in software, by wide
Provider is accused to provide.Current monitoring of the advertisement and Interception Technology mainly monitors in the software of download either with or without the journey of advertisement SDK
Sequence packet can be implanted into corresponding code when having monitored corresponding advertisement SDK in software, advertisement when preventing to run the software
Display or simpler mode are direct disconnection networks to organize the display of only advertisement.
But this display that can only prevent banner advertisement and software wall advertisement, it can not prevent to jump to application market
The corresponding software of downloads ad is removed, mobile device memory still can be occupied and consumes certain network flow.
Invention content
The present invention provides a kind of method and apparatus of monitoring advertisement, to prevent to be gone under application market by malice advertisement guiding
Data are carried, the occupancy to mobile device memory and the consumption to network flow are reduced.
To solve the above-mentioned problems, the invention discloses a kind of methods of monitoring advertisement, including:
The first application programming interfaces for accessing the operating system of mobile device installation, obtain the mobile device and currently run
All programs;
Calling system function, which is extracted from currently running all programs, currently to be shown in the mobile device screen
Stack top program;
The stack top program is compared with preset application market program;
When the stack top program is the application market program, determine the mobile device by being wrapped in original program
The advertisement link contained jumps to the application market program, generates the prompt message guided by advertisement and is illustrated in the movement
On the screen of equipment, the original program is the application program accessed before jumping to the application market program;
The application market program is closed, and original by calling the second application programming interfaces of the operating system to enable
Program.
Preferably, second comprising the first interface and the return original program that continue to access in the prompt message connects
Mouthful;
Before the closing application market program, the method further includes:
Receive selection operation of the user to the second interface;
The method further includes:
Selection operation of the user to the first interface is received, and continues to load the application market program.
Preferably, before the closing application market program, the method further includes:
Receive selection operation of the user to the mobile device programmable button.
Preferably, the first application programming interfaces of the operating system for accessing mobile device installation, obtain the movement
The currently running all programs of equipment include:
The first application programming interfaces of the operating system of the mobile device installation are accessed, call function task list obtains
Function, obtain include currently running all programs program listing;
The calling system function is extracted from currently running all programs currently to be shown in the mobile device screen
The stack top program shown includes:
Calling system function is from extracting the stack top journey currently shown in the mobile device screen in described program list
Sequence.
Preferably, it is described the stack top program is compared with preset application market program including:
Caller packet name obtains the program-package name that function obtains the stack top program;
The program-package name of the stack top program is compared with the program-package name of the application market program.
The present invention also provides a kind of methods of monitoring advertisement, including:
First interface access modules, the first application programming interfaces of the operating system for accessing mobile device installation, are obtained
Take the currently running all programs of the mobile device;
Stack top program acquisition module extracts currently from currently running all programs described for calling system function
The stack top program shown in mobile device screen;
Stack top program comparing module, for the stack top program to be compared with preset application market program;
Reminding module, for when the stack top program is the application market program, determining that the mobile device has been led to
It crosses the advertisement link for including in original program and jumps to the application market program, generate the prompt message guided by advertisement simultaneously
It is illustrated on the screen of the mobile device, the original program is the application accessed before jumping to the application market program
Program;
Program handover module for closing the application market program, and calls the second of the operating system to apply journey
Sequence interface enables original program.
Preferably, second comprising the first interface and the return original program that continue to access in the prompt message connects
Mouthful;
Described device further includes:
Second interface selection interface module, the selection operation for receiving user to the second interface, and described in execution
Program handover module;
Described device further includes:
First interface selects receiving module, the selection operation for receiving user to the first interface, and continues to load
The application market program.
Preferably, described device further includes:
Button selects receiving module, the selection operation for receiving user to the mobile device programmable button.
Preferably, the first interface access modules are specifically used for accessing the operating system of the mobile device installation
First application programming interfaces, call function task list obtain function, obtain include currently running all programs program arrange
Table;
The stack top program acquisition module extracts currently from described program list in institute specifically for calling system function
State the stack top program shown in mobile device screen.
Preferably, the stack top program comparing module includes:
Packet name acquisition submodule obtains the program-package name that function obtains the stack top program for caller packet name;
Packet name compares submodule, is used for the program bag of the program-package name of the stack top program and the application market program
Name is compared.
Compared with the background art, the present invention includes following advantages:
Embodiment according to the present invention, by accessing the first application programming interfaces of mobile device operation system, described in acquisition
The currently running all programs of mobile device, and further extracted in the movement from all programs by calling system function
The stack top program shown on device screen can determine the movement if the stack top program is the application market program
Equipment jumps to the application market program by the advertisement link for including in the original program that accesses before, then further closes
It closes the application market program and is switched to original program, so as to prevent to go application market to download number by malice advertisement guiding
According to reduction reduces the consumption to network flow to the occupancy of mobile device memory.
Description of the drawings
Fig. 1 is a kind of flow chart of the method for monitoring advertisement of the embodiment of the present invention 1;
Fig. 2 is a kind of flow chart of the method for monitoring advertisement of the embodiment of the present invention 2;
Fig. 3 is a kind of flow chart of the method for monitoring advertisement of the embodiment of the present invention 3;
Fig. 4 is a kind of structure diagram of the device of monitoring advertisement of the embodiment of the present invention 1;
Fig. 5 is a kind of structure diagram of the device of monitoring advertisement of the embodiment of the present invention 2;
Fig. 6 is a kind of structure diagram of the device of monitoring advertisement of the embodiment of the present invention 3.
Specific implementation mode
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, below in conjunction with the accompanying drawings and specific real
Applying mode, the present invention is described in further detail.
The implementation process of the method for the invention is described in detail below by embodiment.
Referring to Fig.1, it illustrates a kind of flow chart of the method for monitoring advertisement, the methods described in the embodiment of the present invention 1
It can specifically include:
Step 101, the first application programming interfaces for accessing the operating system that mobile device is installed, obtain the mobile device
Currently running all programs.
The application programming interfaces (API) of operating system are the interfaces of application program and operating system traffic, are that system provides
Well known service, include multiple functions called, call corresponding function that can obtain the various information of mobile terminal.
Here by calling the first application programming interfaces, so that it may obtain the currently running all programs of mobile device.
Step 102, calling system function are extracted currently from currently running all programs in the mobile device screen
The stack top program of upper display.
Stack top program refers to the program shown on mobile device current screen, is not only wrapped in currently running all programs
Further include other various programs in running background containing stack top program.It can be from more by calling system function topActivity
Stack top program is extracted in a currently running program.
After user installation implements the software of the present invention, software can run an oracle listener, always monitoring users screen
The stack top program of curtain.
The stack top program is compared step 103 with preset application market program.
Further judge that the stack top program is application market program after obtaining stack top program, application market program provides
Download to multiple application programs, application market are also known as application shop, are commonly called as APP STORE, exclusively for mobile device mobile phone, put down
(free) game of the offers such as plate computer charge, using the electronic application shop of download service.
Application market program can be set according to actual needs, for example, Google Play or other it is any assert he be city
Field class application.
Step 104, when the stack top program be the application market program when, determine the mobile device by original
The advertisement link for including in program jumps to the application market program, generates the prompt message guided by advertisement and is illustrated in
On the screen of the mobile device, the original program is the application program accessed before jumping to the application market program.
If stack top program is application market program, illustrates that mobile device has been subjected to advertisement guiding, accessed from script
The advertisement link for including in original program jumps to application market program, and may further corresponding other are soft for downloads ad
Part.The prompt message guided by advertisement can be generated at this time, and is shown on the screen of the mobile device to prompt user.
Step 105 closes the application market program, and the second application programming interfaces by calling the operating system
Enable original program.
After determining that mobile device has been subjected to advertisement guiding, it is further turned off the application market program, is avoided into traveling
The access and download of one step, and be switched to the application program accessed originally, application programming interfaces (API) are provided in system can be with
Start random procedure and startActivity specifically may be used by calling this interface that can reactivate original program
Method enables original program.
It monitors that advertisement shape is to prompt user when generation and be switched to original program through the embodiment of the present invention, reduces
The behavior that user is guided by malice advertisement.
In the embodiment of the present invention, it is further preferred that the first application of the operating system for accessing mobile device installation
Routine interface, obtaining the currently running all programs of the mobile device may include:
Sub-step S11, the first application programming interfaces for accessing the operating system that the mobile device is installed, call function are appointed
Be engaged in list obtain function, obtain include currently running all programs program listing.
By calling the first application programming interfaces, further call function task list to obtain function
ActivityManager.getRunningTasks can obtain program listing, currently be transported comprising mobile device in program listing
Capable all program runingTask.
In the embodiment of the present invention, it is further preferred that the calling system function is carried from currently running all programs
The stack top program currently shown in the mobile device screen is taken to include:
Sub-step S21, calling system function from extracted in described program list currently in the mobile device screen show
The stack top program shown.
After obtaining program listing, pass through the system function topActivity of ActivityManager.runningTask
The top layer activity for obtaining runingTask can be obtained, that is to say the stack top program that current screen is currently running.
In the embodiment of the present invention, it is further preferred that it is described by the stack top program and preset application market program into
Row compares:
Sub-step S31, caller packet name obtain the program-package name that function obtains the stack top program;
Sub-step S32, the program-package name of the stack top program and the program-package name of the application market program are compared
It is right.
Stack top program is compared with application market program, can be the program-package name of alignment programs, program-package name can
With the corresponding application program of unique mark, can also use it is any other can be with the information of unique mark program (such as to program
EXE files carry out the MD5 values that message digest algorithm obtains).In the embodiment of the present invention, after determining stack top program, further call
Program-package name obtains function getClassName () and obtains the program-package name of stack top program, and stack top program is answered with preset
It is compared with the respective program-package name of market program.
In conclusion embodiment according to the present invention, by accessing the first application programming interfaces of mobile device operation system,
The currently running all programs of the mobile device are obtained, and are further extracted from all programs by calling system function
The stack top program shown in the mobile device screen can determine if the stack top program is the application market program
The mobile device jumps to the application market program by the advertisement link for including in the original program that accesses before, then
It is further turned off the application market program and is switched to original program, so as to prevent to go application market by malice advertisement guiding
Downloading data reduces the occupancy to mobile device memory, reduces the consumption to network flow.
With reference to Fig. 2, it illustrates a kind of flow chart of the method for monitoring advertisement, the methods described in the embodiment of the present invention 2
It can specifically include:
Step 201, the first application programming interfaces for accessing the operating system that mobile device is installed, obtain the mobile device
Currently running all programs.
Step 202, calling system function are extracted currently from currently running all programs in the mobile device screen
The stack top program of upper display.
The stack top program is compared step 203 with preset application market program.
Step 204, when the stack top program be the application market program when, determine the mobile device by original
The advertisement link for including in program jumps to the application market program, generates the prompt message guided by advertisement and is illustrated in
On the screen of the mobile device, the original program is the application program accessed before jumping to the application market program,
Include the second interface of the first interface and the return original program that continue to access in the prompt message.
Decided that when the stack top program markets such as from certain change of program to GOOGLEPLAY of user user be by
The guiding that advertisement is hidden in certain program, can pop up on the screen prompting frame allow user choose whether to continue to access or
Return to the program accessed originally.
Step 205 receives selection operation of the user to the first interface, and continues to load the application market program.
Step 206 receives selection operation of the user to the second interface, and closes the application market program, and leads to
It crosses and the second application programming interfaces of the operating system is called to enable original program.
If user selects first interface, continue to load application market program, from application market if user selects to close
Program is switched to original program.
Embodiment according to the present invention, by accessing the first application programming interfaces of mobile device operation system, described in acquisition
The currently running all programs of mobile device, and further extracted in the movement from all programs by calling system function
The stack top program shown on device screen can determine the movement if the stack top program is the application market program
Equipment jumps to the application market program by the advertisement link for including in the original program that accesses before, then pops up correspondence
Prompt allow user to choose whether to receive this advertisement, be further turned off the application market program according to the user's choice and cut
It changes to original program or continues to access application market program, so as to prevent to go application market to download by malice advertisement guiding
Data reduce the occupancy to mobile device memory, reduce the consumption to network flow.
With reference to Fig. 3, it illustrates a kind of flow chart of the method for monitoring advertisement, the methods described in the embodiment of the present invention 3
It can specifically include:
Step 301, the first application programming interfaces for accessing the operating system that mobile device is installed, obtain the mobile device
Currently running all programs.
Step 302, calling system function are extracted currently from currently running all programs in the mobile device screen
The stack top program of upper display.
The stack top program is compared step 303 with preset application market program.
Step 304, when the stack top program be the application market program when, determine the mobile device by original
The advertisement link for including in program jumps to the application market program, generates the prompt message guided by advertisement and is illustrated in
On the screen of the mobile device, the original program is the application program accessed before jumping to the application market program.
Step 305 receives selection operation of the user to the mobile device programmable button, and closes the application market journey
Sequence, and by calling the second application programming interfaces of the operating system to enable original program.
User is known according to prompt message guided by advertisement after, application can be exited by clicking the selection of preset button
Market program, for example click return key or HOME keys other pre-set buttons (such as some number key or # keys, *
Key etc.), it all will not continue to access application market program in this way.
Embodiment according to the present invention, by accessing the first application programming interfaces of mobile device operation system, described in acquisition
The currently running all programs of mobile device, and further extracted in the movement from all programs by calling system function
The stack top program shown on device screen can determine the movement if the stack top program is the application market program
Equipment jumps to the application market program by the advertisement link for including in the original program that accesses before, then further closes
It closes the application market program and is switched to original program, so as to prevent to go application market to download number by malice advertisement guiding
According to reduction reduces the consumption to network flow to the occupancy of mobile device memory.
It should be noted that for embodiment of the method above-mentioned, for simple description, therefore it is all expressed as a series of
Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the described action sequence, because according to
According to the present invention, certain steps can be performed in other orders or simultaneously.Next, those skilled in the art should also know that,
Embodiment described in this description belongs to preferred embodiment, and involved action is not necessarily essential to the invention.
Explanation based on above method embodiment, the present invention also provides the device embodiments of corresponding monitoring advertisement, come
Realize the content described in above method embodiment.
With reference to Fig. 4, it illustrates a kind of structure diagrams of the device of monitoring advertisement described in the embodiment of the present invention 1, including:
First interface access modules 401, the first application programming interfaces of the operating system for accessing mobile device installation,
Obtain the currently running all programs of the mobile device.
Stack top program acquisition module 402 extracts from currently running all programs for calling system function and currently exists
The stack top program shown in the mobile device screen.
Stack top program comparing module 403, for the stack top program to be compared with preset application market program.
Reminding module 404, for when the stack top program is the application market program, having determined the mobile device
The application market program is jumped to by the advertisement link for including in original program, generates the prompt message guided by advertisement
And be illustrated on the screen of the mobile device, the original program is to jump to answering for application market program access before
Use program.
Program handover module 405 for closing the application market program, and calls the second of the operating system to apply
Routine interface enables original program.
In the embodiment of the present invention, it is preferable that the first interface access modules are specifically used for accessing the mobile device peace
First application programming interfaces of the operating system of dress, call function task list obtain function, obtain including currently running institute
There is the program listing of program;
The stack top program acquisition module extracts currently from described program list in institute specifically for calling system function
State the stack top program shown in mobile device screen.
In the embodiment of the present invention, it is preferable that the stack top program comparing module includes:
Packet name acquisition submodule obtains the program-package name that function obtains the stack top program for caller packet name;
Packet name compares submodule, is used for the program bag of the program-package name of the stack top program and the application market program
Name is compared.
Embodiment according to the present invention, by accessing the first application programming interfaces of mobile device operation system, described in acquisition
The currently running all programs of mobile device, and further extracted in the movement from all programs by calling system function
The stack top program shown on device screen can determine the movement if the stack top program is the application market program
Equipment jumps to the application market program by the advertisement link for including in the original program that accesses before, then further closes
It closes the application market program and is switched to original program, so as to prevent to go application market to download number by malice advertisement guiding
According to reduction reduces the consumption to network flow to the occupancy of mobile device memory.
With reference to Fig. 5, it illustrates a kind of structure diagrams of the device of monitoring advertisement described in the embodiment of the present invention 2, including:
First interface access modules 501, the first application programming interfaces of the operating system for accessing mobile device installation,
Obtain the currently running all programs of the mobile device.
Stack top program acquisition module 502 extracts from currently running all programs for calling system function and currently exists
The stack top program shown in the mobile device screen.
Stack top program comparing module 503, for the stack top program to be compared with preset application market program.
Reminding module 504, for when the stack top program is the application market program, having determined the mobile device
The application market program is jumped to by the advertisement link for including in original program, generates the prompt message guided by advertisement
And be illustrated on the screen of the mobile device, the original program is to jump to answering for application market program access before
Comprising the first interface for continuing to access and the second interface of the original program is returned to program, in the prompt message.
First interface selects receiving module 505, the selection operation for receiving user to the first interface, and continues to add
Carry the application market program.
Second interface selects interface module 506, the selection operation for receiving user to the second interface.
Program handover module 507 for closing the application market program, and calls the second of the operating system to apply
Routine interface enables original program.
Embodiment according to the present invention, by accessing the first application programming interfaces of mobile device operation system, described in acquisition
The currently running all programs of mobile device, and further extracted in the movement from all programs by calling system function
The stack top program shown on device screen can determine the movement if the stack top program is the application market program
Equipment jumps to the application market program by the advertisement link for including in the original program that accesses before, then pops up correspondence
Prompt allow user to choose whether to receive this advertisement, be further turned off the application market program according to the user's choice and cut
It changes to original program or continues to access application market program, so as to prevent to go application market to download by malice advertisement guiding
Data reduce the occupancy to mobile device memory, reduce the consumption to network flow.
With reference to Fig. 6, it illustrates a kind of structure diagrams of the device of monitoring advertisement described in the embodiment of the present invention 3, including:
First interface access modules 601, the first application programming interfaces of the operating system for accessing mobile device installation,
Obtain the currently running all programs of the mobile device.
Stack top program acquisition module 602 extracts from currently running all programs for calling system function and currently exists
The stack top program shown in the mobile device screen.
Stack top program comparing module 603, for the stack top program to be compared with preset application market program.
Reminding module 604, for when the stack top program is the application market program, having determined the mobile device
The application market program is jumped to by the advertisement link for including in original program, generates the prompt message guided by advertisement
And be illustrated on the screen of the mobile device, the original program is to jump to answering for application market program access before
Use program.
Button selects receiving module 605, the selection operation for receiving user to the mobile device programmable button.
Program handover module 606 for closing the application market program, and calls the second of the operating system to apply
Routine interface enables original program.
Embodiment according to the present invention, by accessing the first application programming interfaces of mobile device operation system, described in acquisition
The currently running all programs of mobile device, and further extracted in the movement from all programs by calling system function
The stack top program shown on device screen can determine the movement if the stack top program is the application market program
Equipment jumps to the application market program by the advertisement link for including in the original program that accesses before, then further closes
It closes the application market program and is switched to original program, so as to prevent to go application market to download number by malice advertisement guiding
According to reduction reduces the consumption to network flow to the occupancy of mobile device memory.
For the device embodiment of above-mentioned monitoring advertisement, since it is basically similar to the method embodiment, so description
It is fairly simple, related place illustrates referring to the part of embodiment of the method shown in Fig. 1, Fig. 2 and Fig. 3.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with
The difference of other embodiment, the same or similar parts between the embodiments can be referred to each other.
It would have readily occurred to a person skilled in the art that be:The arbitrary combination application of above-mentioned each embodiment is all feasible, therefore
Arbitrary combination between above-mentioned each embodiment is all embodiment of the present invention, but this specification exists as space is limited,
This is not just detailed one by one.
The present invention can be used in numerous general or special purpose computing system environments or configuration.Such as:Personal computer, service
Device computer, handheld device or portable device, laptop device, multicomputer system, microprocessor-based system, top set
Box, programmable consumer-elcetronics devices, network PC, minicomputer, mainframe computer including any of the above system or equipment
Distributed computing environment etc..
The present invention can describe in the general context of computer-executable instructions executed by a computer, such as program
Module.Usually, program module includes routines performing specific tasks or implementing specific abstract data types, program, object, group
Part, data structure etc..The present invention can also be put into practice in a distributed computing environment, in these distributed computing environments, by
Task is executed by the connected remote processing devices of communication network.In a distributed computing environment, program module can be with
In the local and remote computer storage media including storage device.
In the present invention, " component ", " device ", " system " etc. refer to the related entities applied to computer, such as hardware, firmly
Combination, software or software in execution of part and software etc..In detail, for example, component can with but be not limited to run on place
Manage process, processor, object, executable component, execution thread, program and/or the computer of device.In addition, running on server
On application program or shell script, server can be component.One or more components can be in the process and/or line of execution
Cheng Zhong, and component can be localized and/or be distributed between two or multiple stage computers on one computer, and can be by
Various computer-readable medium operations.Component can also be according to the signal with one or more data packets, for example, coming from one
Pass through signal and other systems with another component interaction in local system, distributed system, and/or network in internet and hand over
The signal of mutual data is communicated by locally and/or remotely process.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by
One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation
Between there are any actual relationship or orders.Moreover, the terms "include", "comprise", include not only those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or equipment institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence " including ... ", it is not excluded that wanted including described
There is also other identical elements in the process, method, article or equipment of element.
Moreover, "and/or" above indicate both to have contained herein " and " relationship, also contain the relationship of "or",
In:If option A and option b be " and " relationship, then it represents that can include option A and option b simultaneously in certain embodiment;If
Option A and the relationship that option b is "or", then it represents that can include individually option A in certain embodiment, or include individually option b.
It should be understood by those skilled in the art that, the embodiment of the present invention can be provided as method, system or computer program
Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention
Apply the form of example.Moreover, the present invention can be used in one or more wherein include computer usable program code computer
The computer program production implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)
The form of product.
The present invention be with reference to according to the method for the embodiment of the present invention, the flow of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that can be realized by computer program instructions every first-class in flowchart and/or the block diagram
The combination of flow and/or box in journey and/or box and flowchart and/or the block diagram.These computer programs can be provided
Instruct the processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine so that the instruction executed by computer or the processor of other programmable data processing devices is generated for real
The device for the function of being specified in present one flow of flow chart or one box of multiple flows and/or block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that instruction generation stored in the computer readable memory includes referring to
Enable the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device so that count
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, in computer or
The instruction executed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in a box or multiple boxes.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic
Property concept, then additional changes and modifications can be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as
It selects embodiment and falls into all change and modification of the scope of the invention.
Above to a kind of device of the method and monitoring advertisement of monitoring advertisement provided by the present invention, detailed Jie has been carried out
It continues, principle and implementation of the present invention are described for specific case used herein, and the explanation of above example is only
It is the method and its core concept for being used to help understand the present invention;Meanwhile for those of ordinary skill in the art, according to this hair
Bright thought, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification should not manage
Solution is limitation of the present invention.
Claims (10)
1. a kind of method of monitoring advertisement, which is characterized in that including:
The first application programming interfaces for accessing the operating system of mobile device installation, obtain the currently running institute of the mobile device
There is program;
Calling system function extracts the stack top currently shown in the mobile device screen from currently running all programs
Program;
The stack top program is compared with preset application market program;
When the stack top program is the application market program, determine the mobile device by including in original program
Advertisement link jumps to the application market program, determines that advertisement behavior has occurred and that, generates and is believed by the prompt that advertisement guides
It ceases and is illustrated on the screen of the mobile device, the original program is to be accessed before jumping to the application market program
Application program, the application market program provide the download to multiple application programs;
The application market program is closed, and by calling the second application programming interfaces of the operating system to enable original journey
Sequence.
2. according to the method described in claim 1, it is characterized in that, including the first interface for continuing to access in the prompt message
With the second interface for returning to the original program;
Before the closing application market program, the method further includes:
Receive selection operation of the user to the second interface;
The method further includes:
Selection operation of the user to the first interface is received, and continues to load the application market program.
3. according to the method described in claim 1, it is characterized in that, it is described close the application market program before, it is described
Method further includes:
Receive selection operation of the user to the mobile device programmable button.
4. according to the method described in claim 1, it is characterized in that, the first of the operating system for accessing mobile device installation
Application programming interfaces, obtaining the currently running all programs of the mobile device includes:
The first application programming interfaces of the operating system of the mobile device installation are accessed, call function task list obtains letter
Number, obtain include currently running all programs program listing;
The calling system function, which is extracted from currently running all programs, currently to be shown in the mobile device screen
Stack top program includes:
Calling system function is from extracting the stack top program currently shown in the mobile device screen in described program list.
5. according to the method described in claim 1, it is characterized in that, described by the stack top program and preset application market journey
Sequence be compared including:
Caller packet name obtains the program-package name that function obtains the stack top program;
The program-package name of the stack top program is compared with the program-package name of the application market program.
6. a kind of device of monitoring advertisement, which is characterized in that including:
First interface access modules, the first application programming interfaces of the operating system for accessing mobile device installation, obtain institute
State the currently running all programs of mobile device;
Stack top program acquisition module extracts currently from currently running all programs in the movement for calling system function
The stack top program shown on device screen;
Stack top program comparing module, for the stack top program to be compared with preset application market program, the application
Market program provides the download to multiple application programs;
Reminding module, for when the stack top program is the application market program, determining that the mobile device has passed through original
The advertisement link for including in beginning program jumps to the application market program, determines that advertisement behavior has occurred and that, generates by wide
It accuses the prompt message of guiding and is illustrated on the screen of the mobile device, the original program is to jump to the application market
The application program accessed before program;
Program handover module for closing the application market program, and calls the second application program of the operating system to connect
Mouth enables original program.
7. device according to claim 6, which is characterized in that include the first interface for continuing to access in the prompt message
With the second interface for returning to the original program;
Described device further includes:
Second interface selects interface module, the selection operation for receiving user to the second interface, and executes described program
Handover module;
Described device further includes:
First interface selects receiving module, the selection operation for receiving user to the first interface, and continues described in load
Application market program.
8. device according to claim 6, which is characterized in that described device further includes:
Button selects receiving module, the selection operation for receiving user to the mobile device programmable button.
9. device according to claim 6, it is characterised in that:
The first interface access modules are specifically used for accessing the first application program of the operating system of the mobile device installation
Interface, call function task list obtain function, obtain include currently running all programs program listing;
The stack top program acquisition module extracts currently from described program list in the shifting specifically for calling system function
The stack top program shown on dynamic device screen.
10. device according to claim 6, which is characterized in that the stack top program comparing module includes:
Packet name acquisition submodule obtains the program-package name that function obtains the stack top program for caller packet name;
Packet name compares submodule, for by the program-package name of the program-package name of the stack top program and the application market program into
Row compares.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410504529.7A CN104317648B (en) | 2014-09-26 | 2014-09-26 | A kind of method and apparatus of monitoring advertisement |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410504529.7A CN104317648B (en) | 2014-09-26 | 2014-09-26 | A kind of method and apparatus of monitoring advertisement |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104317648A CN104317648A (en) | 2015-01-28 |
CN104317648B true CN104317648B (en) | 2018-10-23 |
Family
ID=52372883
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410504529.7A Expired - Fee Related CN104317648B (en) | 2014-09-26 | 2014-09-26 | A kind of method and apparatus of monitoring advertisement |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104317648B (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105487871B (en) * | 2015-12-01 | 2019-08-09 | 海信集团有限公司 | A kind of method and apparatus running application program on intelligent terminal |
CN108182091A (en) * | 2016-12-08 | 2018-06-19 | 北京奇虎科技有限公司 | The method and device manipulated in SDK to user behavior |
CN108804915B (en) * | 2017-05-03 | 2021-03-26 | 腾讯科技(深圳)有限公司 | Virus program cleaning method, storage device and electronic terminal |
EP3627322A4 (en) | 2017-06-14 | 2020-04-29 | Beijing Xiaomi Mobile Software Co., Ltd. | Application interaction method, interaction method and device |
CN109218374B (en) * | 2017-07-07 | 2021-11-30 | 北京小米移动软件有限公司 | Application interaction method and device |
CN109218375B (en) * | 2017-07-07 | 2021-11-23 | 北京小米移动软件有限公司 | Application interaction method and device |
CN107370740B (en) * | 2017-07-28 | 2020-08-11 | 北京五八信息技术有限公司 | Jump interception method and device |
CN112087544B (en) * | 2020-08-10 | 2021-11-16 | 五八有限公司 | Prompting method and device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102799643A (en) * | 2012-06-30 | 2012-11-28 | 成都西可科技有限公司 | Mobile platform advertisement filtering method |
CN103150513A (en) * | 2013-03-20 | 2013-06-12 | 北京奇虎科技有限公司 | Method and device for intercepting embedded information in application program |
CN103514554A (en) * | 2012-11-15 | 2014-01-15 | Tcl集团股份有限公司 | Advertisement injecting method of intelligent device and intelligent device |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8050970B2 (en) * | 2002-07-25 | 2011-11-01 | Google Inc. | Method and system for providing filtered and/or masked advertisements over the internet |
US8819772B2 (en) * | 2012-06-25 | 2014-08-26 | Appthority, Inc. | In-line filtering of insecure or unwanted mobile device software components or communications |
-
2014
- 2014-09-26 CN CN201410504529.7A patent/CN104317648B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102799643A (en) * | 2012-06-30 | 2012-11-28 | 成都西可科技有限公司 | Mobile platform advertisement filtering method |
CN103514554A (en) * | 2012-11-15 | 2014-01-15 | Tcl集团股份有限公司 | Advertisement injecting method of intelligent device and intelligent device |
CN103150513A (en) * | 2013-03-20 | 2013-06-12 | 北京奇虎科技有限公司 | Method and device for intercepting embedded information in application program |
Also Published As
Publication number | Publication date |
---|---|
CN104317648A (en) | 2015-01-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104317648B (en) | A kind of method and apparatus of monitoring advertisement | |
EP2184668B1 (en) | Method, system and graphical user interface for enabling a user to access enterprise data on a portable electronic device | |
CN110262818A (en) | The hot update method of Java code, device, electronic equipment and storage medium | |
CN109032691A (en) | A kind of small routine operation method, device and storage medium | |
US20150081764A1 (en) | Remote Virtualization of Mobile Apps | |
US20150082239A1 (en) | Remote Virtualization of Mobile Apps with Transformed Ad Target Preview | |
AU2009248420A1 (en) | Method and system for modifying the execution of a native application running on a portable electronic device | |
CN108345632A (en) | Call method, device, equipment and the computer readable storage medium of the H5 pages | |
CN106293765A (en) | A kind of layout updates method and device | |
CN104679581B (en) | The method and device of running background program | |
CN106296135A (en) | Event-prompting method, device and terminal | |
CN112653670A (en) | Service logic vulnerability detection method, device, storage medium and terminal | |
CN108287647B (en) | Application running method and device | |
CN106209918A (en) | The method of a kind of internet security management and terminal | |
CN106302519A (en) | The method of a kind of internet security management and terminal | |
CN104702701A (en) | Method and device for sharing data | |
CN105577828B (en) | A kind of remoting redirection method and apparatus | |
CN110134480A (en) | Processing method, device, electronic equipment and the storage medium of user's trigger action | |
CN110598419A (en) | Block chain client vulnerability mining method, device, equipment and storage medium | |
CN109857325A (en) | Display interface switching method, electronic equipment and computer readable storage medium | |
CN109710280A (en) | It is a kind of for installing the method and apparatus of application on a user device | |
CN107145790A (en) | A kind of method and terminal for managing application permission | |
CN107643858A (en) | A kind of information processing method, terminal and server | |
CN107038201A (en) | Display methods, device, terminal and the server of personal homepage | |
CN109347951A (en) | File deriving method, device, computer equipment and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20181023 Termination date: 20210926 |