CN106547541A - The device of the method, device and reinforcing installation kit of statistics application page presentation duration - Google Patents

The device of the method, device and reinforcing installation kit of statistics application page presentation duration Download PDF

Info

Publication number
CN106547541A
CN106547541A CN201610890950.5A CN201610890950A CN106547541A CN 106547541 A CN106547541 A CN 106547541A CN 201610890950 A CN201610890950 A CN 201610890950A CN 106547541 A CN106547541 A CN 106547541A
Authority
CN
China
Prior art keywords
application
page
activity
duration
methods
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.)
Pending
Application number
CN201610890950.5A
Other languages
Chinese (zh)
Inventor
徐伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201610890950.5A priority Critical patent/CN106547541A/en
Publication of CN106547541A publication Critical patent/CN106547541A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/53Decompilation; Disassembly
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4488Object-oriented
    • G06F9/4492Inheritance

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses the device of a kind of method of statistics application page presentation duration, device and reinforcing installation kit.Wherein methods described includes:Monitoring plug-in unit is bundled in the installation kit of application;After the installation kit of the application is installed in intelligent terminal to be gone up and start, the monitoring plug-in unit counts the displaying duration of each page of the application.The technical scheme can monitor the displaying duration of each page of application, service condition of the user in each page can be embodied, the data can be provided using operation and the reference safeguarded for the operator of application, the data for for example counting a large number of users are learnt, the displaying time of a certain page is all very short, then the operator of application can just consider to cancel the page in the application of next version or redesign the page.

Description

