Content of the invention
In view of this, the purpose of the embodiment of the present invention is to provide a kind of advertisement screen method based on mobile terminal and is
System is it is intended to solve to shield the complex steps of advertisement of mobile terminal and inaccurate problem in prior art.
The embodiment of the present invention is achieved in that a kind of advertisement screen method based on mobile terminal, and methods described includes:
When the application program of described mobile terminal starts carrying advertisement code, enter the system advertisement of described mobile terminal
Shielding object database carries out record queries;
Judge whether the record corresponding with the ad code that application program starts loading;
If there is the record corresponding with the ad code that application program starts loading, the type obtaining advertisement interface belongs to
Property;
Attribute type according to described advertisement interface carries out advertisement shielding respectively.
Preferably, the type attribute at described advertisement interface includes View type and Activity type, wherein, described
Include according to the step that the attribute type at described advertisement interface carries out advertisement shielding respectively:
If the type attribute at described advertisement interface is View type, will be corresponding with the advertising circle face of this View type wide
After announcement code has loaded, the advertisement interface of the system described View type of setting of described mobile terminal is invisible;Or
If the type attribute at described advertisement interface is Activity type, the system of described mobile terminal does not directly start
The advertisement of described Activity type.
Preferably, in the described step judging whether the record corresponding with the ad code that application program starts loading
After rapid, methods described also includes:
If there is not the record corresponding with the ad code that application program starts loading, prompt the user to choose whether to need
Shield seen advertisement;
If user selects to need the seen advertisement of shielding, user is pointed out to choose the advertisement wanting to shield;
The system of described mobile terminal chooses, according to user, the group wanting the advertisement shielding to obtain belonging to corresponding advertisement interface
Part type;
Different component type according to belonging to corresponding advertisement interface, record component type parameter respectively;
Parsing obtains different component type corresponding ad code data, and described ad code data be recorded described
In the system advertisement shielding object database of mobile terminal.
Preferably, the component type belonging to described advertisement interface includes View assembly and Activity assembly, wherein, institute
State the different component type according to belonging to corresponding advertisement interface, the step of record component type parameter includes respectively:
If obtaining the component type belonging to corresponding advertisement interface is View assembly, the system of described mobile terminal will be described
The corresponding ad content of View assembly is set to invisible, and records bag name, assembly name and the institute that described View assembly is located
Coordinate figure in the display screen of described mobile terminal;Or
If obtaining the component type belonging to corresponding advertisement interface is Activity assembly, the system of described mobile terminal will
Remove the corresponding ad content of described Activity assembly, and record bag name and the assembly that described Activity assembly is located
Name.
On the other hand, the present invention also provides a kind of advertisement shielding harness based on mobile terminal, including:
Record queries module, when starting carrying advertisement code for the application program in described mobile terminal, enters described
The system advertisement shielding object database of mobile terminal carries out record queries;
Record judge module, the corresponding note of the ad code for judging whether with application program starts loading
Record;
Attribute acquisition module, if the corresponding record of the ad code for existing with application program starts loading, obtains
Take the type attribute at advertisement interface;
Advertisement shroud module, for carrying out advertisement shielding respectively according to the attribute type at described advertisement interface.
Preferably, the type attribute at described advertisement interface includes View type and Activity type, wherein, described wide
Accuse shroud module specifically for:
If the type attribute at described advertisement interface is View type, will be corresponding with the advertising circle face of this View type wide
After announcement code has loaded, the advertisement interface of the system described View type of setting of described mobile terminal is invisible;Or
If the type attribute at described advertisement interface is Activity type, the system of described mobile terminal does not directly start
The advertisement of described Activity type.
Preferably, described system also includes:
Prompting selecting module, if the corresponding record of the ad code for not existing with application program starts loading, carries
Show that user chooses whether needs the seen advertisement of shielding, and if user select to need the seen advertisement of shielding, point out to use
The advertisement wanting to shield is chosen at family;
Assembly acquisition module, the system for described mobile terminal chooses the advertisement acquisition correspondence wanting to shield according to user
Component type belonging to advertisement interface;
Reference record module, for the different component type according to belonging to corresponding advertisement interface, record component type respectively
Parameter;
Data-base recording module, obtains different component type corresponding ad code data for parsing, and will be described wide
Accuse in the system advertisement shielding object database that code data recorded described mobile terminal.
Preferably, the component type belonging to described advertisement interface includes View assembly and Activity assembly, wherein, institute
State reference record module specifically for:
If obtaining the component type belonging to corresponding advertisement interface is View assembly, the system of described mobile terminal will be described
The corresponding ad content of View assembly is set to invisible, and records bag name, assembly name and the institute that described View assembly is located
Coordinate figure in the display screen of described mobile terminal;Or
If obtaining the component type belonging to corresponding advertisement interface is Activity assembly, the system of described mobile terminal will
Remove the corresponding ad content of described Activity assembly, and record bag name and the assembly that described Activity assembly is located
Name.
In embodiments of the present invention, the technical scheme that the present invention provides, it is possible to achieve simply and accurately shield mobile whole
Advertisement in the application program at end.
Specific embodiment
In order that the objects, technical solutions and advantages of the present invention become more apparent, below in conjunction with drawings and Examples, right
The present invention is further elaborated.It should be appreciated that specific embodiment described herein is only in order to explain the present invention, and
It is not used in the restriction present invention.
The specific embodiment of the invention provides a kind of advertisement screen method based on mobile terminal, as shown in figure 1, mainly
Comprise the steps:
S101, when the application program of described mobile terminal starts carrying advertisement code, enter described mobile terminal be
System advertisement shielding object database carries out record queries;
S102, judge whether to start, with application program, the corresponding record of ad code that loads;
The corresponding record of the ad code that if S103 exists with application program starts loading, obtain advertisement interface
Type attribute;
S104, advertisement shielding is carried out respectively according to the attribute type at described advertisement interface.
A kind of advertisement screen method based on mobile terminal provided by the present invention, it is possible to achieve simply and accurately shield
Advertisement in the application program of mobile terminal.
A kind of will be described in detail based on the advertisement screen method of mobile terminal to provided by the present invention below.
Refer to Fig. 1, be that in an embodiment of the present invention, the advertisement based on mobile terminal shields method flow diagram.
In step S101, when the application program of described mobile terminal starts carrying advertisement code, enter described movement
The system advertisement shielding object database of terminal carries out record queries.
In the present embodiment, the mobile terminal of user can install various types of application programs, for example, Android
Installation kit(AndroidPackage, APK)Application etc., when APK application be currently running in and described mobile terminal application program
When starting carrying advertisement code, the system advertisement shielding object database that system program is put into described mobile terminal is recorded
Inquiry.In the present embodiment, the system advertisement of mobile terminal shields what object database usually pre-build, is used for depositing
Storage will carry out the object data of advertisement shielding, wherein, the difference of component type according to belonging to advertisement interface for this object data
Correspondence includes a plurality of corresponding record respectively, for example, if the component type belonging to advertisement interface is View assembly, stores
A plurality of corresponding record include the bag name at View assembly place, assembly name, the display screen of the described mobile terminal of being located
Coordinate figure and corresponding ad code;If the component type belonging to advertisement interface is Activity assembly, store
A plurality of corresponding record includes the bag name at Activity assembly place, assembly name and corresponding ad code, above-mentioned this
A little records can be previously stored in the system advertisement shielding object database of mobile terminal it is also possible to user judge to need into
It is stored in during row advertisement shielding in the system advertisement shielding object database of mobile terminal, in order to subsequently directly according to data base
In content carry out respective handling.In the present embodiment, will be wide in the system of mobile terminal for a plurality of corresponding record storage
Accuse the detailed step shielding in object database as shown in S105-S109.
In step s 102, judge whether the record corresponding with the ad code that application program starts loading.
In step s 103, if there is the record corresponding with the ad code that application program starts loading, obtain wide
Accuse the type attribute at interface.
In the present embodiment, if there is the record corresponding with the ad code that application program starts loading, show
Mobile terminal system advertisement shielding object database in be previously stored a plurality of corresponding record, now it is only necessary to
Obtain the type attribute at advertisement interface by the system of mobile terminal.In the present embodiment, the type attribute bag at advertisement interface
Include View type and Activity type.
In step S104, the attribute type according to described advertisement interface carries out advertisement shielding respectively.
In the present embodiment, the step that the described attribute type according to described advertisement interface carries out advertisement shielding respectively
S104 includes in detail:
If the type attribute at described advertisement interface is View type, will be corresponding with the advertising circle face of this View type wide
After announcement code has loaded, the advertisement interface of the system described View type of setting of described mobile terminal is invisible;Or
If the type attribute at described advertisement interface is Activity type, the system of described mobile terminal does not directly start
The advertisement of described Activity type.
In the present embodiment, as long as the advertisement interface that the system of mobile terminal arranges View type is invisible or straight
Connect the advertisement not starting Activity type, can be achieved with the shielding of advertisement, and this mode of operation is simple and accurately shields
Cover the advertisement in the application program of mobile terminal.
In step S105, if there is not the record corresponding with the ad code that application program starts loading, point out
User chooses whether to need the seen advertisement of shielding.
In step s 106, if user selects to need the seen advertisement of shielding, point out user to choose and want shielding
Advertisement.In the present embodiment, if user does not select to need the seen advertisement of shielding, show that user is not intended to shield this wide
Accuse, now, just directly terminate flow process.
In step s 107, the system of described mobile terminal is chosen according to user and wants the advertisement shielding to obtain corresponding advertisement
Component type belonging to interface.In the present embodiment, the component type belonging to advertisement interface include View assembly and
Activity assembly.
In step S108, according to corresponding to the different component type belonging to advertisement interface, distinguish record component type parameter.
In the present embodiment, described different component type according to belonging to corresponding advertisement interface, record component class respectively
Step S108 of shape parameter includes in detail:
If obtaining the component type belonging to corresponding advertisement interface is View assembly, the system of described mobile terminal will be described
The corresponding ad content of View assembly is set to invisible, and records bag name, assembly name and the institute that described View assembly is located
Coordinate figure in the display screen of described mobile terminal;Or
If obtaining the component type belonging to corresponding advertisement interface is Activity assembly, the system of described mobile terminal will
Remove the corresponding ad content of described Activity assembly, and record bag name and the assembly that described Activity assembly is located
Name.
In step S109, parsing obtains different component type corresponding ad code data, and by described ad code
Data recorded in the system advertisement shielding object database of described mobile terminal.In the present embodiment, by step S105-
S109 can set up and improve the system advertisement shielding object database of mobile terminal, and then user can borrow this mobile terminal
System advertisement shielding object database directly shield its advertisement to be shielded, this mode of operation simply and accurately shields
Advertisement in the application program of mobile terminal.
A kind of advertisement screen method based on mobile terminal provided by the present invention, it is possible to achieve simply and accurately shield
Advertisement in the application program of mobile terminal.
The specific embodiment of the invention also provides a kind of advertisement shielding harness 10 based on mobile terminal, as shown in Fig. 2 institute
State and mainly included based on the advertisement shielding harness 10 of mobile terminal:
Record queries module 101, when starting carrying advertisement code for the application program in described mobile terminal, enters institute
The system advertisement shielding object database stating mobile terminal carries out record queries;
Record judge module 102, the ad code for judging whether with application program starts to load is corresponding
Record;
Attribute acquisition module 103, if the corresponding record of the ad code for existing with application program starts loading,
Obtain the type attribute at advertisement interface;
Advertisement shroud module 104, for carrying out advertisement shielding respectively according to the attribute type at described advertisement interface.
Advertisement shielding harness 10 based on mobile terminal provided by the present invention, it is possible to achieve simple and accurately shielding shifting
Advertisement in the application program of dynamic terminal.
A kind of will be described in detail based on the advertisement shielding harness 10 of mobile terminal to provided by the present invention below.
Refer to Fig. 2, show the structure of the advertisement shielding harness 10 based on mobile terminal in an embodiment of the present invention
Schematic diagram.In the present embodiment, record queries module 101 is included based on the advertisement shielding harness 10 of mobile terminal, record is sentenced
Disconnected module 102, attribute acquisition module 103, advertisement shroud module 104, prompting selecting module 105, assembly acquisition module 106, ginseng
Number logging modle 107 and data-base recording module 108.
Record queries module 101, when starting carrying advertisement code for the application program in described mobile terminal, enters institute
The system advertisement shielding object database stating mobile terminal carries out record queries.
In the present embodiment, the mobile terminal of user can install various types of application programs, for example, Android
Installation kit(AndroidPackage, APK)Application etc., when APK application be currently running in and described mobile terminal application program
When starting carrying advertisement code, the system advertisement shielding object database that system program is put into described mobile terminal is recorded
Inquiry.In the present embodiment, the system advertisement of mobile terminal shields what object database usually pre-build, is used for depositing
Storage will carry out the object data of advertisement shielding, wherein, the difference of component type according to belonging to advertisement interface for this object data
Correspondence includes a plurality of corresponding record respectively, for example, if the component type belonging to advertisement interface is View assembly, stores
A plurality of corresponding record include the bag name at View assembly place, assembly name, the display screen of the described mobile terminal of being located
Coordinate figure and corresponding ad code;If the component type belonging to advertisement interface is Activity assembly, store
A plurality of corresponding record includes the bag name at Activity assembly place, assembly name and corresponding ad code, above-mentioned this
A little records can be previously stored in the system advertisement shielding object database of mobile terminal it is also possible to user judge to need into
It is stored in during row advertisement shielding in the system advertisement shielding object database of mobile terminal, in order to subsequently directly according to data base
In content carry out respective handling.
Record judge module 102, the ad code for judging whether with application program starts to load is corresponding
Record.
Attribute acquisition module 103, if the corresponding record of the ad code for existing with application program starts loading,
Obtain the type attribute at advertisement interface.
In the present embodiment, if there is the record corresponding with the ad code that application program starts loading, show
Mobile terminal system advertisement shielding object database in be previously stored a plurality of corresponding record, now it is only necessary to
Obtain the type attribute at advertisement interface by the system of mobile terminal.In the present embodiment, the type attribute bag at advertisement interface
Include View type and Activity type.
Advertisement shroud module 104, for carrying out advertisement shielding respectively according to the attribute type at described advertisement interface.
In the present embodiment, advertisement shroud module 104 specifically for:
If the type attribute at described advertisement interface is View type, will be corresponding with the advertising circle face of this View type wide
After announcement code has loaded, the advertisement interface of the system described View type of setting of described mobile terminal is invisible;Or
If the type attribute at described advertisement interface is Activity type, the system of described mobile terminal does not directly start
The advertisement of described Activity type.
In the present embodiment, as long as the advertisement interface that the system of mobile terminal arranges View type is invisible or straight
Connect the advertisement not starting Activity type, can be achieved with the shielding of advertisement, and this mode of operation is simple and accurately shields
Cover the advertisement in the application program of mobile terminal.
Prompting selecting module 105, if the corresponding record of the ad code for not existing with application program starts loading
Then prompt the user to choose whether to need the seen advertisement of shielding, and if user select to need the seen advertisement of shielding, carry
Show that user chooses the advertisement wanting to shield.In the present embodiment, if user does not select to need the seen advertisement of shielding, table
Bright user is not intended to shield this advertisement, now, just directly terminates flow process.
Assembly acquisition module 106, the system for described mobile terminal chooses the advertisement acquisition wanting to shield according to user
Component type belonging to corresponding advertisement interface.In the present embodiment, the component type belonging to advertisement interface includes View assembly
And Activity assembly.
Reference record module 107, for the different component type according to belonging to corresponding advertisement interface, record component class respectively
Shape parameter.
In the present embodiment, reference record module 107 specifically for:
If obtaining the component type belonging to corresponding advertisement interface is View assembly, the system of described mobile terminal will be described
The corresponding ad content of View assembly is set to invisible, and records bag name, assembly name and the institute that described View assembly is located
Coordinate figure in the display screen of described mobile terminal;Or
If obtaining the component type belonging to corresponding advertisement interface is Activity assembly, the system of described mobile terminal will
Remove the corresponding ad content of described Activity assembly, and record bag name and the assembly that described Activity assembly is located
Name.
Data-base recording module 108, obtains different component type corresponding ad code data for parsing, and will be described
Ad code data recorded in the system advertisement shielding object database of described mobile terminal.
A kind of advertisement shielding harness 10 based on mobile terminal provided by the present invention, it is possible to achieve simply and accurately shield
Cover the advertisement in the application program of mobile terminal.
In embodiments of the present invention, the technical scheme that the present invention provides, it is possible to achieve simply and accurately shield mobile whole
Advertisement in the application program at end.
It should be noted that in above-described embodiment, included unit is simply divided according to function logic,
But it is not limited to above-mentioned division, as long as being capable of corresponding function;In addition, the specific name of each functional unit
Only to facilitate mutual distinguish, it is not limited to protection scope of the present invention.
In addition, one of ordinary skill in the art will appreciate that realizing all or part of step in the various embodiments described above method
The program that can be by complete come the hardware to instruct correlation, and corresponding program can be stored in an embodied on computer readable storage and be situated between
In matter, described storage medium, such as ROM/RAM, disk or CD etc..
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all essences in the present invention
Any modification, equivalent and improvement made within god and principle etc., should be included within the scope of the present invention.