The device of the method, device and reinforcing installation kit of statistics application page presentation duration
Technical field
The present invention relates to field of computer technology, and in particular to a kind of method of statistics application page presentation duration, device With the device for reinforcing installation kit.
Background technology
Using operator generally require to understand relevant information of the user using application, the installation number of times for example applied, open Dynamic number of times etc..Also very unilateral to the statistics using service condition in prior art, the operator of so application can not be comprehensively How user is understood using application, being just difficult to be improved the function of applying makes which more meet user's request.
The content of the invention
In view of the above problems, it is proposed that the present invention so as to provide one kind overcome the problems referred to above or at least in part solve on State the device of the method, device and reinforcement application installation kit of the statistics application page presentation duration of problem.
According to one aspect of the present invention, there is provided a kind of method of statistics application page presentation duration, including:
Monitoring plug-in unit is bundled in the installation kit of application;
After the installation kit of the application is installed in intelligent terminal to be gone up and start, the monitoring plug-in unit counts the application Each page displaying duration.
Alternatively, the method also includes:
Statistical result is fed back to the monitoring plug-in unit server of the application.
Alternatively, the method also includes:
The monitoring plug-in unit carries out suing for peace to the displaying duration of each page of the application and obtains total displaying of the application Duration, and total displaying duration is fed back to the server of the application.
Alternatively, the displaying duration of each page that the monitoring plug-in unit counts the application includes:
The monitoring plug-in unit counts the screen displaying duration foremost of each page of the application in intelligent terminal respectively.
Alternatively, the monitoring plug-in unit counts the screen exhibition foremost of each page of the application in intelligent terminal respectively Show that duration includes:
The life cycle being active of monitoring each Activity components corresponding with each page of the application;
Count the life cycle duration that each page is active.
Alternatively, the monitoring corresponding with each page of the application each Activity components are active Life cycle includes:
For a page of the application,
When listening to the onStart methods of Activity components of the page and being adjusted back by system, the page is determined Activity components enter state of activation;
When listening to the onStop methods of Activity components of the page and being adjusted back by system, the page is determined Activity components terminate state of activation.
Alternatively, the method also includes:
Decompiling is performed to the installation kit of the application, the middle assembly code of the application is obtained;
The middle assembly code is traveled through, checks whether each page of the application is all deposited in the middle assembly code In onStart methods corresponding with its Activity component and onStop methods;
If a page for checking the application is not present in the middle assembly code and its Activity group The corresponding onStart methods of part and onStop methods, then insert and which for the page in the middle assembly code The corresponding onStart methods of Activity components and onStop methods.
Alternatively, the method also includes:
Decompiling is performed to the installation kit of the application, the middle assembly code of the application is obtained;
The middle assembly code is traveled through, the type and inheritance of each Activity component is obtained;
According to the type of the Activity components for obtaining, it is that each type selects one with the type identical basis Activity components are inserted in the middle assembly code, and the summit of the inheritance of each Activity component is changed It is and the Activity component types identical basis Activity components;
Wherein, each type of basic Activity components include corresponding onStart methods and onStop methods, and often The basic Activity components of type directly inherit the Activity of the type from Android system.
Alternatively, it is described that the installation kit that monitoring plug-in unit is bundled to application is included:
The monitoring plug-in unit is inserted in each basic Activity component.
Described monitoring plug-in unit is bundled in the installation kit of application also includes:
State in the installation kit, the monitoring plug-in unit is called in the Application apoplexy due to endogenous wind of the application so that described Monitoring plug-in unit is preferentially activated when application starts.
Alternatively, it is described that the installation kit that monitoring plug-in unit is bundled to application is included:
Increase shell for the installation kit;
The monitoring plug-in unit is inserted in the shell, preferentially starts the monitoring when application starts by the shell Plug-in unit.
According to another aspect of the present invention, there is provided a kind of device of statistics application page presentation duration, including:
Statistic unit, is suitable to after the installation kit of the application is installed on intelligent terminal and starts, and statistics is described should The displaying duration of each page.
Alternatively, the device also includes:
Feedback unit, is suitable to statistical result is fed back to the server of the application.
Alternatively, the statistic unit, the displaying duration for being further adapted for each page to the application carry out summation and obtain institute State total displaying duration of application;
The feedback unit, is further adapted for total server for showing that duration feeds back to the application.
Alternatively, the statistic unit, be suitable to count respectively each page of the application intelligent terminal screen most before The displaying duration at end.
Alternatively, the statistic unit, is suitable to monitor each Activity components corresponding with each page of the application The life cycle being active;Count the life cycle duration that each page is active.
Alternatively, the statistic unit, is suitable to a page for the application, when listening to the page When the onStart methods of Activity components are adjusted back by system, determine that the Activity components of the page enter state of activation;When When listening to the onStop methods of the Activity components of the page and being adjusted back by system, the Activity components knot of the page is determined Beam state of activation.
According to another aspect of the present invention, there is provided a kind of device of reinforcing installation kit, wherein, the device includes:
Packaged unit, being suitable to be bundled to the device of the statistics application page presentation duration any one of as described above should In installation kit.
Alternatively, the device also includes:
Edit cell, is further adapted for the installation kit to the application and performs decompiling, obtains the middle compilation generation of the application Code;Travel through the middle assembly code, check each page of the application whether all exists in the middle assembly code and The corresponding onStart methods of its Activity component and onStop methods;If checking a page of the application in institute There is no onStart methods corresponding with its Activity component and onStop methods in stating middle assembly code, then described OnStart methods corresponding with its Activity component and onStop methods are inserted for the page in middle assembly code.
Alternatively, the device also includes:
Edit cell, is suitable to the installation kit to the application and performs decompiling, obtain the middle assembly code of the application; The middle assembly code is traveled through, the type and inheritance of each Activity component is obtained;According to what is obtained The type of Activity components, be each type select one be inserted into the type identical basis Activity components described in In middle assembly code, the summit of the inheritance of each Activity component is revised as and the Activity component types Identical basis Activity components;Wherein, each type of basic Activity components comprising corresponding onStart methods and OnStop methods, and each type of basic Activity components directly inherit the Activity of the type from Android system.
Alternatively, the packaged unit, is suitable to for the device of the statistics application page presentation duration to insert each basis In Activity components.
From the foregoing, technical scheme, by adding monitoring plug-in unit in the installation kit of application so that answering After intelligent terminal startup is installed to, by the displaying duration of each page of the monitoring plug-in unit monitoring statisticss application.The technology Scheme can monitor the displaying duration of each page of application, can embody service condition of the user in each page, the data Can provide using operation and the reference safeguarded for the operator of application, the data for for example counting a large number of users are learnt, certain one page The displaying time in face is all very short, then the operator of application can just consider to cancel the page or weight in the application of next version The page is designed newly.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention, And can be practiced according to the content of description, and in order to allow the above and other objects of the present invention, feature and advantage can Become apparent, below especially exemplified by the specific embodiment of the present invention.
Description of the drawings
By the detailed description for reading hereafter preferred implementation, various other advantages and benefit are common for this area Technical staff will be clear from understanding.Accompanying drawing is only used for the purpose for illustrating preferred implementation, and is not considered as to the present invention Restriction.And in whole accompanying drawing, it is denoted by the same reference numerals identical part.In the accompanying drawings:
Fig. 1 shows that a kind of flow process of the method for statistics application page presentation duration according to an embodiment of the invention is shown It is intended to;
Fig. 2 shows that a kind of structure of the device of statistics application page presentation duration according to an embodiment of the invention is shown It is intended to;And
Fig. 3 shows a kind of structural representation of device for reinforcing installation kit according to an embodiment of the invention.
Specific embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although the disclosure is shown in accompanying drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure and should not be by embodiments set forth here Limited.On the contrary, there is provided these embodiments are able to be best understood from the disclosure, and can be by the scope of the present disclosure Complete conveys to those skilled in the art.
Fig. 1 shows that a kind of flow process of the method for statistics application page presentation duration according to an embodiment of the invention is shown It is intended to, as shown in figure 1, the method includes:
Step S110, monitoring plug-in unit is bundled in the installation kit of application.
Step S120, after the installation kit of application is installed in intelligent terminal to be gone up and start, monitors plug-in unit statistics application The displaying duration of each page.
It can be seen that, the method shown in Fig. 1, by adding monitoring plug-in unit in the installation kit of application so that mounted in application To intelligent terminal and after startup, by the displaying duration of each page of the monitoring plug-in unit monitoring statisticss application.The technical scheme can The displaying duration of each page of application is monitored, service condition of the user in each page can be embodied, the data can be should Operator provides application operation and the reference safeguarded, the data for for example counting a large number of users are learnt, the displaying of a certain page Time is all very short, then the operator of application can just consider to cancel the page in the application of next version or redesign to be somebody's turn to do The page.
Statistical result can feed back to periodically or under given conditions the operator of application, and for example, operator is in server End provides interface to obtain statistical result.In one embodiment of the invention, the method shown in Fig. 1 also includes:Monitoring plug-in unit Statistical result is fed back to into the server of application.For example, apply when exiting every time, the statistical result recorded after this is started Feed back to server of application, etc..
In one embodiment of the present of invention, the method shown in Fig. 1 also includes:The displaying of each page of the monitoring plug-in unit to applying Duration is carried out suing for peace the total displaying duration being applied, and by total server for showing that duration feeds back to application.
For example, application includes five pages, then monitoring plug-in unit can respectively to this five pages when statistics shows duration Displaying duration counted, when needing the server to application to be fed back, then the displaying duration of each page is asked With the total displaying duration being applied.Specifically, the time point that plug-in unit can record each feedback is monitored, is carried out instead in next time During feedback, the displaying duration of all pages after the time point from last feedback is sued for peace.For example, using setting To count the total displaying duration once applied daily, and this is applied and starts in this day repeatedly.So move back in application every time The displaying duration using each page all can be recorded once when going out, at the end of this day, the displaying duration of each page is carried out Total displaying duration that summation is applied.
In one embodiment of the invention, in the method shown in Fig. 1, monitor the displaying of each page of plug-in unit statistics application Duration includes:Screen displaying duration foremost of each page of monitoring plug-in unit difference statistics application in intelligent terminal.
When user is using applying, the page of application in the screen of intelligent terminal foremost, and can be switched to which in user When he applies, former application is not necessarily rejected, it is also possible to be suspended on backstage.At this moment former application is not used by a user, because This screen page presentation duration foremost of each page of statistics application in intelligent terminal in the present embodiment, the statistics knot for obtaining Fruit is more valuable to operator.
Specifically, in one embodiment of the invention, in said method, monitor each page that plug-in unit distinguishes statistics application Include in the screen displaying duration foremost of intelligent terminal:Monitor each Activity components corresponding with each page of application The life cycle being active;Count the life cycle duration that each page is active.Wherein, monitoring and application The life cycle being active of the corresponding each Activity components of each page includes:For application a page, when When listening to the onStart methods of the Activity components of the page and being adjusted back by system, the Activity components of the page are determined Into state of activation;When listening to the onStop methods of Activity components of the page and being adjusted back by system, the page is determined Activity components terminate state of activation.
The embodiment is applied to Android system.In Android system, each page one Activity of correspondence of application Component.The component has four kinds of states:
1) run (Running) state:After one new Activity starts stacking, it in screen foremost, in stack Top, now it is in visible and can be with the state of activation of user mutual.State of activation in the present invention refers to Running states.Specifically, after using start-up course, whenever a page is demonstrated, it is meant that there is corresponding Activity It is created, this will successively call onCreate, onStart and onResume method.Wherein onCreate methods are only at this Activity can just be called when being and being created for the first time, mainly be responsible for the general Initialize installation of Activity, wrap Include the establishment of view, binding of data etc..OnStart methods can be just adjusted when Activity is going to visible state With, usually can register during this period one broadcast etc..
Thus, the onStart methods of the Activity components of the page whether are adjusted back in the present embodiment by monitoring system To judge whether the page is active.
2) suspend (Paused) state:When the Activity of Activity transparent or Dialog patterns by another is covered When state.Now it still keeps being connected with window manager, and system continues to safeguard its internal state that it is still visible, but It has had been out focus, therefore can not be with user mutual.For example, application in be built-in with advertisement, when application operation when, ejection it is wide Accuse pop-up to cover using the page for showing originally, the Activity of the page for now showing originally is in Paused states. When the state of Activity is Paused states by Running State Transferrings, system can call onPause methods.
3) stop (Stopped) state:When Activity is invisible, Activity is in Stopped states.System meeting Call onStop methods to cause Activity to enter Stopped states.
4) dead (Killed) state:After Activity is killed or before being actuated to, in Killed states.This It is that Activity is removed from Activity storehouses, needs restarting just show and use.The process for example applied After being forced to terminate, the corresponding Activity of each page is will no longer be present in Activity storehouses originally, can be in startup next time Shi Caihui stackings again.
From the above, it is seen that the page of application is when starting to show, system can adjust back the Activity components of the page OnStart methods;And during page stopping displaying, system can adjust back the onStop methods of the Activity components of the page.Therefore Said method is called by monitoring, and when counting adjacent onStart method calls time point and onStop method calls Between put between time interval, it is possible to the page presentation duration of the corresponding page that is applied.
Under normal circumstances, developer all can Selection utilization system readjustment onStart methods and onStop methods mode The switching to Activity component states is completed, but there is also exception, therefore in an embodiment of the present invention, it is above-mentioned Method also includes:Installation kit to applying performs decompiling, the middle assembly code being applied;Assembly code in the middle of traversal, Check application each page whether all exist in middle assembly code onStart methods corresponding with its Activity component and OnStop methods;If a page for checking application does not exist corresponding with its Activity component in middle assembly code OnStart methods and onStop methods, then it is corresponding with its Activity component for page insertion in middle assembly code OnStart methods and onStop methods.
In this way, it is ensured that each page of application is to having onStart side corresponding with its Activity component Method and onStop methods, also can just make to use the screen of each page in intelligent terminal of the method statistic application in an embodiment Displaying duration foremost.
In the above-described embodiments, if performing decompiling to installation kit, the Activity component counts for obtaining are more, then need Method quantity to be inserted is also just a lot.And method quantity is present in ARIXTRA virtual machine execution file (dex files) and is limited, no Can exceed that 65535.Therefore the operation performed by above-described embodiment is likely to failure.Effectively can drop in another embodiment Low this risk of failure:
Installation kit to applying performs decompiling, the middle assembly code being applied;Assembly code in the middle of traversal, obtains The type and inheritance of each Activity component;According to the type of the Activity components for obtaining, it is each type choosing Select one to be inserted in middle assembly code with the type identical basis Activity components, by each Activity component The summit of inheritance be revised as and the Activity component types identical basis Activity components;Wherein, per species The basic Activity components of type include corresponding onStart methods and onStop methods, and each type of basis Activity components directly inherit the Activity of the type from Android system.
For example, 50 Activity components are included in middle assembly code, as a example by the technical scheme in one embodiment of the above, If all no corresponding onStart methods of these Activity components and onStop methods, need to insert 50*2=100 Method.And in the present embodiment, if these components are all same types, then only need to insert a basis Activity group Part, writes onStart methods and onStop methods in the assembly, and this just only needs to insert two methods, in fact, generally feelings Activity types under condition in installation kit are not over 3, therefore the method quantity inserted, also generally not over 6, this can To substantially reduce the risk of failure.And if original Activity components have corresponding onStart methods and onStop methods, Can be according to inheritance, the method for calling its parent, that what is finally called is still the onStart methods of basic Activity components With onStop methods, that is to say, that, it is only necessary to the onStart methods and onStop methods of basic Activity components are supervised Control.Therefore in one embodiment of the invention, the installation kit that monitoring plug-in unit is bundled to application is included:Monitoring is inserted Part is inserted in each basic Activity component.And when so also ensure that correlation method is called, monitoring plug-in unit can be at once Monitor, and the method will not also waste system resource when not being called.
Fig. 2 shows that a kind of structure of the device of statistics application page presentation duration according to an embodiment of the invention is shown It is intended to, as shown in Fig. 2 the device 200 of statistics application page presentation duration includes:
Statistic unit 210, is suitable to after the installation kit of application is installed on intelligent terminal and starts, statistics application it is each The displaying duration of the page.
It can be seen that, the device shown in Fig. 2, after application is installed to intelligent terminal startup, by monitoring plug-in unit monitoring statisticss Using each page displaying duration.The technical scheme can monitor the displaying duration of each page of application, can embody use Service condition of the family in each page, the data can provide the reference applied operation and safeguard for the operator of application, for example The data of statistics a large number of users learn that the displaying time of a certain page is all very short, then the operator of application can just consider Cancel the page in the application of next version or redesign the page.
In one embodiment of the invention, the device shown in Fig. 2 also includes:Feedback unit 220, is suitable to statistical result Feed back to the server of application.
In one embodiment of the invention, in the device shown in Fig. 2, statistic unit 210 is further adapted for each page to applying Face shows that duration is carried out suing for peace the total displaying duration being applied;Feedback unit 220, is further adapted for showing that duration feeds back to by total Using server.
In one embodiment of the invention, in the device shown in Fig. 2, statistic unit 210 is suitable to difference statistics application Screen displaying duration foremost of each page in intelligent terminal.
In one embodiment of the invention, in said apparatus, statistic unit 210 is suitable to monitor each page with application The life cycle being active of corresponding each Activity components;Count the life cycle that each page is active Duration.
In one embodiment of the invention, in said apparatus, statistic unit 210 is suitable to for a page of application, When listening to the onStart methods of Activity components of the page and being adjusted back by system, the Activity groups of the page are determined Part enters state of activation;When listening to the onStop methods of Activity components of the page and being adjusted back by system, the page is determined The Activity components in face terminate state of activation.
Fig. 3 shows a kind of structural representation of device for reinforcing installation kit according to an embodiment of the invention, such as Fig. 3 Shown, the device 300 for reinforcing installation kit includes:
Packaged unit 310, is suitable to be bundled to the device 200 of the statistics application page presentation duration of such as above-mentioned any one and answers In installation kit.
In one embodiment of the invention, the device shown in Fig. 3 also includes:Edit cell 320, is further adapted for application Installation kit performs decompiling, the middle assembly code being applied;Assembly code in the middle of traversal, checks each page of application in Between whether all there is onStart methods corresponding with its Activity component and onStop methods in assembly code;If checked To application a page do not exist in middle assembly code onStart methods corresponding with its Activity component and OnStop methods, then in middle assembly code for the page insert onStart methods corresponding with its Activity component and OnStop methods.
In one embodiment of the invention, the device shown in Fig. 3 also includes:Edit cell 320, is suitable to the peace to applying Dress bag performs decompiling, the middle assembly code being applied;Assembly code in the middle of traversal, obtains each Activity component Type and inheritance;According to the type of the Activity components for obtaining, it is that each type selection one is identical with the type Basic Activity components be inserted in middle assembly code, the summit of the inheritance of each Activity component is repaiied It is changed to and the Activity component types identical basis Activity components;Wherein, each type of basic Activity groups Part includes corresponding onStart methods and onStop methods, and each type of basic Activity components are directly from ARIXTRA system System inherits the Activity of the type.
In one embodiment of the invention, in the device shown in Fig. 3, packaged unit 310 is suitable to the statistics application page Show that the device 200 of duration is inserted in each basic Activity component..
It should be noted that the specific embodiment of above-mentioned each device embodiment is concrete with aforementioned corresponding method embodiment Embodiment is identical, will not be described here.
In sum, technical scheme, by adding monitoring plug-in unit in the installation kit of application so that in application After being installed to intelligent terminal startup, by the displaying duration of each page of the monitoring plug-in unit monitoring statisticss application, for example, pass through Monitoring system adjusts back the event of designation method, monitors the statement cycle of the corresponding Activity of each page.The technical scheme energy The displaying duration of each page of application is enough monitored, service condition of the user in each page can be embodied, the data can be Using operator provide application operation and safeguard reference, for example count a large number of users data learn, the exhibition of a certain page Show that the time is all very short, then the operator of application can just consider to cancel the page or redesign in the application of next version The page.
It should be noted that:
Algorithm and display be not inherently related to any certain computer, virtual bench or miscellaneous equipment provided herein. Various fexible units can also be used together based on teaching in this.As described above, construct required by this kind of device Structure be obvious.Additionally, the present invention is also not for any certain programmed language.It is understood that, it is possible to use it is various Programming language realizes the content of invention described herein, and the description done to language-specific above is to disclose this Bright preferred forms.
In description mentioned herein, a large amount of details are illustrated.It is to be appreciated, however, that the enforcement of the present invention Example can be put into practice in the case where not having these details.In some instances, known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the disclosure and help understand one or more in each inventive aspect, exist Above to, in the description of the exemplary embodiment of the present invention, each feature of the present invention is grouped together into single enforcement sometimes In example, figure or descriptions thereof.However, should the method for the disclosure be construed to reflect following intention:I.e. required guarantor The more features of feature is expressly recited in each claim by the application claims ratio of shield.More precisely, such as following Claims it is reflected as, inventive aspect is less than all features of single embodiment disclosed above.Therefore, Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim itself All as the separate embodiments of the present invention.
Those skilled in the art are appreciated that can be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more different from embodiment equipment.Can be the module or list in embodiment Unit or component are combined into a module or unit or component, and can be divided in addition multiple submodule or subelement or Sub-component.In addition at least some in such feature and/or process or unit is excluded each other, can adopt any Combine to all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and so disclosed Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification (includes adjoint power Profit is required, summary and accompanying drawing) disclosed in each feature can it is identical by offers, be equal to or the alternative features of similar purpose carry out generation Replace.
Although additionally, it will be appreciated by those of skill in the art that some embodiments described herein include other embodiments In some included features rather than further feature, but the combination of the feature of different embodiments means in of the invention Within the scope of and form different embodiments.For example, in the following claims, embodiment required for protection appoint One of meaning can in any combination mode using.
The present invention all parts embodiment can be realized with hardware, or with one or more processor operation Software module realize, or with combinations thereof realize.It will be understood by those of skill in the art that can use in practice Microprocessor or digital signal processor (DSP) are realizing statistics application page presentation duration according to embodiments of the present invention The some or all functions of some or all parts in the device of device and reinforcing installation kit.The present invention can also be realized It is for performing some or all equipment of method as described herein or program of device (for example, computer program And computer program).Such program for realizing the present invention can be stored on a computer-readable medium, or can have There is the form of one or more signal.Such signal can be downloaded from internet website and be obtained, or in carrier signal Upper offer, or provided with any other form.
It should be noted that above-described embodiment the present invention will be described rather than limits the invention, and ability Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference markss between bracket should not be configured to limitations on claims.Word "comprising" is not excluded the presence of not Element listed in the claims or step.Word "a" or "an" before element does not exclude the presence of multiple such Element.The present invention can come real by means of the hardware for including some different elements and by means of properly programmed computer It is existing.If in the unit claim for listing equipment for drying, several in these devices can be by same hardware branch To embody.The use of word first, second, and third does not indicate that any order.These words can be explained and be run after fame Claim.
Embodiment of the invention discloses that A1, a kind of method of statistics application page presentation duration, wherein, the method bag Include:
Monitoring plug-in unit is bundled in the installation kit of application;
After the installation kit of the application is installed in intelligent terminal to be gone up and start, the monitoring plug-in unit counts the application Each page displaying duration.
A2, the method as described in A1, wherein, the method is further included:
Statistical result is fed back to the monitoring plug-in unit server of the application.
A3, the method as described in A1, wherein, the method is further included:
The monitoring plug-in unit carries out suing for peace to the displaying duration of each page of the application and obtains total displaying of the application Duration, and total displaying duration is fed back to the server of the application.
A4, the method as described in A1, wherein, the monitoring plug-in unit counts the displaying duration bag of each page of the application Include:
The monitoring plug-in unit counts the screen displaying duration foremost of each page of the application in intelligent terminal respectively.
A5, the method as described in A4, wherein, the monitoring plug-in unit counts each page of the application respectively in intelligent terminal Screen displaying duration foremost include:
The life cycle being active of monitoring each Activity components corresponding with each page of the application;
Count the life cycle duration that each page is active.
A6, the method as described in A5, wherein, it is described to monitor each Activity components corresponding with each page of the application The life cycle being active include:
For a page of the application,
When listening to the onStart methods of Activity components of the page and being adjusted back by system, the page is determined Activity components enter state of activation;
When listening to the onStop methods of Activity components of the page and being adjusted back by system, the page is determined Activity components terminate state of activation.
A7, the method as described in A6, wherein, the method is further included:
Decompiling is performed to the installation kit of the application, the middle assembly code of the application is obtained;
The middle assembly code is traveled through, checks whether each page of the application is all deposited in the middle assembly code In onStart methods corresponding with its Activity component and onStop methods;
If a page for checking the application is not present in the middle assembly code and its Activity group The corresponding onStart methods of part and onStop methods, then insert and which for the page in the middle assembly code The corresponding onStart methods of Activity components and onStop methods.
A8, the method as described in A6, wherein, the method is further included:
Decompiling is performed to the installation kit of the application, the middle assembly code of the application is obtained;
The middle assembly code is traveled through, the type and inheritance of each Activity component is obtained;
According to the type of the Activity components for obtaining, it is that each type selects one with the type identical basis Activity components are inserted in the middle assembly code, and the summit of the inheritance of each Activity component is changed It is and the Activity component types identical basis Activity components;
Wherein, each type of basic Activity components include corresponding onStart methods and onStop methods, and often The basic Activity components of type directly inherit the Activity of the type from Android system.
A9, the method as described in A8, wherein, it is described that the installation kit that monitoring plug-in unit is bundled to application is included:
The monitoring plug-in unit is inserted in each basic Activity component.
Embodiments of the invention also disclose B10, a kind of device of statistics application page presentation duration, wherein, the device Including:
Statistic unit, is suitable to after the installation kit of the application is installed on intelligent terminal and starts, and statistics is described should The displaying duration of each page.
B11, the device as described in B10, wherein, the device is further included:
Feedback unit, is suitable to statistical result is fed back to the server of the application.
B12, the device as described in B10, wherein,
The statistic unit, be further adapted for each page to the application displaying duration carry out summation obtain it is described should Total displaying duration;
The feedback unit, is further adapted for total server for showing that duration feeds back to the application.
B13, the device as described in B10, wherein,
The statistic unit, is suitable to count respectively the screen displaying foremost of each page of the application in intelligent terminal Duration.
B14, the device as described in B13, wherein,
The statistic unit, be suitable to monitor corresponding with each page of the application each Activity components in activation The life cycle of state;Count the life cycle duration that each page is active.
B15, the device as described in B14, wherein,
The statistic unit, is suitable to a page for the application, when the Activity components for listening to the page OnStart methods when being adjusted back by system, determine that the Activity components of the page enter state of activation;When listening to the page The onStop methods of Activity components when being adjusted back by system, determine that the Activity components of the page terminate state of activation.
Embodiments of the invention also disclose C16, a kind of device of reinforcement application installation kit, wherein, the device includes:
Packaged unit, is suitable to the device of the statistics application page presentation duration as any one of B10-B15 is packed To in the installation kit of application.
C17, the device as described in C16, wherein, the device is further included:
Edit cell, is suitable to the installation kit to the application and performs decompiling, obtain the middle assembly code of the application; The middle assembly code is traveled through, checks whether each page of the application is all present and which in the middle assembly code The corresponding onStart methods of Activity components and onStop methods;If checking a page of the application described There is no onStart methods corresponding with its Activity component and onStop methods in middle assembly code, then in described Between insert onStart methods corresponding with its Activity component and onStop methods for the page in assembly code.
C18, the device as described in C16, wherein, the device is further included:
Edit cell, is suitable to the installation kit to the application and performs decompiling, obtain the middle assembly code of the application; The middle assembly code is traveled through, the type and inheritance of each Activity component is obtained;According to what is obtained The type of Activity components, be each type select one be inserted into the type identical basis Activity components described in In middle assembly code, the summit of the inheritance of each Activity component is revised as and the Activity component types Identical basis Activity components;Wherein, each type of basic Activity components comprising corresponding onStart methods and OnStop methods, and each type of basic Activity components directly inherit the Activity of the type from Android system.
C19, the device as described in C16, wherein,
The packaged unit, is suitable to for the device of the statistics application page presentation duration to insert each basic Activity In component.

Claims (10)

1. a kind of method of statistics application page presentation duration, wherein, the method includes:
Monitoring plug-in unit is bundled in the installation kit of application;
After the installation kit of the application is installed in intelligent terminal to be gone up and start, the monitoring plug-in unit counts each of the application The displaying duration of the page.
2. the method for claim 1, wherein the method is further included:
Statistical result is fed back to the monitoring plug-in unit server of the application.
3. the method for claim 1, wherein the method is further included:
The monitoring plug-in unit carries out suing for peace to the displaying duration of each page of the application and obtains total displaying duration of the application, And total displaying duration is fed back to the server of the application.
4. the method for claim 1, wherein the monitoring plug-in unit counts the displaying duration bag of each page of the application Include:
The monitoring plug-in unit counts the screen displaying duration foremost of each page of the application in intelligent terminal respectively.
5. method as claimed in claim 4, wherein, the monitoring plug-in unit counts each page of the application respectively at intelligent end The screen at end displaying duration foremost includes:
The life cycle being active of monitoring each Activity components corresponding with each page of the application;
Count the life cycle duration that each page is active.
6. a kind of device of statistics application page presentation duration, wherein, the device includes:
Statistic unit, is suitable to after the installation kit of the application is installed on intelligent terminal and starts, counts the application The displaying duration of each page.
7. a kind of device of reinforcement application installation kit, wherein, the device includes:
Packaged unit, is suitable to the device of statistics application page presentation duration as claimed in claim 6 is bundled to the peace of application In dress bag.
8. device as claimed in claim 7, wherein, the device is further included:
Edit cell, is suitable to the installation kit to the application and performs decompiling, obtain the middle assembly code of the application;Traversal The middle assembly code, checks whether each page of the application is all present and which in the middle assembly code The corresponding onStart methods of Activity components and onStop methods;If checking a page of the application described There is no onStart methods corresponding with its Activity component and onStop methods in middle assembly code, then in described Between insert onStart methods corresponding with its Activity component and onStop methods for the page in assembly code.
9. device as claimed in claim 7, wherein, the device is further included:
Edit cell, is suitable to the installation kit to the application and performs decompiling, obtain the middle assembly code of the application;Traversal The middle assembly code, obtains the type and inheritance of each Activity component;According to the Activity groups for obtaining The type of part, is that each type selects one to be inserted into compilation generation in the middle of described with the type identical basis Activity components In code, the summit of the inheritance of each Activity component is revised as and the Activity component types identical basis Activity components;Wherein, each type of basic Activity components include corresponding onStart methods and onStop side Method, and each type of basic Activity components directly inherit the Activity of the type from Android system.
10. device as claimed in claim 7, wherein,
The packaged unit, is suitable to for the device of the statistics application page presentation duration to insert each basic Activity component In.
CN201610890950.5A 2016-10-12 2016-10-12 The device of the method, device and reinforcing installation kit of statistics application page presentation duration Pending CN106547541A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610890950.5A CN106547541A (en) 2016-10-12 2016-10-12 The device of the method, device and reinforcing installation kit of statistics application page presentation duration

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610890950.5A CN106547541A (en) 2016-10-12 2016-10-12 The device of the method, device and reinforcing installation kit of statistics application page presentation duration

Publications (1)

Publication Number Publication Date
CN106547541A true CN106547541A (en) 2017-03-29

Family

ID=58368734

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610890950.5A Pending CN106547541A (en) 2016-10-12 2016-10-12 The device of the method, device and reinforcing installation kit of statistics application page presentation duration

Country Status (1)

Country Link
CN (1) CN106547541A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108363529A (en) * 2018-03-20 2018-08-03 青岛海信移动通信技术股份有限公司 The determination method and device of the front stage operation time of Application Program Interface
CN108491315A (en) * 2018-03-16 2018-09-04 五八有限公司 The page is resident statistical method, device and the computer readable storage medium of duration
CN108829487A (en) * 2018-06-28 2018-11-16 北京五八信息技术有限公司 A kind of methods of exhibiting of pop-up, device, storage medium and terminal
CN109240902A (en) * 2017-05-27 2019-01-18 腾讯科技(深圳)有限公司 A kind of method and apparatus for the firmware code obtaining electronic equipment
CN110362305A (en) * 2018-04-08 2019-10-22 阿里巴巴集团控股有限公司 A kind of form component state switching method and device
CN112748963A (en) * 2019-10-29 2021-05-04 福建天泉教育科技有限公司 Application page analysis method and terminal

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105306742A (en) * 2015-12-09 2016-02-03 小狮信息技术(上海)有限公司 Intelligent handset App page detention time statistical software method and system
CN105573755A (en) * 2015-12-15 2016-05-11 北京奇虎科技有限公司 Method and device for acquiring application Activity rendering time
CN105630566A (en) * 2016-02-26 2016-06-01 北京奇虎科技有限公司 Application page loading duration determining method and application page loading duration determining device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105306742A (en) * 2015-12-09 2016-02-03 小狮信息技术(上海)有限公司 Intelligent handset App page detention time statistical software method and system
CN105573755A (en) * 2015-12-15 2016-05-11 北京奇虎科技有限公司 Method and device for acquiring application Activity rendering time
CN105630566A (en) * 2016-02-26 2016-06-01 北京奇虎科技有限公司 Application page loading duration determining method and application page loading duration determining device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
麻花儿WT: "android activity应该知道的一切", 《HTTPS://BLOG.CSDN.NET/CQUWENTAO/ARTICLE/DETAILS/51513930》 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109240902A (en) * 2017-05-27 2019-01-18 腾讯科技(深圳)有限公司 A kind of method and apparatus for the firmware code obtaining electronic equipment
CN108491315A (en) * 2018-03-16 2018-09-04 五八有限公司 The page is resident statistical method, device and the computer readable storage medium of duration
CN108491315B (en) * 2018-03-16 2021-11-23 五八有限公司 Page residence time counting method and device and computer readable storage medium
CN108363529A (en) * 2018-03-20 2018-08-03 青岛海信移动通信技术股份有限公司 The determination method and device of the front stage operation time of Application Program Interface
CN110362305A (en) * 2018-04-08 2019-10-22 阿里巴巴集团控股有限公司 A kind of form component state switching method and device
CN110362305B (en) * 2018-04-08 2024-03-01 阿里巴巴集团控股有限公司 Form component state switching method and device
CN108829487A (en) * 2018-06-28 2018-11-16 北京五八信息技术有限公司 A kind of methods of exhibiting of pop-up, device, storage medium and terminal
CN108829487B (en) * 2018-06-28 2022-07-29 北京五八信息技术有限公司 Popup window display method and device, storage medium and terminal
CN112748963A (en) * 2019-10-29 2021-05-04 福建天泉教育科技有限公司 Application page analysis method and terminal

Similar Documents

Publication Publication Date Title
CN106547541A (en) The device of the method, device and reinforcing installation kit of statistics application page presentation duration
CN108829487B (en) Popup window display method and device, storage medium and terminal
CN103914302B (en) Webpage loading progress monitoring method and webpage loading progress monitoring device
US7089535B2 (en) Code coverage with an integrated development environment
CN105550104B (en) Application program capacity test method and device
US10042658B1 (en) Automatically adding bytecode to a software application to determine network communication information
DE102011106078A1 (en) Vehicle unit and method for operating the vehicle unit
CN102999387B (en) Process running gear and method
CN108255708B (en) Method, device, storage medium and equipment for accessing production file in test environment
CN107045475B (en) Test method and device
CN110659198A (en) Application program test case execution method and device and software test system
CN106453501A (en) Method and apparatus for modifying configuration information of service
CN106354638A (en) Automatic testing method and device based on lexical analysis
CN105095087A (en) Permission operation based software test system and method
CN103593293A (en) Parallel automated testing method
US20030066052A1 (en) API to increase debug log performance
US7882399B2 (en) Intelligent job functionality
CN106371809B (en) Thread processor and thread processing method
CN112181388A (en) SDK component initialization method, device, storage medium and control terminal
CN112463574A (en) Software testing method, device, system, equipment and storage medium
CN111722917A (en) Resource scheduling method, device and equipment for performance test task
CN108536429B (en) Method and device for developing software, storage medium and electronic equipment
CN109901831A (en) The multi-platform compatibility operation method and compatibility operation device of software
JP2004094374A (en) Logging system
CN115237441A (en) Upgrade test method, device and medium based on cloud platform

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20170329

RJ01 Rejection of invention patent application after publication